{
"name": "motion",
- "version": "0.0.23",
+ "version": "0.0.24",
"main": "server/app.js",
"dependencies": {
"accept-language-parser": "^1.0.2",
-"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'),
+"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","ngBootstrap","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("ReportListExtractModalCtrl",["$scope","$uibModalInstance","$http","report","xAlert","$translate","$timeout",function(a,b,c,d,e,f,g){a.forms={dashboard:void 0},a.dates={startDate:moment().startOf("day"),endDate:moment().endOf("day")},a.ranges={Today:[moment(),moment()],Yesterday:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Last 7 days":[moment().subtract(7,"days"),moment()],"Last 30 days":[moment().subtract(30,"days"),moment()],"This month":[moment().startOf("month"),moment().endOf("month")]};var h={pageNumber:1,pageSize:25,sort:null,where:{},order:{}};a.gridOptions={paginationPageSizes:[10,25,50],paginationPageSize:25,useExternalPagination:!0,enableSorting:!1,enableFiltering:!0,useExternalFiltering:!0,enableGrouping:!1,treeRowHeaderAlwaysVisible:!1,gridMenuShowHideColumns:!1,enableGridMenu:!0,onRegisterApi:function(b){a.gridApi=b,b.pagination.on.paginationChanged(a,function(b,c){h.pageNumber=b,h.pageSize=c,a.getPage()}),b.core.on.filterChanged(a,function(){var b=this.grid,c={};b.columns.forEach(function(a){console.log(a),a.filters[0].term&&(c[a.field]=a.filters[0].term)}),h.where=c,a.getPage()})}},a.getPage=function(){console.log(a.dates);var b={params:{page:h.pageNumber-1,perPage:h.pageSize,uiPagination:!0,startDate:a.dates.startDate.toISOString(),endDate:a.dates.endDate.toISOString()}};_.forOwn(h.where,function(a,c){b.params[c]=a}),console.log(b),c.get("/api/analytics/reports/"+d.tree+"/extract/"+d.id,b).success(function(b){console.log(b),a.gridOptions.totalItems=b.count<=b.length?b.length:b.count,a.gridOptions.paginationPageSizes[3]=b.count,a.gridOptions.data=b.rows,a.showResult=!0}).error(function(a){e.show(f.instant(a.message),"danger")})},a.cancel=function(){b.dismiss("cancel")},g(function(){a.getPage()})}]),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")},a.extract=function(b){l.open({animation:!0,templateUrl:"app/analytic/report/list/extract.modal.html",controller:"ReportListExtractModalCtrl",size:"full",resolve:{report:function(){return{id:b,tree:a.defaultTreeActive?"default":"custom"}}}})}}]),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={"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.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","Template",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.Templates=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","$state",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(b){a.workspaces.push({name:b.contactName,type:"contact",contactID:b.contactId,active:!0})}function n(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),m(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),m({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){m(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":n(b)}}),a.$on("$viewContentLoaded",function(){Metronic.init()}),c.language=e.use(),a.changeLanguage=function(a){e.use(a).then(function(a){c.language=a,("main.jscripty.projects.view"===l.current.name||"main.square.projects.view"===l.current.name)&&l.go(l.current,{},{reload:!0})})["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/extract.modal.html",'<div class="modal-header">\n <h3 class="modal-title">{{ \'APPLICATION_EXTRACT_REPORT\' | translate }}</h3>\n</div>\n<div class="modal-body" style="text-align:center;">\n <form name="forms.report" class="form-inline" novalidate>\n <div class="form-group">\n <label class="control-label">{{\'APPLICATION_DATE_RANGE\' | translate}}<span class="required" aria-required="true"></span></label>\n <input type="daterange" name="dates" ranges="ranges" placeholder="{{\'APPLICATION_DATE_RANGE\' | translate}}" class="form-control" data-ng-model="dates" data-ng-change="getPage()" required/>\n </div>\n </form>\n <div ng-slide-down="showResult" lazy-render duration="1">\n <div ui-grid="gridOptions" ui-grid-pagination class="grid"></div>\n </div>\n</div>\n<div class="modal-footer">\n<button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | 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 <a class="btn default btn-xs yellow-stripe" data-ng-click="extract(report.id)">\n {{ \'APPLICATION_EXTRACT\' | 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/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.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');
+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\n <li data-ng-show="Auth.isAdmin()" data-ng-class="{active: $state.includes(\'main.jscripty\')}">\n <a href="javascript:;">\n <i class="fa fa-edit"></i>\n <span class="title" >{{\'APPLICATION_JSCRIPTY\' | translate}}</span>\n <span class="arrow"></span>\n </a>\n <ul class="sub-menu">\n <li data-ng-class="{active: $state.includes(\'main.jscripty.projects\')}">\n <a href="/jscripty/projects/list">\n <i class="fa fa-slack"></i>\n <span class="title" >{{\'APPLICATION_PROJECTS\' | 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
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){"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
+"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){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(a,b){return za.call(a,b)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(a){ta.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function f(a,b){var c=!0;return m(function(){return c&&(e(a),c=!1),b.apply(this,arguments)},b)}function g(a,b){qb[a]||(e(b),qb[a]=!0)}function h(a,b){return function(c){return p(a.call(this,c),b)}}function i(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function j(){}function k(a,b){b!==!1&&F(a),n(this,a),this._d=new Date(+a._d)}function l(a){var b=y(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=ta.localeData(),this._bubble()}function m(a,b){for(var d in b)c(b,d)&&(a[d]=b[d]);return c(b,"toString")&&(a.toString=b.toString),c(b,"valueOf")&&(a.valueOf=b.valueOf),a}function n(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Ia.length>0)for(c in Ia)d=Ia[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function o(a){return 0>a?Math.ceil(a):Math.floor(a)}function p(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function q(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function r(a,b){var c;return b=K(b,a),a.isBefore(b)?c=q(a,b):(c=q(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function s(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(g(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=ta.duration(c,d),t(this,e,a),this}}function t(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&&a._d.setTime(+a._d+e*c),f&&na(a,"Date",ma(a,"Date")+f*c),g&&la(a,ma(a,"Month")+g*c),d&&ta.updateOffset(a,f||g)}function u(a){return"[object Array]"===Object.prototype.toString.call(a)}function v(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function w(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&A(a[d])!==A(b[d]))&&g++;return g+f}function x(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=jb[a]||kb[b]||b}return a}function y(a){var b,d,e={};for(d in a)c(a,d)&&(b=x(d),b&&(e[b]=a[d]));return e}function z(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}ta[b]=function(e,f){var g,h,i=ta._locale[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=ta().utc().set(d,a);return i.call(ta._locale,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function A(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function B(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function C(a,b,c){return ha(ta([a,11,31+b-c]),b,c).week}function D(a){return E(a)?366:365}function E(a){return a%4===0&&a%100!==0||a%400===0}function F(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[Ba]<0||a._a[Ba]>11?Ba:a._a[Ca]<1||a._a[Ca]>B(a._a[Aa],a._a[Ba])?Ca:a._a[Da]<0||a._a[Da]>24||24===a._a[Da]&&(0!==a._a[Ea]||0!==a._a[Fa]||0!==a._a[Ga])?Da:a._a[Ea]<0||a._a[Ea]>59?Ea:a._a[Fa]<0||a._a[Fa]>59?Fa:a._a[Ga]<0||a._a[Ga]>999?Ga:-1,a._pf._overflowDayOfYear&&(Aa>b||b>Ca)&&(b=Ca),a._pf.overflow=b)}function G(b){return null==b._isValid&&(b._isValid=!isNaN(b._d.getTime())&&b._pf.overflow<0&&!b._pf.empty&&!b._pf.invalidMonth&&!b._pf.nullInput&&!b._pf.invalidFormat&&!b._pf.userInvalidated,b._strict&&(b._isValid=b._isValid&&0===b._pf.charsLeftOver&&0===b._pf.unusedTokens.length&&b._pf.bigHour===a)),b._isValid}function H(a){return a?a.toLowerCase().replace("_","-"):a}function I(a){for(var b,c,d,e,f=0;f<a.length;){for(e=H(a[f]).split("-"),b=e.length,c=H(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=J(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&w(e,c,!0)>=b-1)break;b--}f++}return null}function J(a){var b=null;if(!Ha[a]&&Ja)try{b=ta.locale(),require("./locale/"+a),ta.locale(b)}catch(c){}return Ha[a]}function K(a,b){var c,d;return b._isUTC?(c=b.clone(),d=(ta.isMoment(a)||v(a)?+a:+ta(a))-+c,c._d.setTime(+c._d+d),ta.updateOffset(c,!1),c):ta(a).local()}function L(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function M(a){var b,c,d=a.match(Na);for(b=0,c=d.length;c>b;b++)pb[d[b]]?d[b]=pb[d[b]]:d[b]=L(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function N(a,b){return a.isValid()?(b=O(b,a.localeData()),lb[b]||(lb[b]=M(b)),lb[b](a)):a.localeData().invalidDate()}function O(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Oa.lastIndex=0;d>=0&&Oa.test(a);)a=a.replace(Oa,c),Oa.lastIndex=0,d-=1;return a}function P(a,b){var c,d=b._strict;switch(a){case"Q":return Za;case"DDDD":return _a;case"YYYY":case"GGGG":case"gggg":return d?ab:Ra;case"Y":case"G":case"g":return cb;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?bb:Sa;case"S":if(d)return Za;case"SS":if(d)return $a;case"SSS":if(d)return _a;case"DDD":return Qa;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Ua;case"a":case"A":return b._locale._meridiemParse;case"x":return Xa;case"X":return Ya;case"Z":case"ZZ":return Va;case"T":return Wa;case"SSSS":return Ta;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?$a:Pa;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Pa;case"Do":return d?b._locale._ordinalParse:b._locale._ordinalParseLenient;default:return c=new RegExp(Y(X(a.replace("\\","")),"i"))}}function Q(a){a=a||"";var b=a.match(Va)||[],c=b[b.length-1]||[],d=(c+"").match(hb)||["-",0,0],e=+(60*d[1])+A(d[2]);return"+"===d[0]?-e:e}function R(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[Ba]=3*(A(b)-1));break;case"M":case"MM":null!=b&&(e[Ba]=A(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b,a,c._strict),null!=d?e[Ba]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[Ca]=A(b));break;case"Do":null!=b&&(e[Ca]=A(parseInt(b.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=A(b));break;case"YY":e[Aa]=ta.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[Aa]=A(b);break;case"a":case"A":c._isPm=c._locale.isPM(b);break;case"h":case"hh":c._pf.bigHour=!0;case"H":case"HH":e[Da]=A(b);break;case"m":case"mm":e[Ea]=A(b);break;case"s":case"ss":e[Fa]=A(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Ga]=A(1e3*("0."+b));break;case"x":c._d=new Date(A(b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=Q(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=A(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=ta.parseTwoDigitYear(b)}}function S(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[Aa],ha(ta(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[Aa],ha(ta(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=ia(d,e,f,h,g),a._a[Aa]=i.year,a._dayOfYear=i.dayOfYear}function T(a){var c,d,e,f,g=[];if(!a._d){for(e=V(a),a._w&&null==a._a[Ca]&&null==a._a[Ba]&&S(a),a._dayOfYear&&(f=b(a._a[Aa],e[Aa]),a._dayOfYear>D(f)&&(a._pf._overflowDayOfYear=!0),d=da(f,0,a._dayOfYear),a._a[Ba]=d.getUTCMonth(),a._a[Ca]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];24===a._a[Da]&&0===a._a[Ea]&&0===a._a[Fa]&&0===a._a[Ga]&&(a._nextDay=!0,a._a[Da]=0),a._d=(a._useUTC?da:ca).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()+a._tzm),a._nextDay&&(a._a[Da]=24)}}function U(a){var b;a._d||(b=y(a._i),a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],T(a))}function V(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function W(b){if(b._f===ta.ISO_8601)return void $(b);b._a=[],b._pf.empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,j=0;for(e=O(b._f,b._locale).match(Na)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(P(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&b._pf.unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),pb[f]?(d?b._pf.empty=!1:b._pf.unusedTokens.push(f),R(f,d,b)):b._strict&&!d&&b._pf.unusedTokens.push(f);b._pf.charsLeftOver=i-j,h.length>0&&b._pf.unusedInput.push(h),b._pf.bigHour===!0&&b._a[Da]<=12&&(b._pf.bigHour=a),b._isPm&&b._a[Da]<12&&(b._a[Da]+=12),b._isPm===!1&&12===b._a[Da]&&(b._a[Da]=0),T(b),F(b)}function X(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function Y(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Z(a){var b,c,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(NaN));for(f=0;f<a._f.length;f++)g=0,b=n({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._pf=d(),b._f=a._f[f],W(b),G(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,c=b));m(a,c||b)}function $(a){var b,c,d=a._i,e=db.exec(d);if(e){for(a._pf.iso=!0,b=0,c=fb.length;c>b;b++)if(fb[b][1].exec(d)){a._f=fb[b][0]+(e[6]||" ");break}for(b=0,c=gb.length;c>b;b++)if(gb[b][1].exec(d)){a._f+=gb[b][0];break}d.match(Va)&&(a._f+="Z"),W(a)}else a._isValid=!1}function _(a){$(a),a._isValid===!1&&(delete a._isValid,ta.createFromInputFallback(a))}function aa(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function ba(b){var c,d=b._i;d===a?b._d=new Date:v(d)?b._d=new Date(+d):null!==(c=Ka.exec(d))?b._d=new Date(+c[1]):"string"==typeof d?_(b):u(d)?(b._a=aa(d.slice(0),function(a){return parseInt(a,10)}),T(b)):"object"==typeof d?U(b):"number"==typeof d?b._d=new Date(d):ta.createFromInputFallback(b)}function ca(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function da(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function ea(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function fa(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function ga(a,b,c){var d=ta.duration(a).abs(),e=ya(d.as("s")),f=ya(d.as("m")),g=ya(d.as("h")),h=ya(d.as("d")),i=ya(d.as("M")),j=ya(d.as("y")),k=e<mb.s&&["s",e]||1===f&&["m"]||f<mb.m&&["mm",f]||1===g&&["h"]||g<mb.h&&["hh",g]||1===h&&["d"]||h<mb.d&&["dd",h]||1===i&&["M"]||i<mb.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,fa.apply({},k)}function ha(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=ta(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function ia(a,b,c,d,e){var f,g,h=da(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:D(a-1)+g}}function ja(b){var c,d=b._i,e=b._f;return b._locale=b._locale||ta.localeData(b._l),null===d||e===a&&""===d?ta.invalid({nullInput:!0}):("string"==typeof d&&(b._i=d=b._locale.preparse(d)),ta.isMoment(d)?new k(d,!0):(e?u(e)?Z(b):W(b):ba(b),c=new k(b),c._nextDay&&(c.add(1,"d"),c._nextDay=a),c))}function ka(a,b){var c,d;if(1===b.length&&u(b[0])&&(b=b[0]),!b.length)return ta();for(c=b[0],d=1;d<b.length;++d)b[d][a](c)&&(c=b[d]);return c}function la(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),B(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function ma(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function na(a,b,c){return"Month"===b?la(a,c):a._d["set"+(a._isUTC?"UTC":"")+b](c)}function oa(a,b){return function(c){return null!=c?(na(this,a,c),ta.updateOffset(this,b),this):ma(this,a)}}function pa(a){return 400*a/146097}function qa(a){return 146097*a/400}function ra(a){ta.duration.fn[a]=function(){return this._data[a]}}function sa(a){"undefined"==typeof ender&&(ua=xa.moment,a?xa.moment=f("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",ta):xa.moment=ta)}for(var ta,ua,va,wa="2.8.4",xa="undefined"!=typeof global?global:this,ya=Math.round,za=Object.prototype.hasOwnProperty,Aa=0,Ba=1,Ca=2,Da=3,Ea=4,Fa=5,Ga=6,Ha={},Ia=[],Ja="undefined"!=typeof module&&module&&module.exports,Ka=/^\/?Date\((\-?\d+)/i,La=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Ma=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Na=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Oa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Pa=/\d\d?/,Qa=/\d{1,3}/,Ra=/\d{1,4}/,Sa=/[+\-]?\d{1,6}/,Ta=/\d+/,Ua=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Va=/Z|[\+\-]\d\d:?\d\d/gi,Wa=/T/i,Xa=/[\+\-]?\d+/,Ya=/[\+\-]?\d+(\.\d{1,3})?/,Za=/\d/,$a=/\d\d/,_a=/\d{3}/,ab=/\d{4}/,bb=/[+-]?\d{6}/,cb=/[+-]?\d+/,db=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eb="YYYY-MM-DDTHH:mm:ssZ",fb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],gb=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],hb=/([\+\-]|\d\d)/gi,ib=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),jb={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},kb={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},lb={},mb={s:45,m:45,h:22,d:26,M:11},nb="DDD w W M D d".split(" "),ob="M D H h m s w W".split(" "),pb={M:function(){return this.month()+1},MMM:function(a){return this.localeData().monthsShort(this,a)},MMMM:function(a){return this.localeData().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.localeData().weekdaysMin(this,a)},ddd:function(a){return this.localeData().weekdaysShort(this,a)},dddd:function(a){return this.localeData().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return p(this.year()%100,2)},YYYY:function(){return p(this.year(),4)},YYYYY:function(){return p(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+p(Math.abs(a),6)},gg:function(){return p(this.weekYear()%100,2)},gggg:function(){return p(this.weekYear(),4)},ggggg:function(){return p(this.weekYear(),5)},GG:function(){return p(this.isoWeekYear()%100,2)},GGGG:function(){return p(this.isoWeekYear(),4)},GGGGG:function(){return p(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return A(this.milliseconds()/100)},SS:function(){return p(A(this.milliseconds()/10),2)},SSS:function(){return p(this.milliseconds(),3)},SSSS:function(){return p(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+p(A(a/60),2)+":"+p(A(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+p(A(a/60),2)+p(A(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},qb={},rb=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];nb.length;)va=nb.pop(),pb[va+"o"]=i(pb[va],va);for(;ob.length;)va=ob.pop(),pb[va+va]=h(pb[va],2);pb.DDDD=h(pb.DDD,3),m(j.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=ta.utc([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=ta([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b,c){var d=this._calendar[a];return"function"==typeof d?d.apply(b,[c]):d},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(a){return a},postformat:function(a){return a},week:function(a){return ha(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),ta=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=c,g._l=e,g._strict=f,g._isUTC=!1,g._pf=d(),ja(g)},ta.suppressDeprecationWarnings=!1,ta.createFromInputFallback=f("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),ta.min=function(){var a=[].slice.call(arguments,0);return ka("isBefore",a)},ta.max=function(){var a=[].slice.call(arguments,0);return ka("isAfter",a)},ta.utc=function(b,c,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=c,g._strict=f,g._pf=d(),ja(g).utc()},ta.unix=function(a){return ta(1e3*a)},ta.duration=function(a,b){var d,e,f,g,h=a,i=null;return ta.isDuration(a)?h={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(h={},b?h[b]=a:h.milliseconds=a):(i=La.exec(a))?(d="-"===i[1]?-1:1,h={y:0,d:A(i[Ca])*d,h:A(i[Da])*d,m:A(i[Ea])*d,s:A(i[Fa])*d,ms:A(i[Ga])*d}):(i=Ma.exec(a))?(d="-"===i[1]?-1:1,f=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*d},h={y:f(i[2]),M:f(i[3]),d:f(i[4]),h:f(i[5]),m:f(i[6]),s:f(i[7]),w:f(i[8])}):"object"==typeof h&&("from"in h||"to"in h)&&(g=r(ta(h.from),ta(h.to)),h={},h.ms=g.milliseconds,h.M=g.months),e=new l(h),ta.isDuration(a)&&c(a,"_locale")&&(e._locale=a._locale),e},ta.version=wa,ta.defaultFormat=eb,ta.ISO_8601=function(){},ta.momentProperties=Ia,ta.updateOffset=function(){},ta.relativeTimeThreshold=function(b,c){return mb[b]===a?!1:c===a?mb[b]:(mb[b]=c,!0)},ta.lang=f("moment.lang is deprecated. Use moment.locale instead.",function(a,b){return ta.locale(a,b)}),ta.locale=function(a,b){var c;return a&&(c="undefined"!=typeof b?ta.defineLocale(a,b):ta.localeData(a),c&&(ta.duration._locale=ta._locale=c)),ta._locale._abbr},ta.defineLocale=function(a,b){return null!==b?(b.abbr=a,Ha[a]||(Ha[a]=new j),Ha[a].set(b),ta.locale(a),Ha[a]):(delete Ha[a],null)},ta.langData=f("moment.langData is deprecated. Use moment.localeData instead.",function(a){return ta.localeData(a)}),ta.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return ta._locale;if(!u(a)){if(b=J(a))return b;a=[a]}return I(a)},ta.isMoment=function(a){return a instanceof k||null!=a&&c(a,"_isAMomentObject")},ta.isDuration=function(a){return a instanceof l};for(va=rb.length-1;va>=0;--va)z(rb[va]);ta.normalizeUnits=function(a){return x(a)},ta.invalid=function(a){var b=ta.utc(NaN);return null!=a?m(b._pf,a):b._pf.userInvalidated=!0,b},ta.parseZone=function(){return ta.apply(null,arguments).parseZone()},ta.parseTwoDigitYear=function(a){return A(a)+(A(a)>68?1900:2e3)},m(ta.fn=k.prototype,{clone:function(){return ta(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=ta(this).utc();return 0<a.year()&&a.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():N(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):N(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return G(this)},isDSTShifted:function(){return this._a?this.isValid()&&w(this._a,(this._isUTC?ta.utc(this._a):ta(this._a)).toArray())>0:!1},parsingFlags:function(){return m({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.zone(0,a)},local:function(a){return this._isUTC&&(this.zone(0,a),this._isUTC=!1,a&&this.add(this._dateTzOffset(),"m")),this},format:function(a){var b=N(this,a||ta.defaultFormat);return this.localeData().postformat(b)},add:s(1,"add"),subtract:s(-1,"subtract"),diff:function(a,b,c){var d,e,f,g=K(a,this),h=6e4*(this.zone()-g.zone());return b=x(b),"year"===b||"month"===b?(d=432e5*(this.daysInMonth()+g.daysInMonth()),e=12*(this.year()-g.year())+(this.month()-g.month()),f=this-ta(this).startOf("month")-(g-ta(g).startOf("month")),f-=6e4*(this.zone()-ta(this).startOf("month").zone()-(g.zone()-ta(g).startOf("month").zone())),e+=f/d,"year"===b&&(e/=12)):(d=this-g,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-h)/864e5:"week"===b?(d-h)/6048e5:d),c?e:o(e)},from:function(a,b){return ta.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(ta(),a)},calendar:function(a){var b=a||ta(),c=K(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this,ta(b)))},isLeapYear:function(){return E(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=ea(a,this.localeData()),this.add(a-b,"d")):b},month:oa("Month",!0),startOf:function(a){switch(a=x(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a?this.weekday(0):"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(b){return b=x(b),b===a||"millisecond"===b?this:this.startOf(b).add(1,"isoWeek"===b?"week":b).subtract(1,"ms")},isAfter:function(a,b){var c;return b=x("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=ta.isMoment(a)?a:ta(a),+this>+a):(c=ta.isMoment(a)?+a:+ta(a),c<+this.clone().startOf(b))},isBefore:function(a,b){var c;return b=x("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=ta.isMoment(a)?a:ta(a),+a>+this):(c=ta.isMoment(a)?+a:+ta(a),+this.clone().endOf(b)<c)},isSame:function(a,b){var c;return b=x(b||"millisecond"),"millisecond"===b?(a=ta.isMoment(a)?a:ta(a),+this===+a):(c=+ta(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))},min:f("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=ta.apply(null,arguments),this>a?this:a}),max:f("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=ta.apply(null,arguments),a>this?this:a}),zone:function(a,b){var c,d=this._offset||0;return null==a?this._isUTC?d:this._dateTzOffset():("string"==typeof a&&(a=Q(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(c=this._dateTzOffset()),this._offset=a,this._isUTC=!0,null!=c&&this.subtract(c,"m"),d!==a&&(!b||this._changeInProgress?t(this,ta.duration(d-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ta.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?ta(a).zone():0,(this.zone()-a)%60===0},daysInMonth:function(){return B(this.year(),this.month())},dayOfYear:function(a){var b=ya((ta(this).startOf("day")-ta(this).startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=ha(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=ha(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=ha(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return C(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return C(this.year(),a.dow,a.doy)},get:function(a){return a=x(a),this[a]()},set:function(a,b){return a=x(a),"function"==typeof this[a]&&this[a](b),this},locale:function(b){var c;return b===a?this._locale._abbr:(c=ta.localeData(b),null!=c&&(this._locale=c),this)},lang:f("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(b){return b===a?this.localeData():this.locale(b)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),ta.fn.millisecond=ta.fn.milliseconds=oa("Milliseconds",!1),ta.fn.second=ta.fn.seconds=oa("Seconds",!1),ta.fn.minute=ta.fn.minutes=oa("Minutes",!1),ta.fn.hour=ta.fn.hours=oa("Hours",!0),ta.fn.date=oa("Date",!0),ta.fn.dates=f("dates accessor is deprecated. Use date instead.",oa("Date",!0)),ta.fn.year=oa("FullYear",!0),ta.fn.years=f("years accessor is deprecated. Use year instead.",oa("FullYear",!0)),ta.fn.days=ta.fn.day,ta.fn.months=ta.fn.month,ta.fn.weeks=ta.fn.week,ta.fn.isoWeeks=ta.fn.isoWeek,ta.fn.quarters=ta.fn.quarter,ta.fn.toJSON=ta.fn.toISOString,m(ta.duration.fn=l.prototype,{_bubble:function(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;g.milliseconds=d%1e3,a=o(d/1e3),g.seconds=a%60,b=o(a/60),g.minutes=b%60,c=o(b/60),g.hours=c%24,e+=o(c/24),h=o(pa(e)),e-=o(qa(h)),f+=o(e/30),e%=30,h+=o(f/12),f%=12,g.days=e,
+g.months=f,g.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return o(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*A(this._months/12)},humanize:function(a){var b=ga(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=ta.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=ta.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=x(a),this[a.toLowerCase()+"s"]()},as:function(a){var b,c;if(a=x(a),"month"===a||"year"===a)return b=this._days+this._milliseconds/864e5,c=this._months+12*pa(b),"month"===a?c:c/12;switch(b=this._days+Math.round(qa(this._months/12)),a){case"week":return b/7+this._milliseconds/6048e5;case"day":return b+this._milliseconds/864e5;case"hour":return 24*b+this._milliseconds/36e5;case"minute":return 24*b*60+this._milliseconds/6e4;case"second":return 24*b*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*b*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+a)}},lang:ta.fn.lang,locale:ta.fn.locale,toIsoString:f("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale}}),ta.duration.fn.toString=ta.duration.fn.toISOString;for(va in ib)c(ib,va)&&ra(va.toLowerCase());ta.duration.fn.asMilliseconds=function(){return this.as("ms")},ta.duration.fn.asSeconds=function(){return this.as("s")},ta.duration.fn.asMinutes=function(){return this.as("m")},ta.duration.fn.asHours=function(){return this.as("h")},ta.duration.fn.asDays=function(){return this.as("d")},ta.duration.fn.asWeeks=function(){return this.as("weeks")},ta.duration.fn.asMonths=function(){return this.as("M")},ta.duration.fn.asYears=function(){return this.as("y")},ta.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===A(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),Ja?module.exports=ta:"function"==typeof define&&define.amd?(define("moment",function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(xa.moment=ua),ta}),sa(!0)):sa()}.call(this),function(a,b){if("function"==typeof define&&define.amd)define(["moment","jquery","exports"],function(c,d,e){a.daterangepicker=b(a,e,c,d)});else if("undefined"!=typeof exports){var c,d=require("moment");try{c=require("jquery")}catch(e){if(c=window.jQuery,!c)throw new Error("jQuery dependency not found")}b(a,exports,d,c)}else a.daterangepicker=b(a,{},a.moment,a.jQuery||a.Zepto||a.ender||a.$)}(this,function(a,b,c,d){var e=function(a,b,c){this.parentEl="body",this.element=d(a),this.isShowing=!1;var e='<div class="daterangepicker dropdown-menu"><div class="calendar first left"></div><div class="calendar second right"></div><div class="ranges"><div class="range_inputs"><div class="daterangepicker_start_input"><label for="daterangepicker_start"></label><input class="input-mini" type="text" name="daterangepicker_start" value="" /></div><div class="daterangepicker_end_input"><label for="daterangepicker_end"></label><input class="input-mini" type="text" name="daterangepicker_end" value="" /></div><button class="applyBtn" disabled="disabled"></button> <button class="cancelBtn"></button></div></div></div>';("object"!=typeof b||null===b)&&(b={}),this.parentEl=d("object"==typeof b&&b.parentEl&&d(b.parentEl).length?b.parentEl:this.parentEl),this.container=d(e).appendTo(this.parentEl),this.setOptions(b,c);var f=this.container;d.each(this.buttonClasses,function(a,b){f.find("button").addClass(b)}),this.container.find(".daterangepicker_start_input label").html(this.locale.fromLabel),this.container.find(".daterangepicker_end_input label").html(this.locale.toLabel),this.applyClass.length&&this.container.find(".applyBtn").addClass(this.applyClass),this.cancelClass.length&&this.container.find(".cancelBtn").addClass(this.cancelClass),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".calendar").on("click.daterangepicker",".prev",d.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",d.proxy(this.clickNext,this)).on("click.daterangepicker","td.available",d.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",d.proxy(this.hoverDate,this)).on("mouseleave.daterangepicker","td.available",d.proxy(this.updateFormInputs,this)).on("change.daterangepicker","select.yearselect",d.proxy(this.updateMonthYear,this)).on("change.daterangepicker","select.monthselect",d.proxy(this.updateMonthYear,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",d.proxy(this.updateTime,this)),this.container.find(".ranges").on("click.daterangepicker","button.applyBtn",d.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",d.proxy(this.clickCancel,this)).on("click.daterangepicker",".daterangepicker_start_input,.daterangepicker_end_input",d.proxy(this.showCalendars,this)).on("change.daterangepicker",".daterangepicker_start_input,.daterangepicker_end_input",d.proxy(this.inputsChanged,this)).on("keydown.daterangepicker",".daterangepicker_start_input,.daterangepicker_end_input",d.proxy(this.inputsKeydown,this)).on("click.daterangepicker","li",d.proxy(this.clickRange,this)).on("mouseenter.daterangepicker","li",d.proxy(this.enterRange,this)).on("mouseleave.daterangepicker","li",d.proxy(this.updateFormInputs,this)),this.element.is("input")?this.element.on({"click.daterangepicker":d.proxy(this.show,this),"focus.daterangepicker":d.proxy(this.show,this),"keyup.daterangepicker":d.proxy(this.updateFromControl,this)}):this.element.on("click.daterangepicker",d.proxy(this.toggle,this))};e.prototype={constructor:e,setOptions:function(a,b){if(this.startDate=c().startOf("day"),this.endDate=c().endOf("day"),this.timeZone=c().zone(),this.minDate=!1,this.maxDate=!1,this.dateLimit=!1,this.showDropdowns=!1,this.showWeekNumbers=!1,this.timePicker=!1,this.timePickerSeconds=!1,this.timePickerIncrement=30,this.timePicker12Hour=!0,this.singleDatePicker=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.buttonClasses=["btn","btn-small btn-sm"],this.applyClass="btn-success",this.cancelClass="btn-default",this.format="MM/DD/YYYY",this.separator=" - ",this.locale={applyLabel:"Apply",cancelLabel:"Cancel",fromLabel:"From",toLabel:"To",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:c.weekdaysMin(),monthNames:c.monthsShort(),firstDay:c.localeData()._week.dow},this.cb=function(){},"string"==typeof a.format&&(this.format=a.format),"string"==typeof a.separator&&(this.separator=a.separator),"string"==typeof a.startDate&&(this.startDate=c(a.startDate,this.format)),"string"==typeof a.endDate&&(this.endDate=c(a.endDate,this.format)),"string"==typeof a.minDate&&(this.minDate=c(a.minDate,this.format)),"string"==typeof a.maxDate&&(this.maxDate=c(a.maxDate,this.format)),"object"==typeof a.startDate&&(this.startDate=c(a.startDate)),"object"==typeof a.endDate&&(this.endDate=c(a.endDate)),"object"==typeof a.minDate&&(this.minDate=c(a.minDate)),"object"==typeof a.maxDate&&(this.maxDate=c(a.maxDate)),"string"==typeof a.applyClass&&(this.applyClass=a.applyClass),"string"==typeof a.cancelClass&&(this.cancelClass=a.cancelClass),"object"==typeof a.dateLimit&&(this.dateLimit=a.dateLimit),"object"==typeof a.locale&&("object"==typeof a.locale.daysOfWeek&&(this.locale.daysOfWeek=a.locale.daysOfWeek.slice()),"object"==typeof a.locale.monthNames&&(this.locale.monthNames=a.locale.monthNames.slice()),"number"==typeof a.locale.firstDay&&(this.locale.firstDay=a.locale.firstDay),"string"==typeof a.locale.applyLabel&&(this.locale.applyLabel=a.locale.applyLabel),"string"==typeof a.locale.cancelLabel&&(this.locale.cancelLabel=a.locale.cancelLabel),"string"==typeof a.locale.fromLabel&&(this.locale.fromLabel=a.locale.fromLabel),"string"==typeof a.locale.toLabel&&(this.locale.toLabel=a.locale.toLabel),"string"==typeof a.locale.weekLabel&&(this.locale.weekLabel=a.locale.weekLabel),"string"==typeof a.locale.customRangeLabel&&(this.locale.customRangeLabel=a.locale.customRangeLabel)),"string"==typeof a.opens&&(this.opens=a.opens),"boolean"==typeof a.showWeekNumbers&&(this.showWeekNumbers=a.showWeekNumbers),"string"==typeof a.buttonClasses&&(this.buttonClasses=[a.buttonClasses]),"object"==typeof a.buttonClasses&&(this.buttonClasses=a.buttonClasses),"boolean"==typeof a.showDropdowns&&(this.showDropdowns=a.showDropdowns),"boolean"==typeof a.singleDatePicker&&(this.singleDatePicker=a.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof a.timePicker&&(this.timePicker=a.timePicker),"boolean"==typeof a.timePickerSeconds&&(this.timePickerSeconds=a.timePickerSeconds),"number"==typeof a.timePickerIncrement&&(this.timePickerIncrement=a.timePickerIncrement),"boolean"==typeof a.timePicker12Hour&&(this.timePicker12Hour=a.timePicker12Hour),0!=this.locale.firstDay)for(var e=this.locale.firstDay;e>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),e--;var f,g,h;if("undefined"==typeof a.startDate&&"undefined"==typeof a.endDate&&d(this.element).is("input[type=text]")){var i=d(this.element).val(),j=i.split(this.separator);f=g=null,2==j.length?(f=c(j[0],this.format),g=c(j[1],this.format)):this.singleDatePicker&&""!==i&&(f=c(i,this.format),g=c(i,this.format)),null!==f&&null!==g&&(this.startDate=f,this.endDate=g)}if("string"==typeof a.timeZone||"number"==typeof a.timeZone?(this.timeZone=a.timeZone,this.startDate.zone(this.timeZone),this.endDate.zone(this.timeZone)):this.timeZone=c(this.startDate).zone(),"object"==typeof a.ranges){for(h in a.ranges)f="string"==typeof a.ranges[h][0]?c(a.ranges[h][0],this.format):c(a.ranges[h][0]),g="string"==typeof a.ranges[h][1]?c(a.ranges[h][1],this.format):c(a.ranges[h][1]),this.minDate&&f.isBefore(this.minDate)&&(f=c(this.minDate)),this.maxDate&&g.isAfter(this.maxDate)&&(g=c(this.maxDate)),this.minDate&&g.isBefore(this.minDate)||this.maxDate&&f.isAfter(this.maxDate)||(this.ranges[h]=[f,g]);var k="<ul>";for(h in this.ranges)k+="<li>"+h+"</li>";k+="<li>"+this.locale.customRangeLabel+"</li>",k+="</ul>",this.container.find(".ranges ul").remove(),this.container.find(".ranges").prepend(k)}if("function"==typeof b&&(this.cb=b),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day")),this.singleDatePicker?(this.opens="right",this.container.addClass("single"),this.container.find(".calendar.right").show(),this.container.find(".calendar.left").hide(),this.timePicker?this.container.find(".ranges .daterangepicker_start_input, .ranges .daterangepicker_end_input").hide():this.container.find(".ranges").hide(),this.container.find(".calendar.right").hasClass("single")||this.container.find(".calendar.right").addClass("single")):(this.container.removeClass("single"),this.container.find(".calendar.right").removeClass("single"),this.container.find(".ranges").show()),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.oldChosenLabel=this.chosenLabel,this.leftCalendar={month:c([this.startDate.year(),this.startDate.month(),1,this.startDate.hour(),this.startDate.minute(),this.startDate.second()]),calendar:[]},this.rightCalendar={month:c([this.endDate.year(),this.endDate.month(),1,this.endDate.hour(),this.endDate.minute(),this.endDate.second()]),calendar:[]},"right"==this.opens||"center"==this.opens){var l=this.container.find(".calendar.first"),m=this.container.find(".calendar.second");m.hasClass("single")&&(m.removeClass("single"),l.addClass("single")),l.removeClass("left").addClass("right"),m.removeClass("right").addClass("left"),this.singleDatePicker&&(l.show(),m.hide())}"undefined"!=typeof a.ranges||this.singleDatePicker||this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.updateView(),this.updateCalendars()},setStartDate:function(a){"string"==typeof a&&(this.startDate=c(a,this.format).zone(this.timeZone)),"object"==typeof a&&(this.startDate=c(a)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.oldStartDate=this.startDate.clone(),this.updateView(),this.updateCalendars(),this.updateInputText()},setEndDate:function(a){"string"==typeof a&&(this.endDate=c(a,this.format).zone(this.timeZone)),"object"==typeof a&&(this.endDate=c(a)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.oldEndDate=this.endDate.clone(),this.updateView(),this.updateCalendars(),this.updateInputText()},updateView:function(){this.leftCalendar.month.month(this.startDate.month()).year(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute()),this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute()),this.updateFormInputs()},updateFormInputs:function(){this.container.find("input[name=daterangepicker_start]").val(this.startDate.format(this.format)),this.container.find("input[name=daterangepicker_end]").val(this.endDate.format(this.format)),this.startDate.isSame(this.endDate)||this.startDate.isBefore(this.endDate)?this.container.find("button.applyBtn").removeAttr("disabled"):this.container.find("button.applyBtn").attr("disabled","disabled")},updateFromControl:function(){if(this.element.is("input")&&this.element.val().length){var a=this.element.val().split(this.separator),b=null,d=null;2===a.length&&(b=c(a[0],this.format).zone(this.timeZone),d=c(a[1],this.format).zone(this.timeZone)),(this.singleDatePicker||null===b||null===d)&&(b=c(this.element.val(),this.format).zone(this.timeZone),d=b),d.isBefore(b)||(this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.startDate=b,this.endDate=d,this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.notify(),this.updateCalendars())}},notify:function(){this.updateView(),this.cb(this.startDate,this.endDate,this.chosenLabel)},move:function(){var a={top:0,left:0},b=d(window).width();this.parentEl.is("body")||(a={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},b=this.parentEl[0].clientWidth+this.parentEl.offset().left),"left"==this.opens?(this.container.css({top:this.element.offset().top+this.element.outerHeight()-a.top,right:b-this.element.offset().left-this.element.outerWidth(),left:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):"center"==this.opens?(this.container.css({top:this.element.offset().top+this.element.outerHeight()-a.top,left:this.element.offset().left-a.left+this.element.outerWidth()/2-this.container.outerWidth()/2,right:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):(this.container.css({top:this.element.offset().top+this.element.outerHeight()-a.top,left:this.element.offset().left-a.left,right:"auto"}),this.container.offset().left+this.container.outerWidth()>d(window).width()&&this.container.css({left:"auto",right:0}))},toggle:function(a){this.element.hasClass("active")?this.hide():this.show()},show:function(a){this.isShowing||(this.element.addClass("active"),this.container.show(),this.move(),this._outsideClickProxy=d.proxy(function(a){this.outsideClick(a)},this),d(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),this.isShowing=!0,this.element.trigger("show.daterangepicker",this))},outsideClick:function(a){var b=d(a.target);"focusin"==a.type||b.closest(this.element).length||b.closest(this.container).length||b.closest(".calendar-date").length||this.hide()},hide:function(a){this.isShowing&&(d(document).off(".daterangepicker"),this.element.removeClass("active"),this.container.hide(),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.notify(),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.isShowing=!1,this.element.trigger("hide.daterangepicker",this))},enterRange:function(a){var b=a.target.innerHTML;if(b==this.locale.customRangeLabel)this.updateView();else{var c=this.ranges[b];this.container.find("input[name=daterangepicker_start]").val(c[0].format(this.format)),this.container.find("input[name=daterangepicker_end]").val(c[1].format(this.format))}},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},inputsChanged:function(a){var b=d(a.target),e=c(b.val(),this.format);if(e.isValid()){var f,g;"daterangepicker_start"===b.attr("name")?(f=e,g=this.endDate):(f=this.startDate,g=e),this.setCustomDates(f,g)}},inputsKeydown:function(a){13===a.keyCode&&(this.inputsChanged(a),this.notify())},updateInputText:function(){this.element.is("input")&&!this.singleDatePicker?this.element.val(this.startDate.format(this.format)+this.separator+this.endDate.format(this.format)):this.element.is("input")&&this.element.val(this.endDate.format(this.format))},clickRange:function(a){var b=a.target.innerHTML;if(this.chosenLabel=b,b==this.locale.customRangeLabel)this.showCalendars();else{var c=this.ranges[b];this.startDate=c[0],this.endDate=c[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.leftCalendar.month.month(this.startDate.month()).year(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute()),this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute()),this.updateCalendars(),this.updateInputText(),this.hideCalendars(),this.hide(),this.element.trigger("apply.daterangepicker",this)}},clickPrev:function(a){var b=d(a.target).parents(".calendar");b.hasClass("left")?this.leftCalendar.month.subtract(1,"month"):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(a){var b=d(a.target).parents(".calendar");b.hasClass("left")?this.leftCalendar.month.add(1,"month"):this.rightCalendar.month.add(1,"month"),this.updateCalendars()},hoverDate:function(a){var b=d(a.target).attr("data-title"),c=b.substr(1,1),e=b.substr(3,1),f=d(a.target).parents(".calendar");f.hasClass("left")?this.container.find("input[name=daterangepicker_start]").val(this.leftCalendar.calendar[c][e].format(this.format)):this.container.find("input[name=daterangepicker_end]").val(this.rightCalendar.calendar[c][e].format(this.format))},setCustomDates:function(a,b){if(this.chosenLabel=this.locale.customRangeLabel,a.isAfter(b)){var d=this.endDate.diff(this.startDate);b=c(a).add(d,"ms")}this.startDate=a,this.endDate=b,this.updateView(),this.updateCalendars()},clickDate:function(a){var b,e,f=d(a.target).attr("data-title"),g=f.substr(1,1),h=f.substr(3,1),i=d(a.target).parents(".calendar");if(i.hasClass("left")){if(b=this.leftCalendar.calendar[g][h],e=this.endDate,"object"==typeof this.dateLimit){var j=c(b).add(this.dateLimit).startOf("day");e.isAfter(j)&&(e=j)}}else if(b=this.startDate,e=this.rightCalendar.calendar[g][h],"object"==typeof this.dateLimit){var k=c(e).subtract(this.dateLimit).startOf("day");b.isBefore(k)&&(b=k)}this.singleDatePicker&&i.hasClass("left")?e=b.clone():this.singleDatePicker&&i.hasClass("right")&&(b=e.clone()),i.find("td").removeClass("active"),d(a.target).addClass("active"),this.setCustomDates(b,e),this.timePicker||e.endOf("day"),this.singleDatePicker&&!this.timePicker&&this.clickApply()},clickApply:function(a){this.updateInputText(),this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(a){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.chosenLabel=this.oldChosenLabel,this.updateView(),this.updateCalendars(),this.hide(),this.element.trigger("cancel.daterangepicker",this)},updateMonthYear:function(a){var b=d(a.target).closest(".calendar").hasClass("left"),c=b?"left":"right",e=this.container.find(".calendar."+c),f=parseInt(e.find(".monthselect").val(),10),g=e.find(".yearselect").val();this[c+"Calendar"].month.month(f).year(g),this.updateCalendars()},updateTime:function(a){var b=d(a.target).closest(".calendar"),c=b.hasClass("left"),e=parseInt(b.find(".hourselect").val(),10),f=parseInt(b.find(".minuteselect").val(),10),g=0;if(this.timePickerSeconds&&(g=parseInt(b.find(".secondselect").val(),10)),this.timePicker12Hour){var h=b.find(".ampmselect").val();"PM"===h&&12>e&&(e+=12),"AM"===h&&12===e&&(e=0)}if(c){var i=this.startDate.clone();i.hour(e),i.minute(f),i.second(g),this.startDate=i,this.leftCalendar.month.hour(e).minute(f).second(g),this.singleDatePicker&&(this.endDate=i.clone())}else{var j=this.endDate.clone();j.hour(e),j.minute(f),j.second(g),this.endDate=j,this.singleDatePicker&&(this.startDate=j.clone()),this.rightCalendar.month.hour(e).minute(f).second(g)}this.updateView(),this.updateCalendars()},updateCalendars:function(){this.leftCalendar.calendar=this.buildCalendar(this.leftCalendar.month.month(),this.leftCalendar.month.year(),this.leftCalendar.month.hour(),this.leftCalendar.month.minute(),this.leftCalendar.month.second(),"left"),this.rightCalendar.calendar=this.buildCalendar(this.rightCalendar.month.month(),this.rightCalendar.month.year(),this.rightCalendar.month.hour(),this.rightCalendar.month.minute(),this.rightCalendar.month.second(),"right"),this.container.find(".calendar.left").empty().html(this.renderCalendar(this.leftCalendar.calendar,this.startDate,this.minDate,this.maxDate,"left")),this.container.find(".calendar.right").empty().html(this.renderCalendar(this.rightCalendar.calendar,this.endDate,this.singleDatePicker?this.minDate:this.startDate,this.maxDate,"right")),this.container.find(".ranges li").removeClass("active");var a=!0,b=0;for(var c in this.ranges)this.timePicker?this.startDate.isSame(this.ranges[c][0])&&this.endDate.isSame(this.ranges[c][1])&&(a=!1,this.chosenLabel=this.container.find(".ranges li:eq("+b+")").addClass("active").html()):this.startDate.format("YYYY-MM-DD")==this.ranges[c][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[c][1].format("YYYY-MM-DD")&&(a=!1,this.chosenLabel=this.container.find(".ranges li:eq("+b+")").addClass("active").html()),b++;a&&(this.chosenLabel=this.container.find(".ranges li:last").addClass("active").html(),this.showCalendars())},buildCalendar:function(a,b,d,e,f,g){var h,i=c([b,a]).daysInMonth(),j=c([b,a,1]),k=c([b,a,i]),l=c(j).subtract(1,"month").month(),m=c(j).subtract(1,"month").year(),n=c([m,l]).daysInMonth(),o=j.day(),p=[];for(p.firstDay=j,p.lastDay=k,h=0;6>h;h++)p[h]=[];var q=n-o+this.locale.firstDay+1;q>n&&(q-=7),o==this.locale.firstDay&&(q=n-6);var r,s,t=c([m,l,q,12,e,f]).zone(this.timeZone);for(h=0,r=0,s=0;42>h;h++,r++,t=c(t).add(24,"hour"))h>0&&r%7===0&&(r=0,s++),p[s][r]=t.clone().hour(d),t.hour(12),this.minDate&&p[s][r].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&p[s][r].isBefore(this.minDate)&&"left"==g&&(p[s][r]=this.minDate.clone()),this.maxDate&&p[s][r].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&p[s][r].isAfter(this.maxDate)&&"right"==g&&(p[s][r]=this.maxDate.clone());return p},renderDropdowns:function(a,b,c){for(var d=a.month(),e=a.year(),f=c&&c.year()||e+5,g=b&&b.year()||e-50,h='<select class="monthselect">',i=e==g,j=e==f,k=0;12>k;k++)(!i||k>=b.month())&&(!j||k<=c.month())&&(h+="<option value='"+k+"'"+(k===d?" selected='selected'":"")+">"+this.locale.monthNames[k]+"</option>");h+="</select>";for(var l='<select class="yearselect">',m=g;f>=m;m++)l+='<option value="'+m+'"'+(m===e?' selected="selected"':"")+">"+m+"</option>";return l+="</select>",h+l},renderCalendar:function(a,b,c,e,f){var g='<div class="calendar-date">';g+='<table class="table-condensed">',g+="<thead>",g+="<tr>",this.showWeekNumbers&&(g+="<th></th>"),g+=!c||c.isBefore(a.firstDay)?'<th class="prev available"><i class="fa fa-arrow-left icon-arrow-left glyphicon glyphicon-arrow-left"></i></th>':"<th></th>";var h=this.locale.monthNames[a[1][1].month()]+a[1][1].format(" YYYY");this.showDropdowns&&(h=this.renderDropdowns(a[1][1],c,e)),g+='<th colspan="5" class="month">'+h+"</th>",g+=!e||e.isAfter(a.lastDay)?'<th class="next available"><i class="fa fa-arrow-right icon-arrow-right glyphicon glyphicon-arrow-right"></i></th>':"<th></th>",g+="</tr>",g+="<tr>",this.showWeekNumbers&&(g+='<th class="week">'+this.locale.weekLabel+"</th>"),d.each(this.locale.daysOfWeek,function(a,b){g+="<th>"+b+"</th>"}),g+="</tr>",g+="</thead>",g+="<tbody>";for(var i=0;6>i;i++){g+="<tr>",this.showWeekNumbers&&(g+='<td class="week">'+a[i][0].week()+"</td>");for(var j=0;7>j;j++){var k="available ";k+=a[i][j].month()==a[1][1].month()?"":"off",c&&a[i][j].isBefore(c,"day")||e&&a[i][j].isAfter(e,"day")?k=" off disabled ":a[i][j].format("YYYY-MM-DD")==b.format("YYYY-MM-DD")?(k+=" active ",a[i][j].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&(k+=" start-date "),a[i][j].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&(k+=" end-date ")):a[i][j]>=this.startDate&&a[i][j]<=this.endDate&&(k+=" in-range ",a[i][j].isSame(this.startDate)&&(k+=" start-date "),a[i][j].isSame(this.endDate)&&(k+=" end-date "));var l="r"+i+"c"+j;g+='<td class="'+k.replace(/\s+/g," ").replace(/^\s?(.*?)\s?$/,"$1")+'" data-title="'+l+'">'+a[i][j].date()+"</td>"}g+="</tr>"}g+="</tbody>",g+="</table>",g+="</div>";var m;if(this.timePicker){g+='<div class="calendar-time">',g+='<select class="hourselect">';var n=0,o=23;c&&("left"==f||this.singleDatePicker)&&b.format("YYYY-MM-DD")==c.format("YYYY-MM-DD")&&(n=c.hour(),b.hour()<n&&b.hour(n),this.timePicker12Hour&&n>=12&&b.hour()>=12&&(n-=12),this.timePicker12Hour&&12==n&&(n=1)),e&&("right"==f||this.singleDatePicker)&&b.format("YYYY-MM-DD")==e.format("YYYY-MM-DD")&&(o=e.hour(),b.hour()>o&&b.hour(o),this.timePicker12Hour&&o>=12&&b.hour()>=12&&(o-=12));var p=0,q=23,r=b.hour();for(this.timePicker12Hour&&(p=1,q=12,r>=12&&(r-=12),0===r&&(r=12)),m=p;q>=m;m++)g+=m==r?'<option value="'+m+'" selected="selected">'+m+"</option>":n>m||m>o?'<option value="'+m+'" disabled="disabled" class="disabled">'+m+"</option>":'<option value="'+m+'">'+m+"</option>";g+="</select> : ",g+='<select class="minuteselect">';var s=0,t=59;for(c&&("left"==f||this.singleDatePicker)&&b.format("YYYY-MM-DD h A")==c.format("YYYY-MM-DD h A")&&(s=c.minute(),b.minute()<s&&b.minute(s)),e&&("right"==f||this.singleDatePicker)&&b.format("YYYY-MM-DD h A")==e.format("YYYY-MM-DD h A")&&(t=e.minute(),b.minute()>t&&b.minute(t)),m=0;60>m;m+=this.timePickerIncrement){var u=m;10>u&&(u="0"+u),g+=m==b.minute()?'<option value="'+m+'" selected="selected">'+u+"</option>":s>m||m>t?'<option value="'+m+'" disabled="disabled" class="disabled">'+u+"</option>":'<option value="'+m+'">'+u+"</option>"}if(g+="</select> ",this.timePickerSeconds){for(g+=': <select class="secondselect">',m=0;60>m;m+=this.timePickerIncrement){var u=m;10>u&&(u="0"+u),g+=m==b.second()?'<option value="'+m+'" selected="selected">'+u+"</option>":'<option value="'+m+'">'+u+"</option>"}g+="</select>"}if(this.timePicker12Hour){g+='<select class="ampmselect">';var v="",w="";c&&("left"==f||this.singleDatePicker)&&b.format("YYYY-MM-DD")==c.format("YYYY-MM-DD")&&c.hour()>=12&&(v=' disabled="disabled" class="disabled"'),e&&("right"==f||this.singleDatePicker)&&b.format("YYYY-MM-DD")==e.format("YYYY-MM-DD")&&e.hour()<12&&(w=' disabled="disabled" class="disabled"'),g+=b.hour()>=12?'<option value="AM"'+v+'>AM</option><option value="PM" selected="selected"'+w+">PM</option>":'<option value="AM" selected="selected"'+v+'>AM</option><option value="PM"'+w+">PM</option>",g+="</select>"}g+="</div>"}return g},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData("daterangepicker")}},d.fn.daterangepicker=function(a,b){return this.each(function(){var c=d(this);c.data("daterangepicker")&&c.data("daterangepicker").remove(),c.data("daterangepicker",new e(c,a,b))}),this}}),function(a){"use strict";a.module("ngBootstrap",[]).directive("input",["$compile","$parse","$filter",function(b,c,d){return{restrict:"E",require:"?ngModel",link:function(b,e,f,g){function h(a){return moment.isMoment(a)?a.toDate():a}function i(a){return moment.isMoment(a)?a:moment(a)}function j(a){return d("date")(h(a),l.format.replace(/Y/g,"y").replace(/D/g,"d"))}function k(a){return[j(a.startDate),j(a.endDate)].join(l.separator)}if("daterange"===f.type&&null!==g){var l={};l.format=f.format||"YYYY-MM-DD",l.separator=f.separator||" - ",l.minDate=f.minDate&&moment(f.minDate),l.maxDate=f.maxDate&&moment(f.maxDate),l.dateLimit=f.limit&&moment.duration.apply(this,f.limit.split(" ").map(function(a,b){return 0===b&&parseInt(a,10)||a})),l.ranges=f.ranges&&c(f.ranges)(b),l.locale=f.locale&&c(f.locale)(b),l.opens=f.opens||c(f.opens)(b),f.enabletimepicker&&(l.timePicker=!0,a.extend(l,c(f.enabletimepicker)(b))),g.$render=function(){g.$viewValue&&g.$viewValue.startDate&&e.val(k(g.$viewValue))},b.$watch(function(){return f.ngModel},function(a,c){return b[a]&&b[a].startDate?void(c===a&&(e.data("daterangepicker").startDate=i(b[a].startDate),e.data("daterangepicker").endDate=i(b[a].endDate),e.data("daterangepicker").updateView(),e.data("daterangepicker").updateCalendars(),e.data("daterangepicker").updateInputText())):void g.$setViewValue({startDate:moment().startOf("day"),endDate:moment().startOf("day")})}),e.daterangepicker(l,function(c,d,e){var f=g.$viewValue;a.equals(c,f.startDate)&&a.equals(d,f.endDate)||b.$apply(function(){g.$setViewValue({startDate:moment.isMoment(f.startDate)?c:c.toDate(),endDate:moment.isMoment(f.endDate)?d:d.toDate()}),g.$render()})})}}}}])}(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
*/.ui-select-highlight{font-weight:700}.ui-select-offscreen{clip:rect(0 0 0 0)!important;width:1px!important;height:1px!important;border:0!important;margin:0!important;padding:0!important;overflow:hidden!important;position:absolute!important;outline:0!important;left:0!important;top:0!important}.ui-select-choices-row:hover{background-color:#f5f5f5}.ng-dirty.ng-invalid>a.select2-choice{border-color:#D44950}.select2-result-single{padding-left:0}.select-locked>.ui-select-match-close,.select2-locked>.select2-search-choice-close{display:none}body>.select2-container.open{z-index:9999}.ui-select-container[theme=select2].direction-up .ui-select-match{border-radius:0 0 4px 4px}.ui-select-container[theme=select2].direction-up .ui-select-dropdown{border-radius:4px 4px 0 0;border-top-width:1px;border-top-style:solid;box-shadow:0 -4px 8px rgba(0,0,0,.25);margin-top:-4px}.ui-select-container[theme=select2].direction-up .ui-select-dropdown .select2-search{margin-top:4px}.ui-select-container[theme=select2].direction-up.select2-dropdown-open .ui-select-match{border-bottom-color:#5897fb}.selectize-input.selectize-focus{border-color:#007FBB!important}.selectize-control>.selectize-dropdown,.selectize-control>.selectize-input>input{width:100%}.ng-dirty.ng-invalid>div.selectize-input{border-color:#D44950}.ui-select-container[theme=selectize].direction-up .ui-select-dropdown{box-shadow:0 -4px 8px rgba(0,0,0,.25);margin-top:-2px}.btn-default-focus{color:#333;background-color:#EBEBEB;border-color:#ADADAD;text-decoration:none;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.ui-select-bootstrap .ui-select-toggle{position:relative}.ui-select-bootstrap .ui-select-toggle>.caret{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.input-group>.ui-select-bootstrap.dropdown{position:static}.input-group>.ui-select-bootstrap>input.ui-select-search.form-control{border-radius:4px 0 0 4px}.input-group>.ui-select-bootstrap>input.ui-select-search.form-control.direction-up{border-radius:4px 0 0 4px!important}.ui-select-bootstrap>.ui-select-match>.btn{text-align:left!important}.ui-select-bootstrap>.ui-select-match>.caret{position:absolute;top:45%;right:15px}.ui-select-bootstrap>.ui-select-choices{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:-1px}body>.ui-select-bootstrap.open{z-index:1000}.ui-select-multiple.ui-select-bootstrap{height:auto;padding:3px 3px 0}.ui-select-multiple.ui-select-bootstrap input.ui-select-search{background-color:transparent!important;border:none;outline:0;height:1.666666em;margin-bottom:3px}.ui-select-multiple.ui-select-bootstrap .ui-select-match .close{font-size:1.6em;line-height:.75}.ui-select-multiple.ui-select-bootstrap .ui-select-match-item{outline:0;margin:0 3px 3px 0}.ui-select-multiple .ui-select-match-item{position:relative}.ui-select-multiple .ui-select-match-item.dropping-before:before{content:"";position:absolute;top:0;right:100%;height:100%;margin-right:2px;border-left:1px solid #428bca}.ui-select-multiple .ui-select-match-item.dropping-after:after{content:"";position:absolute;top:0;left:100%;height:100%;margin-left:2px;border-right:1px solid #428bca}.ui-select-bootstrap .ui-select-choices-row>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.pre-numbering,code.has-numbering{font-family:Consolas,Menlo,Monaco,monospace;font-size:14px;line-height:20px}.ui-select-bootstrap .ui-select-choices-row>a:focus,.ui-select-bootstrap .ui-select-choices-row>a:hover{text-decoration:none;color:#262626;background-color:#f5f5f5}.ui-select-bootstrap .ui-select-choices-row.active>a{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.ui-select-bootstrap .ui-select-choices-row.active.disabled>a,.ui-select-bootstrap .ui-select-choices-row.disabled>a{color:#777;cursor:not-allowed;background-color:#fff}.ui-select-match.ng-hide-add,.ui-select-search.ng-hide-add{display:none!important}.ui-select-bootstrap.ng-dirty.ng-invalid>button.btn.ui-select-match{border-color:#D44950}.ui-select-container[theme=bootstrap].direction-up .ui-select-dropdown{box-shadow:0 -4px 8px rgba(0,0,0,.25)}@font-face{font-family:emoticons;src:url(../assets/fonts/emoticons.eot?5zh0vu);src:url(../assets/fonts/emoticons.eot?#iefix5zh0vu) format('embedded-opentype'),url(../assets/fonts/emoticons.woff?5zh0vu) format('woff'),url(../assets/fonts/emoticons.ttf?5zh0vu) format('truetype'),url(../assets/fonts/emoticons.svg?5zh0vu#icomoon) format('svg');font-weight:400;font-style:normal}.ne-code{display:none;font-size:14px;font-family:Consolas,Menlo,Monaco,monospace;padding:1.5em}pre{position:relative;margin-bottom:24px;border-radius:2px;overflow:hidden}code.has-numbering{display:block;padding:12px 30px;overflow-y:auto;font-weight:300;margin-left:36px}.pre-numbering{position:absolute;top:0;left:0;width:35px;padding:1.1em 5px 12px 0;border-right:1px solid #e8e8e8;border-radius:3px 0 0 3px;background-color:#EEE;text-align:right;color:#AAA;margin-top:-4px}.pre-numbering li{list-style-type:none}.ne-pdf iframe{width:420px;height:530px;display:block}.ne-pdf-icon{width:200px;height:150px;float:left;border-right:1px solid #eee}.ne-audio audio,.ne-video video{width:100%}.ne-pdf-icon i{margin:29px 62px;color:#999;font-size:84px}.ne-pdf-view button{font-family:inherit;font-size:14px;background-color:transparent;border:1px solid #ccc;padding:6px 15px;border-radius:2px;color:#333;cursor:pointer;box-shadow:0 1px 1px 0 rgba(0,0,0,.26);outline:0;border-bottom:0;float:right;margin:80px 10px 0;-o-transition:all .5s linear;transition:all .5s linear}.ne-pdf-view button:hover{box-shadow:0 2px 2px 0 rgba(0,0,0,.26)}.ne-pdf-view button i{margin-right:6px}.ne-pdf-view button a{color:#333}.ne-pdf-viewer iframe{margin:0 auto}.ne-pdf-viewer{background-color:#3498DB;position:relative}.ne-pdf-viewer i{position:absolute;right:10px;top:8px;color:#fff;font-size:25px;cursor:pointer}.ne-audio{background-color:#1D1D1D;border-radius:2px;padding-top:6px}.ne-pdf,.ne-video{padding:5px;border:1px solid #e4e4e4;border-radius:2px;margin:20px 0;box-shadow:0 1px 1px 0 rgba(0,0,0,.26);border-bottom:0;overflow:auto;-o-transition:all .5s linear;transition:all .5s linear}.ne-image:hover,.ne-video:hover{box-shadow:0 2px 2px 0 rgba(0,0,0,.26)}.ne-pdf-preview,.ne-video-preview{overflow:auto}.ne-video-preview img{display:block;width:200px;height:150px;border-radius:2px;background-color:#3498DB}.ne-video-thumb{width:200px;float:left;cursor:pointer;color:rgba(255,255,255,.6)}.ne-video-thumb:hover{color:#fff}.ne-video-thumb i{position:absolute;font-size:42px;margin-top:-95px;margin-left:80px;cursor:pointer}.ne-pdf-detail,.ne-video-detail{width:calc(100% - 200px);float:left;padding-left:15px}.emoticons-image,.emoticons-image-wrapper,.ne-image,.ne-video-player iframe{width:100%}.ne-pdf-title,.ne-video-title{font-weight:bolder;padding:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ne-video-desc{font-size:16px;color:#666;height:90px}.ne-stats{padding-top:7px;overflow:auto}.ne-video-stats span{padding:0 15px;float:right}.ne-video-stats span i{margin-right:10px}.ne-image{border-radius:2px;border:1px solid #e4e4e4;min-height:250px;max-height:250px;overflow:hidden;cursor:pointer;padding-bottom:5px;-webkit-transition:all .5s linear;-o-transition:all .5s linear;-moz-transition:all .5s linear;-ms-transition:all .5s linear;transition:all .5s linear;box-shadow:0 1px 1px 0 rgba(0,0,0,.26);border-bottom:5px solid #fff;margin:10px 0}.ne-image-long{max-height:800px}.ne-image img,.ne-image-long img{width:100%;display:block;min-height:250px}.ne-image-wrapper{margin:5px 5px 0;height:100%;overflow:hidden}.emoticons-image{padding:5px;border-radius:2px;border:1px solid #F2F2F2;display:block;margin:20px 0}.emoticon,.icon-emoticon{display:inline-block;vertical-align:middle}.icon-emoticon{font-family:emoticons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased}.emoticon{text-indent:-9999px;height:22px;width:22px}@media all and (-webkit-min-device-pixel-ratio :1),all and (min--moz-device-pixel-ratio :1),all and (-o-min-device-pixel-ratio :1),all and (min-device-pixel-ratio :1),all and (min-resolution :96dpi){.emoticon{background:url(../assets/images/emojis.png) no-repeat}}@media all and (-webkit-min-device-pixel-ratio :1.5),all and (-o-min-device-pixel-ratio :3/2),all and (min-device-pixel-ratio :1.5),all and (min-resolution :144dpi){.emoticon{background:url(../assets/images/emojis@2x.png) no-repeat;background-size:27776px 22px}}@-moz-document url-prefix(){.emoticon{background:url(../assets/images/emojis.png) no-repeat}}.emoticon-bowtie{background-position:-5px 0}.emoticon-smile{background-position:-37px 0}.emoticon-laughing{background-position:-69px 0}.emoticon-blush{background-position:-101px 0}.emoticon-smiley{background-position:-133px 0}.emoticon-relaxed{background-position:-165px 0}.emoticon-smirk{background-position:-197px 0}.emoticon-heart_eyes{background-position:-229px 0}.emoticon-kissing_heart{background-position:-261px 0}.emoticon-kissing_closed_eyes{background-position:-293px 0}.emoticon-flushed{background-position:-325px 0}.emoticon-relieved{background-position:-357px 0}.emoticon-satisfied{background-position:-389px 0}.emoticon-grin{background-position:-421px 0}.emoticon-wink{background-position:-453px 0}.emoticon-stuck_out_tongue_winking_eye,.emoticon-winky_face{background-position:-485px 0}.emoticon-stuck_out_tongue_closed_eyes{background-position:-517px 0}.emoticon-grinning{background-position:-549px 0}.emoticon-kissing{background-position:-581px 0}.emoticon-kissing_smiling_eyes{background-position:-613px 0}.emoticon-stuck_out_tongue{background-position:-645px 0}.emoticon-sleeping{background-position:-677px 0}.emoticon-worried{background-position:-709px 0}.emoticon-frowning{background-position:-741px 0}.emoticon-anguished{background-position:-773px 0}.emoticon-open_mouth,.emoticon-wow{background-position:-805px 0}.emoticon-grimacing{background-position:-837px 0}.emoticon-confused{background-position:-869px 0}.emoticon-hushed{background-position:-901px 0}.emoticon-expressionless{background-position:-933px 0}.emoticon-unamused{background-position:-965px 0}.emoticon-sweat_smile{background-position:-997px 0}.emoticon-sweat{background-position:-1029px 0}.emoticon-disappointed_relieved{background-position:-1061px 0}.emoticon-weary{background-position:-1093px 0}.emoticon-pensive{background-position:-1125px 0}.emoticon-disappointed{background-position:-1157px 0}.emoticon-confounded{background-position:-1189px 0}.emoticon-fearful{background-position:-1221px 0}.emoticon-cold_sweat{background-position:-1253px 0}.emoticon-persevere{background-position:-1285px 0}.emoticon-cry{background-position:-1317px 0}.emoticon-sob{background-position:-1349px 0}.emoticon-joy{background-position:-1381px 0}.emoticon-astonished{background-position:-1413px 0}.emoticon-scream{background-position:-1445px 0}.emoticon-neckbeard{background-position:-1477px 0}.emoticon-tired_face{background-position:-1509px 0}.emoticon-angry{background-position:-1541px 0}.emoticon-rage{background-position:-1573px 0}.emoticon-triumph{background-position:-1605px 0}.emoticon-sleepy{background-position:-1637px 0}.emoticon-yum{background-position:-1669px 0}.emoticon-mask{background-position:-1701px 0}.emoticon-sunglasses{background-position:-1733px 0}.emoticon-dizzy_face{background-position:-1765px 0}.emoticon-imp{background-position:-1797px 0}.emoticon-smiling_imp{background-position:-1829px 0}.emoticon-neutral_face{background-position:-1861px 0}.emoticon-no_mouth{background-position:-1893px 0}.emoticon-innocent{background-position:-1925px 0}.emoticon-alien{background-position:-1957px 0}.emoticon-yellow_heart{background-position:-1989px 0}.emoticon-blue_heart{background-position:-2021px 0}.emoticon-purple_heart{background-position:-2053px 0}.emoticon-heart{background-position:-2085px 0}.emoticon-green_heart{background-position:-2117px 0}.emoticon-broken_heart{background-position:-2149px 0}.emoticon-heartbeat{background-position:-2181px 0}.emoticon-heartpulse{background-position:-2213px 0}.emoticon-two_hearts{background-position:-2245px 0}.emoticon-revolving_hearts{background-position:-2277px 0}.emoticon-cupid{background-position:-2309px 0}.emoticon-sparkling_heart{background-position:-2341px 0}.emoticon-sparkles{background-position:-2373px 0}.emoticon-star{background-position:-2405px 0}.emoticon-star2{background-position:-2437px 0}.emoticon-dizzy{background-position:-2469px 0}.emoticon-boom{background-position:-2501px 0}.emoticon-collision{background-position:-2533px 0}.emoticon-anger{background-position:-2565px 0}.emoticon-exclamation{background-position:-2597px 0}.emoticon-question{background-position:-2629px 0}.emoticon-grey_exclamation{background-position:-2661px 0}.emoticon-grey_question{background-position:-2693px 0}.emoticon-zzz{background-position:-2725px 0}.emoticon-dash{background-position:-2757px 0}.emoticon-sweat_drops{background-position:-2789px 0}.emoticon-notes{background-position:-2821px 0}.emoticon-musical_note{background-position:-2853px 0}.emoticon-fire{background-position:-2885px 0}.emoticon-hankey{background-position:-2917px 0}.emoticon-poop{background-position:-2949px 0}.emoticon-shit{background-position:-2981px 0}.emoticon-\+1{background-position:-3013px 0}.emoticon-thumbsup{background-position:-3045px 0}.emoticon-\-1{background-position:-3077px 0}.emoticon-thumbsdown{background-position:-3109px 0}.emoticon-ok_hand{background-position:-3141px 0}.emoticon-punch{background-position:-3173px 0}.emoticon-facepunch{background-position:-3205px 0}.emoticon-fist{background-position:-3237px 0}.emoticon-v{background-position:-3269px 0}.emoticon-wave{background-position:-3301px 0}.emoticon-hand{background-position:-3333px 0}.emoticon-raised_hand{background-position:-3365px 0}.emoticon-open_hands{background-position:-3397px 0}.emoticon-point_up{background-position:-3429px 0}.emoticon-point_down{background-position:-3461px 0}.emoticon-point_left{background-position:-3493px 0}.emoticon-point_right{background-position:-3525px 0}.emoticon-raised_hands{background-position:-3557px 0}.emoticon-pray{background-position:-3589px 0}.emoticon-point_up_2{background-position:-3621px 0}.emoticon-clap{background-position:-3653px 0}.emoticon-muscle{background-position:-3685px 0}.emoticon-metal{background-position:-3717px 0}.emoticon-fu{background-position:-3749px 0}.emoticon-walking{background-position:-3781px 0}.emoticon-runner{background-position:-3813px 0}.emoticon-running{background-position:-3845px 0}.emoticon-couple{background-position:-3877px 0}.emoticon-family{background-position:-3909px 0}.emoticon-two_men_holding_hands{background-position:-3941px 0}.emoticon-two_women_holding_hands{background-position:-3973px 0}.emoticon-dancer{background-position:-4005px 0}.emoticon-dancers{background-position:-4037px 0}.emoticon-ok_woman{background-position:-4069px 0}.emoticon-no_good{background-position:-4101px 0}.emoticon-information_desk_person{background-position:-4133px 0}.emoticon-raising_hand{background-position:-4165px 0}.emoticon-bride_with_veil{background-position:-4197px 0}.emoticon-person_with_pouting_face{background-position:-4229px 0}.emoticon-person_frowning{background-position:-4261px 0}.emoticon-bow{background-position:-4293px 0}.emoticon-couplekiss{background-position:-4325px 0}.emoticon-couple_with_heart{background-position:-4357px 0}.emoticon-massage{background-position:-4389px 0}.emoticon-haircut{background-position:-4421px 0}.emoticon-nail_care{background-position:-4453px 0}.emoticon-boy{background-position:-4485px 0}.emoticon-girl{background-position:-4517px 0}.emoticon-woman{background-position:-4549px 0}.emoticon-man{background-position:-4581px 0}.emoticon-baby{background-position:-4613px 0}.emoticon-older_woman{background-position:-4645px 0}.emoticon-older_man{background-position:-4677px 0}.emoticon-person_with_blond_hair{background-position:-4709px 0}.emoticon-man_with_gua_pi_mao{background-position:-4741px 0}.emoticon-man_with_turban{background-position:-4773px 0}.emoticon-construction_worker{background-position:-4805px 0}.emoticon-cop{background-position:-4837px 0}.emoticon-angel{background-position:-4869px 0}.emoticon-princess{background-position:-4901px 0}.emoticon-emoticon_cat{background-position:-4933px 0}.emoticon-smile_cat{background-position:-4965px 0}.emoticon-heart_eyes_cat{background-position:-4997px 0}.emoticon-kissing_cat{background-position:-5029px 0}.emoticon-smirk_cat{background-position:-5061px 0}.emoticon-scream_cat{background-position:-5093px 0}.emoticon-crying_cat_face{background-position:-5125px 0}.emoticon-joy_cat{background-position:-5157px 0}.emoticon-pouting_cat{background-position:-5189px 0}.emoticon-japanese_ogre{background-position:-5221px 0}.emoticon-japanese_goblin{background-position:-5253px 0}.emoticon-see_no_evil{background-position:-5285px 0}.emoticon-hear_no_evil{background-position:-5317px 0}.emoticon-speak_no_evil{background-position:-5349px 0}.emoticon-guardsman{background-position:-5381px 0}.emoticon-skull{background-position:-5413px 0}.emoticon-feet{background-position:-5445px 0}.emoticon-lips{background-position:-5477px 0}.emoticon-kiss{background-position:-5509px 0}.emoticon-droplet{background-position:-5541px 0}.emoticon-ear{background-position:-5573px 0}.emoticon-eyes{background-position:-5605px 0}.emoticon-nose{background-position:-5637px 0}.emoticon-tongue{background-position:-5669px 0}.emoticon-love_letter{background-position:-5701px 0}.emoticon-bust_in_silhouette{background-position:-5733px 0}.emoticon-busts_in_silhouette{background-position:-5765px 0}.emoticon-speech_balloon{background-position:-5797px 0}.emoticon-thought_balloon{background-position:-5829px 0}.emoticon-feelsgood{background-position:-5861px 0}.emoticon-finnadie{background-position:-5893px 0}.emoticon-goberserk{background-position:-5925px 0}.emoticon-godmode{background-position:-5957px 0}.emoticon-hurtrealbad{background-position:-5989px 0}.emoticon-rage1{background-position:-6021px 0}.emoticon-rage2{background-position:-6053px 0}.emoticon-rage3{background-position:-6085px 0}.emoticon-rage4{background-position:-6117px 0}.emoticon-suspect{background-position:-6149px 0}.emoticon-trollface{background-position:-6181px 0}.emoticon-sunny{background-position:-6213px 0}.emoticon-umbrella{background-position:-6245px 0}.emoticon-cloud{background-position:-6277px 0}.emoticon-snowflake{background-position:-6309px 0}.emoticon-snowman{background-position:-6341px 0}.emoticon-zap{background-position:-6373px 0}.emoticon-cyclone{background-position:-6405px 0}.emoticon-foggy{background-position:-6437px 0}.emoticon-ocean{background-position:-6469px 0}.emoticon-cat{background-position:-6501px 0}.emoticon-dog{background-position:-6533px 0}.emoticon-mouse{background-position:-6565px 0}.emoticon-hamster{background-position:-6597px 0}.emoticon-rabbit{background-position:-6629px 0}.emoticon-wolf{background-position:-6661px 0}.emoticon-frog{background-position:-6693px 0}.emoticon-tiger{background-position:-6725px 0}.emoticon-koala{background-position:-6757px 0}.emoticon-bear{background-position:-6789px 0}.emoticon-pig{background-position:-6821px 0}.emoticon-pig_nose{background-position:-6853px 0}.emoticon-cow{background-position:-6885px 0}.emoticon-boar{background-position:-6917px 0}.emoticon-monkey_face{background-position:-6949px 0}.emoticon-monkey{background-position:-6981px 0}.emoticon-horse{background-position:-7013px 0}.emoticon-racehorse{background-position:-7045px 0}.emoticon-camel{background-position:-7077px 0}.emoticon-sheep{background-position:-7109px 0}.emoticon-elephant{background-position:-7141px 0}.emoticon-panda_face{background-position:-7173px 0}.emoticon-snake{background-position:-7205px 0}.emoticon-bird{background-position:-7237px 0}.emoticon-baby_chick{background-position:-7269px 0}.emoticon-hatched_chick{background-position:-7301px 0}.emoticon-hatching_chick{background-position:-7333px 0}.emoticon-chicken{background-position:-7365px 0}.emoticon-penguin{background-position:-7397px 0}.emoticon-turtle{background-position:-7429px 0}.emoticon-bug{background-position:-7461px 0}.emoticon-honeybee{background-position:-7493px 0}.emoticon-ant{background-position:-7525px 0}.emoticon-beetle{background-position:-7557px 0}.emoticon-snail{background-position:-7589px 0}.emoticon-octopus{background-position:-7621px 0}.emoticon-tropical_fish{background-position:-7653px 0}.emoticon-fish{background-position:-7685px 0}.emoticon-whale{background-position:-7717px 0}.emoticon-whale2{background-position:-7749px 0}.emoticon-dolphin{background-position:-7781px 0}.emoticon-cow2{background-position:-7813px 0}.emoticon-ram{background-position:-7845px 0}.emoticon-rat{background-position:-7877px 0}.emoticon-water_buffalo{background-position:-7909px 0}.emoticon-tiger2{background-position:-7941px 0}.emoticon-rabbit2{background-position:-7973px 0}.emoticon-dragon{background-position:-8005px 0}.emoticon-goat{background-position:-8037px 0}.emoticon-rooster{background-position:-8069px 0}.emoticon-dog2{background-position:-8101px 0}.emoticon-pig2{background-position:-8133px 0}.emoticon-mouse2{background-position:-8165px 0}.emoticon-ox{background-position:-8197px 0}.emoticon-dragon_face{background-position:-8229px 0}.emoticon-blowfish{background-position:-8261px 0}.emoticon-crocodile{background-position:-8293px 0}.emoticon-dromedary_camel{background-position:-8325px 0}.emoticon-leopard{background-position:-8357px 0}.emoticon-cat2{background-position:-8389px 0}.emoticon-poodle{background-position:-8421px 0}.emoticon-paw_prints{background-position:-8453px 0}.emoticon-bouquet{background-position:-8485px 0}.emoticon-cherry_blossom{background-position:-8517px 0}.emoticon-tulip{background-position:-8549px 0}.emoticon-four_leaf_clover{background-position:-8581px 0}.emoticon-rose{background-position:-8613px 0}.emoticon-sunflower{background-position:-8645px 0}.emoticon-hibiscus{background-position:-8677px 0}.emoticon-maple_leaf{background-position:-8709px 0}.emoticon-leaves{background-position:-8741px 0}.emoticon-fallen_leaf{background-position:-8773px 0}.emoticon-herb{background-position:-8805px 0}.emoticon-mushroom{background-position:-8837px 0}.emoticon-cactus{background-position:-8869px 0}.emoticon-palm_tree{background-position:-8901px 0}.emoticon-evergreen_tree{background-position:-8933px 0}.emoticon-deciduous_tree{background-position:-8965px 0}.emoticon-chestnut{background-position:-8997px 0}.emoticon-seedling{background-position:-9029px 0}.emoticon-blossom{background-position:-9061px 0}.emoticon-ear_of_rice{background-position:-9093px 0}.emoticon-shell{background-position:-9125px 0}.emoticon-globe_with_meridians{background-position:-9157px 0}.emoticon-sun_with_face{background-position:-9189px 0}.emoticon-full_moon_with_face{background-position:-9221px 0}.emoticon-new_moon_with_face{background-position:-9253px 0}.emoticon-new_moon{background-position:-9285px 0}.emoticon-waxing_crescent_moon{background-position:-9317px 0}.emoticon-first_quarter_moon{background-position:-9349px 0}.emoticon-waxing_gibbous_moon{background-position:-9381px 0}.emoticon-full_moon{background-position:-9413px 0}.emoticon-waning_gibbous_moon{background-position:-9445px 0}.emoticon-last_quarter_moon{background-position:-9477px 0}.emoticon-waning_crescent_moon{background-position:-9509px 0}.emoticon-last_quarter_moon_with_face{background-position:-9541px 0}.emoticon-first_quarter_moon_with_face{background-position:-9573px 0}.emoticon-moon{background-position:-9605px 0}.emoticon-earth_africa{background-position:-9637px 0}.emoticon-earth_americas{background-position:-9669px 0}.emoticon-earth_asia{background-position:-9701px 0}.emoticon-volcano{background-position:-9733px 0}.emoticon-milky_way{background-position:-9765px 0}.emoticon-partly_sunny{background-position:-9797px 0}.emoticon-octocat{background-position:-9829px 0}.emoticon-squirrel{background-position:-9861px 0}.emoticon-bamboo{background-position:-9893px 0}.emoticon-gift_heart{background-position:-9925px 0}.emoticon-dolls{background-position:-9957px 0}.emoticon-school_satchel{background-position:-9989px 0}.emoticon-mortar_board{background-position:-10021px 0}.emoticon-flags{background-position:-10053px 0}.emoticon-fireworks{background-position:-10085px 0}.emoticon-sparkler{background-position:-10117px 0}.emoticon-wind_chime{background-position:-10149px 0}.emoticon-rice_scene{background-position:-10181px 0}.emoticon-jack_o_lantern{background-position:-10213px 0}.emoticon-ghost{background-position:-10245px 0}.emoticon-santa{background-position:-10277px 0}.emoticon-christmas_tree{background-position:-10309px 0}.emoticon-gift{background-position:-10341px 0}.emoticon-bell{background-position:-10373px 0}.emoticon-no_bell{background-position:-10405px 0}.emoticon-tanabata_tree{background-position:-10437px 0}.emoticon-tada{background-position:-10469px 0}.emoticon-confetti_ball{background-position:-10501px 0}.emoticon-balloon{background-position:-10533px 0}.emoticon-crystal_ball{background-position:-10565px 0}.emoticon-cd{background-position:-10597px 0}.emoticon-dvd{background-position:-10629px 0}.emoticon-floppy_disk{background-position:-10661px 0}.emoticon-camera{background-position:-10693px 0}.emoticon-video_camera{background-position:-10725px 0}.emoticon-movie_camera{background-position:-10757px 0}.emoticon-computer{background-position:-10789px 0}.emoticon-tv{background-position:-10821px 0}.emoticon-iphone{background-position:-10853px 0}.emoticon-phone{background-position:-10885px 0}.emoticon-telephone{background-position:-10917px 0}.emoticon-telephone_receiver{background-position:-10949px 0}.emoticon-pager{background-position:-10981px 0}.emoticon-fax{background-position:-11013px 0}.emoticon-minidisc{background-position:-11045px 0}.emoticon-vhs{background-position:-11077px 0}.emoticon-sound{background-position:-11109px 0}.emoticon-speaker{background-position:-11141px 0}.emoticon-mute{background-position:-11173px 0}.emoticon-loudspeaker{background-position:-11205px 0}.emoticon-mega{background-position:-11237px 0}.emoticon-hourglass{background-position:-11269px 0}.emoticon-hourglass_flowing_sand{background-position:-11301px 0}.emoticon-alarm_clock{background-position:-11333px 0}.emoticon-watch{background-position:-11365px 0}.emoticon-radio{background-position:-11397px 0}.emoticon-satellite{background-position:-11429px 0}.emoticon-loop{background-position:-11461px 0}.emoticon-mag{background-position:-11493px 0}.emoticon-mag_right{background-position:-11525px 0}.emoticon-unlock{background-position:-11557px 0}.emoticon-lock{background-position:-11589px 0}.emoticon-lock_with_ink_pen{background-position:-11621px 0}.emoticon-closed_lock_with_key{background-position:-11653px 0}.emoticon-key{background-position:-11685px 0}.emoticon-bulb{background-position:-11717px 0}.emoticon-flashlight{background-position:-11749px 0}.emoticon-high_brightness{background-position:-11781px 0}.emoticon-low_brightness{background-position:-11813px 0}.emoticon-electric_plug{background-position:-11845px 0}.emoticon-battery{background-position:-11877px 0}.emoticon-calling{background-position:-11909px 0}.emoticon-email{background-position:-11941px 0}.emoticon-mailbox{background-position:-11973px 0}.emoticon-postbox{background-position:-12005px 0}.emoticon-bath{background-position:-12037px 0}.emoticon-bathtub{background-position:-12069px 0}.emoticon-shower{background-position:-12101px 0}.emoticon-toilet{background-position:-12133px 0}.emoticon-wrench{background-position:-12165px 0}.emoticon-nut_and_bolt{background-position:-12197px 0}.emoticon-hammer{background-position:-12229px 0}.emoticon-seat{background-position:-12261px 0}.emoticon-moneybag{background-position:-12293px 0}.emoticon-yen{background-position:-12325px 0}.emoticon-dollar{background-position:-12357px 0}.emoticon-pound{background-position:-12389px 0}.emoticon-euro{background-position:-12421px 0}.emoticon-credit_card{background-position:-12453px 0}.emoticon-money_with_wings{background-position:-12485px 0}.emoticon-e\-mail{background-position:-12517px 0}.emoticon-inbox_tray{background-position:-12549px 0}.emoticon-outbox_tray{background-position:-12581px 0}.emoticon-envelope{background-position:-12613px 0}.emoticon-incoming_envelope{background-position:-12645px 0}.emoticon-postal_horn{background-position:-12677px 0}.emoticon-mailbox_closed{background-position:-12709px 0}.emoticon-mailbox_with_mail{background-position:-12741px 0}.emoticon-mailbox_with_no_mail{background-position:-12773px 0}.emoticon-door{background-position:-12805px 0}.emoticon-smoking{background-position:-12837px 0}.emoticon-bomb{background-position:-12869px 0}.emoticon-gun{background-position:-12901px 0}.emoticon-hocho{background-position:-12933px 0}.emoticon-pill{background-position:-12965px 0}.emoticon-syringe{background-position:-12997px 0}.emoticon-page_facing_up{background-position:-13029px 0}.emoticon-page_with_curl{background-position:-13061px 0}.emoticon-bookmark_tabs{background-position:-13093px 0}.emoticon-bar_chart{background-position:-13125px 0}.emoticon-chart_with_upwards_trend{background-position:-13157px 0}.emoticon-chart_with_downwards_trend{background-position:-13189px 0}.emoticon-scroll{background-position:-13221px 0}.emoticon-clipboard{background-position:-13253px 0}.emoticon-calendar{background-position:-13285px 0}.emoticon-date{background-position:-13317px 0}.emoticon-card_index{background-position:-13349px 0}.emoticon-file_folder{background-position:-13381px 0}.emoticon-open_file_folder{background-position:-13413px 0}.emoticon-scissors{background-position:-13445px 0}.emoticon-pushpin{background-position:-13477px 0}.emoticon-paperclip{background-position:-13509px 0}.emoticon-black_nib{background-position:-13541px 0}.emoticon-pencil2{background-position:-13573px 0}.emoticon-straight_ruler{background-position:-13605px 0}.emoticon-triangular_ruler{background-position:-13637px 0}.emoticon-closed_book{background-position:-13669px 0}.emoticon-green_book{background-position:-13701px 0}.emoticon-blue_book{background-position:-13733px 0}.emoticon-orange_book{background-position:-13765px 0}.emoticon-notebook{background-position:-13797px 0}.emoticon-notebook_with_decorative_cover{background-position:-13829px 0}.emoticon-ledger{background-position:-13861px 0}.emoticon-books{background-position:-13893px 0}.emoticon-bookmark{background-position:-13925px 0}.emoticon-name_badge{background-position:-13957px 0}.emoticon-microscope{background-position:-13989px 0}.emoticon-telescope{background-position:-14021px 0}.emoticon-newspaper{background-position:-14053px 0}.emoticon-football{background-position:-14085px 0}.emoticon-basketball{background-position:-14117px 0}.emoticon-soccer{background-position:-14149px 0}.emoticon-baseball{background-position:-14181px 0}.emoticon-tennis{background-position:-14213px 0}.emoticon-8ball{background-position:-14245px 0}.emoticon-rugby_football{background-position:-14277px 0}.emoticon-bowling{background-position:-14309px 0}.emoticon-golf{background-position:-14341px 0}.emoticon-mountain_bicyclist{background-position:-14373px 0}.emoticon-bicyclist{background-position:-14405px 0}.emoticon-horse_racing{background-position:-14437px 0}.emoticon-snowboarder{background-position:-14469px 0}.emoticon-swimmer{background-position:-14501px 0}.emoticon-surfer{background-position:-14533px 0}.emoticon-ski{background-position:-14565px 0}.emoticon-spades{background-position:-14597px 0}.emoticon-hearts{background-position:-14629px 0}.emoticon-clubs{background-position:-14661px 0}.emoticon-diamonds{background-position:-14693px 0}.emoticon-gem{background-position:-14725px 0}.emoticon-ring{background-position:-14757px 0}.emoticon-trophy{background-position:-14789px 0}.emoticon-musical_score{background-position:-14821px 0}.emoticon-musical_keyboard{background-position:-14853px 0}.emoticon-violin{background-position:-14885px 0}.emoticon-space_invader{background-position:-14917px 0}.emoticon-video_game{background-position:-14949px 0}.emoticon-black_joker{background-position:-14981px 0}.emoticon-flower_playing_cards{background-position:-15013px 0}.emoticon-game_die{background-position:-15045px 0}.emoticon-dart{background-position:-15077px 0}.emoticon-mahjong{background-position:-15109px 0}.emoticon-clapper{background-position:-15141px 0}.emoticon-memo{background-position:-15173px 0}.emoticon-pencil{background-position:-15205px 0}.emoticon-book{background-position:-15237px 0}.emoticon-art{background-position:-15269px 0}.emoticon-microphone{background-position:-15301px 0}.emoticon-headphones{background-position:-15333px 0}.emoticon-trumpet{background-position:-15365px 0}.emoticon-saxophone{background-position:-15397px 0}.emoticon-guitar{background-position:-15429px 0}.emoticon-shoe{background-position:-15461px 0}.emoticon-sandal{background-position:-15493px 0}.emoticon-high_heel{background-position:-15525px 0}.emoticon-lipstick{background-position:-15557px 0}.emoticon-boot{background-position:-15589px 0}.emoticon-shirt{background-position:-15621px 0}.emoticon-tshirt{background-position:-15653px 0}.emoticon-necktie{background-position:-15685px 0}.emoticon-womans_clothes{background-position:-15717px 0}.emoticon-dress{background-position:-15749px 0}.emoticon-running_shirt_with_sash{background-position:-15781px 0}.emoticon-jeans{background-position:-15813px 0}.emoticon-kimono{background-position:-15845px 0}.emoticon-bikini{background-position:-15877px 0}.emoticon-ribbon{background-position:-15909px 0}.emoticon-tophat{background-position:-15941px 0}.emoticon-crown{background-position:-15973px 0}.emoticon-womans_hat{background-position:-16005px 0}.emoticon-mans_shoe{background-position:-16037px 0}.emoticon-closed_umbrella{background-position:-16069px 0}.emoticon-briefcase{background-position:-16101px 0}.emoticon-handbag{background-position:-16133px 0}.emoticon-pouch{background-position:-16165px 0}.emoticon-purse{background-position:-16197px 0}.emoticon-eyeglasses{background-position:-16229px 0}.emoticon-fishing_pole_and_fish{background-position:-16261px 0}.emoticon-coffee{background-position:-16293px 0}.emoticon-tea{background-position:-16325px 0}.emoticon-sake{background-position:-16357px 0}.emoticon-baby_bottle{background-position:-16389px 0}.emoticon-beer{background-position:-16421px 0}.emoticon-beers{background-position:-16453px 0}.emoticon-cocktail{background-position:-16485px 0}.emoticon-tropical_drink{background-position:-16517px 0}.emoticon-wine_glass{background-position:-16549px 0}.emoticon-fork_and_knife{background-position:-16581px 0}.emoticon-pizza{background-position:-16613px 0}.emoticon-hamburger{background-position:-16645px 0}.emoticon-fries{background-position:-16677px 0}.emoticon-poultry_leg{background-position:-16709px 0}.emoticon-meat_on_bone{background-position:-16741px 0}.emoticon-spaghetti{background-position:-16773px 0}.emoticon-curry{background-position:-16805px 0}.emoticon-fried_shrimp{background-position:-16837px 0}.emoticon-bento{background-position:-16869px 0}.emoticon-sushi{background-position:-16901px 0}.emoticon-fish_cake{background-position:-16933px 0}.emoticon-rice_ball{background-position:-16965px 0}.emoticon-rice_cracker{background-position:-16997px 0}.emoticon-rice{background-position:-17029px 0}.emoticon-ramen{background-position:-17061px 0}.emoticon-stew{background-position:-17093px 0}.emoticon-oden{background-position:-17125px 0}.emoticon-dango{background-position:-17157px 0}.emoticon-egg{background-position:-17189px 0}.emoticon-bread{background-position:-17221px 0}.emoticon-doughnut{background-position:-17253px 0}.emoticon-custard{background-position:-17285px 0}.emoticon-icecream{background-position:-17317px 0}.emoticon-ice_cream{background-position:-17349px 0}.emoticon-shaved_ice{background-position:-17381px 0}.emoticon-birthday{background-position:-17413px 0}.emoticon-cake{background-position:-17445px 0}.emoticon-cookie{background-position:-17477px 0}.emoticon-chocolate_bar{background-position:-17509px 0}.emoticon-candy{background-position:-17541px 0}.emoticon-lollipop{background-position:-17573px 0}.emoticon-honey_pot{background-position:-17605px 0}.emoticon-apple{background-position:-17637px 0}.emoticon-green_apple{background-position:-17669px 0}.emoticon-tangerine{background-position:-17701px 0}.emoticon-lemon{background-position:-17733px 0}.emoticon-cherries{background-position:-17765px 0}.emoticon-grapes{background-position:-17797px 0}.emoticon-watermelon{background-position:-17829px 0}.emoticon-strawberry{background-position:-17861px 0}.emoticon-peach{background-position:-17893px 0}.emoticon-melon{background-position:-17925px 0}.emoticon-banana{background-position:-17957px 0}.emoticon-pear{background-position:-17989px 0}.emoticon-pineapple{background-position:-18021px 0}.emoticon-sweet_potato{background-position:-18053px 0}.emoticon-eggplant{background-position:-18085px 0}.emoticon-tomato{background-position:-18117px 0}.emoticon-corn{background-position:-18149px 0}.emoticon-house{background-position:-18181px 0}.emoticon-house_with_garden{background-position:-18213px 0}.emoticon-school{background-position:-18245px 0}.emoticon-office{background-position:-18277px 0}.emoticon-post_office{background-position:-18309px 0}.emoticon-hospital{background-position:-18341px 0}.emoticon-bank{background-position:-18373px 0}.emoticon-convenience_store{background-position:-18405px 0}.emoticon-love_hotel{background-position:-18437px 0}.emoticon-hotel{background-position:-18469px 0}.emoticon-wedding{background-position:-18501px 0}.emoticon-church{background-position:-18533px 0}.emoticon-department_store{background-position:-18565px 0}.emoticon-european_post_office{background-position:-18597px 0}.emoticon-city_sunrise{background-position:-18629px 0}.emoticon-city_sunset{background-position:-18661px 0}.emoticon-japanese_castle{background-position:-18693px 0}.emoticon-european_castle{background-position:-18725px 0}.emoticon-tent{background-position:-18757px 0}.emoticon-factory{background-position:-18789px 0}.emoticon-tokyo_tower{background-position:-18821px 0}.emoticon-japan{background-position:-18853px 0}.emoticon-mount_fuji{background-position:-18885px 0}.emoticon-sunrise_over_mountains{background-position:-18917px 0}.emoticon-sunrise{background-position:-18949px 0}.emoticon-stars,.emoticon-themoreyouknow,.emoticon-tmyk{background-position:-18981px 0}.emoticon-statue_of_liberty{background-position:-19013px 0}.emoticon-bridge_at_night{background-position:-19045px 0}.emoticon-carousel_horse{background-position:-19077px 0}.emoticon-rainbow{background-position:-19109px 0}.emoticon-ferris_wheel{background-position:-19141px 0}.emoticon-fountain{background-position:-19173px 0}.emoticon-roller_coaster{background-position:-19205px 0}.emoticon-ship{background-position:-19237px 0}.emoticon-speedboat{background-position:-19269px 0}.emoticon-boat{background-position:-19301px 0}.emoticon-sailboat{background-position:-19333px 0}.emoticon-rowboat{background-position:-19365px 0}.emoticon-anchor{background-position:-19397px 0}.emoticon-rocket{background-position:-19429px 0}.emoticon-airplane{background-position:-19461px 0}.emoticon-helicopter{background-position:-19493px 0}.emoticon-steam_locomotive{background-position:-19525px 0}.emoticon-tram{background-position:-19557px 0}.emoticon-mountain_railway{background-position:-19589px 0}.emoticon-bike{background-position:-19621px 0}.emoticon-aerial_tramway{background-position:-19653px 0}.emoticon-suspension_railway{background-position:-19685px 0}.emoticon-mountain_cableway{background-position:-19717px 0}.emoticon-tractor{background-position:-19749px 0}.emoticon-blue_car{background-position:-19781px 0}.emoticon-oncoming_automobile{background-position:-19813px 0}.emoticon-car{background-position:-19845px 0}.emoticon-red_car{background-position:-19877px 0}.emoticon-taxi{background-position:-19909px 0}.emoticon-oncoming_taxi{background-position:-19941px 0}.emoticon-articulated_lorry{background-position:-19973px 0}.emoticon-bus{background-position:-20005px 0}.emoticon-oncoming_bus{background-position:-20037px 0}.emoticon-rotating_light{background-position:-20069px 0}.emoticon-police_car{background-position:-20101px 0}.emoticon-oncoming_police_car{background-position:-20133px 0}.emoticon-fire_engine{background-position:-20165px 0}.emoticon-ambulance{background-position:-20197px 0}.emoticon-minibus{background-position:-20229px 0}.emoticon-truck{background-position:-20261px 0}.emoticon-train{background-position:-20293px 0}.emoticon-station{background-position:-20325px 0}.emoticon-train2{background-position:-20357px 0}.emoticon-bullettrain_front{background-position:-20389px 0}.emoticon-bullettrain_side{background-position:-20421px 0}.emoticon-light_rail{background-position:-20453px 0}.emoticon-monorail{background-position:-20485px 0}.emoticon-railway_car{background-position:-20517px 0}.emoticon-trolleybus{background-position:-20549px 0}.emoticon-ticket{background-position:-20581px 0}.emoticon-fuelpump{background-position:-20613px 0}.emoticon-vertical_traffic_light{background-position:-20645px 0}.emoticon-traffic_light{background-position:-20677px 0}.emoticon-warning{background-position:-20709px 0}.emoticon-construction{background-position:-20741px 0}.emoticon-beginner{background-position:-20773px 0}.emoticon-atm{background-position:-20805px 0}.emoticon-slot_machine{background-position:-20837px 0}.emoticon-busstop{background-position:-20869px 0}.emoticon-barber{background-position:-20901px 0}.emoticon-hotsprings{background-position:-20933px 0}.emoticon-checkered_flag{background-position:-20965px 0}.emoticon-crossed_flags{background-position:-20997px 0}.emoticon-izakaya_lantern{background-position:-21029px 0}.emoticon-moyai{background-position:-21061px 0}.emoticon-circus_tent{background-position:-21093px 0}.emoticon-performing_arts{background-position:-21125px 0}.emoticon-round_pushpin{background-position:-21157px 0}.emoticon-triangular_flag_on_post{background-position:-21189px 0}.emoticon-jp{background-position:-21221px 0}.emoticon-kr{background-position:-21253px 0}.emoticon-cn{background-position:-21285px 0}.emoticon-us{background-position:-21317px 0}.emoticon-fr{background-position:-21349px 0}.emoticon-es{background-position:-21381px 0}.emoticon-it{background-position:-21413px 0}.emoticon-ru{background-position:-21445px 0}.emoticon-gb{background-position:-21477px 0}.emoticon-uk{background-position:-21509px 0}.emoticon-de{background-position:-21541px 0}.emoticon-one{background-position:-21573px 0}.emoticon-two{background-position:-21605px 0}.emoticon-three{background-position:-21637px 0}.emoticon-four{background-position:-21669px 0}.emoticon-five{background-position:-21701px 0}.emoticon-six{background-position:-21733px 0}.emoticon-seven{background-position:-21765px 0}.emoticon-eight{background-position:-21797px 0}.emoticon-nine{background-position:-21829px 0}.emoticon-keycap_ten{background-position:-21861px 0}.emoticon-1234{background-position:-21893px 0}.emoticon-zero{background-position:-21925px 0}.emoticon-hash{background-position:-21957px 0}.emoticon-symbols{background-position:-21989px 0}.emoticon-arrow_backward{background-position:-22021px 0}.emoticon-arrow_down{background-position:-22053px 0}.emoticon-arrow_forward{background-position:-22085px 0}.emoticon-arrow_left{background-position:-22117px 0}.emoticon-capital_abcd{background-position:-22149px 0}.emoticon-abcd{background-position:-22181px 0}.emoticon-abc{background-position:-22213px 0}.emoticon-arrow_lower_left{background-position:-22245px 0}.emoticon-arrow_lower_right{background-position:-22277px 0}.emoticon-arrow_right{background-position:-22309px 0}.emoticon-arrow_up{background-position:-22341px 0}.emoticon-arrow_upper_left{background-position:-22373px 0}.emoticon-arrow_upper_right{background-position:-22405px 0}.emoticon-arrow_double_down{background-position:-22437px 0}.emoticon-arrow_double_up{background-position:-22469px 0}.emoticon-arrow_down_small{background-position:-22501px 0}.emoticon-arrow_heading_down{background-position:-22533px 0}.emoticon-arrow_heading_up{background-position:-22565px 0}.emoticon-leftwards_arrow_with_hook{background-position:-22597px 0}.emoticon-arrow_right_hook{background-position:-22629px 0}.emoticon-left_right_arrow{background-position:-22661px 0}.emoticon-arrow_up_down{background-position:-22693px 0}.emoticon-arrow_up_small{background-position:-22725px 0}.emoticon-arrows_clockwise{background-position:-22757px 0}.emoticon-arrows_counterclockwise{background-position:-22789px 0}.emoticon-rewind{background-position:-22821px 0}.emoticon-fast_forward{background-position:-22853px 0}.emoticon-information_source{background-position:-22885px 0}.emoticon-ok{background-position:-22917px 0}.emoticon-twisted_rightwards_arrows{background-position:-22949px 0}.emoticon-repeat{background-position:-22981px 0}.emoticon-repeat_one{background-position:-23013px 0}.emoticon-new{background-position:-23045px 0}.emoticon-top{background-position:-23077px 0}.emoticon-up{background-position:-23109px 0}.emoticon-cool{background-position:-23141px 0}.emoticon-free{background-position:-23173px 0}.emoticon-ng{background-position:-23205px 0}.emoticon-cinema{background-position:-23237px 0}.emoticon-koko{background-position:-23269px 0}.emoticon-signal_strength{background-position:-23301px 0}.emoticon-u5272{background-position:-23333px 0}.emoticon-u5408{background-position:-23365px 0}.emoticon-u55b6{background-position:-23397px 0}.emoticon-u6307{background-position:-23429px 0}.emoticon-u6708{background-position:-23461px 0}.emoticon-u6709{background-position:-23493px 0}.emoticon-u6e80{background-position:-23525px 0}.emoticon-u7121{background-position:-23557px 0}.emoticon-u7533{background-position:-23589px 0}.emoticon-u7a7a{background-position:-23621px 0}.emoticon-u7981{background-position:-23653px 0}.emoticon-sa{background-position:-23685px 0}.emoticon-restroom{background-position:-23717px 0}.emoticon-mens{background-position:-23749px 0}.emoticon-womens{background-position:-23781px 0}.emoticon-baby_symbol{background-position:-23813px 0}.emoticon-no_smoking{background-position:-23845px 0}.emoticon-parking{background-position:-23877px 0}.emoticon-wheelchair{background-position:-23909px 0}.emoticon-metro{background-position:-23941px 0}.emoticon-baggage_claim{background-position:-23973px 0}.emoticon-accept{background-position:-24005px 0}.emoticon-wc{background-position:-24037px 0}.emoticon-potable_water{background-position:-24069px 0}.emoticon-put_litter_in_its_place{background-position:-24101px 0}.emoticon-secret{background-position:-24133px 0}.emoticon-congratulations{background-position:-24165px 0}.emoticon-m{background-position:-24197px 0}.emoticon-passport_control{background-position:-24229px 0}.emoticon-left_luggage{background-position:-24261px 0}.emoticon-customs{background-position:-24293px 0}.emoticon-ideograph_advantage{background-position:-24325px 0}.emoticon-cl{background-position:-24357px 0}.emoticon-sos{background-position:-24389px 0}.emoticon-id{background-position:-24421px 0}.emoticon-no_entry_sign{background-position:-24453px 0}.emoticon-underage{background-position:-24485px 0}.emoticon-no_mobile_phones{background-position:-24517px 0}.emoticon-do_not_litter{background-position:-24549px 0}.emoticon-non\-potable_water{background-position:-24581px 0}.emoticon-no_bicycles{background-position:-24613px 0}.emoticon-no_pedestrians{background-position:-24645px 0}.emoticon-children_crossing{background-position:-24677px 0}.emoticon-no_entry{background-position:-24709px 0}.emoticon-eight_spoked_asterisk{background-position:-24741px 0}.emoticon-eight_pointed_black_star{background-position:-24773px 0}.emoticon-heart_decoration{background-position:-24805px 0}.emoticon-vs{background-position:-24837px 0}.emoticon-vibration_mode{background-position:-24869px 0}.emoticon-mobile_phone_off{background-position:-24901px 0}.emoticon-chart{background-position:-24933px 0}.emoticon-currency_exchange{background-position:-24965px 0}.emoticon-aries{background-position:-24997px 0}.emoticon-taurus{background-position:-25029px 0}.emoticon-gemini{background-position:-25061px 0}.emoticon-cancer{background-position:-25093px 0}.emoticon-leo{background-position:-25125px 0}.emoticon-virgo{background-position:-25157px 0}.emoticon-libra{background-position:-25189px 0}.emoticon-scorpius{background-position:-25221px 0}.emoticon-sagittarius{background-position:-25253px 0}.emoticon-capricorn{background-position:-25285px 0}.emoticon-aquarius{background-position:-25317px 0}.emoticon-pisces{background-position:-25349px 0}.emoticon-ophiuchus{background-position:-25381px 0}.emoticon-six_pointed_star{background-position:-25413px 0}.emoticon-negative_squared_cross_mark{background-position:-25445px 0}.emoticon-a{background-position:-25477px 0}.emoticon-b{background-position:-25509px 0}.emoticon-ab{background-position:-25541px 0}.emoticon-o2{background-position:-25573px 0}.emoticon-diamond_shape_with_a_dot_inside{background-position:-25605px 0}.emoticon-recycle{background-position:-25637px 0}.emoticon-end{background-position:-25669px 0}.emoticon-on{background-position:-25701px 0}.emoticon-soon{background-position:-25733px 0}.emoticon-clock1{background-position:-25765px 0}.emoticon-clock130{background-position:-25797px 0}.emoticon-clock10{background-position:-25829px 0}.emoticon-clock1030{background-position:-25861px 0}.emoticon-clock11{background-position:-25893px 0}.emoticon-clock1130{background-position:-25925px 0}.emoticon-clock12{background-position:-25957px 0}.emoticon-clock1230{background-position:-25989px 0}.emoticon-clock2{background-position:-26021px 0}.emoticon-clock230{background-position:-26053px 0}.emoticon-clock3{background-position:-26085px 0}.emoticon-clock330{background-position:-26117px 0}.emoticon-clock4{background-position:-26149px 0}.emoticon-clock430{background-position:-26181px 0}.emoticon-clock5{background-position:-26213px 0}.emoticon-clock530{background-position:-26245px 0}.emoticon-clock6{background-position:-26277px 0}.emoticon-clock630{background-position:-26309px 0}.emoticon-clock7{background-position:-26341px 0}.emoticon-clock730{background-position:-26373px 0}.emoticon-clock8{background-position:-26405px 0}.emoticon-clock830{background-position:-26437px 0}.emoticon-clock9{background-position:-26469px 0}.emoticon-clock930{background-position:-26501px 0}.emoticon-heavy_dollar_sign{background-position:-26533px 0}.emoticon-copyright{background-position:-26565px 0}.emoticon-registered{background-position:-26597px 0}.emoticon-tm{background-position:-26629px 0}.emoticon-x{background-position:-26661px 0}.emoticon-heavy_exclamation_mark{background-position:-26693px 0}.emoticon-bangbang{background-position:-26725px 0}.emoticon-interrobang{background-position:-26757px 0}.emoticon-o{background-position:-26789px 0}.emoticon-heavy_multiplication_x{background-position:-26821px 0}.emoticon-heavy_plus_sign{background-position:-26853px 0}.emoticon-heavy_minus_sign{background-position:-26885px 0}.emoticon-heavy_division_sign{background-position:-26917px 0}.emoticon-white_flower{background-position:-26949px 0}.emoticon-100{background-position:-26981px 0}.emoticon-heavy_check_mark{background-position:-27013px 0}.emoticon-ballot_box_with_check{background-position:-27045px 0}.emoticon-radio_button{background-position:-27077px 0}.emoticon-link{background-position:-27109px 0}.emoticon-curly_loop{background-position:-27141px 0}.emoticon-wavy_dash{background-position:-27173px 0}.emoticon-part_alternation_mark{background-position:-27205px 0}.emoticon-trident{background-position:-27237px 0}.emoticon-black_large_square{background-position:-27269px 0}.emoticon-white_large_square{background-position:-27301px 0}.emoticon-white_check_mark{background-position:-27333px 0}.emoticon-black_square{background-position:-27268px 0}.emoticon-white_square{background-position:-27301px 0}.emoticon-black_square_button{background-position:-27365px 0}.emoticon-white_square_button{background-position:-27397px 0}.emoticon-black_circle{background-position:-27429px 0}.emoticon-white_circle{background-position:-27461px 0}.emoticon-red_circle{background-position:-27493px 0}.emoticon-large_blue_circle{background-position:-27525px 0}.emoticon-large_blue_diamond{background-position:-27557px 0}.emoticon-large_orange_diamond{background-position:-27589px 0}.emoticon-small_blue_diamond{background-position:-27621px 0}.emoticon-small_orange_diamond{background-position:-27653px 0}.emoticon-small_red_triangle{background-position:-27685px 0}.emoticon-small_red_triangle_down{background-position:-27717px 0}.emoticon-shipit{background-position:-27749px 0}.hljs{display:block;overflow-x:auto;padding:.5em;background:#f0f0f0;-webkit-text-size-adjust:none}.hljs,.hljs-subst,.hljs-tag .hljs-title,.nginx .hljs-title{color:#000}.apache .hljs-cbracket,.apache .hljs-tag,.asciidoc .hljs-header,.bash .hljs-variable,.coffeescript .hljs-attribute,.django .hljs-variable,.erlang_repl .hljs-function_or_atom,.haml .hljs-symbol,.hljs-addition,.hljs-constant,.hljs-flow,.hljs-name,.hljs-parent,.hljs-pragma,.hljs-preprocessor,.hljs-rule .hljs-value,.hljs-stream,.hljs-string,.hljs-tag .hljs-value,.hljs-template_tag,.hljs-title,.markdown .hljs-header,.pf .hljs-variable,.ruby .hljs-symbol,.ruby .hljs-symbol .hljs-string,.smalltalk .hljs-class,.tex .hljs-command,.tex .hljs-special,.tp .hljs-variable{color:#800}.asciidoc .hljs-blockquote,.diff .hljs-header,.hljs-annotation,.hljs-chunk,.hljs-comment,.markdown .hljs-blockquote,.smartquote{color:#888}.asciidoc .hljs-bullet,.asciidoc .hljs-link_url,.go .hljs-constant,.hljs-change,.hljs-date,.hljs-hexcolor,.hljs-literal,.hljs-number,.hljs-regexp,.lasso .hljs-variable,.makefile .hljs-variable,.markdown .hljs-bullet,.markdown .hljs-link_url,.smalltalk .hljs-char,.smalltalk .hljs-symbol{color:#080}.apache .hljs-sqbracket,.asciidoc .hljs-attribute,.asciidoc .hljs-link_label,.clojure .hljs-attribute,.coffeescript .hljs-property,.erlang_repl .hljs-reserved,.haml .hljs-bullet,.hljs-array,.hljs-attr_selector,.hljs-decorator,.hljs-deletion,.hljs-doctype,.hljs-envvar,.hljs-filter .hljs-argument,.hljs-important,.hljs-label,.hljs-localvars,.hljs-phony,.hljs-pi,.hljs-prompt,.hljs-pseudo,.hljs-shebang,.lasso .hljs-attribute,.markdown .hljs-link_label,.nginx .hljs-built_in,.ruby .hljs-string,.tex .hljs-formula,.vhdl .hljs-attribute{color:#88f}.apache .hljs-tag,.asciidoc .hljs-strong,.bash .hljs-variable,.css .hljs-tag,.hljs-built_in,.hljs-doctag,.hljs-id,.hljs-keyword,.hljs-request,.hljs-status,.hljs-title,.hljs-type,.hljs-typename,.hljs-winutils,.markdown .hljs-strong,.pf .hljs-variable,.smalltalk .hljs-class,.tex .hljs-command,.tp .hljs-data,.tp .hljs-io{font-weight:700}.asciidoc .hljs-emphasis,.markdown .hljs-emphasis,.tp .hljs-units{font-style:italic}.nginx .hljs-built_in{font-weight:400}.coffeescript .javascript,.javascript .xml,.lasso .markup,.tex .hljs-formula,.xml .css,.xml .hljs-cdata,.xml .javascript,.xml .vbscript{opacity:.5}/*!
* ui-grid - v3.0.7 - 2015-10-06
* Copyright (c) 2015 ; License: MIT
- */.ui-grid{border:1px solid #d4d4d4;box-sizing:content-box;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-o-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}.ui-grid-vertical-bar{position:absolute;right:0;width:0}.ui-grid-scrollbar-placeholder{background-color:transparent}.ui-grid-cell:not(:last-child) .ui-grid-vertical-bar,.ui-grid-header-cell:not(:last-child) .ui-grid-vertical-bar{width:1px;background-color:#d4d4d4}.ui-grid-header-cell:last-child .ui-grid-vertical-bar{right:-1px;width:1px;background-color:#d4d4d4}.ui-grid-clearfix:after,.ui-grid-clearfix:before{content:"";display:table}.ui-grid-invisible{visibility:hidden}.ui-grid-contents-wrapper{position:relative;height:100%;width:100%}.ui-grid-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.ui-grid-top-panel-background{background:#f3f3f3;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee)}.ui-grid-header{border-bottom:1px solid #d4d4d4}.ui-grid-top-panel{position:relative;overflow:hidden;font-weight:700;background:#f3f3f3;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee);-moz-border-radius-topright:-1px;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:-1px;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:-1px -1px 0 0;border-radius:-1px -1px 0 0}.ui-grid-header-viewport{overflow:hidden}.ui-grid-header-canvas:after,.ui-grid-header-canvas:before{content:"";display:table;line-height:0}.ui-grid-header-cell-wrapper{position:relative;display:table;box-sizing:border-box;height:100%}.ui-grid-header-cell-row{display:table-row;position:relative}.ui-grid-header-cell{position:relative;background-color:inherit;border-right:1px solid;border-color:#d4d4d4;display:table-cell;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:0}.expandableRow .ui-grid-row:nth-child(odd) .ui-grid-cell,.ui-grid-row:nth-child(odd) .ui-grid-cell{background-color:#fdfdfd}.ui-grid-header-cell:last-child{border-right:0}.ui-grid-header-cell .sortable{cursor:pointer}.ui-grid-header-cell .ui-grid-sort-priority-number{margin-left:-8px}.ui-grid-header .ui-grid-vertical-bar{top:0;bottom:0}.ui-grid-column-menu-button{position:absolute;right:1px;top:0}.ui-grid-column-menu-button .ui-grid-icon-angle-down{vertical-align:sub}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button,.ui-grid-pager-control button{vertical-align:middle;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;white-space:nowrap}.ui-grid-column-menu-button-last-col{margin-right:25px}.ui-grid-column-menu{position:absolute}.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-add,.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove{-webkit-transition:all 50ms linear;-moz-transition:all 50ms linear;-o-transition:all 50ms linear;transition:all 50ms linear;display:block!important}.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-add.ng-hide-add-active,.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);-o-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-add,.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove.ng-hide-remove-active{-webkit-transform:translateY(0);-moz-transform:translateY(0);-o-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-add,.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove{-webkit-transition:all 50ms linear;-moz-transition:all 50ms linear;-o-transition:all 50ms linear;transition:all 50ms linear;display:block!important}.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-add.ng-hide-add-active,.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);-o-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-add,.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove.ng-hide-remove-active{-webkit-transform:translateY(0);-moz-transform:translateY(0);-o-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.ui-grid-filter-container{padding:4px 10px;position:relative}.ui-grid-filter-container .ui-grid-filter-button{position:absolute;top:0;bottom:0;right:0}.ui-grid-filter-container .ui-grid-filter-button [class^=ui-grid-icon]{position:absolute;top:50%;line-height:32px;margin-top:-16px;right:10px;opacity:.66}.ui-grid-filter-container .ui-grid-filter-button [class^=ui-grid-icon]:hover{opacity:1}.ui-grid-filter-container .ui-grid-filter-button-select{position:absolute;top:0;bottom:0;right:0}.ui-grid-filter-container .ui-grid-filter-button-select [class^=ui-grid-icon]{position:absolute;top:50%;line-height:32px;margin-top:-16px;right:0;opacity:.66}.ui-grid-filter-container .ui-grid-filter-button-select [class^=ui-grid-icon]:hover{opacity:1}select.ui-grid-filter-select{padding:0;margin:0;width:90%;border:1px solid #d4d4d4;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:0;border-radius:0}select.ui-grid-filter-select:hover{border:1px solid #d4d4d4}.ui-grid-no-row-overlay,.ui-grid-render-container{-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0}.ui-grid-filter-cancel-button-hidden select.ui-grid-filter-select{width:100%}.ui-grid-render-container{position:inherit;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:0;border-radius:0}.ui-grid-render-container:focus{outline:0}.ui-grid-viewport{min-height:20px;position:relative;overflow-y:scroll;-webkit-overflow-scrolling:touch}.ui-grid-viewport:focus{outline:0!important}.ui-grid-canvas{position:relative;padding-top:1px}.ui-grid-footer-panel-background,.ui-grid-no-row-overlay{background:#f3f3f3;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0)}.ui-grid-row:nth-child(even) .ui-grid-cell{background-color:#f3f3f3}.ui-grid-row:last-child .ui-grid-cell{border-bottom-color:#d4d4d4;border-bottom-style:solid}.ui-grid-no-row-overlay{position:absolute;top:0;bottom:0;left:0;right:0;margin:10%;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee);-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #d4d4d4;font-size:2em;text-align:center;-webkit-border-radius:0;border-radius:0}.ui-grid-no-row-overlay>*{position:absolute;display:table;margin:auto 0;width:100%;top:0;bottom:0;left:0;right:0;opacity:.66}.ui-grid-cell{overflow:hidden;float:left;background-color:inherit;border-right:1px solid;border-color:#d4d4d4}.ui-grid-cell:last-child{border-right:0}.ui-grid-cell-contents{padding:5px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;overflow:hidden;height:100%}.ui-grid-cell-contents-hidden{visibility:hidden;width:0;height:0;display:none}.ui-grid-row .ui-grid-cell.ui-grid-row-header-cell{background-color:#f0f0ee;border-bottom:solid 1px #d4d4d4}.ui-grid-footer-panel-background{background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee)}.ui-grid-footer-panel{position:relative;border-bottom:1px solid #d4d4d4;border-top:1px solid #d4d4d4;overflow:hidden;font-weight:700;background:#f3f3f3;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);-moz-border-radius-topright:-1px;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:-1px;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:-1px -1px 0 0;border-radius:-1px -1px 0 0}.ui-grid-grid-footer{float:left;width:100%}.ui-grid-footer-viewport{overflow:hidden}.ui-grid-footer-canvas{position:relative}.ui-grid-footer-canvas:after,.ui-grid-footer-canvas:before{content:"";display:table;line-height:0}.ui-grid-footer-cell-wrapper{position:relative;display:table;box-sizing:border-box;height:100%}.ui-grid-menu,.ui-grid-menu-button{position:absolute;cursor:pointer;z-index:2}.ui-grid-footer-cell-row{display:table-row}.ui-grid-footer-cell{overflow:hidden;background-color:inherit;border-right:1px solid;border-color:#d4d4d4;box-sizing:border-box;display:table-cell}.ui-grid-footer-cell:last-child{border-right:0}input[type=text].ui-grid-filter-input{padding:0;margin:0;width:100%;border:1px solid #d4d4d4;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:0;border-radius:0}input[type=text].ui-grid-filter-input:hover{border:1px solid #d4d4d4}.ui-grid-menu-button{right:0;top:0;background:#f3f3f3;border:1px solid #d4d4d4;height:31px;font-weight:400}.ui-grid-menu-button .ui-grid-icon-container{margin-top:3px}.ui-grid-menu-button .ui-grid-menu{right:0}.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid{overflow:scroll;max-height:300px;border:1px solid #d4d4d4}.ui-grid-menu{padding:0 10px 20px;box-sizing:border-box}.ui-grid-menu .ui-grid-menu-inner{background:#f3f3f3;border:1px solid #d4d4d4;position:relative;white-space:nowrap;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:0 10px 20px rgba(0,0,0,.2),inset 0 12px 12px -14px rgba(0,0,0,.2);-moz-box-shadow:0 10px 20px rgba(0,0,0,.2),inset 0 12px 12px -14px rgba(0,0,0,.2);box-shadow:0 10px 20px rgba(0,0,0,.2),inset 0 12px 12px -14px rgba(0,0,0,.2)}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button{position:absolute;right:0;top:0;display:inline-block;margin-bottom:0;font-weight:400;text-align:center;cursor:pointer;background-image:none;border:1px solid transparent;-ms-user-select:none;user-select:none;padding:1px;font-size:10px;line-height:1;border-radius:2px;color:transparent;background-color:transparent}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:hover{text-decoration:none}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled],fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button,.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus,.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:hover,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active:hover,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active:hover,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:hover{color:transparent;background-color:rgba(0,0,0,0);border-color:transparent}.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active{background-image:none}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled.active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled:active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled:hover,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled],.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled].active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled].focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled]:active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled]:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled]:hover,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:hover{background-color:transparent;border-color:transparent}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button .badge{color:transparent;background-color:transparent}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button>i{opacity:.75;color:#000}div.ui-grid-cell input,div.ui-grid-cell input:focus{color:inherit;outline:0}.ui-grid-menu .ui-grid-menu-inner ul{margin:0;padding:0;list-style-type:none}.ui-grid-menu .ui-grid-menu-inner ul li{padding:0}.ui-grid-menu .ui-grid-menu-inner ul li button{min-width:100%;padding:8px;text-align:left;background:0 0;border:none}.ui-grid-menu .ui-grid-menu-inner ul li button:focus,.ui-grid-menu .ui-grid-menu-inner ul li button:hover{-webkit-box-shadow:inset 0 0 14px rgba(0,0,0,.2);-moz-box-shadow:inset 0 0 14px rgba(0,0,0,.2);box-shadow:inset 0 0 14px rgba(0,0,0,.2)}.ui-grid-menu .ui-grid-menu-inner ul li button.ui-grid-menu-item-active{-webkit-box-shadow:inset 0 0 14px rgba(0,0,0,.2);-moz-box-shadow:inset 0 0 14px rgba(0,0,0,.2);box-shadow:inset 0 0 14px rgba(0,0,0,.2);background-color:#cecece}.ui-grid-menu .ui-grid-menu-inner ul li:not(:last-child)>button{border-bottom:1px solid #d4d4d4}.ui-grid-sortarrow{right:5px;position:absolute;width:20px;top:0;bottom:0;background-position:center}.ui-grid-sortarrow.down{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}@font-face{font-family:ui-grid;src:url(ui-grid.eot);src:url(ui-grid.eot#iefix) format('embedded-opentype'),url(ui-grid.woff) format('woff'),url(ui-grid.ttf) format('truetype'),url(ui-grid.svg?#ui-grid) format('svg');font-weight:400;font-style:normal}[class*=" ui-grid-icon"]:before,[class^=ui-grid-icon]:before{font-family:ui-grid;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em}.ui-grid-icon-blank::before{width:1em;content:' '}.ui-grid[dir=rtl] .ui-grid-cell,.ui-grid[dir=rtl] .ui-grid-footer-cell,.ui-grid[dir=rtl] .ui-grid-header-cell{float:right!important}.ui-grid[dir=rtl] .ui-grid-column-menu-button{position:absolute;left:1px;top:0;right:inherit}.ui-grid[dir=rtl] .ui-grid-cell:first-child,.ui-grid[dir=rtl] .ui-grid-footer-cell:first-child,.ui-grid[dir=rtl] .ui-grid-header-cell:first-child{border-right:0}.ui-grid[dir=rtl] .ui-grid-cell:last-child,.ui-grid[dir=rtl] .ui-grid-header-cell:last-child{border-right:1px solid #d4d4d4;border-left:0}.ui-grid[dir=rtl] .ui-grid-cell:first-child .ui-grid-vertical-bar,.ui-grid[dir=rtl] .ui-grid-footer-cell:first-child .ui-grid-vertical-bar,.ui-grid[dir=rtl] .ui-grid-header-cell:first-child .ui-grid-vertical-bar{width:0}.ui-grid[dir=rtl] .ui-grid-menu-button{z-index:2;position:absolute;left:0;right:auto;background:#f3f3f3;border:1px solid #d4d4d4;cursor:pointer;min-height:27px;font-weight:400}.ui-grid[dir=rtl] .ui-grid-menu-button .ui-grid-menu{left:0;right:auto}.ui-grid[dir=rtl] .ui-grid-filter-container .ui-grid-filter-button{right:initial;left:0}.ui-grid[dir=rtl] .ui-grid-filter-container .ui-grid-filter-button [class^=ui-grid-icon]{right:initial;left:10px}.ui-grid-animate-spin{-moz-animation:ui-grid-spin 2s infinite linear;-o-animation:ui-grid-spin 2s infinite linear;-webkit-animation:ui-grid-spin 2s infinite linear;animation:ui-grid-spin 2s infinite linear;display:inline-block}@-moz-keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-o-keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-ms-keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.ui-grid-cell-focus{outline:0;background-color:#b3c4c7}.ui-grid-focuser{position:absolute;left:0;top:0;z-index:-1;width:100%;height:100%}.ui-grid-focuser:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.ui-grid-offscreen{display:block;position:absolute;left:-10000px;top:-10000px;clip:rect(0,0,0,0)}div.ui-grid-cell input{border-radius:inherit;padding:0;width:100%;height:auto;font:inherit}div.ui-grid-cell input[type=checkbox]{margin:9px 0 0 6px;width:auto}div.ui-grid-cell input.ng-invalid{border:1px solid #fc8f8f}.movingColumn,.scrollFiller,div.ui-grid-cell input.ng-valid{border:1px solid #d4d4d4}.expandableRow .ui-grid-row:nth-child(even) .ui-grid-cell{background-color:#f3f3f3}.ui-grid-expandable-buttons-cell i{pointer-events:all}.scrollFiller{float:left}.movingColumn{position:absolute;top:0;box-shadow:inset 0 0 14px rgba(0,0,0,.2)}.movingColumn .ui-grid-icon-angle-down{display:none}#ui-grid-twbs #ui-grid-twbs .btn-group-vertical>.btn-group:after,#ui-grid-twbs #ui-grid-twbs .btn-group-vertical>.btn-group:before,#ui-grid-twbs #ui-grid-twbs .btn-toolbar:after,#ui-grid-twbs #ui-grid-twbs .btn-toolbar:before,#ui-grid-twbs #ui-grid-twbs .form-horizontal .form-group:after,#ui-grid-twbs #ui-grid-twbs .form-horizontal .form-group:before{content:" ";display:table}.ui-grid-pager-panel{position:absolute;left:0;bottom:0;width:100%;padding-top:3px;padding-bottom:3px}.ui-grid-pager-container{float:left}.ui-grid-pager-control{margin-right:10px;margin-left:10px;min-width:135px;float:left}.ui-grid-pager-control button{height:25px;min-width:26px;display:inline-block;margin-bottom:0;font-weight:400;text-align:center;cursor:pointer;background-image:none;border:1px solid #ccc;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-ms-user-select:none;user-select:none;color:#eee;background-color:#f3f3f3}.ui-grid-pager-control input[disabled],.ui-grid-pager-row-count-picker select[disabled],fieldset[disabled] .ui-grid-pager-control input,fieldset[disabled] .ui-grid-pager-row-count-picker select{cursor:not-allowed}.ui-grid-pager-control input,.ui-grid-pager-row-count-picker select{background-image:none;padding:5px 10px;font-size:12px;display:inline}.ui-grid-pager-control button.active.focus,.ui-grid-pager-control button.active:focus,.ui-grid-pager-control button.focus,.ui-grid-pager-control button:active.focus,.ui-grid-pager-control button:active:focus,.ui-grid-pager-control button:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.ui-grid-pager-control button.focus,.ui-grid-pager-control button:focus,.ui-grid-pager-control button:hover{text-decoration:none}.ui-grid-pager-control button.active,.ui-grid-pager-control button:active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.ui-grid-pager-control button.disabled,.ui-grid-pager-control button[disabled],fieldset[disabled] .ui-grid-pager-control button{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.ui-grid-pager-control button.disabled,fieldset[disabled] a.ui-grid-pager-control button{pointer-events:none}.ui-grid-pager-control button.focus,.ui-grid-pager-control button:focus{color:#eee;background-color:#dadada;border-color:#8c8c8c}.open>.dropdown-toggle.ui-grid-pager-control button,.ui-grid-pager-control button.active,.ui-grid-pager-control button:active,.ui-grid-pager-control button:hover{color:#eee;background-color:#dadada;border-color:#adadad}.open>.dropdown-toggle.ui-grid-pager-control button.focus,.open>.dropdown-toggle.ui-grid-pager-control button:focus,.open>.dropdown-toggle.ui-grid-pager-control button:hover,.ui-grid-pager-control button.active.focus,.ui-grid-pager-control button.active:focus,.ui-grid-pager-control button.active:hover,.ui-grid-pager-control button:active.focus,.ui-grid-pager-control button:active:focus,.ui-grid-pager-control button:active:hover{color:#eee;background-color:#c8c8c8;border-color:#8c8c8c}.open>.dropdown-toggle.ui-grid-pager-control button,.ui-grid-pager-control button.active,.ui-grid-pager-control button:active{background-image:none}.ui-grid-pager-control button.disabled,.ui-grid-pager-control button.disabled.active,.ui-grid-pager-control button.disabled.focus,.ui-grid-pager-control button.disabled:active,.ui-grid-pager-control button.disabled:focus,.ui-grid-pager-control button.disabled:hover,.ui-grid-pager-control button[disabled],.ui-grid-pager-control button[disabled].active,.ui-grid-pager-control button[disabled].focus,.ui-grid-pager-control button[disabled]:active,.ui-grid-pager-control button[disabled]:focus,.ui-grid-pager-control button[disabled]:hover,fieldset[disabled] .ui-grid-pager-control button,fieldset[disabled] .ui-grid-pager-control button.active,fieldset[disabled] .ui-grid-pager-control button.focus,fieldset[disabled] .ui-grid-pager-control button:active,fieldset[disabled] .ui-grid-pager-control button:focus,fieldset[disabled] .ui-grid-pager-control button:hover{background-color:#f3f3f3;border-color:#ccc}.ui-grid-pager-control button .badge{color:#f3f3f3;background-color:#eee}.ui-grid-pager-control input{color:#555;background-color:#fff;border:1px solid #ccc;-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,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;line-height:1.5;border-radius:3px;height:26px;width:50px;vertical-align:top}.ui-grid-pager-control input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.ui-grid-pager-control input::-moz-placeholder{color:#999;opacity:1}.ui-grid-pager-control input:-ms-input-placeholder{color:#999}.ui-grid-pager-control input::-webkit-input-placeholder{color:#999}.ui-grid-pager-control input[disabled],.ui-grid-pager-control input[readonly],fieldset[disabled] .ui-grid-pager-control input{background-color:#eee;opacity:1}textarea.ui-grid-pager-control input{height:auto}select.ui-grid-pager-control input{height:30px;line-height:30px}select[multiple].ui-grid-pager-control input,textarea.ui-grid-pager-control input{height:auto}.ui-grid-pager-control .ui-grid-pager-max-pages-number{vertical-align:bottom}.ui-grid-pager-control .ui-grid-pager-max-pages-number>*{vertical-align:middle}.ui-grid-pager-control .first-bar{width:10px;border-left:2px solid #4d4d4d;margin-top:-6px;height:12px;margin-left:-3px}.ui-grid-pager-control .first-triangle{width:0;height:0;border-style:solid;border-width:5px 8.7px 5px 0;border-color:transparent #4d4d4d transparent transparent;margin-left:2px}.ui-grid-pager-control .next-triangle{margin-left:1px}.ui-grid-pager-control .prev-triangle{margin-left:0}.ui-grid-pager-control .last-triangle{width:0;height:0;border-style:solid;border-width:5px 0 5px 8.7px;border-color:transparent transparent transparent #4d4d4d;margin-left:-1px}.ui-grid-pager-control .last-bar{width:10px;border-left:2px solid #4d4d4d;margin-top:-6px;height:12px;margin-left:1px}.ui-grid-pager-row-count-picker{float:left}.ui-grid-pager-row-count-picker select{color:#555;background-color:#fff;border:1px solid #ccc;-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,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;line-height:1.5;border-radius:3px;height:26px;width:67px}.ui-grid-pager-row-count-picker select:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.ui-grid-pager-row-count-picker select::-moz-placeholder{color:#999;opacity:1}.ui-grid-pager-row-count-picker select:-ms-input-placeholder{color:#999}.ui-grid-pager-row-count-picker select::-webkit-input-placeholder{color:#999}.ui-grid-pager-row-count-picker select[disabled],.ui-grid-pager-row-count-picker select[readonly],fieldset[disabled] .ui-grid-pager-row-count-picker select{background-color:#eee;opacity:1}textarea.ui-grid-pager-row-count-picker select{height:auto}select.ui-grid-pager-row-count-picker select{height:30px;line-height:30px}select[multiple].ui-grid-pager-row-count-picker select,textarea.ui-grid-pager-row-count-picker select{height:auto}.ui-grid-pager-row-count-picker .ui-grid-pager-row-count-label{margin-top:3px}.ui-grid-pager-count-container{float:right;margin-top:4px;min-width:50px}.ui-grid-pager-count-container .ui-grid-pager-count{margin-right:10px;margin-left:10px;float:right}.ui-grid-pinned-container{position:absolute;display:inline;top:0}.ui-grid-pinned-container.ui-grid-pinned-container-left{float:left;left:0}.ui-grid-pinned-container.ui-grid-pinned-container-right{float:right;right:0}.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-cell:last-child,.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:last-child{box-sizing:border-box;border-right:1px solid;border-width:1px;border-right-color:#aeaeae}.ui-grid-pinned-container .ui-grid-cell:not(:last-child) .ui-grid-vertical-bar,.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:not(:last-child) .ui-grid-vertical-bar{width:1px}.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:not(:last-child) .ui-grid-vertical-bar{background-color:#d4d4d4}.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-cell:not(:last-child) .ui-grid-vertical-bar{background-color:#aeaeae}.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:last-child .ui-grid-vertical-bar{right:-1px;width:1px;background-color:#aeaeae}.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-cell:first-child,.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-header-cell:first-child{box-sizing:border-box;border-left:1px solid;border-width:1px;border-left-color:#aeaeae}.ui-grid-pinned-container .ui-grid-cell:not(:first-child) .ui-grid-vertical-bar,.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-header-cell:not(:first-child) .ui-grid-vertical-bar{width:1px}.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-header-cell:not(:first-child) .ui-grid-vertical-bar{background-color:#d4d4d4}.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-cell:not(:last-child) .ui-grid-vertical-bar{background-color:#aeaeae}.ui-grid-pinned-container.ui-grid-pinned-container-first .ui-grid-header-cell:first-child .ui-grid-vertical-bar{left:-1px;width:1px;background-color:#aeaeae}.ui-grid-column-resizer{top:0;bottom:0;width:5px;position:absolute;cursor:col-resize}.ui-grid-column-resizer.left{left:0}.ui-grid-column-resizer.right{right:0}.ui-grid-header-cell:last-child .ui-grid-column-resizer.right{border-right:1px solid #d4d4d4}.ui-grid[dir=rtl] .ui-grid-header-cell:last-child .ui-grid-column-resizer.right{border-right:0}.ui-grid[dir=rtl] .ui-grid-header-cell:last-child .ui-grid-column-resizer.left{border-left:1px solid #d4d4d4}.ui-grid.column-resizing{cursor:col-resize}.ui-grid.column-resizing .ui-grid-resize-overlay{position:absolute;top:0;height:100%;width:1px;background-color:#aeaeae}.ui-grid-row-saving .ui-grid-cell{color:#848484!important}.ui-grid-row-dirty .ui-grid-cell{color:#610b38}.ui-grid-row-error .ui-grid-cell{color:red!important}.ui-grid-row.ui-grid-row-selected>[ui-grid-row]>.ui-grid-cell{background-color:#c9dde1}.ui-grid-disable-selection{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ui-grid-selection-row-header-buttons{cursor:pointer;opacity:.1}.ui-grid-selection-row-header-buttons.ui-grid-all-selected,.ui-grid-selection-row-header-buttons.ui-grid-row-selected{opacity:1}.ui-grid-tree-row-header-buttons.ui-grid-tree-header{cursor:pointer;opacity:1}.ui-grid-tree-header-row{font-weight:700!important}.ui-grid-icon-plus-squared:before{content:'\c350'}.ui-grid-icon-minus-squared:before{content:'\c351'}.ui-grid-icon-search:before{content:'\c352'}.ui-grid-icon-cancel:before{content:'\c353'}.ui-grid-icon-info-circled:before{content:'\c354'}.ui-grid-icon-lock:before{content:'\c355'}.ui-grid-icon-lock-open:before{content:'\c356'}.ui-grid-icon-pencil:before{content:'\c357'}.ui-grid-icon-down-dir:before{content:'\c358'}.ui-grid-icon-up-dir:before{content:'\c359'}.ui-grid-icon-left-dir:before{content:'\c35a'}.ui-grid-icon-right-dir:before{content:'\c35b'}.ui-grid-icon-left-open:before{content:'\c35c'}.ui-grid-icon-right-open:before{content:'\c35d'}.ui-grid-icon-angle-down:before{content:'\c35e'}.ui-grid-icon-filter:before{content:'\c35f'}.ui-grid-icon-sort-alt-up:before{content:'\c360'}.ui-grid-icon-sort-alt-down:before{content:'\c361'}.ui-grid-icon-ok:before{content:'\c362'}.ui-grid-icon-menu:before{content:'\c363'}.ui-grid-icon-indent-left:before{content:'\e800'}.ui-grid-icon-indent-right:before{content:'\e801'}.ui-grid-icon-spin5:before{content:'\ea61'}.jstree-children,.jstree-container-ul,.jstree-node{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-anchor,.jstree-icon,.jstree-icon:empty{display:inline-block;margin:0;vertical-align:top}.jstree-node{white-space:nowrap}.jstree-anchor{white-space:nowrap;padding:0 4px 0 1px}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:active,.jstree-anchor:hover,.jstree-anchor:link,.jstree-anchor:visited{text-decoration:none;color:inherit}.jstree-icon,.jstree-icon:empty{text-decoration:none;padding:0;text-align:center}.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children,.jstree-anchor>.jstree-themeicon-hidden,.jstree-hidden,.jstree-no-icons .jstree-themeicon{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999}.vakata-context .vakata-context-hover>a,.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none;display:inline}.vakata-context li>a{display:block;padding:0 2em;text-decoration:none;width:auto;color:#000;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 #fff;border-radius:1px}.vakata-context li>a>i,.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==);background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:#fff;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context li>a>i{text-decoration:none;display:inline-block;height:2.4em;background:0 0;margin:0 0 0 -2em;vertical-align:top;text-align:center}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:#fff;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7);background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:#fff;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}#jstree-dnd{line-height:16px;margin:0;padding:4px}#jstree-dnd .jstree-copy,#jstree-dnd .jstree-icon{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}#jstree-dnd .jstree-ok{background:green}#jstree-dnd .jstree-er{background:red}#jstree-dnd .jstree-copy{margin:0 2px}.jstree-default .jstree-icon,.jstree-default .jstree-node{background-repeat:no-repeat;background-color:transparent}.jstree-default .jstree-anchor,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999}.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default .jstree-disabled{color:#666}.jstree-default .jstree-disabled.jstree-hovered{box-shadow:none}.jstree-default .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:700}.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none!important}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:0 0;box-shadow:none}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#e7f4f9}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:0 0}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}.jstree-default>.jstree-striped{min-width:100%;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==) left top}.jstree-default>.jstree-wholerow-ul .jstree-clicked,.jstree-default>.jstree-wholerow-ul .jstree-hovered{background:0 0;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;height:24px}.jstree-default .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-webkit-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:linear-gradient(to bottom,#beebff 0,#a8e4ff 100%)}.jstree-default .jstree-node{min-height:24px;line-height:24px;margin-left:24px;min-width:24px;background-position:-292px -4px;background-repeat:repeat-y}.jstree-default .jstree-anchor{line-height:24px;height:24px}.jstree-default .jstree-icon,.jstree-default .jstree-icon:empty{width:24px;height:24px;line-height:24px}.jstree-default .jstree-icon,.jstree-default .jstree-node{background-image:url(32px.png)}.jstree-default .jstree-last{background:0 0}.jstree-default .jstree-open>.jstree-ocl{background-position:-132px -4px}.jstree-default .jstree-closed>.jstree-ocl{background-position:-100px -4px}.jstree-default .jstree-leaf>.jstree-ocl{background-position:-68px -4px}.jstree-default .jstree-themeicon{background-position:-260px -4px}.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default>.jstree-no-dots .jstree-node{background:0 0}.jstree-default>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -4px}.jstree-default>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -4px}.jstree-default .jstree-disabled,.jstree-default .jstree-disabled.jstree-hovered{background:0 0}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-checkbox{background-position:-164px -4px}.jstree-default .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default .jstree-checked>.jstree-checkbox,.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-228px -4px}.jstree-default .jstree-checked>.jstree-checkbox:hover,.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{margin-right:24px;background-position:100% 1px;background-repeat:repeat-y}.jstree-default.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default .jstree-file{background:url(32px.png) -100px -68px no-repeat}.jstree-default .jstree-folder{background:url(32px.png) -260px -4px no-repeat}.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default{line-height:24px;padding:0 4px}#jstree-dnd.jstree-default .jstree-er,#jstree-dnd.jstree-default .jstree-ok{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default i{background:0 0;width:24px;height:24px;line-height:24px}#jstree-dnd.jstree-default .jstree-ok{background-position:-4px -68px}#jstree-dnd.jstree-default .jstree-er{background-position:-36px -68px}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px;background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon,.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small .jstree-icon,.jstree-default-small .jstree-node{background-image:url(32px.png)}.jstree-default-small .jstree-last{background:0 0}.jstree-default-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-small .jstree-themeicon{background-position:-263px -7px}.jstree-default-small>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-small>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-small .jstree-disabled,.jstree-default-small .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-small .jstree-checked>.jstree-checkbox,.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-small .jstree-checked>.jstree-checkbox:hover,.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px;background-position:100% 1px;background-repeat:repeat-y}.jstree-default-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-small .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-small .jstree-file{background:url(32px.png) -103px -71px no-repeat}.jstree-default-small .jstree-folder{background:url(32px.png) -263px -7px no-repeat}.jstree-default-small>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-small{line-height:18px;padding:0 4px}#jstree-dnd.jstree-default-small .jstree-er,#jstree-dnd.jstree-default-small .jstree-ok{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-small i{background:0 0;width:18px;height:18px;line-height:18px}#jstree-dnd.jstree-default-small .jstree-ok{background-position:-7px -71px}#jstree-dnd.jstree-default-small .jstree-er{background-position:-39px -71px}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px;background-position:-288px 0;background-repeat:repeat-y}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon,.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large .jstree-icon,.jstree-default-large .jstree-node{background-image:url(32px.png)}.jstree-default-large .jstree-last{background:0 0}.jstree-default-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-large .jstree-themeicon{background-position:-256px 0}.jstree-default-large>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-large>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-large .jstree-disabled,.jstree-default-large .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-large .jstree-checkbox{background-position:-160px 0}.jstree-default-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-large .jstree-checked>.jstree-checkbox,.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-224px 0}.jstree-default-large .jstree-checked>.jstree-checkbox:hover,.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-large .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-large>.jstree-striped{background-size:auto 64px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px;background-position:100% 1px;background-repeat:repeat-y}.jstree-default-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-large .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-large .jstree-file{background:url(32px.png) -96px -64px no-repeat}.jstree-default-large .jstree-folder{background:url(32px.png) -256px 0 no-repeat}.jstree-default-large>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-large{line-height:32px;padding:0 4px}#jstree-dnd.jstree-default-large .jstree-er,#jstree-dnd.jstree-default-large .jstree-ok{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-large i{background:0 0;width:32px;height:32px;line-height:32px}#jstree-dnd.jstree-default-large .jstree-ok{background-position:0 -64px}#jstree-dnd.jstree-default-large .jstree-er{background-position:-32px -64px}.jstree-default-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==)}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}@media (max-width:768px){#jstree-dnd.jstree-dnd-responsive{line-height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}#jstree-dnd.jstree-dnd-responsive>i{background:0 0;width:40px;height:40px}#jstree-dnd.jstree-dnd-responsive>.jstree-ok{background-image:url(40px.png);background-position:0 -200px;background-size:120px 240px}#jstree-dnd.jstree-dnd-responsive>.jstree-er{background-image:url(40px.png);background-position:-40px -200px;background-size:120px 240px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive .jstree-node{background:0 0}.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-size:120px 240px}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-responsive .jstree-open>.jstree-ocl{background-position:0 0!important}.jstree-default-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px!important}.jstree-default-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0!important}.jstree-default-responsive .jstree-themeicon{background-position:-40px -40px}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-responsive .jstree-checked>.jstree-checkbox,.jstree-default-responsive .jstree-checked>.jstree-checkbox:hover,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-responsive>.jstree-striped{background:0 0}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,.7);border-bottom:1px solid rgba(64,64,64,.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-node>.jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-image:url(40px.png);background-size:120px 240px}.jstree-default-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-responsive .jstree-last{background:0 0}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-responsive .jstree-file{background:url(40px.png) 0 -160px no-repeat;background-size:120px 240px}.jstree-default-responsive .jstree-folder{background:url(40px.png) -40px -40px no-repeat;background-size:120px 240px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}
\ No newline at end of file
+ */.ui-grid{border:1px solid #d4d4d4;box-sizing:content-box;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-o-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}.ui-grid-vertical-bar{position:absolute;right:0;width:0}.ui-grid-scrollbar-placeholder{background-color:transparent}.ui-grid-cell:not(:last-child) .ui-grid-vertical-bar,.ui-grid-header-cell:not(:last-child) .ui-grid-vertical-bar{width:1px;background-color:#d4d4d4}.ui-grid-header-cell:last-child .ui-grid-vertical-bar{right:-1px;width:1px;background-color:#d4d4d4}.ui-grid-clearfix:after,.ui-grid-clearfix:before{content:"";display:table}.ui-grid-invisible{visibility:hidden}.ui-grid-contents-wrapper{position:relative;height:100%;width:100%}.ui-grid-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.ui-grid-top-panel-background{background:#f3f3f3;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee)}.ui-grid-header{border-bottom:1px solid #d4d4d4}.ui-grid-top-panel{position:relative;overflow:hidden;font-weight:700;background:#f3f3f3;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee);-moz-border-radius-topright:-1px;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:-1px;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:-1px -1px 0 0;border-radius:-1px -1px 0 0}.ui-grid-header-viewport{overflow:hidden}.ui-grid-header-canvas:after,.ui-grid-header-canvas:before{content:"";display:table;line-height:0}.ui-grid-header-cell-wrapper{position:relative;display:table;box-sizing:border-box;height:100%}.ui-grid-header-cell-row{display:table-row;position:relative}.ui-grid-header-cell{position:relative;background-color:inherit;border-right:1px solid;border-color:#d4d4d4;display:table-cell;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:0}.ui-grid-header-cell:last-child{border-right:0}.ui-grid-header-cell .sortable{cursor:pointer}.ui-grid-header-cell .ui-grid-sort-priority-number{margin-left:-8px}.ui-grid-header .ui-grid-vertical-bar{top:0;bottom:0}.ui-grid-column-menu-button{position:absolute;right:1px;top:0}.ui-grid-column-menu-button .ui-grid-icon-angle-down{vertical-align:sub}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button,.ui-grid-pager-control button{vertical-align:middle;touch-action:manipulation;-webkit-user-select:none;white-space:nowrap}.ui-grid-column-menu-button-last-col{margin-right:25px}.ui-grid-column-menu{position:absolute}.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-add,.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove{-webkit-transition:all 50ms linear;-moz-transition:all 50ms linear;-o-transition:all 50ms linear;transition:all 50ms linear;display:block!important}.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-add.ng-hide-add-active,.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);-o-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-add,.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove.ng-hide-remove-active{-webkit-transform:translateY(0);-moz-transform:translateY(0);-o-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-add,.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove{-webkit-transition:all 50ms linear;-moz-transition:all 50ms linear;-o-transition:all 50ms linear;transition:all 50ms linear;display:block!important}.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-add.ng-hide-add-active,.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);-o-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-add,.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid.ng-hide-remove.ng-hide-remove-active{-webkit-transform:translateY(0);-moz-transform:translateY(0);-o-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.ui-grid-filter-container{padding:4px 10px;position:relative}.ui-grid-filter-container .ui-grid-filter-button{position:absolute;top:0;bottom:0;right:0}.ui-grid-filter-container .ui-grid-filter-button [class^=ui-grid-icon]{position:absolute;top:50%;line-height:32px;margin-top:-16px;right:10px;opacity:.66}.ui-grid-filter-container .ui-grid-filter-button [class^=ui-grid-icon]:hover{opacity:1}.ui-grid-filter-container .ui-grid-filter-button-select{position:absolute;top:0;bottom:0;right:0}.ui-grid-filter-container .ui-grid-filter-button-select [class^=ui-grid-icon]{position:absolute;top:50%;line-height:32px;margin-top:-16px;right:0;opacity:.66}.ui-grid-filter-container .ui-grid-filter-button-select [class^=ui-grid-icon]:hover{opacity:1}select.ui-grid-filter-select{padding:0;margin:0;width:90%;border:1px solid #d4d4d4;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:0;border-radius:0}select.ui-grid-filter-select:hover{border:1px solid #d4d4d4}.ui-grid-no-row-overlay,.ui-grid-render-container{-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0}.ui-grid-filter-cancel-button-hidden select.ui-grid-filter-select{width:100%}.ui-grid-render-container{position:inherit;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:0;border-radius:0}.ui-grid-render-container:focus{outline:0}.ui-grid-viewport{min-height:20px;position:relative;overflow-y:scroll;-webkit-overflow-scrolling:touch}.ui-grid-viewport:focus{outline:0!important}.ui-grid-canvas{position:relative;padding-top:1px}.ui-grid-row:nth-child(odd) .ui-grid-cell{background-color:#fdfdfd}.ui-grid-footer-panel-background,.ui-grid-no-row-overlay{background:#f3f3f3;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0)}.ui-grid-row:nth-child(even) .ui-grid-cell{background-color:#f3f3f3}.ui-grid-row:last-child .ui-grid-cell{border-bottom-color:#d4d4d4;border-bottom-style:solid}.ui-grid-no-row-overlay{position:absolute;top:0;bottom:0;left:0;right:0;margin:10%;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee);-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #d4d4d4;font-size:2em;text-align:center;-webkit-border-radius:0;border-radius:0}.ui-grid-no-row-overlay>*{position:absolute;display:table;margin:auto 0;width:100%;top:0;bottom:0;left:0;right:0;opacity:.66}.ui-grid-cell{overflow:hidden;float:left;background-color:inherit;border-right:1px solid;border-color:#d4d4d4}.ui-grid-cell:last-child{border-right:0}.ui-grid-cell-contents{padding:5px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;overflow:hidden;height:100%}.ui-grid-cell-contents-hidden{visibility:hidden;width:0;height:0;display:none}.ui-grid-row .ui-grid-cell.ui-grid-row-header-cell{background-color:#f0f0ee;border-bottom:solid 1px #d4d4d4}.ui-grid-footer-panel-background{background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee)}.ui-grid-footer-panel{position:relative;border-bottom:1px solid #d4d4d4;border-top:1px solid #d4d4d4;overflow:hidden;font-weight:700;background:#f3f3f3;background:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(1,#fff));background:-ms-linear-gradient(bottom,#eee,#fff);background:-moz-linear-gradient(center bottom,#eee 0,#fff 100%);background:-o-linear-gradient(#fff,#eee);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);-moz-border-radius-topright:-1px;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:-1px;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:-1px -1px 0 0;border-radius:-1px -1px 0 0}.ui-grid-grid-footer{float:left;width:100%}.ui-grid-footer-viewport{overflow:hidden}.ui-grid-footer-canvas{position:relative}.ui-grid-footer-canvas:after,.ui-grid-footer-canvas:before{content:"";display:table;line-height:0}.ui-grid-footer-cell-wrapper{position:relative;display:table;box-sizing:border-box;height:100%}.ui-grid-menu,.ui-grid-menu-button{position:absolute;cursor:pointer;z-index:2}.ui-grid-footer-cell-row{display:table-row}.ui-grid-footer-cell{overflow:hidden;background-color:inherit;border-right:1px solid;border-color:#d4d4d4;box-sizing:border-box;display:table-cell}.ui-grid-footer-cell:last-child{border-right:0}input[type=text].ui-grid-filter-input{padding:0;margin:0;width:100%;border:1px solid #d4d4d4;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0;-moz-background-clip:padding-box;-webkit-background-clip:padding-box;background-clip:padding-box;-webkit-border-radius:0;border-radius:0}input[type=text].ui-grid-filter-input:hover{border:1px solid #d4d4d4}.ui-grid-menu-button{right:0;top:0;background:#f3f3f3;border:1px solid #d4d4d4;height:31px;font-weight:400}.ui-grid-menu-button .ui-grid-icon-container{margin-top:3px}.ui-grid-menu-button .ui-grid-menu{right:0}.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid{overflow:scroll;max-height:300px;border:1px solid #d4d4d4}.ui-grid-menu{padding:0 10px 20px;box-sizing:border-box}.ui-grid-menu .ui-grid-menu-inner{background:#f3f3f3;border:1px solid #d4d4d4;position:relative;white-space:nowrap;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:0 10px 20px rgba(0,0,0,.2),inset 0 12px 12px -14px rgba(0,0,0,.2);-moz-box-shadow:0 10px 20px rgba(0,0,0,.2),inset 0 12px 12px -14px rgba(0,0,0,.2);box-shadow:0 10px 20px rgba(0,0,0,.2),inset 0 12px 12px -14px rgba(0,0,0,.2)}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button{position:absolute;right:0;top:0;display:inline-block;margin-bottom:0;font-weight:400;text-align:center;cursor:pointer;background-image:none;border:1px solid transparent;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:1px;font-size:10px;line-height:1;border-radius:2px;color:transparent;background-color:transparent}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:hover{text-decoration:none}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled],fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button,.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus,.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:hover,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active:hover,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active:hover,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:hover{color:transparent;background-color:rgba(0,0,0,0);border-color:transparent}.open>.dropdown-toggle.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active{background-image:none}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled.active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled.focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled:active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.disabled:hover,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled],.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled].active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled].focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled]:active,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled]:focus,.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button[disabled]:hover,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.active,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button.focus,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:active,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:focus,fieldset[disabled] .ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button:hover{background-color:transparent;border-color:transparent}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button .badge{color:transparent;background-color:transparent}.ui-grid-menu .ui-grid-menu-inner .ui-grid-menu-close-button>i{opacity:.75;color:#000}div.ui-grid-cell input,div.ui-grid-cell input:focus{color:inherit;outline:0}.ui-grid-menu .ui-grid-menu-inner ul{margin:0;padding:0;list-style-type:none}.ui-grid-menu .ui-grid-menu-inner ul li{padding:0}.ui-grid-menu .ui-grid-menu-inner ul li button{min-width:100%;padding:8px;text-align:left;background:0 0;border:none}.ui-grid-menu .ui-grid-menu-inner ul li button:focus,.ui-grid-menu .ui-grid-menu-inner ul li button:hover{-webkit-box-shadow:inset 0 0 14px rgba(0,0,0,.2);-moz-box-shadow:inset 0 0 14px rgba(0,0,0,.2);box-shadow:inset 0 0 14px rgba(0,0,0,.2)}.ui-grid-menu .ui-grid-menu-inner ul li button.ui-grid-menu-item-active{-webkit-box-shadow:inset 0 0 14px rgba(0,0,0,.2);-moz-box-shadow:inset 0 0 14px rgba(0,0,0,.2);box-shadow:inset 0 0 14px rgba(0,0,0,.2);background-color:#cecece}.ui-grid-menu .ui-grid-menu-inner ul li:not(:last-child)>button{border-bottom:1px solid #d4d4d4}.ui-grid-sortarrow{right:5px;position:absolute;width:20px;top:0;bottom:0;background-position:center}.ui-grid-sortarrow.down{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}@font-face{font-family:ui-grid;src:url(ui-grid.eot);src:url(ui-grid.eot#iefix) format('embedded-opentype'),url(ui-grid.woff) format('woff'),url(ui-grid.ttf) format('truetype'),url(ui-grid.svg?#ui-grid) format('svg');font-weight:400;font-style:normal}[class*=" ui-grid-icon"]:before,[class^=ui-grid-icon]:before{font-family:ui-grid;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em}.ui-grid-icon-blank::before{width:1em;content:' '}.ui-grid[dir=rtl] .ui-grid-cell,.ui-grid[dir=rtl] .ui-grid-footer-cell,.ui-grid[dir=rtl] .ui-grid-header-cell{float:right!important}.scrollFiller,.ui-grid-pager-container,.ui-grid-pager-row-count-picker{float:left}.ui-grid[dir=rtl] .ui-grid-column-menu-button{position:absolute;left:1px;top:0;right:inherit}.ui-grid[dir=rtl] .ui-grid-cell:first-child,.ui-grid[dir=rtl] .ui-grid-footer-cell:first-child,.ui-grid[dir=rtl] .ui-grid-header-cell:first-child{border-right:0}.ui-grid[dir=rtl] .ui-grid-cell:last-child,.ui-grid[dir=rtl] .ui-grid-header-cell:last-child{border-right:1px solid #d4d4d4;border-left:0}.ui-grid[dir=rtl] .ui-grid-cell:first-child .ui-grid-vertical-bar,.ui-grid[dir=rtl] .ui-grid-footer-cell:first-child .ui-grid-vertical-bar,.ui-grid[dir=rtl] .ui-grid-header-cell:first-child .ui-grid-vertical-bar{width:0}.ui-grid[dir=rtl] .ui-grid-menu-button{z-index:2;position:absolute;left:0;right:auto;background:#f3f3f3;border:1px solid #d4d4d4;cursor:pointer;min-height:27px;font-weight:400}.ui-grid[dir=rtl] .ui-grid-menu-button .ui-grid-menu{left:0;right:auto}.ui-grid[dir=rtl] .ui-grid-filter-container .ui-grid-filter-button{right:initial;left:0}.ui-grid[dir=rtl] .ui-grid-filter-container .ui-grid-filter-button [class^=ui-grid-icon]{right:initial;left:10px}.ui-grid-animate-spin{-moz-animation:ui-grid-spin 2s infinite linear;-o-animation:ui-grid-spin 2s infinite linear;-webkit-animation:ui-grid-spin 2s infinite linear;animation:ui-grid-spin 2s infinite linear;display:inline-block}@-moz-keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-o-keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-ms-keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes ui-grid-spin{0%{-moz-transform:rotate(0);-o-transform:rotate(0);-webkit-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.ui-grid-cell-focus{outline:0;background-color:#b3c4c7}.ui-grid-focuser{position:absolute;left:0;top:0;z-index:-1;width:100%;height:100%}.ui-grid-focuser:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.ui-grid-offscreen{display:block;position:absolute;left:-10000px;top:-10000px;clip:rect(0,0,0,0)}div.ui-grid-cell input{border-radius:inherit;padding:0;width:100%;height:auto;font:inherit}div.ui-grid-cell input[type=checkbox]{margin:9px 0 0 6px;width:auto}div.ui-grid-cell input.ng-invalid{border:1px solid #fc8f8f}.movingColumn,.scrollFiller,div.ui-grid-cell input.ng-valid{border:1px solid #d4d4d4}.expandableRow .ui-grid-row:nth-child(odd) .ui-grid-cell{background-color:#fdfdfd}.expandableRow .ui-grid-row:nth-child(even) .ui-grid-cell{background-color:#f3f3f3}.ui-grid-expandable-buttons-cell i{pointer-events:all}.movingColumn{position:absolute;top:0;box-shadow:inset 0 0 14px rgba(0,0,0,.2)}.movingColumn .ui-grid-icon-angle-down{display:none}#ui-grid-twbs #ui-grid-twbs .btn-group-vertical>.btn-group:after,#ui-grid-twbs #ui-grid-twbs .btn-group-vertical>.btn-group:before,#ui-grid-twbs #ui-grid-twbs .btn-toolbar:after,#ui-grid-twbs #ui-grid-twbs .btn-toolbar:before,#ui-grid-twbs #ui-grid-twbs .form-horizontal .form-group:after,#ui-grid-twbs #ui-grid-twbs .form-horizontal .form-group:before{content:" ";display:table}.ui-grid-pager-panel{position:absolute;left:0;bottom:0;width:100%;padding-top:3px;padding-bottom:3px}.ui-grid-pager-control{margin-right:10px;margin-left:10px;min-width:135px;float:left}.ui-grid-pager-control button{height:25px;min-width:26px;display:inline-block;margin-bottom:0;font-weight:400;text-align:center;cursor:pointer;background-image:none;border:1px solid #ccc;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#eee;background-color:#f3f3f3}.ui-grid-pager-control input[disabled],.ui-grid-pager-row-count-picker select[disabled],fieldset[disabled] .ui-grid-pager-control input,fieldset[disabled] .ui-grid-pager-row-count-picker select{cursor:not-allowed}.ui-grid-pager-control input,.ui-grid-pager-row-count-picker select{background-image:none;padding:5px 10px;font-size:12px;display:inline}.ui-grid-pager-control button.active.focus,.ui-grid-pager-control button.active:focus,.ui-grid-pager-control button.focus,.ui-grid-pager-control button:active.focus,.ui-grid-pager-control button:active:focus,.ui-grid-pager-control button:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.ui-grid-pager-control button.focus,.ui-grid-pager-control button:focus,.ui-grid-pager-control button:hover{text-decoration:none}.ui-grid-pager-control button.active,.ui-grid-pager-control button:active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.ui-grid-pager-control button.disabled,.ui-grid-pager-control button[disabled],fieldset[disabled] .ui-grid-pager-control button{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.ui-grid-pager-control button.disabled,fieldset[disabled] a.ui-grid-pager-control button{pointer-events:none}.ui-grid-pager-control button.focus,.ui-grid-pager-control button:focus{color:#eee;background-color:#dadada;border-color:#8c8c8c}.open>.dropdown-toggle.ui-grid-pager-control button,.ui-grid-pager-control button.active,.ui-grid-pager-control button:active,.ui-grid-pager-control button:hover{color:#eee;background-color:#dadada;border-color:#adadad}.open>.dropdown-toggle.ui-grid-pager-control button.focus,.open>.dropdown-toggle.ui-grid-pager-control button:focus,.open>.dropdown-toggle.ui-grid-pager-control button:hover,.ui-grid-pager-control button.active.focus,.ui-grid-pager-control button.active:focus,.ui-grid-pager-control button.active:hover,.ui-grid-pager-control button:active.focus,.ui-grid-pager-control button:active:focus,.ui-grid-pager-control button:active:hover{color:#eee;background-color:#c8c8c8;border-color:#8c8c8c}.open>.dropdown-toggle.ui-grid-pager-control button,.ui-grid-pager-control button.active,.ui-grid-pager-control button:active{background-image:none}.ui-grid-pager-control button.disabled,.ui-grid-pager-control button.disabled.active,.ui-grid-pager-control button.disabled.focus,.ui-grid-pager-control button.disabled:active,.ui-grid-pager-control button.disabled:focus,.ui-grid-pager-control button.disabled:hover,.ui-grid-pager-control button[disabled],.ui-grid-pager-control button[disabled].active,.ui-grid-pager-control button[disabled].focus,.ui-grid-pager-control button[disabled]:active,.ui-grid-pager-control button[disabled]:focus,.ui-grid-pager-control button[disabled]:hover,fieldset[disabled] .ui-grid-pager-control button,fieldset[disabled] .ui-grid-pager-control button.active,fieldset[disabled] .ui-grid-pager-control button.focus,fieldset[disabled] .ui-grid-pager-control button:active,fieldset[disabled] .ui-grid-pager-control button:focus,fieldset[disabled] .ui-grid-pager-control button:hover{background-color:#f3f3f3;border-color:#ccc}.ui-grid-pager-control button .badge{color:#f3f3f3;background-color:#eee}.ui-grid-pager-control input{color:#555;background-color:#fff;border:1px solid #ccc;-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,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;line-height:1.5;border-radius:3px;height:26px;width:50px;vertical-align:top}.ui-grid-pager-control input:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.ui-grid-pager-control input::-moz-placeholder{color:#999;opacity:1}.ui-grid-pager-control input:-ms-input-placeholder{color:#999}.ui-grid-pager-control input::-webkit-input-placeholder{color:#999}.ui-grid-pager-control input[disabled],.ui-grid-pager-control input[readonly],fieldset[disabled] .ui-grid-pager-control input{background-color:#eee;opacity:1}textarea.ui-grid-pager-control input{height:auto}select.ui-grid-pager-control input{height:30px;line-height:30px}select[multiple].ui-grid-pager-control input,textarea.ui-grid-pager-control input{height:auto}.ui-grid-pager-control .ui-grid-pager-max-pages-number{vertical-align:bottom}.ui-grid-pager-control .ui-grid-pager-max-pages-number>*{vertical-align:middle}.ui-grid-pager-control .first-bar{width:10px;border-left:2px solid #4d4d4d;margin-top:-6px;height:12px;margin-left:-3px}.ui-grid-pager-control .first-triangle{width:0;height:0;border-style:solid;border-width:5px 8.7px 5px 0;border-color:transparent #4d4d4d transparent transparent;margin-left:2px}.ui-grid-pager-control .next-triangle{margin-left:1px}.ui-grid-pager-control .prev-triangle{margin-left:0}.ui-grid-pager-control .last-triangle{width:0;height:0;border-style:solid;border-width:5px 0 5px 8.7px;border-color:transparent transparent transparent #4d4d4d;margin-left:-1px}.ui-grid-pager-control .last-bar{width:10px;border-left:2px solid #4d4d4d;margin-top:-6px;height:12px;margin-left:1px}.ui-grid-pager-row-count-picker select{color:#555;background-color:#fff;border:1px solid #ccc;-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,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;line-height:1.5;border-radius:3px;height:26px;width:67px}.ui-grid-pager-row-count-picker select:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.ui-grid-pager-row-count-picker select::-moz-placeholder{color:#999;opacity:1}.ui-grid-pager-row-count-picker select:-ms-input-placeholder{color:#999}.ui-grid-pager-row-count-picker select::-webkit-input-placeholder{color:#999}.ui-grid-pager-row-count-picker select[disabled],.ui-grid-pager-row-count-picker select[readonly],fieldset[disabled] .ui-grid-pager-row-count-picker select{background-color:#eee;opacity:1}textarea.ui-grid-pager-row-count-picker select{height:auto}select.ui-grid-pager-row-count-picker select{height:30px;line-height:30px}select[multiple].ui-grid-pager-row-count-picker select,textarea.ui-grid-pager-row-count-picker select{height:auto}.ui-grid-pager-row-count-picker .ui-grid-pager-row-count-label{margin-top:3px}.ui-grid-pager-count-container{float:right;margin-top:4px;min-width:50px}.ui-grid-pager-count-container .ui-grid-pager-count{margin-right:10px;margin-left:10px;float:right}.ui-grid-pinned-container{position:absolute;display:inline;top:0}.ui-grid-pinned-container.ui-grid-pinned-container-left{float:left;left:0}.ui-grid-pinned-container.ui-grid-pinned-container-right{float:right;right:0}.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-cell:last-child,.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:last-child{box-sizing:border-box;border-right:1px solid;border-width:1px;border-right-color:#aeaeae}.ui-grid-pinned-container .ui-grid-cell:not(:last-child) .ui-grid-vertical-bar,.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:not(:last-child) .ui-grid-vertical-bar{width:1px}.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:not(:last-child) .ui-grid-vertical-bar{background-color:#d4d4d4}.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-cell:not(:last-child) .ui-grid-vertical-bar{background-color:#aeaeae}.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:last-child .ui-grid-vertical-bar{right:-1px;width:1px;background-color:#aeaeae}.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-cell:first-child,.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-header-cell:first-child{box-sizing:border-box;border-left:1px solid;border-width:1px;border-left-color:#aeaeae}.ui-grid-pinned-container .ui-grid-cell:not(:first-child) .ui-grid-vertical-bar,.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-header-cell:not(:first-child) .ui-grid-vertical-bar{width:1px}.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-header-cell:not(:first-child) .ui-grid-vertical-bar{background-color:#d4d4d4}.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-cell:not(:last-child) .ui-grid-vertical-bar{background-color:#aeaeae}.ui-grid-pinned-container.ui-grid-pinned-container-first .ui-grid-header-cell:first-child .ui-grid-vertical-bar{left:-1px;width:1px;background-color:#aeaeae}.ui-grid-column-resizer{top:0;bottom:0;width:5px;position:absolute;cursor:col-resize}.ui-grid-column-resizer.left{left:0}.ui-grid-column-resizer.right{right:0}.ui-grid-header-cell:last-child .ui-grid-column-resizer.right{border-right:1px solid #d4d4d4}.ui-grid[dir=rtl] .ui-grid-header-cell:last-child .ui-grid-column-resizer.right{border-right:0}.ui-grid[dir=rtl] .ui-grid-header-cell:last-child .ui-grid-column-resizer.left{border-left:1px solid #d4d4d4}.ui-grid.column-resizing{cursor:col-resize}.ui-grid.column-resizing .ui-grid-resize-overlay{position:absolute;top:0;height:100%;width:1px;background-color:#aeaeae}.ui-grid-row-saving .ui-grid-cell{color:#848484!important}.ui-grid-row-dirty .ui-grid-cell{color:#610b38}.ui-grid-row-error .ui-grid-cell{color:red!important}.ui-grid-row.ui-grid-row-selected>[ui-grid-row]>.ui-grid-cell{background-color:#c9dde1}.ui-grid-disable-selection{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ui-grid-selection-row-header-buttons{cursor:pointer;opacity:.1}.ui-grid-selection-row-header-buttons.ui-grid-all-selected,.ui-grid-selection-row-header-buttons.ui-grid-row-selected{opacity:1}.ui-grid-tree-row-header-buttons.ui-grid-tree-header{cursor:pointer;opacity:1}.ui-grid-tree-header-row{font-weight:700!important}.ui-grid-icon-plus-squared:before{content:'\c350'}.ui-grid-icon-minus-squared:before{content:'\c351'}.ui-grid-icon-search:before{content:'\c352'}.ui-grid-icon-cancel:before{content:'\c353'}.ui-grid-icon-info-circled:before{content:'\c354'}.ui-grid-icon-lock:before{content:'\c355'}.ui-grid-icon-lock-open:before{content:'\c356'}.ui-grid-icon-pencil:before{content:'\c357'}.ui-grid-icon-down-dir:before{content:'\c358'}.ui-grid-icon-up-dir:before{content:'\c359'}.ui-grid-icon-left-dir:before{content:'\c35a'}.ui-grid-icon-right-dir:before{content:'\c35b'}.ui-grid-icon-left-open:before{content:'\c35c'}.ui-grid-icon-right-open:before{content:'\c35d'}.ui-grid-icon-angle-down:before{content:'\c35e'}.ui-grid-icon-filter:before{content:'\c35f'}.ui-grid-icon-sort-alt-up:before{content:'\c360'}.ui-grid-icon-sort-alt-down:before{content:'\c361'}.ui-grid-icon-ok:before{content:'\c362'}.ui-grid-icon-menu:before{content:'\c363'}.ui-grid-icon-indent-left:before{content:'\e800'}.ui-grid-icon-indent-right:before{content:'\e801'}.ui-grid-icon-spin5:before{content:'\ea61'}.jstree-children,.jstree-container-ul,.jstree-node{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-anchor,.jstree-icon,.jstree-icon:empty{display:inline-block;margin:0;vertical-align:top}.jstree-node{white-space:nowrap}.jstree-anchor{white-space:nowrap;padding:0 4px 0 1px}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:active,.jstree-anchor:hover,.jstree-anchor:link,.jstree-anchor:visited{text-decoration:none;color:inherit}.jstree-icon,.jstree-icon:empty{text-decoration:none;padding:0;text-align:center}.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children,.jstree-anchor>.jstree-themeicon-hidden,.jstree-hidden,.jstree-no-icons .jstree-themeicon{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999}.vakata-context .vakata-context-hover>a,.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none;display:inline}.vakata-context li>a{display:block;padding:0 2em;text-decoration:none;width:auto;color:#000;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 #fff;border-radius:1px}.vakata-context li>a>i,.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==);background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:#fff;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context li>a>i{text-decoration:none;display:inline-block;height:2.4em;background:0 0;margin:0 0 0 -2em;vertical-align:top;text-align:center}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:#fff;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7);background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:#fff;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}#jstree-dnd{line-height:16px;margin:0;padding:4px}#jstree-dnd .jstree-copy,#jstree-dnd .jstree-icon{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}#jstree-dnd .jstree-ok{background:green}#jstree-dnd .jstree-er{background:red}#jstree-dnd .jstree-copy{margin:0 2px}.jstree-default .jstree-icon,.jstree-default .jstree-node{background-repeat:no-repeat;background-color:transparent}.jstree-default .jstree-anchor,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999}.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default .jstree-disabled{color:#666}.jstree-default .jstree-disabled.jstree-hovered{box-shadow:none}.jstree-default .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:700}.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none!important}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:0 0;box-shadow:none}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#e7f4f9}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:0 0}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}.jstree-default>.jstree-striped{min-width:100%;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==) left top}.jstree-default>.jstree-wholerow-ul .jstree-clicked,.jstree-default>.jstree-wholerow-ul .jstree-hovered{background:0 0;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;height:24px}.jstree-default .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-webkit-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:linear-gradient(to bottom,#beebff 0,#a8e4ff 100%)}.jstree-default .jstree-node{min-height:24px;line-height:24px;margin-left:24px;min-width:24px;background-position:-292px -4px;background-repeat:repeat-y}.jstree-default .jstree-anchor{line-height:24px;height:24px}.jstree-default .jstree-icon,.jstree-default .jstree-icon:empty{width:24px;height:24px;line-height:24px}.jstree-default .jstree-icon,.jstree-default .jstree-node{background-image:url(32px.png)}.jstree-default .jstree-last{background:0 0}.jstree-default .jstree-open>.jstree-ocl{background-position:-132px -4px}.jstree-default .jstree-closed>.jstree-ocl{background-position:-100px -4px}.jstree-default .jstree-leaf>.jstree-ocl{background-position:-68px -4px}.jstree-default .jstree-themeicon{background-position:-260px -4px}.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default>.jstree-no-dots .jstree-node{background:0 0}.jstree-default>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -4px}.jstree-default>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -4px}.jstree-default .jstree-disabled,.jstree-default .jstree-disabled.jstree-hovered{background:0 0}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-checkbox{background-position:-164px -4px}.jstree-default .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default .jstree-checked>.jstree-checkbox,.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-228px -4px}.jstree-default .jstree-checked>.jstree-checkbox:hover,.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{margin-right:24px;background-position:100% 1px;background-repeat:repeat-y}.jstree-default.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default .jstree-file{background:url(32px.png) -100px -68px no-repeat}.jstree-default .jstree-folder{background:url(32px.png) -260px -4px no-repeat}.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default{line-height:24px;padding:0 4px}#jstree-dnd.jstree-default .jstree-er,#jstree-dnd.jstree-default .jstree-ok{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default i{background:0 0;width:24px;height:24px;line-height:24px}#jstree-dnd.jstree-default .jstree-ok{background-position:-4px -68px}#jstree-dnd.jstree-default .jstree-er{background-position:-36px -68px}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px;background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon,.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small .jstree-icon,.jstree-default-small .jstree-node{background-image:url(32px.png)}.jstree-default-small .jstree-last{background:0 0}.jstree-default-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-small .jstree-themeicon{background-position:-263px -7px}.jstree-default-small>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-small>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-small .jstree-disabled,.jstree-default-small .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-small .jstree-checked>.jstree-checkbox,.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-small .jstree-checked>.jstree-checkbox:hover,.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px;background-position:100% 1px;background-repeat:repeat-y}.jstree-default-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-small .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-small .jstree-file{background:url(32px.png) -103px -71px no-repeat}.jstree-default-small .jstree-folder{background:url(32px.png) -263px -7px no-repeat}.jstree-default-small>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-small{line-height:18px;padding:0 4px}#jstree-dnd.jstree-default-small .jstree-er,#jstree-dnd.jstree-default-small .jstree-ok{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-small i{background:0 0;width:18px;height:18px;line-height:18px}#jstree-dnd.jstree-default-small .jstree-ok{background-position:-7px -71px}#jstree-dnd.jstree-default-small .jstree-er{background-position:-39px -71px}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px;background-position:-288px 0;background-repeat:repeat-y}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon,.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large .jstree-icon,.jstree-default-large .jstree-node{background-image:url(32px.png)}.jstree-default-large .jstree-last{background:0 0}.jstree-default-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-large .jstree-themeicon{background-position:-256px 0}.jstree-default-large>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-large>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-large .jstree-disabled,.jstree-default-large .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-large .jstree-checkbox{background-position:-160px 0}.jstree-default-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-large .jstree-checked>.jstree-checkbox,.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-224px 0}.jstree-default-large .jstree-checked>.jstree-checkbox:hover,.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-large .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-large>.jstree-striped{background-size:auto 64px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px;background-position:100% 1px;background-repeat:repeat-y}.jstree-default-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-large .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-large .jstree-file{background:url(32px.png) -96px -64px no-repeat}.jstree-default-large .jstree-folder{background:url(32px.png) -256px 0 no-repeat}.jstree-default-large>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}#jstree-dnd.jstree-default-large{line-height:32px;padding:0 4px}#jstree-dnd.jstree-default-large .jstree-er,#jstree-dnd.jstree-default-large .jstree-ok{background-image:url(32px.png);background-repeat:no-repeat;background-color:transparent}#jstree-dnd.jstree-default-large i{background:0 0;width:32px;height:32px;line-height:32px}#jstree-dnd.jstree-default-large .jstree-ok{background-position:0 -64px}#jstree-dnd.jstree-default-large .jstree-er{background-position:-32px -64px}.jstree-default-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==)}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}@media (max-width:768px){#jstree-dnd.jstree-dnd-responsive{line-height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}#jstree-dnd.jstree-dnd-responsive>i{background:0 0;width:40px;height:40px}#jstree-dnd.jstree-dnd-responsive>.jstree-ok{background-image:url(40px.png);background-position:0 -200px;background-size:120px 240px}#jstree-dnd.jstree-dnd-responsive>.jstree-er{background-image:url(40px.png);background-position:-40px -200px;background-size:120px 240px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive .jstree-node{background:0 0}.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-size:120px 240px}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-responsive .jstree-open>.jstree-ocl{background-position:0 0!important}.jstree-default-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px!important}.jstree-default-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0!important}.jstree-default-responsive .jstree-themeicon{background-position:-40px -40px}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-responsive .jstree-checked>.jstree-checkbox,.jstree-default-responsive .jstree-checked>.jstree-checkbox:hover,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-responsive>.jstree-striped{background:0 0}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,.7);border-bottom:1px solid rgba(64,64,64,.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-node>.jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-image:url(40px.png);background-size:120px 240px}.jstree-default-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-responsive .jstree-last{background:0 0}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-responsive .jstree-file{background:url(40px.png) 0 -160px no-repeat;background-size:120px 240px}.jstree-default-responsive .jstree-folder{background:url(40px.png) -40px -40px no-repeat;background-size:120px 240px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}/*!
+ * Stylesheet for the Date Range Picker, for use with Bootstrap 3.x
+ *
+ * Copyright 2013 Dan Grossman ( http://www.dangrossman.info )
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Built for http://www.improvely.com
+ */.daterangepicker.dropdown-menu{max-width:none;z-index:3000}.daterangepicker.opensleft .calendar,.daterangepicker.opensleft .ranges{float:left;margin:4px}.daterangepicker.openscenter .calendar,.daterangepicker.openscenter .ranges,.daterangepicker.opensright .calendar,.daterangepicker.opensright .ranges{float:right;margin:4px}.daterangepicker.single .calendar,.daterangepicker.single .ranges{float:none}.daterangepicker .ranges .range_inputs>div,.daterangepicker_start_input{float:left}.daterangepicker .ranges{width:160px;text-align:left}.daterangepicker .ranges .range_inputs>div:nth-child(2){padding-left:11px}.daterangepicker .calendar{display:none;max-width:270px}.daterangepicker.show-calendar .calendar{display:block}.daterangepicker .calendar.single .calendar-date{border:none}.daterangepicker .calendar td,.daterangepicker .calendar th{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;white-space:nowrap;text-align:center;min-width:32px}.daterangepicker .daterangepicker_end_input label,.daterangepicker .daterangepicker_start_input label{color:#333;display:block;font-size:11px;font-weight:400;height:20px;line-height:20px;margin-bottom:2px;text-shadow:#fff 1px 1px 0;text-transform:uppercase;width:74px}.daterangepicker .ranges input{font-size:11px}.daterangepicker .ranges .input-mini{border:1px solid #ccc;border-radius:4px;color:#555;display:block;font-size:11px;height:30px;line-height:30px;vertical-align:middle;margin:0 0 10px;padding:0 6px;width:74px}.daterangepicker .ranges ul{list-style:none;margin:0;padding:0}.daterangepicker .ranges li{font-size:13px;background:#f5f5f5;border:1px solid #f5f5f5;color:#08c;padding:3px 12px;margin-bottom:8px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;cursor:pointer}.daterangepicker .ranges li.active,.daterangepicker .ranges li:hover{background:#08c;border:1px solid #08c;color:#fff}.daterangepicker .calendar-date{border:1px solid #ddd;padding:4px;border-radius:4px;background:#fff}.daterangepicker .calendar-time{text-align:center;margin:8px auto 0;line-height:30px}.daterangepicker{position:absolute;background:#fff;top:100px;left:20px;padding:4px;margin-top:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.daterangepicker.opensleft:before{position:absolute;top:-7px;right:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2);content:''}.daterangepicker.opensleft:after{position:absolute;top:-6px;right:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.daterangepicker.openscenter:after,.daterangepicker.openscenter:before{left:0;right:0;width:0;margin-left:auto;margin-right:auto;position:absolute;display:inline-block;content:''}.daterangepicker.openscenter:before{top:-7px;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2)}.daterangepicker.openscenter:after{top:-6px;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent}.daterangepicker.opensright:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2);content:''}.daterangepicker.opensright:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.daterangepicker table{width:100%;margin:0}.daterangepicker td,.daterangepicker th{text-align:center;width:20px;height:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;cursor:pointer;white-space:nowrap}.daterangepicker option.disabled,.daterangepicker td.disabled,.daterangepicker td.off{color:#999}.daterangepicker td.available:hover,.daterangepicker th.available:hover{background:#eee}.daterangepicker td.in-range{background:#ebf4f8;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.daterangepicker td.start-date{-webkit-border-radius:4px 0 0 4px;-moz-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.daterangepicker td.end-date{-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.daterangepicker td.start-date.end-date{-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.daterangepicker td.active,.daterangepicker td.active:hover{background-color:#357ebd;border-color:#3071a9;color:#fff}.daterangepicker td.week,.daterangepicker th.week{font-size:80%;color:#ccc}.daterangepicker select.monthselect,.daterangepicker select.yearselect{font-size:12px;padding:1px;height:auto;margin:0;cursor:default}.daterangepicker select.monthselect{margin-right:2%;width:56%}.daterangepicker select.yearselect{width:40%}.daterangepicker select.ampmselect,.daterangepicker select.hourselect,.daterangepicker select.minuteselect,.daterangepicker select.secondselect{width:50px;margin-bottom:0}.daterangepicker_end_input{float:left;padding-left:11px}.daterangepicker th.month{width:auto}
\ No newline at end of file
"APPLICATION_ALIAS": "Alias",
"APPLICATION_COPY_REPORT": "Copy Report",
"APPLICATION_COPY_TO": "Copy To",
+ "APPLICATION_DATE_RANGE": "Date Range",
"APPLICATION_COPY": "Copy",
+ "APPLICATION_EXTRACT": "Extract",
+ "APPLICATION_EXTRACT_REPORT": "Extract Report",
"APPLICATION_EXPORT": "Export",
"APPLICATION_FUNCTION": "Function",
"MESSAGE_SELECT_A_FIELD": "Select at least one table field!",
"APPLICATION_MULTI_FILE_UPLOAD": "Multi File Upload",
"APPLICATION_AUDIO_FILE": "Audio File",
"APPLICATION_CALLYSQUARE": "Cally ²",
+ "APPLICATION_JSCRIPTY": "Jscripty",
"APPLICATION_PROJECTS": "Projects",
"APPLICATION_PROJECT": "Project",
"APPLICATION_PROJECTS_LIST": "Projects List",
"APPLICATION_ALIAS": "Alias",
"APPLICATION_COPY_REPORT": "Copia Report",
"APPLICATION_COPY_TO": "Copia In",
+ "APPLICATION_DATE_RANGE": "Intervallo Date",
"APPLICATION_COPY": "Copia",
"APPLICATION_EXPORT": "Esporta",
+ "APPLICATION_EXTRACT": "Estrai",
+ "APPLICATION_EXTRACT_REPORT": "Estrai Report",
"APPLICATION_FUNCTION": "Funzione",
"MESSAGE_SELECT_A_FIELD": "Seleziona almeno un campo della tabella!",
"APPLICATION_GROUP_BY": "Group By",
"APPLICATION_FILE_UPLOAD": "File Upload",
"APPLICATION_MULTI_FILE_UPLOAD": "Multi File Upload",
"APPLICATION_CALLYSQUARE": "Cally ²",
+ "APPLICATION_JSCRIPTY": "Jscripty",
"APPLICATION_PROJECTS": "Progetti",
"APPLICATION_PROJECT": "Progetto",
"APPLICATION_PROJECTS_LIST": "Lista Progetti",
--- /dev/null
+/*!
+ * Stylesheet for the Date Range Picker, for use with Bootstrap 3.x
+ *
+ * Copyright 2013 Dan Grossman ( http://www.dangrossman.info )
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Built for http://www.improvely.com
+ */
+
+ .daterangepicker.dropdown-menu {
+ max-width: none;
+ z-index: 3000;
+}
+
+.daterangepicker.opensleft .ranges, .daterangepicker.opensleft .calendar {
+ float: left;
+ margin: 4px;
+}
+
+.daterangepicker.opensright .ranges, .daterangepicker.opensright .calendar,
+.daterangepicker.openscenter .ranges, .daterangepicker.openscenter .calendar {
+ float: right;
+ margin: 4px;
+}
+
+.daterangepicker.single .ranges, .daterangepicker.single .calendar {
+ float: none;
+}
+
+.daterangepicker .ranges {
+ width: 160px;
+ text-align: left;
+}
+
+.daterangepicker .ranges .range_inputs>div {
+ float: left;
+}
+
+.daterangepicker .ranges .range_inputs>div:nth-child(2) {
+ padding-left: 11px;
+}
+
+.daterangepicker .calendar {
+ display: none;
+ max-width: 270px;
+}
+
+.daterangepicker.show-calendar .calendar {
+ display: block;
+}
+
+.daterangepicker .calendar.single .calendar-date {
+ border: none;
+}
+
+.daterangepicker .calendar th, .daterangepicker .calendar td {
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
+ white-space: nowrap;
+ text-align: center;
+ min-width: 32px;
+}
+
+.daterangepicker .daterangepicker_start_input label,
+.daterangepicker .daterangepicker_end_input label {
+ color: #333;
+ display: block;
+ font-size: 11px;
+ font-weight: normal;
+ height: 20px;
+ line-height: 20px;
+ margin-bottom: 2px;
+ text-shadow: #fff 1px 1px 0px;
+ text-transform: uppercase;
+ width: 74px;
+}
+
+.daterangepicker .ranges input {
+ font-size: 11px;
+}
+
+.daterangepicker .ranges .input-mini {
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ color: #555;
+ display: block;
+ font-size: 11px;
+ height: 30px;
+ line-height: 30px;
+ vertical-align: middle;
+ margin: 0 0 10px 0;
+ padding: 0 6px;
+ width: 74px;
+}
+
+.daterangepicker .ranges ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+
+.daterangepicker .ranges li {
+ font-size: 13px;
+ background: #f5f5f5;
+ border: 1px solid #f5f5f5;
+ color: #08c;
+ padding: 3px 12px;
+ margin-bottom: 8px;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ cursor: pointer;
+}
+
+.daterangepicker .ranges li.active, .daterangepicker .ranges li:hover {
+ background: #08c;
+ border: 1px solid #08c;
+ color: #fff;
+}
+
+.daterangepicker .calendar-date {
+ border: 1px solid #ddd;
+ padding: 4px;
+ border-radius: 4px;
+ background: #fff;
+}
+
+.daterangepicker .calendar-time {
+ text-align: center;
+ margin: 8px auto 0 auto;
+ line-height: 30px;
+}
+
+.daterangepicker {
+ position: absolute;
+ background: #fff;
+ top: 100px;
+ left: 20px;
+ padding: 4px;
+ margin-top: 1px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+}
+
+.daterangepicker.opensleft:before {
+ position: absolute;
+ top: -7px;
+ right: 9px;
+ display: inline-block;
+ border-right: 7px solid transparent;
+ border-bottom: 7px solid #ccc;
+ border-left: 7px solid transparent;
+ border-bottom-color: rgba(0, 0, 0, 0.2);
+ content: '';
+}
+
+.daterangepicker.opensleft:after {
+ position: absolute;
+ top: -6px;
+ right: 10px;
+ display: inline-block;
+ border-right: 6px solid transparent;
+ border-bottom: 6px solid #fff;
+ border-left: 6px solid transparent;
+ content: '';
+}
+
+.daterangepicker.openscenter:before {
+ position: absolute;
+ top: -7px;
+ left: 0;
+ right: 0;
+ width: 0;
+ margin-left: auto;
+ margin-right: auto;
+ display: inline-block;
+ border-right: 7px solid transparent;
+ border-bottom: 7px solid #ccc;
+ border-left: 7px solid transparent;
+ border-bottom-color: rgba(0, 0, 0, 0.2);
+ content: '';
+}
+
+.daterangepicker.openscenter:after {
+ position: absolute;
+ top: -6px;
+ left: 0;
+ right: 0;
+ width: 0;
+ margin-left: auto;
+ margin-right: auto;
+ display: inline-block;
+ border-right: 6px solid transparent;
+ border-bottom: 6px solid #fff;
+ border-left: 6px solid transparent;
+ content: '';
+}
+
+.daterangepicker.opensright:before {
+ position: absolute;
+ top: -7px;
+ left: 9px;
+ display: inline-block;
+ border-right: 7px solid transparent;
+ border-bottom: 7px solid #ccc;
+ border-left: 7px solid transparent;
+ border-bottom-color: rgba(0, 0, 0, 0.2);
+ content: '';
+}
+
+.daterangepicker.opensright:after {
+ position: absolute;
+ top: -6px;
+ left: 10px;
+ display: inline-block;
+ border-right: 6px solid transparent;
+ border-bottom: 6px solid #fff;
+ border-left: 6px solid transparent;
+ content: '';
+}
+
+.daterangepicker table {
+ width: 100%;
+ margin: 0;
+}
+
+.daterangepicker td, .daterangepicker th {
+ text-align: center;
+ width: 20px;
+ height: 20px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ cursor: pointer;
+ white-space: nowrap;
+}
+
+.daterangepicker td.off {
+ color: #999;
+}
+
+.daterangepicker td.disabled, .daterangepicker option.disabled {
+ color: #999;
+}
+
+.daterangepicker td.available:hover, .daterangepicker th.available:hover {
+ background: #eee;
+}
+
+.daterangepicker td.in-range {
+ background: #ebf4f8;
+ -webkit-border-radius: 0;
+ -moz-border-radius: 0;
+ border-radius: 0;
+}
+
+.daterangepicker td.start-date {
+ -webkit-border-radius: 4px 0 0 4px;
+ -moz-border-radius: 4px 0 0 4px;
+ border-radius: 4px 0 0 4px;
+}
+
+.daterangepicker td.end-date {
+ -webkit-border-radius: 0 4px 4px 0;
+ -moz-border-radius: 0 4px 4px 0;
+ border-radius: 0 4px 4px 0;
+}
+
+.daterangepicker td.start-date.end-date {
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+}
+
+.daterangepicker td.active, .daterangepicker td.active:hover {
+ background-color: #357ebd;
+ border-color: #3071a9;
+ color: #fff;
+}
+
+.daterangepicker td.week, .daterangepicker th.week {
+ font-size: 80%;
+ color: #ccc;
+}
+
+.daterangepicker select.monthselect, .daterangepicker select.yearselect {
+ font-size: 12px;
+ padding: 1px;
+ height: auto;
+ margin: 0;
+ cursor: default;
+}
+
+.daterangepicker select.monthselect {
+ margin-right: 2%;
+ width: 56%;
+}
+
+.daterangepicker select.yearselect {
+ width: 40%;
+}
+
+.daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect {
+ width: 50px;
+ margin-bottom: 0;
+}
+
+.daterangepicker_start_input {
+ float: left;
+}
+
+.daterangepicker_end_input {
+ float: left;
+ padding-left: 11px
+}
+
+.daterangepicker th.month {
+ width: auto;
+}
--- /dev/null
+/**
+* @version: 1.3.17
+* @author: Dan Grossman http://www.dangrossman.info/
+* @date: 2014-11-25
+* @copyright: Copyright (c) 2012-2014 Dan Grossman. All rights reserved.
+* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
+* @website: http://www.improvely.com/
+*/
+
+(function(root, factory) {
+
+ if (typeof define === 'function' && define.amd) {
+ define(['moment', 'jquery', 'exports'], function(momentjs, $, exports) {
+ root.daterangepicker = factory(root, exports, momentjs, $);
+ });
+
+ } else if (typeof exports !== 'undefined') {
+ var momentjs = require('moment');
+ var jQuery;
+ try {
+ jQuery = require('jquery');
+ } catch (err) {
+ jQuery = window.jQuery;
+ if (!jQuery) throw new Error('jQuery dependency not found');
+ }
+
+ factory(root, exports, momentjs, jQuery);
+
+ // Finally, as a browser global.
+ } else {
+ root.daterangepicker = factory(root, {}, root.moment, (root.jQuery || root.Zepto || root.ender || root.$));
+ }
+
+}(this, function(root, daterangepicker, moment, $) {
+
+ var DateRangePicker = function (element, options, cb) {
+
+ // by default, the daterangepicker element is placed at the bottom of HTML body
+ this.parentEl = 'body';
+
+ //element that triggered the date range picker
+ this.element = $(element);
+
+ //tracks visible state
+ this.isShowing = false;
+
+ //create the picker HTML object
+ var DRPTemplate = '<div class="daterangepicker dropdown-menu">' +
+ '<div class="calendar first left"></div>' +
+ '<div class="calendar second right"></div>' +
+ '<div class="ranges">' +
+ '<div class="range_inputs">' +
+ '<div class="daterangepicker_start_input">' +
+ '<label for="daterangepicker_start"></label>' +
+ '<input class="input-mini" type="text" name="daterangepicker_start" value="" />' +
+ '</div>' +
+ '<div class="daterangepicker_end_input">' +
+ '<label for="daterangepicker_end"></label>' +
+ '<input class="input-mini" type="text" name="daterangepicker_end" value="" />' +
+ '</div>' +
+ '<button class="applyBtn" disabled="disabled"></button> ' +
+ '<button class="cancelBtn"></button>' +
+ '</div>' +
+ '</div>' +
+ '</div>';
+
+ //custom options
+ if (typeof options !== 'object' || options === null)
+ options = {};
+
+ this.parentEl = (typeof options === 'object' && options.parentEl && $(options.parentEl).length) ? $(options.parentEl) : $(this.parentEl);
+ this.container = $(DRPTemplate).appendTo(this.parentEl);
+
+ this.setOptions(options, cb);
+
+ //apply CSS classes and labels to buttons
+ var c = this.container;
+ $.each(this.buttonClasses, function (idx, val) {
+ c.find('button').addClass(val);
+ });
+ this.container.find('.daterangepicker_start_input label').html(this.locale.fromLabel);
+ this.container.find('.daterangepicker_end_input label').html(this.locale.toLabel);
+ if (this.applyClass.length)
+ this.container.find('.applyBtn').addClass(this.applyClass);
+ if (this.cancelClass.length)
+ this.container.find('.cancelBtn').addClass(this.cancelClass);
+ this.container.find('.applyBtn').html(this.locale.applyLabel);
+ this.container.find('.cancelBtn').html(this.locale.cancelLabel);
+
+ //event listeners
+
+ this.container.find('.calendar')
+ .on('click.daterangepicker', '.prev', $.proxy(this.clickPrev, this))
+ .on('click.daterangepicker', '.next', $.proxy(this.clickNext, this))
+ .on('click.daterangepicker', 'td.available', $.proxy(this.clickDate, this))
+ .on('mouseenter.daterangepicker', 'td.available', $.proxy(this.hoverDate, this))
+ .on('mouseleave.daterangepicker', 'td.available', $.proxy(this.updateFormInputs, this))
+ .on('change.daterangepicker', 'select.yearselect', $.proxy(this.updateMonthYear, this))
+ .on('change.daterangepicker', 'select.monthselect', $.proxy(this.updateMonthYear, this))
+ .on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.updateTime, this));
+
+ this.container.find('.ranges')
+ .on('click.daterangepicker', 'button.applyBtn', $.proxy(this.clickApply, this))
+ .on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this))
+ .on('click.daterangepicker', '.daterangepicker_start_input,.daterangepicker_end_input', $.proxy(this.showCalendars, this))
+ .on('change.daterangepicker', '.daterangepicker_start_input,.daterangepicker_end_input', $.proxy(this.inputsChanged, this))
+ .on('keydown.daterangepicker', '.daterangepicker_start_input,.daterangepicker_end_input', $.proxy(this.inputsKeydown, this))
+ .on('click.daterangepicker', 'li', $.proxy(this.clickRange, this))
+ .on('mouseenter.daterangepicker', 'li', $.proxy(this.enterRange, this))
+ .on('mouseleave.daterangepicker', 'li', $.proxy(this.updateFormInputs, this));
+
+ if (this.element.is('input')) {
+ this.element.on({
+ 'click.daterangepicker': $.proxy(this.show, this),
+ 'focus.daterangepicker': $.proxy(this.show, this),
+ 'keyup.daterangepicker': $.proxy(this.updateFromControl, this)
+ });
+ } else {
+ this.element.on('click.daterangepicker', $.proxy(this.toggle, this));
+ }
+
+ };
+
+ DateRangePicker.prototype = {
+
+ constructor: DateRangePicker,
+
+ setOptions: function(options, callback) {
+
+ this.startDate = moment().startOf('day');
+ this.endDate = moment().endOf('day');
+ this.timeZone = moment().zone();
+ this.minDate = false;
+ this.maxDate = false;
+ this.dateLimit = false;
+
+ this.showDropdowns = false;
+ this.showWeekNumbers = false;
+ this.timePicker = false;
+ this.timePickerSeconds = false;
+ this.timePickerIncrement = 30;
+ this.timePicker12Hour = true;
+ this.singleDatePicker = false;
+ this.ranges = {};
+
+ this.opens = 'right';
+ if (this.element.hasClass('pull-right'))
+ this.opens = 'left';
+
+ this.buttonClasses = ['btn', 'btn-small btn-sm'];
+ this.applyClass = 'btn-success';
+ this.cancelClass = 'btn-default';
+
+ this.format = 'MM/DD/YYYY';
+ this.separator = ' - ';
+
+ this.locale = {
+ applyLabel: 'Apply',
+ cancelLabel: 'Cancel',
+ fromLabel: 'From',
+ toLabel: 'To',
+ weekLabel: 'W',
+ customRangeLabel: 'Custom Range',
+ daysOfWeek: moment.weekdaysMin(),
+ monthNames: moment.monthsShort(),
+ firstDay: moment.localeData()._week.dow
+ };
+
+ this.cb = function () { };
+
+ if (typeof options.format === 'string')
+ this.format = options.format;
+
+ if (typeof options.separator === 'string')
+ this.separator = options.separator;
+
+ if (typeof options.startDate === 'string')
+ this.startDate = moment(options.startDate, this.format);
+
+ if (typeof options.endDate === 'string')
+ this.endDate = moment(options.endDate, this.format);
+
+ if (typeof options.minDate === 'string')
+ this.minDate = moment(options.minDate, this.format);
+
+ if (typeof options.maxDate === 'string')
+ this.maxDate = moment(options.maxDate, this.format);
+
+ if (typeof options.startDate === 'object')
+ this.startDate = moment(options.startDate);
+
+ if (typeof options.endDate === 'object')
+ this.endDate = moment(options.endDate);
+
+ if (typeof options.minDate === 'object')
+ this.minDate = moment(options.minDate);
+
+ if (typeof options.maxDate === 'object')
+ this.maxDate = moment(options.maxDate);
+
+ if (typeof options.applyClass === 'string')
+ this.applyClass = options.applyClass;
+
+ if (typeof options.cancelClass === 'string')
+ this.cancelClass = options.cancelClass;
+
+ if (typeof options.dateLimit === 'object')
+ this.dateLimit = options.dateLimit;
+
+ if (typeof options.locale === 'object') {
+
+ if (typeof options.locale.daysOfWeek === 'object') {
+ // Create a copy of daysOfWeek to avoid modification of original
+ // options object for reusability in multiple daterangepicker instances
+ this.locale.daysOfWeek = options.locale.daysOfWeek.slice();
+ }
+
+ if (typeof options.locale.monthNames === 'object') {
+ this.locale.monthNames = options.locale.monthNames.slice();
+ }
+
+ if (typeof options.locale.firstDay === 'number') {
+ this.locale.firstDay = options.locale.firstDay;
+ }
+
+ if (typeof options.locale.applyLabel === 'string') {
+ this.locale.applyLabel = options.locale.applyLabel;
+ }
+
+ if (typeof options.locale.cancelLabel === 'string') {
+ this.locale.cancelLabel = options.locale.cancelLabel;
+ }
+
+ if (typeof options.locale.fromLabel === 'string') {
+ this.locale.fromLabel = options.locale.fromLabel;
+ }
+
+ if (typeof options.locale.toLabel === 'string') {
+ this.locale.toLabel = options.locale.toLabel;
+ }
+
+ if (typeof options.locale.weekLabel === 'string') {
+ this.locale.weekLabel = options.locale.weekLabel;
+ }
+
+ if (typeof options.locale.customRangeLabel === 'string') {
+ this.locale.customRangeLabel = options.locale.customRangeLabel;
+ }
+ }
+
+ if (typeof options.opens === 'string')
+ this.opens = options.opens;
+
+ if (typeof options.showWeekNumbers === 'boolean') {
+ this.showWeekNumbers = options.showWeekNumbers;
+ }
+
+ if (typeof options.buttonClasses === 'string') {
+ this.buttonClasses = [options.buttonClasses];
+ }
+
+ if (typeof options.buttonClasses === 'object') {
+ this.buttonClasses = options.buttonClasses;
+ }
+
+ if (typeof options.showDropdowns === 'boolean') {
+ this.showDropdowns = options.showDropdowns;
+ }
+
+ if (typeof options.singleDatePicker === 'boolean') {
+ this.singleDatePicker = options.singleDatePicker;
+ if (this.singleDatePicker) {
+ this.endDate = this.startDate.clone();
+ }
+ }
+
+ if (typeof options.timePicker === 'boolean') {
+ this.timePicker = options.timePicker;
+ }
+
+ if (typeof options.timePickerSeconds === 'boolean') {
+ this.timePickerSeconds = options.timePickerSeconds;
+ }
+
+ if (typeof options.timePickerIncrement === 'number') {
+ this.timePickerIncrement = options.timePickerIncrement;
+ }
+
+ if (typeof options.timePicker12Hour === 'boolean') {
+ this.timePicker12Hour = options.timePicker12Hour;
+ }
+
+ // update day names order to firstDay
+ if (this.locale.firstDay != 0) {
+ var iterator = this.locale.firstDay;
+ while (iterator > 0) {
+ this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift());
+ iterator--;
+ }
+ }
+
+ var start, end, range;
+
+ //if no start/end dates set, check if an input element contains initial values
+ if (typeof options.startDate === 'undefined' && typeof options.endDate === 'undefined') {
+ if ($(this.element).is('input[type=text]')) {
+ var val = $(this.element).val(),
+ split = val.split(this.separator);
+
+ start = end = null;
+
+ if (split.length == 2) {
+ start = moment(split[0], this.format);
+ end = moment(split[1], this.format);
+ } else if (this.singleDatePicker && val !== "") {
+ start = moment(val, this.format);
+ end = moment(val, this.format);
+ }
+ if (start !== null && end !== null) {
+ this.startDate = start;
+ this.endDate = end;
+ }
+ }
+ }
+
+ // bind the time zone used to build the calendar to either the timeZone passed in through the options or the zone of the startDate (which will be the local time zone by default)
+ if (typeof options.timeZone === 'string' || typeof options.timeZone === 'number') {
+ this.timeZone = options.timeZone;
+ this.startDate.zone(this.timeZone);
+ this.endDate.zone(this.timeZone);
+ } else {
+ this.timeZone = moment(this.startDate).zone();
+ }
+
+ if (typeof options.ranges === 'object') {
+ for (range in options.ranges) {
+
+ if (typeof options.ranges[range][0] === 'string')
+ start = moment(options.ranges[range][0], this.format);
+ else
+ start = moment(options.ranges[range][0]);
+
+ if (typeof options.ranges[range][1] === 'string')
+ end = moment(options.ranges[range][1], this.format);
+ else
+ end = moment(options.ranges[range][1]);
+
+ // If we have a min/max date set, bound this range
+ // to it, but only if it would otherwise fall
+ // outside of the min/max.
+ if (this.minDate && start.isBefore(this.minDate))
+ start = moment(this.minDate);
+
+ if (this.maxDate && end.isAfter(this.maxDate))
+ end = moment(this.maxDate);
+
+ // If the end of the range is before the minimum (if min is set) OR
+ // the start of the range is after the max (also if set) don't display this
+ // range option.
+ if ((this.minDate && end.isBefore(this.minDate)) || (this.maxDate && start.isAfter(this.maxDate))) {
+ continue;
+ }
+
+ this.ranges[range] = [start, end];
+ }
+
+ var list = '<ul>';
+ for (range in this.ranges) {
+ list += '<li>' + range + '</li>';
+ }
+ list += '<li>' + this.locale.customRangeLabel + '</li>';
+ list += '</ul>';
+ this.container.find('.ranges ul').remove();
+ this.container.find('.ranges').prepend(list);
+ }
+
+ if (typeof callback === 'function') {
+ this.cb = callback;
+ }
+
+ if (!this.timePicker) {
+ this.startDate = this.startDate.startOf('day');
+ this.endDate = this.endDate.endOf('day');
+ }
+
+ if (this.singleDatePicker) {
+ this.opens = 'right';
+ this.container.addClass('single');
+ this.container.find('.calendar.right').show();
+ this.container.find('.calendar.left').hide();
+ if (!this.timePicker) {
+ this.container.find('.ranges').hide();
+ } else {
+ this.container.find('.ranges .daterangepicker_start_input, .ranges .daterangepicker_end_input').hide();
+ }
+ if (!this.container.find('.calendar.right').hasClass('single'))
+ this.container.find('.calendar.right').addClass('single');
+ } else {
+ this.container.removeClass('single');
+ this.container.find('.calendar.right').removeClass('single');
+ this.container.find('.ranges').show();
+ }
+
+ this.oldStartDate = this.startDate.clone();
+ this.oldEndDate = this.endDate.clone();
+ this.oldChosenLabel = this.chosenLabel;
+
+ this.leftCalendar = {
+ month: moment([this.startDate.year(), this.startDate.month(), 1, this.startDate.hour(), this.startDate.minute(), this.startDate.second()]),
+ calendar: []
+ };
+
+ this.rightCalendar = {
+ month: moment([this.endDate.year(), this.endDate.month(), 1, this.endDate.hour(), this.endDate.minute(), this.endDate.second()]),
+ calendar: []
+ };
+
+ if (this.opens == 'right' || this.opens == 'center') {
+ //swap calendar positions
+ var first = this.container.find('.calendar.first');
+ var second = this.container.find('.calendar.second');
+
+ if (second.hasClass('single')) {
+ second.removeClass('single');
+ first.addClass('single');
+ }
+
+ first.removeClass('left').addClass('right');
+ second.removeClass('right').addClass('left');
+
+ if (this.singleDatePicker) {
+ first.show();
+ second.hide();
+ }
+ }
+
+ if (typeof options.ranges === 'undefined' && !this.singleDatePicker) {
+ this.container.addClass('show-calendar');
+ }
+
+ this.container.addClass('opens' + this.opens);
+
+ this.updateView();
+ this.updateCalendars();
+
+ },
+
+ setStartDate: function(startDate) {
+ if (typeof startDate === 'string')
+ this.startDate = moment(startDate, this.format).zone(this.timeZone);
+
+ if (typeof startDate === 'object')
+ this.startDate = moment(startDate);
+
+ if (!this.timePicker)
+ this.startDate = this.startDate.startOf('day');
+
+ this.oldStartDate = this.startDate.clone();
+
+ this.updateView();
+ this.updateCalendars();
+ this.updateInputText();
+ },
+
+ setEndDate: function(endDate) {
+ if (typeof endDate === 'string')
+ this.endDate = moment(endDate, this.format).zone(this.timeZone);
+
+ if (typeof endDate === 'object')
+ this.endDate = moment(endDate);
+
+ if (!this.timePicker)
+ this.endDate = this.endDate.endOf('day');
+
+ this.oldEndDate = this.endDate.clone();
+
+ this.updateView();
+ this.updateCalendars();
+ this.updateInputText();
+ },
+
+ updateView: function () {
+ this.leftCalendar.month.month(this.startDate.month()).year(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute());
+ this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute());
+ this.updateFormInputs();
+ },
+
+ updateFormInputs: function () {
+ this.container.find('input[name=daterangepicker_start]').val(this.startDate.format(this.format));
+ this.container.find('input[name=daterangepicker_end]').val(this.endDate.format(this.format));
+
+ if (this.startDate.isSame(this.endDate) || this.startDate.isBefore(this.endDate)) {
+ this.container.find('button.applyBtn').removeAttr('disabled');
+ } else {
+ this.container.find('button.applyBtn').attr('disabled', 'disabled');
+ }
+ },
+
+ updateFromControl: function () {
+ if (!this.element.is('input')) return;
+ if (!this.element.val().length) return;
+
+ var dateString = this.element.val().split(this.separator),
+ start = null,
+ end = null;
+
+ if(dateString.length === 2) {
+ start = moment(dateString[0], this.format).zone(this.timeZone);
+ end = moment(dateString[1], this.format).zone(this.timeZone);
+ }
+
+ if (this.singleDatePicker || start === null || end === null) {
+ start = moment(this.element.val(), this.format).zone(this.timeZone);
+ end = start;
+ }
+
+ if (end.isBefore(start)) return;
+
+ this.oldStartDate = this.startDate.clone();
+ this.oldEndDate = this.endDate.clone();
+
+ this.startDate = start;
+ this.endDate = end;
+
+ if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
+ this.notify();
+
+ this.updateCalendars();
+ },
+
+ notify: function () {
+ this.updateView();
+ this.cb(this.startDate, this.endDate, this.chosenLabel);
+ },
+
+ move: function () {
+ var parentOffset = { top: 0, left: 0 };
+ var parentRightEdge = $(window).width();
+ if (!this.parentEl.is('body')) {
+ parentOffset = {
+ top: this.parentEl.offset().top - this.parentEl.scrollTop(),
+ left: this.parentEl.offset().left - this.parentEl.scrollLeft()
+ };
+ parentRightEdge = this.parentEl[0].clientWidth + this.parentEl.offset().left;
+ }
+
+ if (this.opens == 'left') {
+ this.container.css({
+ top: this.element.offset().top + this.element.outerHeight() - parentOffset.top,
+ right: parentRightEdge - this.element.offset().left - this.element.outerWidth(),
+ left: 'auto'
+ });
+ if (this.container.offset().left < 0) {
+ this.container.css({
+ right: 'auto',
+ left: 9
+ });
+ }
+ } else if (this.opens == 'center') {
+ this.container.css({
+ top: this.element.offset().top + this.element.outerHeight() - parentOffset.top,
+ left: this.element.offset().left - parentOffset.left + this.element.outerWidth() / 2
+ - this.container.outerWidth() / 2,
+ right: 'auto'
+ });
+ if (this.container.offset().left < 0) {
+ this.container.css({
+ right: 'auto',
+ left: 9
+ });
+ }
+ } else {
+ this.container.css({
+ top: this.element.offset().top + this.element.outerHeight() - parentOffset.top,
+ left: this.element.offset().left - parentOffset.left,
+ right: 'auto'
+ });
+ if (this.container.offset().left + this.container.outerWidth() > $(window).width()) {
+ this.container.css({
+ left: 'auto',
+ right: 0
+ });
+ }
+ }
+ },
+
+ toggle: function (e) {
+ if (this.element.hasClass('active')) {
+ this.hide();
+ } else {
+ this.show();
+ }
+ },
+
+ show: function (e) {
+ if (this.isShowing) return;
+
+ this.element.addClass('active');
+ this.container.show();
+ this.move();
+
+ // Create a click proxy that is private to this instance of datepicker, for unbinding
+ this._outsideClickProxy = $.proxy(function (e) { this.outsideClick(e); }, this);
+ // Bind global datepicker mousedown for hiding and
+ $(document)
+ .on('mousedown.daterangepicker', this._outsideClickProxy)
+ // also support mobile devices
+ .on('touchend.daterangepicker', this._outsideClickProxy)
+ // also explicitly play nice with Bootstrap dropdowns, which stopPropagation when clicking them
+ .on('click.daterangepicker', '[data-toggle=dropdown]', this._outsideClickProxy)
+ // and also close when focus changes to outside the picker (eg. tabbing between controls)
+ .on('focusin.daterangepicker', this._outsideClickProxy);
+
+ this.isShowing = true;
+ this.element.trigger('show.daterangepicker', this);
+ },
+
+ outsideClick: function (e) {
+ var target = $(e.target);
+ // if the page is clicked anywhere except within the daterangerpicker/button
+ // itself then call this.hide()
+ if (
+ // ie modal dialog fix
+ e.type == "focusin" ||
+ target.closest(this.element).length ||
+ target.closest(this.container).length ||
+ target.closest('.calendar-date').length
+ ) return;
+ this.hide();
+ },
+
+ hide: function (e) {
+ if (!this.isShowing) return;
+
+ $(document)
+ .off('.daterangepicker');
+
+ this.element.removeClass('active');
+ this.container.hide();
+
+ if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
+ this.notify();
+
+ this.oldStartDate = this.startDate.clone();
+ this.oldEndDate = this.endDate.clone();
+
+ this.isShowing = false;
+ this.element.trigger('hide.daterangepicker', this);
+ },
+
+ enterRange: function (e) {
+ // mouse pointer has entered a range label
+ var label = e.target.innerHTML;
+ if (label == this.locale.customRangeLabel) {
+ this.updateView();
+ } else {
+ var dates = this.ranges[label];
+ this.container.find('input[name=daterangepicker_start]').val(dates[0].format(this.format));
+ this.container.find('input[name=daterangepicker_end]').val(dates[1].format(this.format));
+ }
+ },
+
+ showCalendars: function() {
+ this.container.addClass('show-calendar');
+ this.move();
+ this.element.trigger('showCalendar.daterangepicker', this);
+ },
+
+ hideCalendars: function() {
+ this.container.removeClass('show-calendar');
+ this.element.trigger('hideCalendar.daterangepicker', this);
+ },
+
+ // when a date is typed into the start to end date textboxes
+ inputsChanged: function (e) {
+ var el = $(e.target);
+ var date = moment(el.val(), this.format);
+ if (!date.isValid()) return;
+
+ var startDate, endDate;
+ if (el.attr('name') === 'daterangepicker_start') {
+ startDate = date;
+ endDate = this.endDate;
+ } else {
+ startDate = this.startDate;
+ endDate = date;
+ }
+ this.setCustomDates(startDate, endDate);
+ },
+
+ inputsKeydown: function(e) {
+ if (e.keyCode === 13) {
+ this.inputsChanged(e);
+ this.notify();
+ }
+ },
+
+ updateInputText: function() {
+ if (this.element.is('input') && !this.singleDatePicker) {
+ this.element.val(this.startDate.format(this.format) + this.separator + this.endDate.format(this.format));
+ } else if (this.element.is('input')) {
+ this.element.val(this.endDate.format(this.format));
+ }
+ },
+
+ clickRange: function (e) {
+ var label = e.target.innerHTML;
+ this.chosenLabel = label;
+ if (label == this.locale.customRangeLabel) {
+ this.showCalendars();
+ } else {
+ var dates = this.ranges[label];
+
+ this.startDate = dates[0];
+ this.endDate = dates[1];
+
+ if (!this.timePicker) {
+ this.startDate.startOf('day');
+ this.endDate.endOf('day');
+ }
+
+ this.leftCalendar.month.month(this.startDate.month()).year(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute());
+ this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute());
+ this.updateCalendars();
+
+ this.updateInputText();
+
+ this.hideCalendars();
+ this.hide();
+ this.element.trigger('apply.daterangepicker', this);
+ }
+ },
+
+ clickPrev: function (e) {
+ var cal = $(e.target).parents('.calendar');
+ if (cal.hasClass('left')) {
+ this.leftCalendar.month.subtract(1, 'month');
+ } else {
+ this.rightCalendar.month.subtract(1, 'month');
+ }
+ this.updateCalendars();
+ },
+
+ clickNext: function (e) {
+ var cal = $(e.target).parents('.calendar');
+ if (cal.hasClass('left')) {
+ this.leftCalendar.month.add(1, 'month');
+ } else {
+ this.rightCalendar.month.add(1, 'month');
+ }
+ this.updateCalendars();
+ },
+
+ hoverDate: function (e) {
+ var title = $(e.target).attr('data-title');
+ var row = title.substr(1, 1);
+ var col = title.substr(3, 1);
+ var cal = $(e.target).parents('.calendar');
+
+ if (cal.hasClass('left')) {
+ this.container.find('input[name=daterangepicker_start]').val(this.leftCalendar.calendar[row][col].format(this.format));
+ } else {
+ this.container.find('input[name=daterangepicker_end]').val(this.rightCalendar.calendar[row][col].format(this.format));
+ }
+ },
+
+ setCustomDates: function(startDate, endDate) {
+ this.chosenLabel = this.locale.customRangeLabel;
+ if (startDate.isAfter(endDate)) {
+ var difference = this.endDate.diff(this.startDate);
+ endDate = moment(startDate).add(difference, 'ms');
+ }
+ this.startDate = startDate;
+ this.endDate = endDate;
+
+ this.updateView();
+ this.updateCalendars();
+ },
+
+ clickDate: function (e) {
+ var title = $(e.target).attr('data-title');
+ var row = title.substr(1, 1);
+ var col = title.substr(3, 1);
+ var cal = $(e.target).parents('.calendar');
+
+ var startDate, endDate;
+ if (cal.hasClass('left')) {
+ startDate = this.leftCalendar.calendar[row][col];
+ endDate = this.endDate;
+ if (typeof this.dateLimit === 'object') {
+ var maxDate = moment(startDate).add(this.dateLimit).startOf('day');
+ if (endDate.isAfter(maxDate)) {
+ endDate = maxDate;
+ }
+ }
+ } else {
+ startDate = this.startDate;
+ endDate = this.rightCalendar.calendar[row][col];
+ if (typeof this.dateLimit === 'object') {
+ var minDate = moment(endDate).subtract(this.dateLimit).startOf('day');
+ if (startDate.isBefore(minDate)) {
+ startDate = minDate;
+ }
+ }
+ }
+
+ if (this.singleDatePicker && cal.hasClass('left')) {
+ endDate = startDate.clone();
+ } else if (this.singleDatePicker && cal.hasClass('right')) {
+ startDate = endDate.clone();
+ }
+
+ cal.find('td').removeClass('active');
+
+ $(e.target).addClass('active');
+
+ this.setCustomDates(startDate, endDate);
+
+ if (!this.timePicker)
+ endDate.endOf('day');
+
+ if (this.singleDatePicker && !this.timePicker)
+ this.clickApply();
+ },
+
+ clickApply: function (e) {
+ this.updateInputText();
+ this.hide();
+ this.element.trigger('apply.daterangepicker', this);
+ },
+
+ clickCancel: function (e) {
+ this.startDate = this.oldStartDate;
+ this.endDate = this.oldEndDate;
+ this.chosenLabel = this.oldChosenLabel;
+ this.updateView();
+ this.updateCalendars();
+ this.hide();
+ this.element.trigger('cancel.daterangepicker', this);
+ },
+
+ updateMonthYear: function (e) {
+ var isLeft = $(e.target).closest('.calendar').hasClass('left'),
+ leftOrRight = isLeft ? 'left' : 'right',
+ cal = this.container.find('.calendar.'+leftOrRight);
+
+ // Month must be Number for new moment versions
+ var month = parseInt(cal.find('.monthselect').val(), 10);
+ var year = cal.find('.yearselect').val();
+
+ this[leftOrRight+'Calendar'].month.month(month).year(year);
+ this.updateCalendars();
+ },
+
+ updateTime: function(e) {
+
+ var cal = $(e.target).closest('.calendar'),
+ isLeft = cal.hasClass('left');
+
+ var hour = parseInt(cal.find('.hourselect').val(), 10);
+ var minute = parseInt(cal.find('.minuteselect').val(), 10);
+ var second = 0;
+
+ if (this.timePickerSeconds) {
+ second = parseInt(cal.find('.secondselect').val(), 10);
+ }
+
+ if (this.timePicker12Hour) {
+ var ampm = cal.find('.ampmselect').val();
+ if (ampm === 'PM' && hour < 12)
+ hour += 12;
+ if (ampm === 'AM' && hour === 12)
+ hour = 0;
+ }
+
+ if (isLeft) {
+ var start = this.startDate.clone();
+ start.hour(hour);
+ start.minute(minute);
+ start.second(second);
+ this.startDate = start;
+ this.leftCalendar.month.hour(hour).minute(minute).second(second);
+ if (this.singleDatePicker)
+ this.endDate = start.clone();
+ } else {
+ var end = this.endDate.clone();
+ end.hour(hour);
+ end.minute(minute);
+ end.second(second);
+ this.endDate = end;
+ if (this.singleDatePicker)
+ this.startDate = end.clone();
+ this.rightCalendar.month.hour(hour).minute(minute).second(second);
+ }
+
+ this.updateView();
+ this.updateCalendars();
+ },
+
+ updateCalendars: function () {
+ this.leftCalendar.calendar = this.buildCalendar(this.leftCalendar.month.month(), this.leftCalendar.month.year(), this.leftCalendar.month.hour(), this.leftCalendar.month.minute(), this.leftCalendar.month.second(), 'left');
+ this.rightCalendar.calendar = this.buildCalendar(this.rightCalendar.month.month(), this.rightCalendar.month.year(), this.rightCalendar.month.hour(), this.rightCalendar.month.minute(), this.rightCalendar.month.second(), 'right');
+ this.container.find('.calendar.left').empty().html(this.renderCalendar(this.leftCalendar.calendar, this.startDate, this.minDate, this.maxDate, 'left'));
+ this.container.find('.calendar.right').empty().html(this.renderCalendar(this.rightCalendar.calendar, this.endDate, this.singleDatePicker ? this.minDate : this.startDate, this.maxDate, 'right'));
+
+ this.container.find('.ranges li').removeClass('active');
+ var customRange = true;
+ var i = 0;
+ for (var range in this.ranges) {
+ if (this.timePicker) {
+ if (this.startDate.isSame(this.ranges[range][0]) && this.endDate.isSame(this.ranges[range][1])) {
+ customRange = false;
+ this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')')
+ .addClass('active').html();
+ }
+ } else {
+ //ignore times when comparing dates if time picker is not enabled
+ if (this.startDate.format('YYYY-MM-DD') == this.ranges[range][0].format('YYYY-MM-DD') && this.endDate.format('YYYY-MM-DD') == this.ranges[range][1].format('YYYY-MM-DD')) {
+ customRange = false;
+ this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')')
+ .addClass('active').html();
+ }
+ }
+ i++;
+ }
+ if (customRange) {
+ this.chosenLabel = this.container.find('.ranges li:last').addClass('active').html();
+ this.showCalendars();
+ }
+ },
+
+ buildCalendar: function (month, year, hour, minute, second, side) {
+ var daysInMonth = moment([year, month]).daysInMonth();
+ var firstDay = moment([year, month, 1]);
+ var lastDay = moment([year, month, daysInMonth]);
+ var lastMonth = moment(firstDay).subtract(1, 'month').month();
+ var lastYear = moment(firstDay).subtract(1, 'month').year();
+
+ var daysInLastMonth = moment([lastYear, lastMonth]).daysInMonth();
+
+ var dayOfWeek = firstDay.day();
+
+ var i;
+
+ //initialize a 6 rows x 7 columns array for the calendar
+ var calendar = [];
+ calendar.firstDay = firstDay;
+ calendar.lastDay = lastDay;
+
+ for (i = 0; i < 6; i++) {
+ calendar[i] = [];
+ }
+
+ //populate the calendar with date objects
+ var startDay = daysInLastMonth - dayOfWeek + this.locale.firstDay + 1;
+ if (startDay > daysInLastMonth)
+ startDay -= 7;
+
+ if (dayOfWeek == this.locale.firstDay)
+ startDay = daysInLastMonth - 6;
+
+ var curDate = moment([lastYear, lastMonth, startDay, 12, minute, second]).zone(this.timeZone);
+
+ var col, row;
+ for (i = 0, col = 0, row = 0; i < 42; i++, col++, curDate = moment(curDate).add(24, 'hour')) {
+ if (i > 0 && col % 7 === 0) {
+ col = 0;
+ row++;
+ }
+ calendar[row][col] = curDate.clone().hour(hour);
+ curDate.hour(12);
+
+ if (this.minDate && calendar[row][col].format('YYYY-MM-DD') == this.minDate.format('YYYY-MM-DD') && calendar[row][col].isBefore(this.minDate) && side == 'left') {
+ calendar[row][col] = this.minDate.clone();
+ }
+
+ if (this.maxDate && calendar[row][col].format('YYYY-MM-DD') == this.maxDate.format('YYYY-MM-DD') && calendar[row][col].isAfter(this.maxDate) && side == 'right') {
+ calendar[row][col] = this.maxDate.clone();
+ }
+
+ }
+
+ return calendar;
+ },
+
+ renderDropdowns: function (selected, minDate, maxDate) {
+ var currentMonth = selected.month();
+ var currentYear = selected.year();
+ var maxYear = (maxDate && maxDate.year()) || (currentYear + 5);
+ var minYear = (minDate && minDate.year()) || (currentYear - 50);
+
+ var monthHtml = '<select class="monthselect">';
+ var inMinYear = currentYear == minYear;
+ var inMaxYear = currentYear == maxYear;
+
+ for (var m = 0; m < 12; m++) {
+ if ((!inMinYear || m >= minDate.month()) && (!inMaxYear || m <= maxDate.month())) {
+ monthHtml += "<option value='" + m + "'" +
+ (m === currentMonth ? " selected='selected'" : "") +
+ ">" + this.locale.monthNames[m] + "</option>";
+ }
+ }
+ monthHtml += "</select>";
+
+ var yearHtml = '<select class="yearselect">';
+
+ for (var y = minYear; y <= maxYear; y++) {
+ yearHtml += '<option value="' + y + '"' +
+ (y === currentYear ? ' selected="selected"' : '') +
+ '>' + y + '</option>';
+ }
+
+ yearHtml += '</select>';
+
+ return monthHtml + yearHtml;
+ },
+
+ renderCalendar: function (calendar, selected, minDate, maxDate, side) {
+
+ var html = '<div class="calendar-date">';
+ html += '<table class="table-condensed">';
+ html += '<thead>';
+ html += '<tr>';
+
+ // add empty cell for week number
+ if (this.showWeekNumbers)
+ html += '<th></th>';
+
+ if (!minDate || minDate.isBefore(calendar.firstDay)) {
+ html += '<th class="prev available"><i class="fa fa-arrow-left icon-arrow-left glyphicon glyphicon-arrow-left"></i></th>';
+ } else {
+ html += '<th></th>';
+ }
+
+ var dateHtml = this.locale.monthNames[calendar[1][1].month()] + calendar[1][1].format(" YYYY");
+
+ if (this.showDropdowns) {
+ dateHtml = this.renderDropdowns(calendar[1][1], minDate, maxDate);
+ }
+
+ html += '<th colspan="5" class="month">' + dateHtml + '</th>';
+ if (!maxDate || maxDate.isAfter(calendar.lastDay)) {
+ html += '<th class="next available"><i class="fa fa-arrow-right icon-arrow-right glyphicon glyphicon-arrow-right"></i></th>';
+ } else {
+ html += '<th></th>';
+ }
+
+ html += '</tr>';
+ html += '<tr>';
+
+ // add week number label
+ if (this.showWeekNumbers)
+ html += '<th class="week">' + this.locale.weekLabel + '</th>';
+
+ $.each(this.locale.daysOfWeek, function (index, dayOfWeek) {
+ html += '<th>' + dayOfWeek + '</th>';
+ });
+
+ html += '</tr>';
+ html += '</thead>';
+ html += '<tbody>';
+
+ for (var row = 0; row < 6; row++) {
+ html += '<tr>';
+
+ // add week number
+ if (this.showWeekNumbers)
+ html += '<td class="week">' + calendar[row][0].week() + '</td>';
+
+ for (var col = 0; col < 7; col++) {
+ var cname = 'available ';
+ cname += (calendar[row][col].month() == calendar[1][1].month()) ? '' : 'off';
+
+ if ((minDate && calendar[row][col].isBefore(minDate, 'day')) || (maxDate && calendar[row][col].isAfter(maxDate, 'day'))) {
+ cname = ' off disabled ';
+ } else if (calendar[row][col].format('YYYY-MM-DD') == selected.format('YYYY-MM-DD')) {
+ cname += ' active ';
+ if (calendar[row][col].format('YYYY-MM-DD') == this.startDate.format('YYYY-MM-DD')) {
+ cname += ' start-date ';
+ }
+ if (calendar[row][col].format('YYYY-MM-DD') == this.endDate.format('YYYY-MM-DD')) {
+ cname += ' end-date ';
+ }
+ } else if (calendar[row][col] >= this.startDate && calendar[row][col] <= this.endDate) {
+ cname += ' in-range ';
+ if (calendar[row][col].isSame(this.startDate)) { cname += ' start-date '; }
+ if (calendar[row][col].isSame(this.endDate)) { cname += ' end-date '; }
+ }
+
+ var title = 'r' + row + 'c' + col;
+ html += '<td class="' + cname.replace(/\s+/g, ' ').replace(/^\s?(.*?)\s?$/, '$1') + '" data-title="' + title + '">' + calendar[row][col].date() + '</td>';
+ }
+ html += '</tr>';
+ }
+
+ html += '</tbody>';
+ html += '</table>';
+ html += '</div>';
+
+ var i;
+ if (this.timePicker) {
+
+ html += '<div class="calendar-time">';
+ html += '<select class="hourselect">';
+
+ // Disallow selections before the minDate or after the maxDate
+ var min_hour = 0;
+ var max_hour = 23;
+
+ if (minDate && (side == 'left' || this.singleDatePicker) && selected.format('YYYY-MM-DD') == minDate.format('YYYY-MM-DD')) {
+ min_hour = minDate.hour();
+ if (selected.hour() < min_hour)
+ selected.hour(min_hour);
+ if (this.timePicker12Hour && min_hour >= 12 && selected.hour() >= 12)
+ min_hour -= 12;
+ if (this.timePicker12Hour && min_hour == 12)
+ min_hour = 1;
+ }
+
+ if (maxDate && (side == 'right' || this.singleDatePicker) && selected.format('YYYY-MM-DD') == maxDate.format('YYYY-MM-DD')) {
+ max_hour = maxDate.hour();
+ if (selected.hour() > max_hour)
+ selected.hour(max_hour);
+ if (this.timePicker12Hour && max_hour >= 12 && selected.hour() >= 12)
+ max_hour -= 12;
+ }
+
+ var start = 0;
+ var end = 23;
+ var selected_hour = selected.hour();
+ if (this.timePicker12Hour) {
+ start = 1;
+ end = 12;
+ if (selected_hour >= 12)
+ selected_hour -= 12;
+ if (selected_hour === 0)
+ selected_hour = 12;
+ }
+
+ for (i = start; i <= end; i++) {
+
+ if (i == selected_hour) {
+ html += '<option value="' + i + '" selected="selected">' + i + '</option>';
+ } else if (i < min_hour || i > max_hour) {
+ html += '<option value="' + i + '" disabled="disabled" class="disabled">' + i + '</option>';
+ } else {
+ html += '<option value="' + i + '">' + i + '</option>';
+ }
+ }
+
+ html += '</select> : ';
+
+ html += '<select class="minuteselect">';
+
+ // Disallow selections before the minDate or after the maxDate
+ var min_minute = 0;
+ var max_minute = 59;
+
+ if (minDate && (side == 'left' || this.singleDatePicker) && selected.format('YYYY-MM-DD h A') == minDate.format('YYYY-MM-DD h A')) {
+ min_minute = minDate.minute();
+ if (selected.minute() < min_minute)
+ selected.minute(min_minute);
+ }
+
+ if (maxDate && (side == 'right' || this.singleDatePicker) && selected.format('YYYY-MM-DD h A') == maxDate.format('YYYY-MM-DD h A')) {
+ max_minute = maxDate.minute();
+ if (selected.minute() > max_minute)
+ selected.minute(max_minute);
+ }
+
+ for (i = 0; i < 60; i += this.timePickerIncrement) {
+ var num = i;
+ if (num < 10)
+ num = '0' + num;
+ if (i == selected.minute()) {
+ html += '<option value="' + i + '" selected="selected">' + num + '</option>';
+ } else if (i < min_minute || i > max_minute) {
+ html += '<option value="' + i + '" disabled="disabled" class="disabled">' + num + '</option>';
+ } else {
+ html += '<option value="' + i + '">' + num + '</option>';
+ }
+ }
+
+ html += '</select> ';
+
+ if (this.timePickerSeconds) {
+ html += ': <select class="secondselect">';
+
+ for (i = 0; i < 60; i += this.timePickerIncrement) {
+ var num = i;
+ if (num < 10)
+ num = '0' + num;
+ if (i == selected.second()) {
+ html += '<option value="' + i + '" selected="selected">' + num + '</option>';
+ } else {
+ html += '<option value="' + i + '">' + num + '</option>';
+ }
+ }
+
+ html += '</select>';
+ }
+
+ if (this.timePicker12Hour) {
+ html += '<select class="ampmselect">';
+
+ // Disallow selection before the minDate or after the maxDate
+ var am_html = '';
+ var pm_html = '';
+
+ if (minDate && (side == 'left' || this.singleDatePicker) && selected.format('YYYY-MM-DD') == minDate.format('YYYY-MM-DD') && minDate.hour() >= 12) {
+ am_html = ' disabled="disabled" class="disabled"';
+ }
+
+ if (maxDate && (side == 'right' || this.singleDatePicker) && selected.format('YYYY-MM-DD') == maxDate.format('YYYY-MM-DD') && maxDate.hour() < 12) {
+ pm_html = ' disabled="disabled" class="disabled"';
+ }
+
+ if (selected.hour() >= 12) {
+ html += '<option value="AM"' + am_html + '>AM</option><option value="PM" selected="selected"' + pm_html + '>PM</option>';
+ } else {
+ html += '<option value="AM" selected="selected"' + am_html + '>AM</option><option value="PM"' + pm_html + '>PM</option>';
+ }
+ html += '</select>';
+ }
+
+ html += '</div>';
+
+ }
+
+ return html;
+
+ },
+
+ remove: function() {
+
+ this.container.remove();
+ this.element.off('.daterangepicker');
+ this.element.removeData('daterangepicker');
+
+ }
+
+ };
+
+ $.fn.daterangepicker = function (options, cb) {
+ this.each(function () {
+ var el = $(this);
+ if (el.data('daterangepicker'))
+ el.data('daterangepicker').remove();
+ el.data('daterangepicker', new DateRangePicker(el, options, cb));
+ });
+ return this;
+ };
+
+}));
--- /dev/null
+//! moment.js
+//! version : 2.8.4
+//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
+//! license : MIT
+//! momentjs.com
+
+(function (undefined) {
+ /************************************
+ Constants
+ ************************************/
+
+ var moment,
+ VERSION = '2.8.4',
+ // the global-scope this is NOT the global object in Node.js
+ globalScope = typeof global !== 'undefined' ? global : this,
+ oldGlobalMoment,
+ round = Math.round,
+ hasOwnProperty = Object.prototype.hasOwnProperty,
+ i,
+
+ YEAR = 0,
+ MONTH = 1,
+ DATE = 2,
+ HOUR = 3,
+ MINUTE = 4,
+ SECOND = 5,
+ MILLISECOND = 6,
+
+ // internal storage for locale config files
+ locales = {},
+
+ // extra moment internal properties (plugins register props here)
+ momentProperties = [],
+
+ // check for nodeJS
+ hasModule = (typeof module !== 'undefined' && module && module.exports),
+
+ // ASP.NET json date format regex
+ aspNetJsonRegex = /^\/?Date\((\-?\d+)/i,
+ aspNetTimeSpanJsonRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,
+
+ // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
+ // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
+ isoDurationRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,
+
+ // format tokens
+ formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,
+ localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
+
+ // parsing token regexes
+ parseTokenOneOrTwoDigits = /\d\d?/, // 0 - 99
+ parseTokenOneToThreeDigits = /\d{1,3}/, // 0 - 999
+ parseTokenOneToFourDigits = /\d{1,4}/, // 0 - 9999
+ parseTokenOneToSixDigits = /[+\-]?\d{1,6}/, // -999,999 - 999,999
+ parseTokenDigits = /\d+/, // nonzero number of digits
+ parseTokenWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, // any word (or two) characters or numbers including two/three word month in arabic.
+ parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
+ parseTokenT = /T/i, // T (ISO separator)
+ parseTokenOffsetMs = /[\+\-]?\d+/, // 1234567890123
+ parseTokenTimestampMs = /[\+\-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
+
+ //strict parsing regexes
+ parseTokenOneDigit = /\d/, // 0 - 9
+ parseTokenTwoDigits = /\d\d/, // 00 - 99
+ parseTokenThreeDigits = /\d{3}/, // 000 - 999
+ parseTokenFourDigits = /\d{4}/, // 0000 - 9999
+ parseTokenSixDigits = /[+-]?\d{6}/, // -999,999 - 999,999
+ parseTokenSignedNumber = /[+-]?\d+/, // -inf - inf
+
+ // iso 8601 regex
+ // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
+ isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
+
+ isoFormat = 'YYYY-MM-DDTHH:mm:ssZ',
+
+ isoDates = [
+ ['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/],
+ ['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/],
+ ['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/],
+ ['GGGG-[W]WW', /\d{4}-W\d{2}/],
+ ['YYYY-DDD', /\d{4}-\d{3}/]
+ ],
+
+ // iso time formats and regexes
+ isoTimes = [
+ ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/],
+ ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/],
+ ['HH:mm', /(T| )\d\d:\d\d/],
+ ['HH', /(T| )\d\d/]
+ ],
+
+ // timezone chunker '+10:00' > ['10', '00'] or '-1530' > ['-15', '30']
+ parseTimezoneChunker = /([\+\-]|\d\d)/gi,
+
+ // getter and setter names
+ proxyGettersAndSetters = 'Date|Hours|Minutes|Seconds|Milliseconds'.split('|'),
+ unitMillisecondFactors = {
+ 'Milliseconds' : 1,
+ 'Seconds' : 1e3,
+ 'Minutes' : 6e4,
+ 'Hours' : 36e5,
+ 'Days' : 864e5,
+ 'Months' : 2592e6,
+ 'Years' : 31536e6
+ },
+
+ unitAliases = {
+ ms : 'millisecond',
+ s : 'second',
+ m : 'minute',
+ h : 'hour',
+ d : 'day',
+ D : 'date',
+ w : 'week',
+ W : 'isoWeek',
+ M : 'month',
+ Q : 'quarter',
+ y : 'year',
+ DDD : 'dayOfYear',
+ e : 'weekday',
+ E : 'isoWeekday',
+ gg: 'weekYear',
+ GG: 'isoWeekYear'
+ },
+
+ camelFunctions = {
+ dayofyear : 'dayOfYear',
+ isoweekday : 'isoWeekday',
+ isoweek : 'isoWeek',
+ weekyear : 'weekYear',
+ isoweekyear : 'isoWeekYear'
+ },
+
+ // format function strings
+ formatFunctions = {},
+
+ // default relative time thresholds
+ relativeTimeThresholds = {
+ s: 45, // seconds to minute
+ m: 45, // minutes to hour
+ h: 22, // hours to day
+ d: 26, // days to month
+ M: 11 // months to year
+ },
+
+ // tokens to ordinalize and pad
+ ordinalizeTokens = 'DDD w W M D d'.split(' '),
+ paddedTokens = 'M D H h m s w W'.split(' '),
+
+ formatTokenFunctions = {
+ M : function () {
+ return this.month() + 1;
+ },
+ MMM : function (format) {
+ return this.localeData().monthsShort(this, format);
+ },
+ MMMM : function (format) {
+ return this.localeData().months(this, format);
+ },
+ D : function () {
+ return this.date();
+ },
+ DDD : function () {
+ return this.dayOfYear();
+ },
+ d : function () {
+ return this.day();
+ },
+ dd : function (format) {
+ return this.localeData().weekdaysMin(this, format);
+ },
+ ddd : function (format) {
+ return this.localeData().weekdaysShort(this, format);
+ },
+ dddd : function (format) {
+ return this.localeData().weekdays(this, format);
+ },
+ w : function () {
+ return this.week();
+ },
+ W : function () {
+ return this.isoWeek();
+ },
+ YY : function () {
+ return leftZeroFill(this.year() % 100, 2);
+ },
+ YYYY : function () {
+ return leftZeroFill(this.year(), 4);
+ },
+ YYYYY : function () {
+ return leftZeroFill(this.year(), 5);
+ },
+ YYYYYY : function () {
+ var y = this.year(), sign = y >= 0 ? '+' : '-';
+ return sign + leftZeroFill(Math.abs(y), 6);
+ },
+ gg : function () {
+ return leftZeroFill(this.weekYear() % 100, 2);
+ },
+ gggg : function () {
+ return leftZeroFill(this.weekYear(), 4);
+ },
+ ggggg : function () {
+ return leftZeroFill(this.weekYear(), 5);
+ },
+ GG : function () {
+ return leftZeroFill(this.isoWeekYear() % 100, 2);
+ },
+ GGGG : function () {
+ return leftZeroFill(this.isoWeekYear(), 4);
+ },
+ GGGGG : function () {
+ return leftZeroFill(this.isoWeekYear(), 5);
+ },
+ e : function () {
+ return this.weekday();
+ },
+ E : function () {
+ return this.isoWeekday();
+ },
+ a : function () {
+ return this.localeData().meridiem(this.hours(), this.minutes(), true);
+ },
+ A : function () {
+ return this.localeData().meridiem(this.hours(), this.minutes(), false);
+ },
+ H : function () {
+ return this.hours();
+ },
+ h : function () {
+ return this.hours() % 12 || 12;
+ },
+ m : function () {
+ return this.minutes();
+ },
+ s : function () {
+ return this.seconds();
+ },
+ S : function () {
+ return toInt(this.milliseconds() / 100);
+ },
+ SS : function () {
+ return leftZeroFill(toInt(this.milliseconds() / 10), 2);
+ },
+ SSS : function () {
+ return leftZeroFill(this.milliseconds(), 3);
+ },
+ SSSS : function () {
+ return leftZeroFill(this.milliseconds(), 3);
+ },
+ Z : function () {
+ var a = -this.zone(),
+ b = '+';
+ if (a < 0) {
+ a = -a;
+ b = '-';
+ }
+ return b + leftZeroFill(toInt(a / 60), 2) + ':' + leftZeroFill(toInt(a) % 60, 2);
+ },
+ ZZ : function () {
+ var a = -this.zone(),
+ b = '+';
+ if (a < 0) {
+ a = -a;
+ b = '-';
+ }
+ return b + leftZeroFill(toInt(a / 60), 2) + leftZeroFill(toInt(a) % 60, 2);
+ },
+ z : function () {
+ return this.zoneAbbr();
+ },
+ zz : function () {
+ return this.zoneName();
+ },
+ x : function () {
+ return this.valueOf();
+ },
+ X : function () {
+ return this.unix();
+ },
+ Q : function () {
+ return this.quarter();
+ }
+ },
+
+ deprecations = {},
+
+ lists = ['months', 'monthsShort', 'weekdays', 'weekdaysShort', 'weekdaysMin'];
+
+ // Pick the first defined of two or three arguments. dfl comes from
+ // default.
+ function dfl(a, b, c) {
+ switch (arguments.length) {
+ case 2: return a != null ? a : b;
+ case 3: return a != null ? a : b != null ? b : c;
+ default: throw new Error('Implement me');
+ }
+ }
+
+ function hasOwnProp(a, b) {
+ return hasOwnProperty.call(a, b);
+ }
+
+ function defaultParsingFlags() {
+ // We need to deep clone this object, and es5 standard is not very
+ // helpful.
+ return {
+ empty : false,
+ unusedTokens : [],
+ unusedInput : [],
+ overflow : -2,
+ charsLeftOver : 0,
+ nullInput : false,
+ invalidMonth : null,
+ invalidFormat : false,
+ userInvalidated : false,
+ iso: false
+ };
+ }
+
+ function printMsg(msg) {
+ if (moment.suppressDeprecationWarnings === false &&
+ typeof console !== 'undefined' && console.warn) {
+ console.warn('Deprecation warning: ' + msg);
+ }
+ }
+
+ function deprecate(msg, fn) {
+ var firstTime = true;
+ return extend(function () {
+ if (firstTime) {
+ printMsg(msg);
+ firstTime = false;
+ }
+ return fn.apply(this, arguments);
+ }, fn);
+ }
+
+ function deprecateSimple(name, msg) {
+ if (!deprecations[name]) {
+ printMsg(msg);
+ deprecations[name] = true;
+ }
+ }
+
+ function padToken(func, count) {
+ return function (a) {
+ return leftZeroFill(func.call(this, a), count);
+ };
+ }
+ function ordinalizeToken(func, period) {
+ return function (a) {
+ return this.localeData().ordinal(func.call(this, a), period);
+ };
+ }
+
+ while (ordinalizeTokens.length) {
+ i = ordinalizeTokens.pop();
+ formatTokenFunctions[i + 'o'] = ordinalizeToken(formatTokenFunctions[i], i);
+ }
+ while (paddedTokens.length) {
+ i = paddedTokens.pop();
+ formatTokenFunctions[i + i] = padToken(formatTokenFunctions[i], 2);
+ }
+ formatTokenFunctions.DDDD = padToken(formatTokenFunctions.DDD, 3);
+
+
+ /************************************
+ Constructors
+ ************************************/
+
+ function Locale() {
+ }
+
+ // Moment prototype object
+ function Moment(config, skipOverflow) {
+ if (skipOverflow !== false) {
+ checkOverflow(config);
+ }
+ copyConfig(this, config);
+ this._d = new Date(+config._d);
+ }
+
+ // Duration Constructor
+ function Duration(duration) {
+ var normalizedInput = normalizeObjectUnits(duration),
+ years = normalizedInput.year || 0,
+ quarters = normalizedInput.quarter || 0,
+ months = normalizedInput.month || 0,
+ weeks = normalizedInput.week || 0,
+ days = normalizedInput.day || 0,
+ hours = normalizedInput.hour || 0,
+ minutes = normalizedInput.minute || 0,
+ seconds = normalizedInput.second || 0,
+ milliseconds = normalizedInput.millisecond || 0;
+
+ // representation for dateAddRemove
+ this._milliseconds = +milliseconds +
+ seconds * 1e3 + // 1000
+ minutes * 6e4 + // 1000 * 60
+ hours * 36e5; // 1000 * 60 * 60
+ // Because of dateAddRemove treats 24 hours as different from a
+ // day when working around DST, we need to store them separately
+ this._days = +days +
+ weeks * 7;
+ // It is impossible translate months into days without knowing
+ // which months you are are talking about, so we have to store
+ // it separately.
+ this._months = +months +
+ quarters * 3 +
+ years * 12;
+
+ this._data = {};
+
+ this._locale = moment.localeData();
+
+ this._bubble();
+ }
+
+ /************************************
+ Helpers
+ ************************************/
+
+
+ function extend(a, b) {
+ for (var i in b) {
+ if (hasOwnProp(b, i)) {
+ a[i] = b[i];
+ }
+ }
+
+ if (hasOwnProp(b, 'toString')) {
+ a.toString = b.toString;
+ }
+
+ if (hasOwnProp(b, 'valueOf')) {
+ a.valueOf = b.valueOf;
+ }
+
+ return a;
+ }
+
+ function copyConfig(to, from) {
+ var i, prop, val;
+
+ if (typeof from._isAMomentObject !== 'undefined') {
+ to._isAMomentObject = from._isAMomentObject;
+ }
+ if (typeof from._i !== 'undefined') {
+ to._i = from._i;
+ }
+ if (typeof from._f !== 'undefined') {
+ to._f = from._f;
+ }
+ if (typeof from._l !== 'undefined') {
+ to._l = from._l;
+ }
+ if (typeof from._strict !== 'undefined') {
+ to._strict = from._strict;
+ }
+ if (typeof from._tzm !== 'undefined') {
+ to._tzm = from._tzm;
+ }
+ if (typeof from._isUTC !== 'undefined') {
+ to._isUTC = from._isUTC;
+ }
+ if (typeof from._offset !== 'undefined') {
+ to._offset = from._offset;
+ }
+ if (typeof from._pf !== 'undefined') {
+ to._pf = from._pf;
+ }
+ if (typeof from._locale !== 'undefined') {
+ to._locale = from._locale;
+ }
+
+ if (momentProperties.length > 0) {
+ for (i in momentProperties) {
+ prop = momentProperties[i];
+ val = from[prop];
+ if (typeof val !== 'undefined') {
+ to[prop] = val;
+ }
+ }
+ }
+
+ return to;
+ }
+
+ function absRound(number) {
+ if (number < 0) {
+ return Math.ceil(number);
+ } else {
+ return Math.floor(number);
+ }
+ }
+
+ // left zero fill a number
+ // see http://jsperf.com/left-zero-filling for performance comparison
+ function leftZeroFill(number, targetLength, forceSign) {
+ var output = '' + Math.abs(number),
+ sign = number >= 0;
+
+ while (output.length < targetLength) {
+ output = '0' + output;
+ }
+ return (sign ? (forceSign ? '+' : '') : '-') + output;
+ }
+
+ function positiveMomentsDifference(base, other) {
+ var res = {milliseconds: 0, months: 0};
+
+ res.months = other.month() - base.month() +
+ (other.year() - base.year()) * 12;
+ if (base.clone().add(res.months, 'M').isAfter(other)) {
+ --res.months;
+ }
+
+ res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
+
+ return res;
+ }
+
+ function momentsDifference(base, other) {
+ var res;
+ other = makeAs(other, base);
+ if (base.isBefore(other)) {
+ res = positiveMomentsDifference(base, other);
+ } else {
+ res = positiveMomentsDifference(other, base);
+ res.milliseconds = -res.milliseconds;
+ res.months = -res.months;
+ }
+
+ return res;
+ }
+
+ // TODO: remove 'name' arg after deprecation is removed
+ function createAdder(direction, name) {
+ return function (val, period) {
+ var dur, tmp;
+ //invert the arguments, but complain about it
+ if (period !== null && !isNaN(+period)) {
+ deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).');
+ tmp = val; val = period; period = tmp;
+ }
+
+ val = typeof val === 'string' ? +val : val;
+ dur = moment.duration(val, period);
+ addOrSubtractDurationFromMoment(this, dur, direction);
+ return this;
+ };
+ }
+
+ function addOrSubtractDurationFromMoment(mom, duration, isAdding, updateOffset) {
+ var milliseconds = duration._milliseconds,
+ days = duration._days,
+ months = duration._months;
+ updateOffset = updateOffset == null ? true : updateOffset;
+
+ if (milliseconds) {
+ mom._d.setTime(+mom._d + milliseconds * isAdding);
+ }
+ if (days) {
+ rawSetter(mom, 'Date', rawGetter(mom, 'Date') + days * isAdding);
+ }
+ if (months) {
+ rawMonthSetter(mom, rawGetter(mom, 'Month') + months * isAdding);
+ }
+ if (updateOffset) {
+ moment.updateOffset(mom, days || months);
+ }
+ }
+
+ // check if is an array
+ function isArray(input) {
+ return Object.prototype.toString.call(input) === '[object Array]';
+ }
+
+ function isDate(input) {
+ return Object.prototype.toString.call(input) === '[object Date]' ||
+ input instanceof Date;
+ }
+
+ // compare two arrays, return the number of differences
+ function compareArrays(array1, array2, dontConvert) {
+ var len = Math.min(array1.length, array2.length),
+ lengthDiff = Math.abs(array1.length - array2.length),
+ diffs = 0,
+ i;
+ for (i = 0; i < len; i++) {
+ if ((dontConvert && array1[i] !== array2[i]) ||
+ (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
+ diffs++;
+ }
+ }
+ return diffs + lengthDiff;
+ }
+
+ function normalizeUnits(units) {
+ if (units) {
+ var lowered = units.toLowerCase().replace(/(.)s$/, '$1');
+ units = unitAliases[units] || camelFunctions[lowered] || lowered;
+ }
+ return units;
+ }
+
+ function normalizeObjectUnits(inputObject) {
+ var normalizedInput = {},
+ normalizedProp,
+ prop;
+
+ for (prop in inputObject) {
+ if (hasOwnProp(inputObject, prop)) {
+ normalizedProp = normalizeUnits(prop);
+ if (normalizedProp) {
+ normalizedInput[normalizedProp] = inputObject[prop];
+ }
+ }
+ }
+
+ return normalizedInput;
+ }
+
+ function makeList(field) {
+ var count, setter;
+
+ if (field.indexOf('week') === 0) {
+ count = 7;
+ setter = 'day';
+ }
+ else if (field.indexOf('month') === 0) {
+ count = 12;
+ setter = 'month';
+ }
+ else {
+ return;
+ }
+
+ moment[field] = function (format, index) {
+ var i, getter,
+ method = moment._locale[field],
+ results = [];
+
+ if (typeof format === 'number') {
+ index = format;
+ format = undefined;
+ }
+
+ getter = function (i) {
+ var m = moment().utc().set(setter, i);
+ return method.call(moment._locale, m, format || '');
+ };
+
+ if (index != null) {
+ return getter(index);
+ }
+ else {
+ for (i = 0; i < count; i++) {
+ results.push(getter(i));
+ }
+ return results;
+ }
+ };
+ }
+
+ function toInt(argumentForCoercion) {
+ var coercedNumber = +argumentForCoercion,
+ value = 0;
+
+ if (coercedNumber !== 0 && isFinite(coercedNumber)) {
+ if (coercedNumber >= 0) {
+ value = Math.floor(coercedNumber);
+ } else {
+ value = Math.ceil(coercedNumber);
+ }
+ }
+
+ return value;
+ }
+
+ function daysInMonth(year, month) {
+ return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
+ }
+
+ function weeksInYear(year, dow, doy) {
+ return weekOfYear(moment([year, 11, 31 + dow - doy]), dow, doy).week;
+ }
+
+ function daysInYear(year) {
+ return isLeapYear(year) ? 366 : 365;
+ }
+
+ function isLeapYear(year) {
+ return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
+ }
+
+ function checkOverflow(m) {
+ var overflow;
+ if (m._a && m._pf.overflow === -2) {
+ overflow =
+ m._a[MONTH] < 0 || m._a[MONTH] > 11 ? MONTH :
+ m._a[DATE] < 1 || m._a[DATE] > daysInMonth(m._a[YEAR], m._a[MONTH]) ? DATE :
+ m._a[HOUR] < 0 || m._a[HOUR] > 24 ||
+ (m._a[HOUR] === 24 && (m._a[MINUTE] !== 0 ||
+ m._a[SECOND] !== 0 ||
+ m._a[MILLISECOND] !== 0)) ? HOUR :
+ m._a[MINUTE] < 0 || m._a[MINUTE] > 59 ? MINUTE :
+ m._a[SECOND] < 0 || m._a[SECOND] > 59 ? SECOND :
+ m._a[MILLISECOND] < 0 || m._a[MILLISECOND] > 999 ? MILLISECOND :
+ -1;
+
+ if (m._pf._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
+ overflow = DATE;
+ }
+
+ m._pf.overflow = overflow;
+ }
+ }
+
+ function isValid(m) {
+ if (m._isValid == null) {
+ m._isValid = !isNaN(m._d.getTime()) &&
+ m._pf.overflow < 0 &&
+ !m._pf.empty &&
+ !m._pf.invalidMonth &&
+ !m._pf.nullInput &&
+ !m._pf.invalidFormat &&
+ !m._pf.userInvalidated;
+
+ if (m._strict) {
+ m._isValid = m._isValid &&
+ m._pf.charsLeftOver === 0 &&
+ m._pf.unusedTokens.length === 0 &&
+ m._pf.bigHour === undefined;
+ }
+ }
+ return m._isValid;
+ }
+
+ function normalizeLocale(key) {
+ return key ? key.toLowerCase().replace('_', '-') : key;
+ }
+
+ // pick the locale from the array
+ // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
+ // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
+ function chooseLocale(names) {
+ var i = 0, j, next, locale, split;
+
+ while (i < names.length) {
+ split = normalizeLocale(names[i]).split('-');
+ j = split.length;
+ next = normalizeLocale(names[i + 1]);
+ next = next ? next.split('-') : null;
+ while (j > 0) {
+ locale = loadLocale(split.slice(0, j).join('-'));
+ if (locale) {
+ return locale;
+ }
+ if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
+ //the next array item is better than a shallower substring of this one
+ break;
+ }
+ j--;
+ }
+ i++;
+ }
+ return null;
+ }
+
+ function loadLocale(name) {
+ var oldLocale = null;
+ if (!locales[name] && hasModule) {
+ try {
+ oldLocale = moment.locale();
+ require('./locale/' + name);
+ // because defineLocale currently also sets the global locale, we want to undo that for lazy loaded locales
+ moment.locale(oldLocale);
+ } catch (e) { }
+ }
+ return locales[name];
+ }
+
+ // Return a moment from input, that is local/utc/zone equivalent to model.
+ function makeAs(input, model) {
+ var res, diff;
+ if (model._isUTC) {
+ res = model.clone();
+ diff = (moment.isMoment(input) || isDate(input) ?
+ +input : +moment(input)) - (+res);
+ // Use low-level api, because this fn is low-level api.
+ res._d.setTime(+res._d + diff);
+ moment.updateOffset(res, false);
+ return res;
+ } else {
+ return moment(input).local();
+ }
+ }
+
+ /************************************
+ Locale
+ ************************************/
+
+
+ extend(Locale.prototype, {
+
+ set : function (config) {
+ var prop, i;
+ for (i in config) {
+ prop = config[i];
+ if (typeof prop === 'function') {
+ this[i] = prop;
+ } else {
+ this['_' + i] = prop;
+ }
+ }
+ // Lenient ordinal parsing accepts just a number in addition to
+ // number + (possibly) stuff coming from _ordinalParseLenient.
+ this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + /\d{1,2}/.source);
+ },
+
+ _months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
+ months : function (m) {
+ return this._months[m.month()];
+ },
+
+ _monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
+ monthsShort : function (m) {
+ return this._monthsShort[m.month()];
+ },
+
+ monthsParse : function (monthName, format, strict) {
+ var i, mom, regex;
+
+ if (!this._monthsParse) {
+ this._monthsParse = [];
+ this._longMonthsParse = [];
+ this._shortMonthsParse = [];
+ }
+
+ for (i = 0; i < 12; i++) {
+ // make the regex if we don't have it already
+ mom = moment.utc([2000, i]);
+ if (strict && !this._longMonthsParse[i]) {
+ this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
+ this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
+ }
+ if (!strict && !this._monthsParse[i]) {
+ regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
+ this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
+ }
+ // test the regex
+ if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
+ return i;
+ } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
+ return i;
+ } else if (!strict && this._monthsParse[i].test(monthName)) {
+ return i;
+ }
+ }
+ },
+
+ _weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
+ weekdays : function (m) {
+ return this._weekdays[m.day()];
+ },
+
+ _weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
+ weekdaysShort : function (m) {
+ return this._weekdaysShort[m.day()];
+ },
+
+ _weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
+ weekdaysMin : function (m) {
+ return this._weekdaysMin[m.day()];
+ },
+
+ weekdaysParse : function (weekdayName) {
+ var i, mom, regex;
+
+ if (!this._weekdaysParse) {
+ this._weekdaysParse = [];
+ }
+
+ for (i = 0; i < 7; i++) {
+ // make the regex if we don't have it already
+ if (!this._weekdaysParse[i]) {
+ mom = moment([2000, 1]).day(i);
+ regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
+ this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
+ }
+ // test the regex
+ if (this._weekdaysParse[i].test(weekdayName)) {
+ return i;
+ }
+ }
+ },
+
+ _longDateFormat : {
+ LTS : 'h:mm:ss A',
+ LT : 'h:mm A',
+ L : 'MM/DD/YYYY',
+ LL : 'MMMM D, YYYY',
+ LLL : 'MMMM D, YYYY LT',
+ LLLL : 'dddd, MMMM D, YYYY LT'
+ },
+ longDateFormat : function (key) {
+ var output = this._longDateFormat[key];
+ if (!output && this._longDateFormat[key.toUpperCase()]) {
+ output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) {
+ return val.slice(1);
+ });
+ this._longDateFormat[key] = output;
+ }
+ return output;
+ },
+
+ isPM : function (input) {
+ // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
+ // Using charAt should be more compatible.
+ return ((input + '').toLowerCase().charAt(0) === 'p');
+ },
+
+ _meridiemParse : /[ap]\.?m?\.?/i,
+ meridiem : function (hours, minutes, isLower) {
+ if (hours > 11) {
+ return isLower ? 'pm' : 'PM';
+ } else {
+ return isLower ? 'am' : 'AM';
+ }
+ },
+
+ _calendar : {
+ sameDay : '[Today at] LT',
+ nextDay : '[Tomorrow at] LT',
+ nextWeek : 'dddd [at] LT',
+ lastDay : '[Yesterday at] LT',
+ lastWeek : '[Last] dddd [at] LT',
+ sameElse : 'L'
+ },
+ calendar : function (key, mom, now) {
+ var output = this._calendar[key];
+ return typeof output === 'function' ? output.apply(mom, [now]) : output;
+ },
+
+ _relativeTime : {
+ future : 'in %s',
+ past : '%s ago',
+ s : 'a few seconds',
+ m : 'a minute',
+ mm : '%d minutes',
+ h : 'an hour',
+ hh : '%d hours',
+ d : 'a day',
+ dd : '%d days',
+ M : 'a month',
+ MM : '%d months',
+ y : 'a year',
+ yy : '%d years'
+ },
+
+ relativeTime : function (number, withoutSuffix, string, isFuture) {
+ var output = this._relativeTime[string];
+ return (typeof output === 'function') ?
+ output(number, withoutSuffix, string, isFuture) :
+ output.replace(/%d/i, number);
+ },
+
+ pastFuture : function (diff, output) {
+ var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
+ return typeof format === 'function' ? format(output) : format.replace(/%s/i, output);
+ },
+
+ ordinal : function (number) {
+ return this._ordinal.replace('%d', number);
+ },
+ _ordinal : '%d',
+ _ordinalParse : /\d{1,2}/,
+
+ preparse : function (string) {
+ return string;
+ },
+
+ postformat : function (string) {
+ return string;
+ },
+
+ week : function (mom) {
+ return weekOfYear(mom, this._week.dow, this._week.doy).week;
+ },
+
+ _week : {
+ dow : 0, // Sunday is the first day of the week.
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
+ },
+
+ _invalidDate: 'Invalid date',
+ invalidDate: function () {
+ return this._invalidDate;
+ }
+ });
+
+ /************************************
+ Formatting
+ ************************************/
+
+
+ function removeFormattingTokens(input) {
+ if (input.match(/\[[\s\S]/)) {
+ return input.replace(/^\[|\]$/g, '');
+ }
+ return input.replace(/\\/g, '');
+ }
+
+ function makeFormatFunction(format) {
+ var array = format.match(formattingTokens), i, length;
+
+ for (i = 0, length = array.length; i < length; i++) {
+ if (formatTokenFunctions[array[i]]) {
+ array[i] = formatTokenFunctions[array[i]];
+ } else {
+ array[i] = removeFormattingTokens(array[i]);
+ }
+ }
+
+ return function (mom) {
+ var output = '';
+ for (i = 0; i < length; i++) {
+ output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];
+ }
+ return output;
+ };
+ }
+
+ // format date using native date object
+ function formatMoment(m, format) {
+ if (!m.isValid()) {
+ return m.localeData().invalidDate();
+ }
+
+ format = expandFormat(format, m.localeData());
+
+ if (!formatFunctions[format]) {
+ formatFunctions[format] = makeFormatFunction(format);
+ }
+
+ return formatFunctions[format](m);
+ }
+
+ function expandFormat(format, locale) {
+ var i = 5;
+
+ function replaceLongDateFormatTokens(input) {
+ return locale.longDateFormat(input) || input;
+ }
+
+ localFormattingTokens.lastIndex = 0;
+ while (i >= 0 && localFormattingTokens.test(format)) {
+ format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
+ localFormattingTokens.lastIndex = 0;
+ i -= 1;
+ }
+
+ return format;
+ }
+
+
+ /************************************
+ Parsing
+ ************************************/
+
+
+ // get the regex to find the next token
+ function getParseRegexForToken(token, config) {
+ var a, strict = config._strict;
+ switch (token) {
+ case 'Q':
+ return parseTokenOneDigit;
+ case 'DDDD':
+ return parseTokenThreeDigits;
+ case 'YYYY':
+ case 'GGGG':
+ case 'gggg':
+ return strict ? parseTokenFourDigits : parseTokenOneToFourDigits;
+ case 'Y':
+ case 'G':
+ case 'g':
+ return parseTokenSignedNumber;
+ case 'YYYYYY':
+ case 'YYYYY':
+ case 'GGGGG':
+ case 'ggggg':
+ return strict ? parseTokenSixDigits : parseTokenOneToSixDigits;
+ case 'S':
+ if (strict) {
+ return parseTokenOneDigit;
+ }
+ /* falls through */
+ case 'SS':
+ if (strict) {
+ return parseTokenTwoDigits;
+ }
+ /* falls through */
+ case 'SSS':
+ if (strict) {
+ return parseTokenThreeDigits;
+ }
+ /* falls through */
+ case 'DDD':
+ return parseTokenOneToThreeDigits;
+ case 'MMM':
+ case 'MMMM':
+ case 'dd':
+ case 'ddd':
+ case 'dddd':
+ return parseTokenWord;
+ case 'a':
+ case 'A':
+ return config._locale._meridiemParse;
+ case 'x':
+ return parseTokenOffsetMs;
+ case 'X':
+ return parseTokenTimestampMs;
+ case 'Z':
+ case 'ZZ':
+ return parseTokenTimezone;
+ case 'T':
+ return parseTokenT;
+ case 'SSSS':
+ return parseTokenDigits;
+ case 'MM':
+ case 'DD':
+ case 'YY':
+ case 'GG':
+ case 'gg':
+ case 'HH':
+ case 'hh':
+ case 'mm':
+ case 'ss':
+ case 'ww':
+ case 'WW':
+ return strict ? parseTokenTwoDigits : parseTokenOneOrTwoDigits;
+ case 'M':
+ case 'D':
+ case 'd':
+ case 'H':
+ case 'h':
+ case 'm':
+ case 's':
+ case 'w':
+ case 'W':
+ case 'e':
+ case 'E':
+ return parseTokenOneOrTwoDigits;
+ case 'Do':
+ return strict ? config._locale._ordinalParse : config._locale._ordinalParseLenient;
+ default :
+ a = new RegExp(regexpEscape(unescapeFormat(token.replace('\\', '')), 'i'));
+ return a;
+ }
+ }
+
+ function timezoneMinutesFromString(string) {
+ string = string || '';
+ var possibleTzMatches = (string.match(parseTokenTimezone) || []),
+ tzChunk = possibleTzMatches[possibleTzMatches.length - 1] || [],
+ parts = (tzChunk + '').match(parseTimezoneChunker) || ['-', 0, 0],
+ minutes = +(parts[1] * 60) + toInt(parts[2]);
+
+ return parts[0] === '+' ? -minutes : minutes;
+ }
+
+ // function to convert string input to date
+ function addTimeToArrayFromToken(token, input, config) {
+ var a, datePartArray = config._a;
+
+ switch (token) {
+ // QUARTER
+ case 'Q':
+ if (input != null) {
+ datePartArray[MONTH] = (toInt(input) - 1) * 3;
+ }
+ break;
+ // MONTH
+ case 'M' : // fall through to MM
+ case 'MM' :
+ if (input != null) {
+ datePartArray[MONTH] = toInt(input) - 1;
+ }
+ break;
+ case 'MMM' : // fall through to MMMM
+ case 'MMMM' :
+ a = config._locale.monthsParse(input, token, config._strict);
+ // if we didn't find a month name, mark the date as invalid.
+ if (a != null) {
+ datePartArray[MONTH] = a;
+ } else {
+ config._pf.invalidMonth = input;
+ }
+ break;
+ // DAY OF MONTH
+ case 'D' : // fall through to DD
+ case 'DD' :
+ if (input != null) {
+ datePartArray[DATE] = toInt(input);
+ }
+ break;
+ case 'Do' :
+ if (input != null) {
+ datePartArray[DATE] = toInt(parseInt(
+ input.match(/\d{1,2}/)[0], 10));
+ }
+ break;
+ // DAY OF YEAR
+ case 'DDD' : // fall through to DDDD
+ case 'DDDD' :
+ if (input != null) {
+ config._dayOfYear = toInt(input);
+ }
+
+ break;
+ // YEAR
+ case 'YY' :
+ datePartArray[YEAR] = moment.parseTwoDigitYear(input);
+ break;
+ case 'YYYY' :
+ case 'YYYYY' :
+ case 'YYYYYY' :
+ datePartArray[YEAR] = toInt(input);
+ break;
+ // AM / PM
+ case 'a' : // fall through to A
+ case 'A' :
+ config._isPm = config._locale.isPM(input);
+ break;
+ // HOUR
+ case 'h' : // fall through to hh
+ case 'hh' :
+ config._pf.bigHour = true;
+ /* falls through */
+ case 'H' : // fall through to HH
+ case 'HH' :
+ datePartArray[HOUR] = toInt(input);
+ break;
+ // MINUTE
+ case 'm' : // fall through to mm
+ case 'mm' :
+ datePartArray[MINUTE] = toInt(input);
+ break;
+ // SECOND
+ case 's' : // fall through to ss
+ case 'ss' :
+ datePartArray[SECOND] = toInt(input);
+ break;
+ // MILLISECOND
+ case 'S' :
+ case 'SS' :
+ case 'SSS' :
+ case 'SSSS' :
+ datePartArray[MILLISECOND] = toInt(('0.' + input) * 1000);
+ break;
+ // UNIX OFFSET (MILLISECONDS)
+ case 'x':
+ config._d = new Date(toInt(input));
+ break;
+ // UNIX TIMESTAMP WITH MS
+ case 'X':
+ config._d = new Date(parseFloat(input) * 1000);
+ break;
+ // TIMEZONE
+ case 'Z' : // fall through to ZZ
+ case 'ZZ' :
+ config._useUTC = true;
+ config._tzm = timezoneMinutesFromString(input);
+ break;
+ // WEEKDAY - human
+ case 'dd':
+ case 'ddd':
+ case 'dddd':
+ a = config._locale.weekdaysParse(input);
+ // if we didn't get a weekday name, mark the date as invalid
+ if (a != null) {
+ config._w = config._w || {};
+ config._w['d'] = a;
+ } else {
+ config._pf.invalidWeekday = input;
+ }
+ break;
+ // WEEK, WEEK DAY - numeric
+ case 'w':
+ case 'ww':
+ case 'W':
+ case 'WW':
+ case 'd':
+ case 'e':
+ case 'E':
+ token = token.substr(0, 1);
+ /* falls through */
+ case 'gggg':
+ case 'GGGG':
+ case 'GGGGG':
+ token = token.substr(0, 2);
+ if (input) {
+ config._w = config._w || {};
+ config._w[token] = toInt(input);
+ }
+ break;
+ case 'gg':
+ case 'GG':
+ config._w = config._w || {};
+ config._w[token] = moment.parseTwoDigitYear(input);
+ }
+ }
+
+ function dayOfYearFromWeekInfo(config) {
+ var w, weekYear, week, weekday, dow, doy, temp;
+
+ w = config._w;
+ if (w.GG != null || w.W != null || w.E != null) {
+ dow = 1;
+ doy = 4;
+
+ // TODO: We need to take the current isoWeekYear, but that depends on
+ // how we interpret now (local, utc, fixed offset). So create
+ // a now version of current config (take local/utc/offset flags, and
+ // create now).
+ weekYear = dfl(w.GG, config._a[YEAR], weekOfYear(moment(), 1, 4).year);
+ week = dfl(w.W, 1);
+ weekday = dfl(w.E, 1);
+ } else {
+ dow = config._locale._week.dow;
+ doy = config._locale._week.doy;
+
+ weekYear = dfl(w.gg, config._a[YEAR], weekOfYear(moment(), dow, doy).year);
+ week = dfl(w.w, 1);
+
+ if (w.d != null) {
+ // weekday -- low day numbers are considered next week
+ weekday = w.d;
+ if (weekday < dow) {
+ ++week;
+ }
+ } else if (w.e != null) {
+ // local weekday -- counting starts from begining of week
+ weekday = w.e + dow;
+ } else {
+ // default to begining of week
+ weekday = dow;
+ }
+ }
+ temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow);
+
+ config._a[YEAR] = temp.year;
+ config._dayOfYear = temp.dayOfYear;
+ }
+
+ // convert an array to a date.
+ // the array should mirror the parameters below
+ // note: all values past the year are optional and will default to the lowest possible value.
+ // [year, month, day , hour, minute, second, millisecond]
+ function dateFromConfig(config) {
+ var i, date, input = [], currentDate, yearToUse;
+
+ if (config._d) {
+ return;
+ }
+
+ currentDate = currentDateArray(config);
+
+ //compute day of the year from weeks and weekdays
+ if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
+ dayOfYearFromWeekInfo(config);
+ }
+
+ //if the day of the year is set, figure out what it is
+ if (config._dayOfYear) {
+ yearToUse = dfl(config._a[YEAR], currentDate[YEAR]);
+
+ if (config._dayOfYear > daysInYear(yearToUse)) {
+ config._pf._overflowDayOfYear = true;
+ }
+
+ date = makeUTCDate(yearToUse, 0, config._dayOfYear);
+ config._a[MONTH] = date.getUTCMonth();
+ config._a[DATE] = date.getUTCDate();
+ }
+
+ // Default to current date.
+ // * if no year, month, day of month are given, default to today
+ // * if day of month is given, default month and year
+ // * if month is given, default only year
+ // * if year is given, don't default anything
+ for (i = 0; i < 3 && config._a[i] == null; ++i) {
+ config._a[i] = input[i] = currentDate[i];
+ }
+
+ // Zero out whatever was not defaulted, including time
+ for (; i < 7; i++) {
+ config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
+ }
+
+ // Check for 24:00:00.000
+ if (config._a[HOUR] === 24 &&
+ config._a[MINUTE] === 0 &&
+ config._a[SECOND] === 0 &&
+ config._a[MILLISECOND] === 0) {
+ config._nextDay = true;
+ config._a[HOUR] = 0;
+ }
+
+ config._d = (config._useUTC ? makeUTCDate : makeDate).apply(null, input);
+ // Apply timezone offset from input. The actual zone can be changed
+ // with parseZone.
+ if (config._tzm != null) {
+ config._d.setUTCMinutes(config._d.getUTCMinutes() + config._tzm);
+ }
+
+ if (config._nextDay) {
+ config._a[HOUR] = 24;
+ }
+ }
+
+ function dateFromObject(config) {
+ var normalizedInput;
+
+ if (config._d) {
+ return;
+ }
+
+ normalizedInput = normalizeObjectUnits(config._i);
+ config._a = [
+ normalizedInput.year,
+ normalizedInput.month,
+ normalizedInput.day || normalizedInput.date,
+ normalizedInput.hour,
+ normalizedInput.minute,
+ normalizedInput.second,
+ normalizedInput.millisecond
+ ];
+
+ dateFromConfig(config);
+ }
+
+ function currentDateArray(config) {
+ var now = new Date();
+ if (config._useUTC) {
+ return [
+ now.getUTCFullYear(),
+ now.getUTCMonth(),
+ now.getUTCDate()
+ ];
+ } else {
+ return [now.getFullYear(), now.getMonth(), now.getDate()];
+ }
+ }
+
+ // date from string and format string
+ function makeDateFromStringAndFormat(config) {
+ if (config._f === moment.ISO_8601) {
+ parseISO(config);
+ return;
+ }
+
+ config._a = [];
+ config._pf.empty = true;
+
+ // This array is used to make a Date, either with `new Date` or `Date.UTC`
+ var string = '' + config._i,
+ i, parsedInput, tokens, token, skipped,
+ stringLength = string.length,
+ totalParsedInputLength = 0;
+
+ tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
+
+ for (i = 0; i < tokens.length; i++) {
+ token = tokens[i];
+ parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
+ if (parsedInput) {
+ skipped = string.substr(0, string.indexOf(parsedInput));
+ if (skipped.length > 0) {
+ config._pf.unusedInput.push(skipped);
+ }
+ string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
+ totalParsedInputLength += parsedInput.length;
+ }
+ // don't parse if it's not a known token
+ if (formatTokenFunctions[token]) {
+ if (parsedInput) {
+ config._pf.empty = false;
+ }
+ else {
+ config._pf.unusedTokens.push(token);
+ }
+ addTimeToArrayFromToken(token, parsedInput, config);
+ }
+ else if (config._strict && !parsedInput) {
+ config._pf.unusedTokens.push(token);
+ }
+ }
+
+ // add remaining unparsed input length to the string
+ config._pf.charsLeftOver = stringLength - totalParsedInputLength;
+ if (string.length > 0) {
+ config._pf.unusedInput.push(string);
+ }
+
+ // clear _12h flag if hour is <= 12
+ if (config._pf.bigHour === true && config._a[HOUR] <= 12) {
+ config._pf.bigHour = undefined;
+ }
+ // handle am pm
+ if (config._isPm && config._a[HOUR] < 12) {
+ config._a[HOUR] += 12;
+ }
+ // if is 12 am, change hours to 0
+ if (config._isPm === false && config._a[HOUR] === 12) {
+ config._a[HOUR] = 0;
+ }
+ dateFromConfig(config);
+ checkOverflow(config);
+ }
+
+ function unescapeFormat(s) {
+ return s.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
+ return p1 || p2 || p3 || p4;
+ });
+ }
+
+ // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
+ function regexpEscape(s) {
+ return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
+ }
+
+ // date from string and array of format strings
+ function makeDateFromStringAndArray(config) {
+ var tempConfig,
+ bestMoment,
+
+ scoreToBeat,
+ i,
+ currentScore;
+
+ if (config._f.length === 0) {
+ config._pf.invalidFormat = true;
+ config._d = new Date(NaN);
+ return;
+ }
+
+ for (i = 0; i < config._f.length; i++) {
+ currentScore = 0;
+ tempConfig = copyConfig({}, config);
+ if (config._useUTC != null) {
+ tempConfig._useUTC = config._useUTC;
+ }
+ tempConfig._pf = defaultParsingFlags();
+ tempConfig._f = config._f[i];
+ makeDateFromStringAndFormat(tempConfig);
+
+ if (!isValid(tempConfig)) {
+ continue;
+ }
+
+ // if there is any input that was not parsed add a penalty for that format
+ currentScore += tempConfig._pf.charsLeftOver;
+
+ //or tokens
+ currentScore += tempConfig._pf.unusedTokens.length * 10;
+
+ tempConfig._pf.score = currentScore;
+
+ if (scoreToBeat == null || currentScore < scoreToBeat) {
+ scoreToBeat = currentScore;
+ bestMoment = tempConfig;
+ }
+ }
+
+ extend(config, bestMoment || tempConfig);
+ }
+
+ // date from iso format
+ function parseISO(config) {
+ var i, l,
+ string = config._i,
+ match = isoRegex.exec(string);
+
+ if (match) {
+ config._pf.iso = true;
+ for (i = 0, l = isoDates.length; i < l; i++) {
+ if (isoDates[i][1].exec(string)) {
+ // match[5] should be 'T' or undefined
+ config._f = isoDates[i][0] + (match[6] || ' ');
+ break;
+ }
+ }
+ for (i = 0, l = isoTimes.length; i < l; i++) {
+ if (isoTimes[i][1].exec(string)) {
+ config._f += isoTimes[i][0];
+ break;
+ }
+ }
+ if (string.match(parseTokenTimezone)) {
+ config._f += 'Z';
+ }
+ makeDateFromStringAndFormat(config);
+ } else {
+ config._isValid = false;
+ }
+ }
+
+ // date from iso format or fallback
+ function makeDateFromString(config) {
+ parseISO(config);
+ if (config._isValid === false) {
+ delete config._isValid;
+ moment.createFromInputFallback(config);
+ }
+ }
+
+ function map(arr, fn) {
+ var res = [], i;
+ for (i = 0; i < arr.length; ++i) {
+ res.push(fn(arr[i], i));
+ }
+ return res;
+ }
+
+ function makeDateFromInput(config) {
+ var input = config._i, matched;
+ if (input === undefined) {
+ config._d = new Date();
+ } else if (isDate(input)) {
+ config._d = new Date(+input);
+ } else if ((matched = aspNetJsonRegex.exec(input)) !== null) {
+ config._d = new Date(+matched[1]);
+ } else if (typeof input === 'string') {
+ makeDateFromString(config);
+ } else if (isArray(input)) {
+ config._a = map(input.slice(0), function (obj) {
+ return parseInt(obj, 10);
+ });
+ dateFromConfig(config);
+ } else if (typeof(input) === 'object') {
+ dateFromObject(config);
+ } else if (typeof(input) === 'number') {
+ // from milliseconds
+ config._d = new Date(input);
+ } else {
+ moment.createFromInputFallback(config);
+ }
+ }
+
+ function makeDate(y, m, d, h, M, s, ms) {
+ //can't just apply() to create a date:
+ //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
+ var date = new Date(y, m, d, h, M, s, ms);
+
+ //the date constructor doesn't accept years < 1970
+ if (y < 1970) {
+ date.setFullYear(y);
+ }
+ return date;
+ }
+
+ function makeUTCDate(y) {
+ var date = new Date(Date.UTC.apply(null, arguments));
+ if (y < 1970) {
+ date.setUTCFullYear(y);
+ }
+ return date;
+ }
+
+ function parseWeekday(input, locale) {
+ if (typeof input === 'string') {
+ if (!isNaN(input)) {
+ input = parseInt(input, 10);
+ }
+ else {
+ input = locale.weekdaysParse(input);
+ if (typeof input !== 'number') {
+ return null;
+ }
+ }
+ }
+ return input;
+ }
+
+ /************************************
+ Relative Time
+ ************************************/
+
+
+ // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
+ function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
+ return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
+ }
+
+ function relativeTime(posNegDuration, withoutSuffix, locale) {
+ var duration = moment.duration(posNegDuration).abs(),
+ seconds = round(duration.as('s')),
+ minutes = round(duration.as('m')),
+ hours = round(duration.as('h')),
+ days = round(duration.as('d')),
+ months = round(duration.as('M')),
+ years = round(duration.as('y')),
+
+ args = seconds < relativeTimeThresholds.s && ['s', seconds] ||
+ minutes === 1 && ['m'] ||
+ minutes < relativeTimeThresholds.m && ['mm', minutes] ||
+ hours === 1 && ['h'] ||
+ hours < relativeTimeThresholds.h && ['hh', hours] ||
+ days === 1 && ['d'] ||
+ days < relativeTimeThresholds.d && ['dd', days] ||
+ months === 1 && ['M'] ||
+ months < relativeTimeThresholds.M && ['MM', months] ||
+ years === 1 && ['y'] || ['yy', years];
+
+ args[2] = withoutSuffix;
+ args[3] = +posNegDuration > 0;
+ args[4] = locale;
+ return substituteTimeAgo.apply({}, args);
+ }
+
+
+ /************************************
+ Week of Year
+ ************************************/
+
+
+ // firstDayOfWeek 0 = sun, 6 = sat
+ // the day of the week that starts the week
+ // (usually sunday or monday)
+ // firstDayOfWeekOfYear 0 = sun, 6 = sat
+ // the first week is the week that contains the first
+ // of this day of the week
+ // (eg. ISO weeks use thursday (4))
+ function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) {
+ var end = firstDayOfWeekOfYear - firstDayOfWeek,
+ daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(),
+ adjustedMoment;
+
+
+ if (daysToDayOfWeek > end) {
+ daysToDayOfWeek -= 7;
+ }
+
+ if (daysToDayOfWeek < end - 7) {
+ daysToDayOfWeek += 7;
+ }
+
+ adjustedMoment = moment(mom).add(daysToDayOfWeek, 'd');
+ return {
+ week: Math.ceil(adjustedMoment.dayOfYear() / 7),
+ year: adjustedMoment.year()
+ };
+ }
+
+ //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
+ function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) {
+ var d = makeUTCDate(year, 0, 1).getUTCDay(), daysToAdd, dayOfYear;
+
+ d = d === 0 ? 7 : d;
+ weekday = weekday != null ? weekday : firstDayOfWeek;
+ daysToAdd = firstDayOfWeek - d + (d > firstDayOfWeekOfYear ? 7 : 0) - (d < firstDayOfWeek ? 7 : 0);
+ dayOfYear = 7 * (week - 1) + (weekday - firstDayOfWeek) + daysToAdd + 1;
+
+ return {
+ year: dayOfYear > 0 ? year : year - 1,
+ dayOfYear: dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear
+ };
+ }
+
+ /************************************
+ Top Level Functions
+ ************************************/
+
+ function makeMoment(config) {
+ var input = config._i,
+ format = config._f,
+ res;
+
+ config._locale = config._locale || moment.localeData(config._l);
+
+ if (input === null || (format === undefined && input === '')) {
+ return moment.invalid({nullInput: true});
+ }
+
+ if (typeof input === 'string') {
+ config._i = input = config._locale.preparse(input);
+ }
+
+ if (moment.isMoment(input)) {
+ return new Moment(input, true);
+ } else if (format) {
+ if (isArray(format)) {
+ makeDateFromStringAndArray(config);
+ } else {
+ makeDateFromStringAndFormat(config);
+ }
+ } else {
+ makeDateFromInput(config);
+ }
+
+ res = new Moment(config);
+ if (res._nextDay) {
+ // Adding is smart enough around DST
+ res.add(1, 'd');
+ res._nextDay = undefined;
+ }
+
+ return res;
+ }
+
+ moment = function (input, format, locale, strict) {
+ var c;
+
+ if (typeof(locale) === 'boolean') {
+ strict = locale;
+ locale = undefined;
+ }
+ // object construction must be done this way.
+ // https://github.com/moment/moment/issues/1423
+ c = {};
+ c._isAMomentObject = true;
+ c._i = input;
+ c._f = format;
+ c._l = locale;
+ c._strict = strict;
+ c._isUTC = false;
+ c._pf = defaultParsingFlags();
+
+ return makeMoment(c);
+ };
+
+ moment.suppressDeprecationWarnings = false;
+
+ moment.createFromInputFallback = deprecate(
+ 'moment construction falls back to js Date. This is ' +
+ 'discouraged and will be removed in upcoming major ' +
+ 'release. Please refer to ' +
+ 'https://github.com/moment/moment/issues/1407 for more info.',
+ function (config) {
+ config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
+ }
+ );
+
+ // Pick a moment m from moments so that m[fn](other) is true for all
+ // other. This relies on the function fn to be transitive.
+ //
+ // moments should either be an array of moment objects or an array, whose
+ // first element is an array of moment objects.
+ function pickBy(fn, moments) {
+ var res, i;
+ if (moments.length === 1 && isArray(moments[0])) {
+ moments = moments[0];
+ }
+ if (!moments.length) {
+ return moment();
+ }
+ res = moments[0];
+ for (i = 1; i < moments.length; ++i) {
+ if (moments[i][fn](res)) {
+ res = moments[i];
+ }
+ }
+ return res;
+ }
+
+ moment.min = function () {
+ var args = [].slice.call(arguments, 0);
+
+ return pickBy('isBefore', args);
+ };
+
+ moment.max = function () {
+ var args = [].slice.call(arguments, 0);
+
+ return pickBy('isAfter', args);
+ };
+
+ // creating with utc
+ moment.utc = function (input, format, locale, strict) {
+ var c;
+
+ if (typeof(locale) === 'boolean') {
+ strict = locale;
+ locale = undefined;
+ }
+ // object construction must be done this way.
+ // https://github.com/moment/moment/issues/1423
+ c = {};
+ c._isAMomentObject = true;
+ c._useUTC = true;
+ c._isUTC = true;
+ c._l = locale;
+ c._i = input;
+ c._f = format;
+ c._strict = strict;
+ c._pf = defaultParsingFlags();
+
+ return makeMoment(c).utc();
+ };
+
+ // creating with unix timestamp (in seconds)
+ moment.unix = function (input) {
+ return moment(input * 1000);
+ };
+
+ // duration
+ moment.duration = function (input, key) {
+ var duration = input,
+ // matching against regexp is expensive, do it on demand
+ match = null,
+ sign,
+ ret,
+ parseIso,
+ diffRes;
+
+ if (moment.isDuration(input)) {
+ duration = {
+ ms: input._milliseconds,
+ d: input._days,
+ M: input._months
+ };
+ } else if (typeof input === 'number') {
+ duration = {};
+ if (key) {
+ duration[key] = input;
+ } else {
+ duration.milliseconds = input;
+ }
+ } else if (!!(match = aspNetTimeSpanJsonRegex.exec(input))) {
+ sign = (match[1] === '-') ? -1 : 1;
+ duration = {
+ y: 0,
+ d: toInt(match[DATE]) * sign,
+ h: toInt(match[HOUR]) * sign,
+ m: toInt(match[MINUTE]) * sign,
+ s: toInt(match[SECOND]) * sign,
+ ms: toInt(match[MILLISECOND]) * sign
+ };
+ } else if (!!(match = isoDurationRegex.exec(input))) {
+ sign = (match[1] === '-') ? -1 : 1;
+ parseIso = function (inp) {
+ // We'd normally use ~~inp for this, but unfortunately it also
+ // converts floats to ints.
+ // inp may be undefined, so careful calling replace on it.
+ var res = inp && parseFloat(inp.replace(',', '.'));
+ // apply sign while we're at it
+ return (isNaN(res) ? 0 : res) * sign;
+ };
+ duration = {
+ y: parseIso(match[2]),
+ M: parseIso(match[3]),
+ d: parseIso(match[4]),
+ h: parseIso(match[5]),
+ m: parseIso(match[6]),
+ s: parseIso(match[7]),
+ w: parseIso(match[8])
+ };
+ } else if (typeof duration === 'object' &&
+ ('from' in duration || 'to' in duration)) {
+ diffRes = momentsDifference(moment(duration.from), moment(duration.to));
+
+ duration = {};
+ duration.ms = diffRes.milliseconds;
+ duration.M = diffRes.months;
+ }
+
+ ret = new Duration(duration);
+
+ if (moment.isDuration(input) && hasOwnProp(input, '_locale')) {
+ ret._locale = input._locale;
+ }
+
+ return ret;
+ };
+
+ // version number
+ moment.version = VERSION;
+
+ // default format
+ moment.defaultFormat = isoFormat;
+
+ // constant that refers to the ISO standard
+ moment.ISO_8601 = function () {};
+
+ // Plugins that add properties should also add the key here (null value),
+ // so we can properly clone ourselves.
+ moment.momentProperties = momentProperties;
+
+ // This function will be called whenever a moment is mutated.
+ // It is intended to keep the offset in sync with the timezone.
+ moment.updateOffset = function () {};
+
+ // This function allows you to set a threshold for relative time strings
+ moment.relativeTimeThreshold = function (threshold, limit) {
+ if (relativeTimeThresholds[threshold] === undefined) {
+ return false;
+ }
+ if (limit === undefined) {
+ return relativeTimeThresholds[threshold];
+ }
+ relativeTimeThresholds[threshold] = limit;
+ return true;
+ };
+
+ moment.lang = deprecate(
+ 'moment.lang is deprecated. Use moment.locale instead.',
+ function (key, value) {
+ return moment.locale(key, value);
+ }
+ );
+
+ // This function will load locale and then set the global locale. If
+ // no arguments are passed in, it will simply return the current global
+ // locale key.
+ moment.locale = function (key, values) {
+ var data;
+ if (key) {
+ if (typeof(values) !== 'undefined') {
+ data = moment.defineLocale(key, values);
+ }
+ else {
+ data = moment.localeData(key);
+ }
+
+ if (data) {
+ moment.duration._locale = moment._locale = data;
+ }
+ }
+
+ return moment._locale._abbr;
+ };
+
+ moment.defineLocale = function (name, values) {
+ if (values !== null) {
+ values.abbr = name;
+ if (!locales[name]) {
+ locales[name] = new Locale();
+ }
+ locales[name].set(values);
+
+ // backwards compat for now: also set the locale
+ moment.locale(name);
+
+ return locales[name];
+ } else {
+ // useful for testing
+ delete locales[name];
+ return null;
+ }
+ };
+
+ moment.langData = deprecate(
+ 'moment.langData is deprecated. Use moment.localeData instead.',
+ function (key) {
+ return moment.localeData(key);
+ }
+ );
+
+ // returns locale data
+ moment.localeData = function (key) {
+ var locale;
+
+ if (key && key._locale && key._locale._abbr) {
+ key = key._locale._abbr;
+ }
+
+ if (!key) {
+ return moment._locale;
+ }
+
+ if (!isArray(key)) {
+ //short-circuit everything else
+ locale = loadLocale(key);
+ if (locale) {
+ return locale;
+ }
+ key = [key];
+ }
+
+ return chooseLocale(key);
+ };
+
+ // compare moment object
+ moment.isMoment = function (obj) {
+ return obj instanceof Moment ||
+ (obj != null && hasOwnProp(obj, '_isAMomentObject'));
+ };
+
+ // for typechecking Duration objects
+ moment.isDuration = function (obj) {
+ return obj instanceof Duration;
+ };
+
+ for (i = lists.length - 1; i >= 0; --i) {
+ makeList(lists[i]);
+ }
+
+ moment.normalizeUnits = function (units) {
+ return normalizeUnits(units);
+ };
+
+ moment.invalid = function (flags) {
+ var m = moment.utc(NaN);
+ if (flags != null) {
+ extend(m._pf, flags);
+ }
+ else {
+ m._pf.userInvalidated = true;
+ }
+
+ return m;
+ };
+
+ moment.parseZone = function () {
+ return moment.apply(null, arguments).parseZone();
+ };
+
+ moment.parseTwoDigitYear = function (input) {
+ return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
+ };
+
+ /************************************
+ Moment Prototype
+ ************************************/
+
+
+ extend(moment.fn = Moment.prototype, {
+
+ clone : function () {
+ return moment(this);
+ },
+
+ valueOf : function () {
+ return +this._d + ((this._offset || 0) * 60000);
+ },
+
+ unix : function () {
+ return Math.floor(+this / 1000);
+ },
+
+ toString : function () {
+ return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
+ },
+
+ toDate : function () {
+ return this._offset ? new Date(+this) : this._d;
+ },
+
+ toISOString : function () {
+ var m = moment(this).utc();
+ if (0 < m.year() && m.year() <= 9999) {
+ if ('function' === typeof Date.prototype.toISOString) {
+ // native implementation is ~50x faster, use it when we can
+ return this.toDate().toISOString();
+ } else {
+ return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
+ }
+ } else {
+ return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
+ }
+ },
+
+ toArray : function () {
+ var m = this;
+ return [
+ m.year(),
+ m.month(),
+ m.date(),
+ m.hours(),
+ m.minutes(),
+ m.seconds(),
+ m.milliseconds()
+ ];
+ },
+
+ isValid : function () {
+ return isValid(this);
+ },
+
+ isDSTShifted : function () {
+ if (this._a) {
+ return this.isValid() && compareArrays(this._a, (this._isUTC ? moment.utc(this._a) : moment(this._a)).toArray()) > 0;
+ }
+
+ return false;
+ },
+
+ parsingFlags : function () {
+ return extend({}, this._pf);
+ },
+
+ invalidAt: function () {
+ return this._pf.overflow;
+ },
+
+ utc : function (keepLocalTime) {
+ return this.zone(0, keepLocalTime);
+ },
+
+ local : function (keepLocalTime) {
+ if (this._isUTC) {
+ this.zone(0, keepLocalTime);
+ this._isUTC = false;
+
+ if (keepLocalTime) {
+ this.add(this._dateTzOffset(), 'm');
+ }
+ }
+ return this;
+ },
+
+ format : function (inputString) {
+ var output = formatMoment(this, inputString || moment.defaultFormat);
+ return this.localeData().postformat(output);
+ },
+
+ add : createAdder(1, 'add'),
+
+ subtract : createAdder(-1, 'subtract'),
+
+ diff : function (input, units, asFloat) {
+ var that = makeAs(input, this),
+ zoneDiff = (this.zone() - that.zone()) * 6e4,
+ diff, output, daysAdjust;
+
+ units = normalizeUnits(units);
+
+ if (units === 'year' || units === 'month') {
+ // average number of days in the months in the given dates
+ diff = (this.daysInMonth() + that.daysInMonth()) * 432e5; // 24 * 60 * 60 * 1000 / 2
+ // difference in months
+ output = ((this.year() - that.year()) * 12) + (this.month() - that.month());
+ // adjust by taking difference in days, average number of days
+ // and dst in the given months.
+ daysAdjust = (this - moment(this).startOf('month')) -
+ (that - moment(that).startOf('month'));
+ // same as above but with zones, to negate all dst
+ daysAdjust -= ((this.zone() - moment(this).startOf('month').zone()) -
+ (that.zone() - moment(that).startOf('month').zone())) * 6e4;
+ output += daysAdjust / diff;
+ if (units === 'year') {
+ output = output / 12;
+ }
+ } else {
+ diff = (this - that);
+ output = units === 'second' ? diff / 1e3 : // 1000
+ units === 'minute' ? diff / 6e4 : // 1000 * 60
+ units === 'hour' ? diff / 36e5 : // 1000 * 60 * 60
+ units === 'day' ? (diff - zoneDiff) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
+ units === 'week' ? (diff - zoneDiff) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
+ diff;
+ }
+ return asFloat ? output : absRound(output);
+ },
+
+ from : function (time, withoutSuffix) {
+ return moment.duration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
+ },
+
+ fromNow : function (withoutSuffix) {
+ return this.from(moment(), withoutSuffix);
+ },
+
+ calendar : function (time) {
+ // We want to compare the start of today, vs this.
+ // Getting start-of-today depends on whether we're zone'd or not.
+ var now = time || moment(),
+ sod = makeAs(now, this).startOf('day'),
+ diff = this.diff(sod, 'days', true),
+ format = diff < -6 ? 'sameElse' :
+ diff < -1 ? 'lastWeek' :
+ diff < 0 ? 'lastDay' :
+ diff < 1 ? 'sameDay' :
+ diff < 2 ? 'nextDay' :
+ diff < 7 ? 'nextWeek' : 'sameElse';
+ return this.format(this.localeData().calendar(format, this, moment(now)));
+ },
+
+ isLeapYear : function () {
+ return isLeapYear(this.year());
+ },
+
+ isDST : function () {
+ return (this.zone() < this.clone().month(0).zone() ||
+ this.zone() < this.clone().month(5).zone());
+ },
+
+ day : function (input) {
+ var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
+ if (input != null) {
+ input = parseWeekday(input, this.localeData());
+ return this.add(input - day, 'd');
+ } else {
+ return day;
+ }
+ },
+
+ month : makeAccessor('Month', true),
+
+ startOf : function (units) {
+ units = normalizeUnits(units);
+ // the following switch intentionally omits break keywords
+ // to utilize falling through the cases.
+ switch (units) {
+ case 'year':
+ this.month(0);
+ /* falls through */
+ case 'quarter':
+ case 'month':
+ this.date(1);
+ /* falls through */
+ case 'week':
+ case 'isoWeek':
+ case 'day':
+ this.hours(0);
+ /* falls through */
+ case 'hour':
+ this.minutes(0);
+ /* falls through */
+ case 'minute':
+ this.seconds(0);
+ /* falls through */
+ case 'second':
+ this.milliseconds(0);
+ /* falls through */
+ }
+
+ // weeks are a special case
+ if (units === 'week') {
+ this.weekday(0);
+ } else if (units === 'isoWeek') {
+ this.isoWeekday(1);
+ }
+
+ // quarters are also special
+ if (units === 'quarter') {
+ this.month(Math.floor(this.month() / 3) * 3);
+ }
+
+ return this;
+ },
+
+ endOf: function (units) {
+ units = normalizeUnits(units);
+ if (units === undefined || units === 'millisecond') {
+ return this;
+ }
+ return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
+ },
+
+ isAfter: function (input, units) {
+ var inputMs;
+ units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond');
+ if (units === 'millisecond') {
+ input = moment.isMoment(input) ? input : moment(input);
+ return +this > +input;
+ } else {
+ inputMs = moment.isMoment(input) ? +input : +moment(input);
+ return inputMs < +this.clone().startOf(units);
+ }
+ },
+
+ isBefore: function (input, units) {
+ var inputMs;
+ units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond');
+ if (units === 'millisecond') {
+ input = moment.isMoment(input) ? input : moment(input);
+ return +this < +input;
+ } else {
+ inputMs = moment.isMoment(input) ? +input : +moment(input);
+ return +this.clone().endOf(units) < inputMs;
+ }
+ },
+
+ isSame: function (input, units) {
+ var inputMs;
+ units = normalizeUnits(units || 'millisecond');
+ if (units === 'millisecond') {
+ input = moment.isMoment(input) ? input : moment(input);
+ return +this === +input;
+ } else {
+ inputMs = +moment(input);
+ return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units));
+ }
+ },
+
+ min: deprecate(
+ 'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',
+ function (other) {
+ other = moment.apply(null, arguments);
+ return other < this ? this : other;
+ }
+ ),
+
+ max: deprecate(
+ 'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',
+ function (other) {
+ other = moment.apply(null, arguments);
+ return other > this ? this : other;
+ }
+ ),
+
+ // keepLocalTime = true means only change the timezone, without
+ // affecting the local hour. So 5:31:26 +0300 --[zone(2, true)]-->
+ // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist int zone
+ // +0200, so we adjust the time as needed, to be valid.
+ //
+ // Keeping the time actually adds/subtracts (one hour)
+ // from the actual represented time. That is why we call updateOffset
+ // a second time. In case it wants us to change the offset again
+ // _changeInProgress == true case, then we have to adjust, because
+ // there is no such time in the given timezone.
+ zone : function (input, keepLocalTime) {
+ var offset = this._offset || 0,
+ localAdjust;
+ if (input != null) {
+ if (typeof input === 'string') {
+ input = timezoneMinutesFromString(input);
+ }
+ if (Math.abs(input) < 16) {
+ input = input * 60;
+ }
+ if (!this._isUTC && keepLocalTime) {
+ localAdjust = this._dateTzOffset();
+ }
+ this._offset = input;
+ this._isUTC = true;
+ if (localAdjust != null) {
+ this.subtract(localAdjust, 'm');
+ }
+ if (offset !== input) {
+ if (!keepLocalTime || this._changeInProgress) {
+ addOrSubtractDurationFromMoment(this,
+ moment.duration(offset - input, 'm'), 1, false);
+ } else if (!this._changeInProgress) {
+ this._changeInProgress = true;
+ moment.updateOffset(this, true);
+ this._changeInProgress = null;
+ }
+ }
+ } else {
+ return this._isUTC ? offset : this._dateTzOffset();
+ }
+ return this;
+ },
+
+ zoneAbbr : function () {
+ return this._isUTC ? 'UTC' : '';
+ },
+
+ zoneName : function () {
+ return this._isUTC ? 'Coordinated Universal Time' : '';
+ },
+
+ parseZone : function () {
+ if (this._tzm) {
+ this.zone(this._tzm);
+ } else if (typeof this._i === 'string') {
+ this.zone(this._i);
+ }
+ return this;
+ },
+
+ hasAlignedHourOffset : function (input) {
+ if (!input) {
+ input = 0;
+ }
+ else {
+ input = moment(input).zone();
+ }
+
+ return (this.zone() - input) % 60 === 0;
+ },
+
+ daysInMonth : function () {
+ return daysInMonth(this.year(), this.month());
+ },
+
+ dayOfYear : function (input) {
+ var dayOfYear = round((moment(this).startOf('day') - moment(this).startOf('year')) / 864e5) + 1;
+ return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
+ },
+
+ quarter : function (input) {
+ return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
+ },
+
+ weekYear : function (input) {
+ var year = weekOfYear(this, this.localeData()._week.dow, this.localeData()._week.doy).year;
+ return input == null ? year : this.add((input - year), 'y');
+ },
+
+ isoWeekYear : function (input) {
+ var year = weekOfYear(this, 1, 4).year;
+ return input == null ? year : this.add((input - year), 'y');
+ },
+
+ week : function (input) {
+ var week = this.localeData().week(this);
+ return input == null ? week : this.add((input - week) * 7, 'd');
+ },
+
+ isoWeek : function (input) {
+ var week = weekOfYear(this, 1, 4).week;
+ return input == null ? week : this.add((input - week) * 7, 'd');
+ },
+
+ weekday : function (input) {
+ var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
+ return input == null ? weekday : this.add(input - weekday, 'd');
+ },
+
+ isoWeekday : function (input) {
+ // behaves the same as moment#day except
+ // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
+ // as a setter, sunday should belong to the previous week.
+ return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7);
+ },
+
+ isoWeeksInYear : function () {
+ return weeksInYear(this.year(), 1, 4);
+ },
+
+ weeksInYear : function () {
+ var weekInfo = this.localeData()._week;
+ return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
+ },
+
+ get : function (units) {
+ units = normalizeUnits(units);
+ return this[units]();
+ },
+
+ set : function (units, value) {
+ units = normalizeUnits(units);
+ if (typeof this[units] === 'function') {
+ this[units](value);
+ }
+ return this;
+ },
+
+ // If passed a locale key, it will set the locale for this
+ // instance. Otherwise, it will return the locale configuration
+ // variables for this instance.
+ locale : function (key) {
+ var newLocaleData;
+
+ if (key === undefined) {
+ return this._locale._abbr;
+ } else {
+ newLocaleData = moment.localeData(key);
+ if (newLocaleData != null) {
+ this._locale = newLocaleData;
+ }
+ return this;
+ }
+ },
+
+ lang : deprecate(
+ 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
+ function (key) {
+ if (key === undefined) {
+ return this.localeData();
+ } else {
+ return this.locale(key);
+ }
+ }
+ ),
+
+ localeData : function () {
+ return this._locale;
+ },
+
+ _dateTzOffset : function () {
+ // On Firefox.24 Date#getTimezoneOffset returns a floating point.
+ // https://github.com/moment/moment/pull/1871
+ return Math.round(this._d.getTimezoneOffset() / 15) * 15;
+ }
+ });
+
+ function rawMonthSetter(mom, value) {
+ var dayOfMonth;
+
+ // TODO: Move this out of here!
+ if (typeof value === 'string') {
+ value = mom.localeData().monthsParse(value);
+ // TODO: Another silent failure?
+ if (typeof value !== 'number') {
+ return mom;
+ }
+ }
+
+ dayOfMonth = Math.min(mom.date(),
+ daysInMonth(mom.year(), value));
+ mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
+ return mom;
+ }
+
+ function rawGetter(mom, unit) {
+ return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]();
+ }
+
+ function rawSetter(mom, unit, value) {
+ if (unit === 'Month') {
+ return rawMonthSetter(mom, value);
+ } else {
+ return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
+ }
+ }
+
+ function makeAccessor(unit, keepTime) {
+ return function (value) {
+ if (value != null) {
+ rawSetter(this, unit, value);
+ moment.updateOffset(this, keepTime);
+ return this;
+ } else {
+ return rawGetter(this, unit);
+ }
+ };
+ }
+
+ moment.fn.millisecond = moment.fn.milliseconds = makeAccessor('Milliseconds', false);
+ moment.fn.second = moment.fn.seconds = makeAccessor('Seconds', false);
+ moment.fn.minute = moment.fn.minutes = makeAccessor('Minutes', false);
+ // Setting the hour should keep the time, because the user explicitly
+ // specified which hour he wants. So trying to maintain the same hour (in
+ // a new timezone) makes sense. Adding/subtracting hours does not follow
+ // this rule.
+ moment.fn.hour = moment.fn.hours = makeAccessor('Hours', true);
+ // moment.fn.month is defined separately
+ moment.fn.date = makeAccessor('Date', true);
+ moment.fn.dates = deprecate('dates accessor is deprecated. Use date instead.', makeAccessor('Date', true));
+ moment.fn.year = makeAccessor('FullYear', true);
+ moment.fn.years = deprecate('years accessor is deprecated. Use year instead.', makeAccessor('FullYear', true));
+
+ // add plural methods
+ moment.fn.days = moment.fn.day;
+ moment.fn.months = moment.fn.month;
+ moment.fn.weeks = moment.fn.week;
+ moment.fn.isoWeeks = moment.fn.isoWeek;
+ moment.fn.quarters = moment.fn.quarter;
+
+ // add aliased format methods
+ moment.fn.toJSON = moment.fn.toISOString;
+
+ /************************************
+ Duration Prototype
+ ************************************/
+
+
+ function daysToYears (days) {
+ // 400 years have 146097 days (taking into account leap year rules)
+ return days * 400 / 146097;
+ }
+
+ function yearsToDays (years) {
+ // years * 365 + absRound(years / 4) -
+ // absRound(years / 100) + absRound(years / 400);
+ return years * 146097 / 400;
+ }
+
+ extend(moment.duration.fn = Duration.prototype, {
+
+ _bubble : function () {
+ var milliseconds = this._milliseconds,
+ days = this._days,
+ months = this._months,
+ data = this._data,
+ seconds, minutes, hours, years = 0;
+
+ // The following code bubbles up values, see the tests for
+ // examples of what that means.
+ data.milliseconds = milliseconds % 1000;
+
+ seconds = absRound(milliseconds / 1000);
+ data.seconds = seconds % 60;
+
+ minutes = absRound(seconds / 60);
+ data.minutes = minutes % 60;
+
+ hours = absRound(minutes / 60);
+ data.hours = hours % 24;
+
+ days += absRound(hours / 24);
+
+ // Accurately convert days to years, assume start from year 0.
+ years = absRound(daysToYears(days));
+ days -= absRound(yearsToDays(years));
+
+ // 30 days to a month
+ // TODO (iskren): Use anchor date (like 1st Jan) to compute this.
+ months += absRound(days / 30);
+ days %= 30;
+
+ // 12 months -> 1 year
+ years += absRound(months / 12);
+ months %= 12;
+
+ data.days = days;
+ data.months = months;
+ data.years = years;
+ },
+
+ abs : function () {
+ this._milliseconds = Math.abs(this._milliseconds);
+ this._days = Math.abs(this._days);
+ this._months = Math.abs(this._months);
+
+ this._data.milliseconds = Math.abs(this._data.milliseconds);
+ this._data.seconds = Math.abs(this._data.seconds);
+ this._data.minutes = Math.abs(this._data.minutes);
+ this._data.hours = Math.abs(this._data.hours);
+ this._data.months = Math.abs(this._data.months);
+ this._data.years = Math.abs(this._data.years);
+
+ return this;
+ },
+
+ weeks : function () {
+ return absRound(this.days() / 7);
+ },
+
+ valueOf : function () {
+ return this._milliseconds +
+ this._days * 864e5 +
+ (this._months % 12) * 2592e6 +
+ toInt(this._months / 12) * 31536e6;
+ },
+
+ humanize : function (withSuffix) {
+ var output = relativeTime(this, !withSuffix, this.localeData());
+
+ if (withSuffix) {
+ output = this.localeData().pastFuture(+this, output);
+ }
+
+ return this.localeData().postformat(output);
+ },
+
+ add : function (input, val) {
+ // supports only 2.0-style add(1, 's') or add(moment)
+ var dur = moment.duration(input, val);
+
+ this._milliseconds += dur._milliseconds;
+ this._days += dur._days;
+ this._months += dur._months;
+
+ this._bubble();
+
+ return this;
+ },
+
+ subtract : function (input, val) {
+ var dur = moment.duration(input, val);
+
+ this._milliseconds -= dur._milliseconds;
+ this._days -= dur._days;
+ this._months -= dur._months;
+
+ this._bubble();
+
+ return this;
+ },
+
+ get : function (units) {
+ units = normalizeUnits(units);
+ return this[units.toLowerCase() + 's']();
+ },
+
+ as : function (units) {
+ var days, months;
+ units = normalizeUnits(units);
+
+ if (units === 'month' || units === 'year') {
+ days = this._days + this._milliseconds / 864e5;
+ months = this._months + daysToYears(days) * 12;
+ return units === 'month' ? months : months / 12;
+ } else {
+ // handle milliseconds separately because of floating point math errors (issue #1867)
+ days = this._days + Math.round(yearsToDays(this._months / 12));
+ switch (units) {
+ case 'week': return days / 7 + this._milliseconds / 6048e5;
+ case 'day': return days + this._milliseconds / 864e5;
+ case 'hour': return days * 24 + this._milliseconds / 36e5;
+ case 'minute': return days * 24 * 60 + this._milliseconds / 6e4;
+ case 'second': return days * 24 * 60 * 60 + this._milliseconds / 1000;
+ // Math.floor prevents floating point math errors here
+ case 'millisecond': return Math.floor(days * 24 * 60 * 60 * 1000) + this._milliseconds;
+ default: throw new Error('Unknown unit ' + units);
+ }
+ }
+ },
+
+ lang : moment.fn.lang,
+ locale : moment.fn.locale,
+
+ toIsoString : deprecate(
+ 'toIsoString() is deprecated. Please use toISOString() instead ' +
+ '(notice the capitals)',
+ function () {
+ return this.toISOString();
+ }
+ ),
+
+ toISOString : function () {
+ // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
+ var years = Math.abs(this.years()),
+ months = Math.abs(this.months()),
+ days = Math.abs(this.days()),
+ hours = Math.abs(this.hours()),
+ minutes = Math.abs(this.minutes()),
+ seconds = Math.abs(this.seconds() + this.milliseconds() / 1000);
+
+ if (!this.asSeconds()) {
+ // this is the same as C#'s (Noda) and python (isodate)...
+ // but not other JS (goog.date)
+ return 'P0D';
+ }
+
+ return (this.asSeconds() < 0 ? '-' : '') +
+ 'P' +
+ (years ? years + 'Y' : '') +
+ (months ? months + 'M' : '') +
+ (days ? days + 'D' : '') +
+ ((hours || minutes || seconds) ? 'T' : '') +
+ (hours ? hours + 'H' : '') +
+ (minutes ? minutes + 'M' : '') +
+ (seconds ? seconds + 'S' : '');
+ },
+
+ localeData : function () {
+ return this._locale;
+ }
+ });
+
+ moment.duration.fn.toString = moment.duration.fn.toISOString;
+
+ function makeDurationGetter(name) {
+ moment.duration.fn[name] = function () {
+ return this._data[name];
+ };
+ }
+
+ for (i in unitMillisecondFactors) {
+ if (hasOwnProp(unitMillisecondFactors, i)) {
+ makeDurationGetter(i.toLowerCase());
+ }
+ }
+
+ moment.duration.fn.asMilliseconds = function () {
+ return this.as('ms');
+ };
+ moment.duration.fn.asSeconds = function () {
+ return this.as('s');
+ };
+ moment.duration.fn.asMinutes = function () {
+ return this.as('m');
+ };
+ moment.duration.fn.asHours = function () {
+ return this.as('h');
+ };
+ moment.duration.fn.asDays = function () {
+ return this.as('d');
+ };
+ moment.duration.fn.asWeeks = function () {
+ return this.as('weeks');
+ };
+ moment.duration.fn.asMonths = function () {
+ return this.as('M');
+ };
+ moment.duration.fn.asYears = function () {
+ return this.as('y');
+ };
+
+ /************************************
+ Default Locale
+ ************************************/
+
+
+ // Set default locale, other locale will inherit from English.
+ moment.locale('en', {
+ ordinalParse: /\d{1,2}(th|st|nd|rd)/,
+ ordinal : function (number) {
+ var b = number % 10,
+ output = (toInt(number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ return number + output;
+ }
+ });
+
+ /* EMBED_LOCALES */
+
+ /************************************
+ Exposing Moment
+ ************************************/
+
+ function makeGlobal(shouldDeprecate) {
+ /*global ender:false */
+ if (typeof ender !== 'undefined') {
+ return;
+ }
+ oldGlobalMoment = globalScope.moment;
+ if (shouldDeprecate) {
+ globalScope.moment = deprecate(
+ 'Accessing Moment through the global scope is ' +
+ 'deprecated, and will be removed in an upcoming ' +
+ 'release.',
+ moment);
+ } else {
+ globalScope.moment = moment;
+ }
+ }
+
+ // CommonJS module is defined
+ if (hasModule) {
+ module.exports = moment;
+ } else if (typeof define === 'function' && define.amd) {
+ define('moment', function (require, exports, module) {
+ if (module.config && module.config() && module.config().noGlobal === true) {
+ // release the global variable
+ globalScope.moment = oldGlobalMoment;
+ }
+
+ return moment;
+ });
+ makeGlobal(true);
+ } else {
+ makeGlobal();
+ }
+}).call(this);
--- /dev/null
+/**
+ * @license ng-bs-daterangepicker v0.0.5
+ * (c) 2013 Luis Farzati http://github.com/luisfarzati/ng-bs-daterangepicker
+ * License: MIT
+ */
+(function(angular) {
+
+ 'use strict';
+
+ angular
+ .module('ngBootstrap', [])
+ .directive('input', ['$compile', '$parse', '$filter', function($compile, $parse, $filter) {
+ return {
+ restrict: 'E',
+ require: '?ngModel',
+ link: function($scope, $element, $attributes, ngModel) {
+
+ if ($attributes.type !== 'daterange' || ngModel === null) {
+ return;
+ }
+
+ var options = {};
+ options.format = $attributes.format || 'YYYY-MM-DD';
+ options.separator = $attributes.separator || ' - ';
+ options.minDate = $attributes.minDate && moment($attributes.minDate);
+ options.maxDate = $attributes.maxDate && moment($attributes.maxDate);
+ options.dateLimit = $attributes.limit && moment.duration.apply(this, $attributes.limit.split(' ').map(function(elem, index) {
+ return index === 0 && parseInt(elem, 10) || elem;
+ }));
+ options.ranges = $attributes.ranges && $parse($attributes.ranges)($scope);
+ options.locale = $attributes.locale && $parse($attributes.locale)($scope);
+ options.opens = $attributes.opens || $parse($attributes.opens)($scope);
+
+ if ($attributes.enabletimepicker) {
+ options.timePicker = true;
+ angular.extend(options, $parse($attributes.enabletimepicker)($scope));
+ }
+
+ function datify(date) {
+ return moment.isMoment(date) ? date.toDate() : date;
+ }
+
+ function momentify(date) {
+ return (!moment.isMoment(date)) ? moment(date) : date;
+ }
+
+ function format(date) {
+ return $filter('date')(datify(date), options.format.replace(/Y/g, 'y').replace(/D/g, 'd')); //date.format(options.format);
+ }
+
+ function formatted(dates) {
+ return [format(dates.startDate), format(dates.endDate)].join(options.separator);
+ }
+
+ ngModel.$render = function() {
+ if (!ngModel.$viewValue || !ngModel.$viewValue.startDate) {
+ return;
+ }
+ $element.val(formatted(ngModel.$viewValue));
+ };
+
+ $scope.$watch(function() {
+ return $attributes.ngModel;
+ }, function(modelValue, oldModelValue) {
+
+ if (!$scope[modelValue] || (!$scope[modelValue].startDate)) {
+ ngModel.$setViewValue({
+ startDate: moment().startOf('day'),
+ endDate: moment().startOf('day')
+ });
+ return;
+ }
+
+ if (oldModelValue !== modelValue) {
+ return;
+ }
+
+ $element.data('daterangepicker').startDate = momentify($scope[modelValue].startDate);
+ $element.data('daterangepicker').endDate = momentify($scope[modelValue].endDate);
+ $element.data('daterangepicker').updateView();
+ $element.data('daterangepicker').updateCalendars();
+ $element.data('daterangepicker').updateInputText();
+
+ });
+
+ $element.daterangepicker(options, function(start, end, label) {
+
+ var modelValue = ngModel.$viewValue;
+
+ if (angular.equals(start, modelValue.startDate) && angular.equals(end, modelValue.endDate)) {
+ return;
+ }
+
+ $scope.$apply(function() {
+ ngModel.$setViewValue({
+ startDate: (moment.isMoment(modelValue.startDate)) ? start : start.toDate(),
+ endDate: (moment.isMoment(modelValue.endDate)) ? end : end.toDate()
+ });
+ ngModel.$render();
+ });
+
+ });
+
+ }
+
+ };
+
+ }]);
+
+})(angular);
\ No newline at end of file
<meta name="description" content="">
<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/f3572dd3.vendor.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 ) -->
<script src="bower_components/es5-shim/es5-shim.js"></script>
<script src="bower_components/json3/lib/json3.min.js"></script>
<![endif]-->
- <script src="app/7d2f88b6.vendor.js"></script>
+ <script src="app/bff60da8.vendor.js"></script>
- <script src="app/4d8bdf2e.app.js"></script>
+ <script src="app/34411363.app.js"></script>
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
# xCALLY MOTION Changelog
+- * cc90ac0 - 2016-01-18: new version
+- * 9ea0d16 - 2016-01-18: client side app chat Template resource
+- * f6401b7 - 2016-01-18: foxed socket and routes require
+- * 11cecf2 - 2016-01-18: Add jscripty section
+- * d9d3084 - 2016-01-18: Reload page after the language is changed only for csqaure and jscripty.
+- * e78ed04 - 2016-01-18: Add jscripty label in languages
+- * aee7365 - 2016-01-15: Report extraction modal
- * d53412c - 2016-01-15: package.json
- * 61fe1e8 - 2016-01-15: new version
- * c8fa5ef - 2016-01-15: Session Secret
- * 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 _0x6f3e=["\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"];_0x6f3e[0];var _=require(_0x6f3e[1]);var util=require(_0x6f3e[2]);var Agent=require(_0x6f3e[4])[_0x6f3e[3]];var Team=require(_0x6f3e[4])[_0x6f3e[5]];exports[_0x6f3e[6]]=function(_0x9fbfx5,_0x9fbfx6,_0x9fbfx7){var _0x9fbfx8=[_0x6f3e[7],_0x6f3e[8],_0x6f3e[9]];var _0x9fbfx9=_0x9fbfx5[_0x6f3e[11]][_0x6f3e[10]]?parseInt(_0x9fbfx5[_0x6f3e[11]][_0x6f3e[10]],10):100;var _0x9fbfxa=_0x9fbfx5[_0x6f3e[11]][_0x6f3e[12]]?parseInt(_0x9fbfx5[_0x6f3e[11]][_0x6f3e[12]],10):0;var _0x9fbfxb={where:{role:_0x6f3e[13]},limit:_0x9fbfx9,offset:_0x9fbfxa*_0x9fbfx9};_[_0x6f3e[27]](_0x9fbfx5[_0x6f3e[11]],function(_0x9fbfxc,_0x9fbfxd){switch(_0x9fbfxd){case _0x6f3e[10]:;case _0x6f3e[12]:break ;;case _0x6f3e[16]:_0x9fbfxb[_0x6f3e[14]]=util[_0x6f3e[19]](_0x6f3e[15],_0x9fbfx5[_0x6f3e[11]][_0x6f3e[16]],_0x9fbfx5[_0x6f3e[11]][_0x6f3e[17]]||_0x6f3e[18])||null;break ;;case _0x6f3e[17]:break ;;case _0x6f3e[25]:_0x9fbfxb[_0x6f3e[21]][_0x6f3e[20]]=[];_0x9fbfx8[_0x6f3e[24]](function(_0x9fbfxe){var _0x9fbfxf={};_0x9fbfxf[_0x9fbfxe]={$like:_0x6f3e[22]+_0x9fbfxc+_0x6f3e[22]};_0x9fbfxb[_0x6f3e[21]][_0x6f3e[20]][_0x6f3e[23]](_0x9fbfxf);});break ;;default:_0x9fbfxb[_0x6f3e[21]][_0x9fbfxd]={$like:{}};_0x9fbfxb[_0x6f3e[21]][_0x9fbfxd][_0x6f3e[26]]=_0x6f3e[22]+_0x9fbfxc+_0x6f3e[22];;}});Agent[_0x6f3e[42]](_0x9fbfxb)[_0x6f3e[41]](function(_0x9fbfx11){var _0x9fbfx12=Math[_0x6f3e[33]](_0x9fbfx11[_0x6f3e[32]]/_0x9fbfx9);var _0x9fbfx13=_0x9fbfx12>(_0x9fbfxb[_0x6f3e[34]]+1)?util[_0x6f3e[19]](_0x6f3e[35],_0x9fbfx5[_0x6f3e[36]],_0x9fbfx5[_0x6f3e[38]][_0x6f3e[37]],_0x9fbfx5[_0x6f3e[39]],_0x9fbfxa+1):null;var _0x9fbfx14=_0x9fbfxa>0?util[_0x6f3e[19]](_0x6f3e[35],_0x9fbfx5[_0x6f3e[36]],_0x9fbfx5[_0x6f3e[38]][_0x6f3e[37]],_0x9fbfx5[_0x6f3e[39]],_0x9fbfxa-1):null;_0x9fbfx6[_0x6f3e[30]](200)[_0x6f3e[29]]({count:_0x9fbfx11[_0x6f3e[32]],rows:_0x9fbfx11[_0x6f3e[40]],next_page:_0x9fbfx13,previous_page:_0x9fbfx14,total_pages:_0x9fbfx12});})[_0x6f3e[31]](function(_0x9fbfx10){_0x9fbfx6[_0x6f3e[30]](500)[_0x6f3e[29]]({error:_0x6f3e[28]})});};exports[_0x6f3e[43]]=function(_0x9fbfx5,_0x9fbfx6){Agent[_0x6f3e[47]](_0x9fbfx5[_0x6f3e[46]][_0x6f3e[45]])[_0x6f3e[41]](function(_0x9fbfx15){if(!_0x9fbfx15){return _0x9fbfx6[_0x6f3e[44]](404)};return _0x9fbfx6[_0x6f3e[29]](_0x9fbfx15);})[_0x6f3e[31]](function(_0x9fbfx10){return handleError(_0x9fbfx6,_0x9fbfx10)})};exports[_0x6f3e[48]]=function(_0x9fbfx5,_0x9fbfx6){Agent[_0x6f3e[51]]({where:{internal:_0x9fbfx5[_0x6f3e[50]][_0x6f3e[49]]}})[_0x6f3e[41]](function(_0x9fbfx16){if(!_0x9fbfx16){return _0x9fbfx6[_0x6f3e[44]](404)};return _0x9fbfx6[_0x6f3e[29]](_0x9fbfx16);})[_0x6f3e[31]](function(_0x9fbfx10){return handleError(_0x9fbfx6,_0x9fbfx10)})};exports[_0x6f3e[52]]=function(_0x9fbfx5,_0x9fbfx6){Agent[_0x6f3e[52]](_0x9fbfx5[_0x6f3e[50]])[_0x6f3e[41]](function(_0x9fbfx15){Team[_0x6f3e[55]]({where:{defaultEntry:true}})[_0x6f3e[41]](function(_0x9fbfx17){_0x9fbfx17[_0x6f3e[54]](_0x9fbfx15[_0x6f3e[45]])[_0x6f3e[41]](function(){return _0x9fbfx6[_0x6f3e[30]](201)[_0x6f3e[29]](_0x9fbfx15)})[_0x6f3e[31]](function(_0x9fbfx10){console[_0x6f3e[53]](_0x9fbfx10);return handleError(_0x9fbfx6,_0x9fbfx10);})})[_0x6f3e[31]](function(_0x9fbfx10){console[_0x6f3e[53]](_0x9fbfx10);return handleError(_0x9fbfx6,_0x9fbfx10);})})[_0x6f3e[31]](function(_0x9fbfx10){console[_0x6f3e[53]](_0x9fbfx10);return handleError(_0x9fbfx6,_0x9fbfx10);})};exports[_0x6f3e[56]]=function(_0x9fbfx5,_0x9fbfx6){if(_0x9fbfx5[_0x6f3e[50]][_0x6f3e[45]]){delete _0x9fbfx5[_0x6f3e[50]][_0x6f3e[45]]};Agent[_0x6f3e[47]](_0x9fbfx5[_0x6f3e[46]][_0x6f3e[45]])[_0x6f3e[41]](function(_0x9fbfx15){if(!_0x9fbfx15){return _0x9fbfx6[_0x6f3e[44]](404)};var _0x9fbfx18=_[_0x6f3e[57]](_0x9fbfx15,_0x9fbfx5[_0x6f3e[50]]);_0x9fbfx18[_0x6f3e[58]]()[_0x6f3e[41]](function(){return _0x9fbfx6[_0x6f3e[30]](200)[_0x6f3e[29]](_0x9fbfx15)})[_0x6f3e[31]](function(_0x9fbfx10){return handleError(_0x9fbfx6,_0x9fbfx10)});})[_0x6f3e[31]](function(_0x9fbfx10){return handleError(_0x9fbfx6,_0x9fbfx10)});};exports[_0x6f3e[59]]=function(_0x9fbfx5,_0x9fbfx6){Agent[_0x6f3e[47]](_0x9fbfx5[_0x6f3e[46]][_0x6f3e[45]])[_0x6f3e[41]](function(_0x9fbfx15){if(!_0x9fbfx15){return _0x9fbfx6[_0x6f3e[44]](404)};_0x9fbfx15[_0x6f3e[59]]()[_0x6f3e[41]](function(){return _0x9fbfx6[_0x6f3e[44]](204)})[_0x6f3e[31]](function(_0x9fbfx10){return handleError(_0x9fbfx6,_0x9fbfx10)});})[_0x6f3e[31]](function(_0x9fbfx10){return handleError(_0x9fbfx6,_0x9fbfx10)})};exports[_0x6f3e[60]]=function(_0x9fbfx5,_0x9fbfx6){Agent[_0x6f3e[59]]({where:{id:_0x9fbfx5[_0x6f3e[11]][_0x6f3e[45]]},individualHooks:true})[_0x6f3e[41]](function(){return _0x9fbfx6[_0x6f3e[44]](204)})[_0x6f3e[31]](function(_0x9fbfx10){return handleError(_0x9fbfx6,_0x9fbfx10)})};exports[_0x6f3e[61]]=function(_0x9fbfx5,_0x9fbfx6,_0x9fbfx7){console[_0x6f3e[53]](_0x9fbfx5[_0x6f3e[50]]);var _0x9fbfx19=_0x9fbfx5[_0x6f3e[62]][_0x6f3e[45]];var _0x9fbfx1a=String(_0x9fbfx5[_0x6f3e[50]][_0x6f3e[63]]);var _0x9fbfx1b=String(_0x9fbfx5[_0x6f3e[50]][_0x6f3e[64]]);Agent[_0x6f3e[47]](_0x9fbfx19)[_0x6f3e[41]](function(_0x9fbfx15){if(_0x9fbfx15[_0x6f3e[65]](_0x9fbfx1a)){_0x9fbfx15[_0x6f3e[66]]=_0x9fbfx1b;_0x9fbfx15[_0x6f3e[58]]()[_0x6f3e[41]](function(){_0x9fbfx6[_0x6f3e[30]](200)[_0x6f3e[29]](_0x9fbfx15)})[_0x6f3e[31]](function(_0x9fbfx10){return _0x9fbfx7(_0x9fbfx10)});}else {_0x9fbfx6[_0x6f3e[44]](403)}});};exports[_0x6f3e[67]]=function(_0x9fbfx5,_0x9fbfx6,_0x9fbfx7){var _0x9fbfx1b=String(_0x9fbfx5[_0x6f3e[50]][_0x6f3e[64]]);Agent[_0x6f3e[47]](_0x9fbfx5[_0x6f3e[46]][_0x6f3e[45]])[_0x6f3e[41]](function(_0x9fbfx1c){_0x9fbfx1c[_0x6f3e[66]]=_0x9fbfx1b;_0x9fbfx1c[_0x6f3e[58]]()[_0x6f3e[41]](function(){_0x9fbfx6[_0x6f3e[30]](200)[_0x6f3e[29]](_0x9fbfx1c)})[_0x6f3e[31]](function(_0x9fbfx10){return handleError(_0x9fbfx6,_0x9fbfx10)});});};exports[_0x6f3e[68]]=function(_0x9fbfx5,_0x9fbfx6){var _0x9fbfx1d={};_0x9fbfx1d[_0x9fbfx5[_0x6f3e[46]][_0x6f3e[69]]]=_0x9fbfx5[_0x6f3e[50]][_0x6f3e[70]];Agent[_0x6f3e[42]]({where:_0x9fbfx1d})[_0x6f3e[41]](function(_0x9fbfx11){if(_0x9fbfx11[_0x6f3e[32]]){return _0x9fbfx6[_0x6f3e[30]](200)[_0x6f3e[29]]({isValid:false,value:_0x9fbfx5[_0x6f3e[50]][_0x6f3e[70]]})};return _0x9fbfx6[_0x6f3e[30]](200)[_0x6f3e[29]]({isValid:true,value:_0x9fbfx5[_0x6f3e[50]][_0x6f3e[70]]});})[_0x6f3e[31]](function(_0x9fbfx10){return handleError(_0x9fbfx6,_0x9fbfx10)});};function handleError(_0x9fbfx6,_0x9fbfx10){return _0x9fbfx6[_0x6f3e[30]](500)[_0x6f3e[29]](_0x9fbfx10)}
\ No newline at end of file
+var _0xffd7=["\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"];_0xffd7[0];var _=require(_0xffd7[1]);var util=require(_0xffd7[2]);var Agent=require(_0xffd7[4])[_0xffd7[3]];var Team=require(_0xffd7[4])[_0xffd7[5]];exports[_0xffd7[6]]=function(_0xdf84x5,_0xdf84x6,_0xdf84x7){var _0xdf84x8=[_0xffd7[7],_0xffd7[8],_0xffd7[9]];var _0xdf84x9=_0xdf84x5[_0xffd7[11]][_0xffd7[10]]?parseInt(_0xdf84x5[_0xffd7[11]][_0xffd7[10]],10):100;var _0xdf84xa=_0xdf84x5[_0xffd7[11]][_0xffd7[12]]?parseInt(_0xdf84x5[_0xffd7[11]][_0xffd7[12]],10):0;var _0xdf84xb={where:{role:_0xffd7[13]},limit:_0xdf84x9,offset:_0xdf84xa*_0xdf84x9};_[_0xffd7[27]](_0xdf84x5[_0xffd7[11]],function(_0xdf84xc,_0xdf84xd){switch(_0xdf84xd){case _0xffd7[10]:;case _0xffd7[12]:break ;;case _0xffd7[16]:_0xdf84xb[_0xffd7[14]]=util[_0xffd7[19]](_0xffd7[15],_0xdf84x5[_0xffd7[11]][_0xffd7[16]],_0xdf84x5[_0xffd7[11]][_0xffd7[17]]||_0xffd7[18])||null;break ;;case _0xffd7[17]:break ;;case _0xffd7[25]:_0xdf84xb[_0xffd7[21]][_0xffd7[20]]=[];_0xdf84x8[_0xffd7[24]](function(_0xdf84xe){var _0xdf84xf={};_0xdf84xf[_0xdf84xe]={$like:_0xffd7[22]+_0xdf84xc+_0xffd7[22]};_0xdf84xb[_0xffd7[21]][_0xffd7[20]][_0xffd7[23]](_0xdf84xf);});break ;;default:_0xdf84xb[_0xffd7[21]][_0xdf84xd]={$like:{}};_0xdf84xb[_0xffd7[21]][_0xdf84xd][_0xffd7[26]]=_0xffd7[22]+_0xdf84xc+_0xffd7[22];;}});Agent[_0xffd7[42]](_0xdf84xb)[_0xffd7[41]](function(_0xdf84x11){var _0xdf84x12=Math[_0xffd7[33]](_0xdf84x11[_0xffd7[32]]/_0xdf84x9);var _0xdf84x13=_0xdf84x12>(_0xdf84xb[_0xffd7[34]]+1)?util[_0xffd7[19]](_0xffd7[35],_0xdf84x5[_0xffd7[36]],_0xdf84x5[_0xffd7[38]][_0xffd7[37]],_0xdf84x5[_0xffd7[39]],_0xdf84xa+1):null;var _0xdf84x14=_0xdf84xa>0?util[_0xffd7[19]](_0xffd7[35],_0xdf84x5[_0xffd7[36]],_0xdf84x5[_0xffd7[38]][_0xffd7[37]],_0xdf84x5[_0xffd7[39]],_0xdf84xa-1):null;_0xdf84x6[_0xffd7[30]](200)[_0xffd7[29]]({count:_0xdf84x11[_0xffd7[32]],rows:_0xdf84x11[_0xffd7[40]],next_page:_0xdf84x13,previous_page:_0xdf84x14,total_pages:_0xdf84x12});})[_0xffd7[31]](function(_0xdf84x10){_0xdf84x6[_0xffd7[30]](500)[_0xffd7[29]]({error:_0xffd7[28]})});};exports[_0xffd7[43]]=function(_0xdf84x5,_0xdf84x6){Agent[_0xffd7[47]](_0xdf84x5[_0xffd7[46]][_0xffd7[45]])[_0xffd7[41]](function(_0xdf84x15){if(!_0xdf84x15){return _0xdf84x6[_0xffd7[44]](404)};return _0xdf84x6[_0xffd7[29]](_0xdf84x15);})[_0xffd7[31]](function(_0xdf84x10){return handleError(_0xdf84x6,_0xdf84x10)})};exports[_0xffd7[48]]=function(_0xdf84x5,_0xdf84x6){Agent[_0xffd7[51]]({where:{internal:_0xdf84x5[_0xffd7[50]][_0xffd7[49]]}})[_0xffd7[41]](function(_0xdf84x16){if(!_0xdf84x16){return _0xdf84x6[_0xffd7[44]](404)};return _0xdf84x6[_0xffd7[29]](_0xdf84x16);})[_0xffd7[31]](function(_0xdf84x10){return handleError(_0xdf84x6,_0xdf84x10)})};exports[_0xffd7[52]]=function(_0xdf84x5,_0xdf84x6){Agent[_0xffd7[52]](_0xdf84x5[_0xffd7[50]])[_0xffd7[41]](function(_0xdf84x15){Team[_0xffd7[55]]({where:{defaultEntry:true}})[_0xffd7[41]](function(_0xdf84x17){_0xdf84x17[_0xffd7[54]](_0xdf84x15[_0xffd7[45]])[_0xffd7[41]](function(){return _0xdf84x6[_0xffd7[30]](201)[_0xffd7[29]](_0xdf84x15)})[_0xffd7[31]](function(_0xdf84x10){console[_0xffd7[53]](_0xdf84x10);return handleError(_0xdf84x6,_0xdf84x10);})})[_0xffd7[31]](function(_0xdf84x10){console[_0xffd7[53]](_0xdf84x10);return handleError(_0xdf84x6,_0xdf84x10);})})[_0xffd7[31]](function(_0xdf84x10){console[_0xffd7[53]](_0xdf84x10);return handleError(_0xdf84x6,_0xdf84x10);})};exports[_0xffd7[56]]=function(_0xdf84x5,_0xdf84x6){if(_0xdf84x5[_0xffd7[50]][_0xffd7[45]]){delete _0xdf84x5[_0xffd7[50]][_0xffd7[45]]};Agent[_0xffd7[47]](_0xdf84x5[_0xffd7[46]][_0xffd7[45]])[_0xffd7[41]](function(_0xdf84x15){if(!_0xdf84x15){return _0xdf84x6[_0xffd7[44]](404)};var _0xdf84x18=_[_0xffd7[57]](_0xdf84x15,_0xdf84x5[_0xffd7[50]]);_0xdf84x18[_0xffd7[58]]()[_0xffd7[41]](function(){return _0xdf84x6[_0xffd7[30]](200)[_0xffd7[29]](_0xdf84x15)})[_0xffd7[31]](function(_0xdf84x10){return handleError(_0xdf84x6,_0xdf84x10)});})[_0xffd7[31]](function(_0xdf84x10){return handleError(_0xdf84x6,_0xdf84x10)});};exports[_0xffd7[59]]=function(_0xdf84x5,_0xdf84x6){Agent[_0xffd7[47]](_0xdf84x5[_0xffd7[46]][_0xffd7[45]])[_0xffd7[41]](function(_0xdf84x15){if(!_0xdf84x15){return _0xdf84x6[_0xffd7[44]](404)};_0xdf84x15[_0xffd7[59]]()[_0xffd7[41]](function(){return _0xdf84x6[_0xffd7[44]](204)})[_0xffd7[31]](function(_0xdf84x10){return handleError(_0xdf84x6,_0xdf84x10)});})[_0xffd7[31]](function(_0xdf84x10){return handleError(_0xdf84x6,_0xdf84x10)})};exports[_0xffd7[60]]=function(_0xdf84x5,_0xdf84x6){Agent[_0xffd7[59]]({where:{id:_0xdf84x5[_0xffd7[11]][_0xffd7[45]]},individualHooks:true})[_0xffd7[41]](function(){return _0xdf84x6[_0xffd7[44]](204)})[_0xffd7[31]](function(_0xdf84x10){return handleError(_0xdf84x6,_0xdf84x10)})};exports[_0xffd7[61]]=function(_0xdf84x5,_0xdf84x6,_0xdf84x7){console[_0xffd7[53]](_0xdf84x5[_0xffd7[50]]);var _0xdf84x19=_0xdf84x5[_0xffd7[62]][_0xffd7[45]];var _0xdf84x1a=String(_0xdf84x5[_0xffd7[50]][_0xffd7[63]]);var _0xdf84x1b=String(_0xdf84x5[_0xffd7[50]][_0xffd7[64]]);Agent[_0xffd7[47]](_0xdf84x19)[_0xffd7[41]](function(_0xdf84x15){if(_0xdf84x15[_0xffd7[65]](_0xdf84x1a)){_0xdf84x15[_0xffd7[66]]=_0xdf84x1b;_0xdf84x15[_0xffd7[58]]()[_0xffd7[41]](function(){_0xdf84x6[_0xffd7[30]](200)[_0xffd7[29]](_0xdf84x15)})[_0xffd7[31]](function(_0xdf84x10){return _0xdf84x7(_0xdf84x10)});}else {_0xdf84x6[_0xffd7[44]](403)}});};exports[_0xffd7[67]]=function(_0xdf84x5,_0xdf84x6,_0xdf84x7){var _0xdf84x1b=String(_0xdf84x5[_0xffd7[50]][_0xffd7[64]]);Agent[_0xffd7[47]](_0xdf84x5[_0xffd7[46]][_0xffd7[45]])[_0xffd7[41]](function(_0xdf84x1c){_0xdf84x1c[_0xffd7[66]]=_0xdf84x1b;_0xdf84x1c[_0xffd7[58]]()[_0xffd7[41]](function(){_0xdf84x6[_0xffd7[30]](200)[_0xffd7[29]](_0xdf84x1c)})[_0xffd7[31]](function(_0xdf84x10){return handleError(_0xdf84x6,_0xdf84x10)});});};exports[_0xffd7[68]]=function(_0xdf84x5,_0xdf84x6){var _0xdf84x1d={};_0xdf84x1d[_0xdf84x5[_0xffd7[46]][_0xffd7[69]]]=_0xdf84x5[_0xffd7[50]][_0xffd7[70]];Agent[_0xffd7[42]]({where:_0xdf84x1d})[_0xffd7[41]](function(_0xdf84x11){if(_0xdf84x11[_0xffd7[32]]){return _0xdf84x6[_0xffd7[30]](200)[_0xffd7[29]]({isValid:false,value:_0xdf84x5[_0xffd7[50]][_0xffd7[70]]})};return _0xdf84x6[_0xffd7[30]](200)[_0xffd7[29]]({isValid:true,value:_0xdf84x5[_0xffd7[50]][_0xffd7[70]]});})[_0xffd7[31]](function(_0xdf84x10){return handleError(_0xdf84x6,_0xdf84x10)});};function handleError(_0xdf84x6,_0xdf84x10){return _0xdf84x6[_0xffd7[30]](500)[_0xffd7[29]](_0xdf84x10)}
\ No newline at end of file
-var _0xf082=["\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"];_0xf082[0];var agent=require(_0xf082[2])[_0xf082[1]];exports[_0xf082[3]]=function(_0x7ae4x2){agent[_0xf082[6]](function(_0x7ae4x3){if(_0x7ae4x3[_0xf082[4]]===_0xf082[5]){onSave(_0x7ae4x2,_0x7ae4x3)}});agent[_0xf082[7]](function(_0x7ae4x3){if(_0x7ae4x3[_0xf082[4]]===_0xf082[5]){onSave(_0x7ae4x2,_0x7ae4x3)}});agent[_0xf082[8]](function(_0x7ae4x3){if(_0x7ae4x3[_0xf082[4]]===_0xf082[5]){onRemove(_0x7ae4x2,_0x7ae4x3)}});};function onSave(_0x7ae4x2,_0x7ae4x3,_0x7ae4x5){_0x7ae4x2[_0xf082[10]](_0xf082[9],_0x7ae4x3)}function onRemove(_0x7ae4x2,_0x7ae4x3,_0x7ae4x5){_0x7ae4x2[_0xf082[10]](_0xf082[11],_0x7ae4x3)}
\ No newline at end of file
+var _0x4aa0=["\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"];_0x4aa0[0];var agent=require(_0x4aa0[2])[_0x4aa0[1]];exports[_0x4aa0[3]]=function(_0xa820x2){agent[_0x4aa0[6]](function(_0xa820x3){if(_0xa820x3[_0x4aa0[4]]===_0x4aa0[5]){onSave(_0xa820x2,_0xa820x3)}});agent[_0x4aa0[7]](function(_0xa820x3){if(_0xa820x3[_0x4aa0[4]]===_0x4aa0[5]){onSave(_0xa820x2,_0xa820x3)}});agent[_0x4aa0[8]](function(_0xa820x3){if(_0xa820x3[_0x4aa0[4]]===_0x4aa0[5]){onRemove(_0xa820x2,_0xa820x3)}});};function onSave(_0xa820x2,_0xa820x3,_0xa820x5){_0xa820x2[_0x4aa0[10]](_0x4aa0[9],_0xa820x3)}function onRemove(_0xa820x2,_0xa820x3,_0xa820x5){_0xa820x2[_0x4aa0[10]](_0x4aa0[11],_0xa820x3)}
\ No newline at end of file
-var _0x9c43=["\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"];_0x9c43[0];var should=require(_0x9c43[1]);var app=require(_0x9c43[2]);var request=require(_0x9c43[3]);describe(_0x9c43[4],function(){it(_0x9c43[5],function(_0x6d1fx4){request(app)[_0x9c43[13]](_0x9c43[12])[_0x9c43[11]](200)[_0x9c43[11]](_0x9c43[10],/json/)[_0x9c43[9]](function(_0x6d1fx5,_0x6d1fx6){if(_0x6d1fx5){return _0x6d1fx4(_0x6d1fx5)};_0x6d1fx6[_0x9c43[8]][_0x9c43[1]][_0x9c43[7]][_0x9c43[6]](Array);_0x6d1fx4();})})});
\ No newline at end of file
+var _0x1793=["\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"];_0x1793[0];var should=require(_0x1793[1]);var app=require(_0x1793[2]);var request=require(_0x1793[3]);describe(_0x1793[4],function(){it(_0x1793[5],function(_0xfb82x4){request(app)[_0x1793[13]](_0x1793[12])[_0x1793[11]](200)[_0x1793[11]](_0x1793[10],/json/)[_0x1793[9]](function(_0xfb82x5,_0xfb82x6){if(_0xfb82x5){return _0xfb82x4(_0xfb82x5)};_0xfb82x6[_0x1793[8]][_0x1793[1]][_0x1793[7]][_0x1793[6]](Array);_0xfb82x4();})})});
\ No newline at end of file
-var _0x6bcc=["\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"];_0x6bcc[0];var express=require(_0x6bcc[1]);var controller=require(_0x6bcc[2]);var auth=require(_0x6bcc[3]);var router=express.Router();router[_0x6bcc[7]](_0x6bcc[4],auth[_0x6bcc[5]](),controller[_0x6bcc[6]]);router[_0x6bcc[7]](_0x6bcc[8],auth[_0x6bcc[5]](),controller[_0x6bcc[9]]);router[_0x6bcc[12]](_0x6bcc[10],auth[_0x6bcc[5]](),controller[_0x6bcc[11]]);router[_0x6bcc[12]](_0x6bcc[4],auth[_0x6bcc[5]](),controller[_0x6bcc[13]]);router[_0x6bcc[12]](_0x6bcc[14],auth[_0x6bcc[5]](),controller[_0x6bcc[15]]);router[_0x6bcc[18]](_0x6bcc[16],auth[_0x6bcc[5]](),controller[_0x6bcc[17]]);router[_0x6bcc[18]](_0x6bcc[19],auth[_0x6bcc[5]](),auth[_0x6bcc[21]](_0x6bcc[20]),controller[_0x6bcc[22]]);router[_0x6bcc[18]](_0x6bcc[8],auth[_0x6bcc[5]](),controller[_0x6bcc[23]]);router[_0x6bcc[24]](_0x6bcc[8],auth[_0x6bcc[5]](),controller[_0x6bcc[23]]);router[_0x6bcc[26]](_0x6bcc[4],auth[_0x6bcc[5]](),controller[_0x6bcc[25]]);router[_0x6bcc[26]](_0x6bcc[8],auth[_0x6bcc[5]](),controller[_0x6bcc[27]]);module[_0x6bcc[28]]=router;
\ No newline at end of file
+var _0xfbaf=["\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"];_0xfbaf[0];var express=require(_0xfbaf[1]);var controller=require(_0xfbaf[2]);var auth=require(_0xfbaf[3]);var router=express.Router();router[_0xfbaf[7]](_0xfbaf[4],auth[_0xfbaf[5]](),controller[_0xfbaf[6]]);router[_0xfbaf[7]](_0xfbaf[8],auth[_0xfbaf[5]](),controller[_0xfbaf[9]]);router[_0xfbaf[12]](_0xfbaf[10],auth[_0xfbaf[5]](),controller[_0xfbaf[11]]);router[_0xfbaf[12]](_0xfbaf[4],auth[_0xfbaf[5]](),controller[_0xfbaf[13]]);router[_0xfbaf[12]](_0xfbaf[14],auth[_0xfbaf[5]](),controller[_0xfbaf[15]]);router[_0xfbaf[18]](_0xfbaf[16],auth[_0xfbaf[5]](),controller[_0xfbaf[17]]);router[_0xfbaf[18]](_0xfbaf[19],auth[_0xfbaf[5]](),auth[_0xfbaf[21]](_0xfbaf[20]),controller[_0xfbaf[22]]);router[_0xfbaf[18]](_0xfbaf[8],auth[_0xfbaf[5]](),controller[_0xfbaf[23]]);router[_0xfbaf[24]](_0xfbaf[8],auth[_0xfbaf[5]](),controller[_0xfbaf[23]]);router[_0xfbaf[26]](_0xfbaf[4],auth[_0xfbaf[5]](),controller[_0xfbaf[25]]);router[_0xfbaf[26]](_0xfbaf[8],auth[_0xfbaf[5]](),controller[_0xfbaf[27]]);module[_0xfbaf[28]]=router;
\ No newline at end of file
-var _0xeffd=["\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"];_0xeffd[0];var Ami=require(_0xeffd[2])[_0xeffd[1]];var async=require(_0xeffd[3]);var _=require(_0xeffd[4]);var ami=null;exports[_0xeffd[5]]=function(ami){this[_0xeffd[6]]=ami};exports[_0xeffd[7]]=function(_0x4440x5,_0x4440x6){if(this[_0xeffd[6]]&&this[_0xeffd[6]][_0xeffd[8]]()){this[_0xeffd[6]][_0xeffd[7]](_0x4440x5,function(_0x4440x7,_0x4440x8){if(_0x4440x7){_0x4440x6(_0x4440x7)};var _0x4440x9=_[_0xeffd[9]](_0x4440x8,_0x4440x5);Ami[_0xeffd[12]](_0x4440x9)[_0xeffd[11]](function(ami){_0x4440x6(null,ami)})[_0xeffd[10]](function(_0x4440x7){return _0x4440x6(_0x4440x7)});})}else {_0x4440x6( new Error(_0xeffd[13]))}};
\ No newline at end of file
+var _0xbaf1=["\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"];_0xbaf1[0];var Ami=require(_0xbaf1[2])[_0xbaf1[1]];var async=require(_0xbaf1[3]);var _=require(_0xbaf1[4]);var ami=null;exports[_0xbaf1[5]]=function(ami){this[_0xbaf1[6]]=ami};exports[_0xbaf1[7]]=function(_0x8a90x5,_0x8a90x6){if(this[_0xbaf1[6]]&&this[_0xbaf1[6]][_0xbaf1[8]]()){this[_0xbaf1[6]][_0xbaf1[7]](_0x8a90x5,function(_0x8a90x7,_0x8a90x8){if(_0x8a90x7){_0x8a90x6(_0x8a90x7)};var _0x8a90x9=_[_0xbaf1[9]](_0x8a90x8,_0x8a90x5);Ami[_0xbaf1[12]](_0x8a90x9)[_0xbaf1[11]](function(ami){_0x8a90x6(null,ami)})[_0xbaf1[10]](function(_0x8a90x7){return _0x8a90x6(_0x8a90x7)});})}else {_0x8a90x6( new Error(_0xbaf1[13]))}};
\ No newline at end of file
-var _0x82f2=["\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"];_0x82f2[0];var _=require(_0x82f2[1]);var Ami=require(_0x82f2[3])[_0x82f2[2]];exports[_0x82f2[4]]=function(_0x66e4x3,_0x66e4x4){Ami[_0x82f2[9]]()[_0x82f2[8]](function(_0x66e4x6){return _0x66e4x4[_0x82f2[7]](200)[_0x82f2[6]](_0x66e4x6)})[_0x82f2[5]](function(_0x66e4x5){return handleError(_0x66e4x4,_0x66e4x5)})};exports[_0x82f2[10]]=function(_0x66e4x3,_0x66e4x4){Ami[_0x82f2[14]](_0x66e4x3[_0x82f2[13]][_0x82f2[12]])[_0x82f2[8]](function(_0x66e4x7){if(!_0x66e4x7){return _0x66e4x4[_0x82f2[11]](404)};return _0x66e4x4[_0x82f2[6]](_0x66e4x7);})[_0x82f2[5]](function(_0x66e4x5){return handleError(_0x66e4x4,_0x66e4x5)})};exports[_0x82f2[15]]=function(_0x66e4x3,_0x66e4x4){_0x66e4x3[_0x82f2[17]][_0x82f2[16]]=JSON[_0x82f2[18]](_0x66e4x3[_0x82f2[17]]);_0x66e4x3[_0x82f2[17]][_0x82f2[19]]=_0x66e4x3[_0x82f2[20]][_0x82f2[12]];require(_0x82f2[22])[_0x82f2[21]](_0x66e4x3[_0x82f2[17]],function(_0x66e4x5,_0x66e4x8){if(_0x66e4x5){handleError(_0x66e4x4,_0x66e4x5)}else {return _0x66e4x4[_0x82f2[7]](201)[_0x82f2[6]](_0x66e4x8)}});};exports[_0x82f2[23]]=function(_0x66e4x3,_0x66e4x4){if(_0x66e4x3[_0x82f2[17]][_0x82f2[12]]){delete _0x66e4x3[_0x82f2[17]][_0x82f2[12]]};Ami[_0x82f2[14]](_0x66e4x3[_0x82f2[13]][_0x82f2[12]])[_0x82f2[8]](function(_0x66e4x7){if(!_0x66e4x7){return _0x66e4x4[_0x82f2[11]](404)};var _0x66e4x9=_[_0x82f2[24]](_0x66e4x7,_0x66e4x3[_0x82f2[17]]);_0x66e4x9[_0x82f2[25]]()[_0x82f2[8]](function(){return _0x66e4x4[_0x82f2[7]](200)[_0x82f2[6]](_0x66e4x7)})[_0x82f2[5]](function(_0x66e4x5){return handleError(_0x66e4x4,_0x66e4x5)});})[_0x82f2[5]](function(_0x66e4x5){return handleError(_0x66e4x4,_0x66e4x5)});};exports[_0x82f2[26]]=function(_0x66e4x3,_0x66e4x4){Ami[_0x82f2[27]]({where:{id:_0x66e4x3[_0x82f2[13]][_0x82f2[12]]}})[_0x82f2[8]](function(_0x66e4x7){if(!_0x66e4x7){return _0x66e4x4[_0x82f2[11]](404)};_0x66e4x7[_0x82f2[26]]()[_0x82f2[8]](function(){return _0x66e4x4[_0x82f2[11]](204)})[_0x82f2[5]](function(_0x66e4x5){return handleError(_0x66e4x4,_0x66e4x5)});})[_0x82f2[5]](function(_0x66e4x5){return handleError(_0x66e4x4,_0x66e4x5)})};function handleError(_0x66e4x4,_0x66e4x5){return _0x66e4x4[_0x82f2[7]](500)[_0x82f2[6]](_0x66e4x5)}
\ No newline at end of file
+var _0xdcbe=["\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"];_0xdcbe[0];var _=require(_0xdcbe[1]);var Ami=require(_0xdcbe[3])[_0xdcbe[2]];exports[_0xdcbe[4]]=function(_0xa49bx3,_0xa49bx4){Ami[_0xdcbe[9]]()[_0xdcbe[8]](function(_0xa49bx6){return _0xa49bx4[_0xdcbe[7]](200)[_0xdcbe[6]](_0xa49bx6)})[_0xdcbe[5]](function(_0xa49bx5){return handleError(_0xa49bx4,_0xa49bx5)})};exports[_0xdcbe[10]]=function(_0xa49bx3,_0xa49bx4){Ami[_0xdcbe[14]](_0xa49bx3[_0xdcbe[13]][_0xdcbe[12]])[_0xdcbe[8]](function(_0xa49bx7){if(!_0xa49bx7){return _0xa49bx4[_0xdcbe[11]](404)};return _0xa49bx4[_0xdcbe[6]](_0xa49bx7);})[_0xdcbe[5]](function(_0xa49bx5){return handleError(_0xa49bx4,_0xa49bx5)})};exports[_0xdcbe[15]]=function(_0xa49bx3,_0xa49bx4){_0xa49bx3[_0xdcbe[17]][_0xdcbe[16]]=JSON[_0xdcbe[18]](_0xa49bx3[_0xdcbe[17]]);_0xa49bx3[_0xdcbe[17]][_0xdcbe[19]]=_0xa49bx3[_0xdcbe[20]][_0xdcbe[12]];require(_0xdcbe[22])[_0xdcbe[21]](_0xa49bx3[_0xdcbe[17]],function(_0xa49bx5,_0xa49bx8){if(_0xa49bx5){handleError(_0xa49bx4,_0xa49bx5)}else {return _0xa49bx4[_0xdcbe[7]](201)[_0xdcbe[6]](_0xa49bx8)}});};exports[_0xdcbe[23]]=function(_0xa49bx3,_0xa49bx4){if(_0xa49bx3[_0xdcbe[17]][_0xdcbe[12]]){delete _0xa49bx3[_0xdcbe[17]][_0xdcbe[12]]};Ami[_0xdcbe[14]](_0xa49bx3[_0xdcbe[13]][_0xdcbe[12]])[_0xdcbe[8]](function(_0xa49bx7){if(!_0xa49bx7){return _0xa49bx4[_0xdcbe[11]](404)};var _0xa49bx9=_[_0xdcbe[24]](_0xa49bx7,_0xa49bx3[_0xdcbe[17]]);_0xa49bx9[_0xdcbe[25]]()[_0xdcbe[8]](function(){return _0xa49bx4[_0xdcbe[7]](200)[_0xdcbe[6]](_0xa49bx7)})[_0xdcbe[5]](function(_0xa49bx5){return handleError(_0xa49bx4,_0xa49bx5)});})[_0xdcbe[5]](function(_0xa49bx5){return handleError(_0xa49bx4,_0xa49bx5)});};exports[_0xdcbe[26]]=function(_0xa49bx3,_0xa49bx4){Ami[_0xdcbe[27]]({where:{id:_0xa49bx3[_0xdcbe[13]][_0xdcbe[12]]}})[_0xdcbe[8]](function(_0xa49bx7){if(!_0xa49bx7){return _0xa49bx4[_0xdcbe[11]](404)};_0xa49bx7[_0xdcbe[26]]()[_0xdcbe[8]](function(){return _0xa49bx4[_0xdcbe[11]](204)})[_0xdcbe[5]](function(_0xa49bx5){return handleError(_0xa49bx4,_0xa49bx5)});})[_0xdcbe[5]](function(_0xa49bx5){return handleError(_0xa49bx4,_0xa49bx5)})};function handleError(_0xa49bx4,_0xa49bx5){return _0xa49bx4[_0xdcbe[7]](500)[_0xdcbe[6]](_0xa49bx5)}
\ No newline at end of file
-var _0xbbba=["\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"];_0xbbba[0];var Ami=require(_0xbbba[2])[_0xbbba[1]];exports[_0xbbba[3]]=function(_0xb464x2){Ami[_0xbbba[4]](function(_0xb464x3){onSave(_0xb464x2,_0xb464x3)});Ami[_0xbbba[5]](function(_0xb464x3){onRemove(_0xb464x2,_0xb464x3)});};function onSave(_0xb464x2,_0xb464x3,_0xb464x5){_0xb464x2[_0xbbba[7]](_0xbbba[6],_0xb464x3)}function onRemove(_0xb464x2,_0xb464x3,_0xb464x5){_0xb464x2[_0xbbba[7]](_0xbbba[8],_0xb464x3)}
\ No newline at end of file
+var _0x90ba=["\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"];_0x90ba[0];var Ami=require(_0x90ba[2])[_0x90ba[1]];exports[_0x90ba[3]]=function(_0x7ab0x2){Ami[_0x90ba[4]](function(_0x7ab0x3){onSave(_0x7ab0x2,_0x7ab0x3)});Ami[_0x90ba[5]](function(_0x7ab0x3){onRemove(_0x7ab0x2,_0x7ab0x3)});};function onSave(_0x7ab0x2,_0x7ab0x3,_0x7ab0x5){_0x7ab0x2[_0x90ba[7]](_0x90ba[6],_0x7ab0x3)}function onRemove(_0x7ab0x2,_0x7ab0x3,_0x7ab0x5){_0x7ab0x2[_0x90ba[7]](_0x90ba[8],_0x7ab0x3)}
\ No newline at end of file
-var _0xe03b=["\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"];_0xe03b[0];var should=require(_0xe03b[1]);var app=require(_0xe03b[2]);var request=require(_0xe03b[3]);describe(_0xe03b[4],function(){it(_0xe03b[5],function(_0x38a6x4){request(app)[_0xe03b[13]](_0xe03b[12])[_0xe03b[11]](200)[_0xe03b[11]](_0xe03b[10],/json/)[_0xe03b[9]](function(_0x38a6x5,_0x38a6x6){if(_0x38a6x5){return _0x38a6x4(_0x38a6x5)};_0x38a6x6[_0xe03b[8]][_0xe03b[1]][_0xe03b[7]][_0xe03b[6]](Array);_0x38a6x4();})})});
\ No newline at end of file
+var _0x5725=["\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"];_0x5725[0];var should=require(_0x5725[1]);var app=require(_0x5725[2]);var request=require(_0x5725[3]);describe(_0x5725[4],function(){it(_0x5725[5],function(_0x4031x4){request(app)[_0x5725[13]](_0x5725[12])[_0x5725[11]](200)[_0x5725[11]](_0x5725[10],/json/)[_0x5725[9]](function(_0x4031x5,_0x4031x6){if(_0x4031x5){return _0x4031x4(_0x4031x5)};_0x4031x6[_0x5725[8]][_0x5725[1]][_0x5725[7]][_0x5725[6]](Array);_0x4031x4();})})});
\ No newline at end of file
-var _0xa947=["\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"];_0xa947[0];var express=require(_0xa947[1]);var controller=require(_0xa947[2]);var auth=require(_0xa947[3]);var router=express.Router();router[_0xa947[7]](_0xa947[4],auth[_0xa947[5]](),controller[_0xa947[6]]);router[_0xa947[9]](_0xa947[4],auth[_0xa947[5]](),controller[_0xa947[8]]);module[_0xa947[10]]=router;
\ No newline at end of file
+var _0x4303=["\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"];_0x4303[0];var express=require(_0x4303[1]);var controller=require(_0x4303[2]);var auth=require(_0x4303[3]);var router=express.Router();router[_0x4303[7]](_0x4303[4],auth[_0x4303[5]](),controller[_0x4303[6]]);router[_0x4303[9]](_0x4303[4],auth[_0x4303[5]](),controller[_0x4303[8]]);module[_0x4303[10]]=router;
\ No newline at end of file
-var _0x5d43=["\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"];_0x5d43[0];var _=require(_0x5d43[1]);var util=require(_0x5d43[2]);var Automation=require(_0x5d43[4])[_0x5d43[3]];exports[_0x5d43[5]]=function(_0x63a0x4,_0x63a0x5,_0x63a0x6){var _0x63a0x7=[_0x5d43[6],_0x5d43[7],_0x5d43[8]];var _0x63a0x8=_0x63a0x4[_0x5d43[10]][_0x5d43[9]]?parseInt(_0x63a0x4[_0x5d43[10]][_0x5d43[9]],10):100;var _0x63a0x9=_0x63a0x4[_0x5d43[10]][_0x5d43[11]]?parseInt(_0x63a0x4[_0x5d43[10]][_0x5d43[11]],10):0;var _0x63a0xa={where:{},limit:_0x63a0x8,offset:_0x63a0x9*_0x63a0x8};_[_0x5d43[25]](_0x63a0x4[_0x5d43[10]],function(_0x63a0xb,_0x63a0xc){switch(_0x63a0xc){case _0x5d43[9]:;case _0x5d43[11]:break ;;case _0x5d43[14]:_0x63a0xa[_0x5d43[12]]=util[_0x5d43[17]](_0x5d43[13],_0x63a0x4[_0x5d43[10]][_0x5d43[14]],_0x63a0x4[_0x5d43[10]][_0x5d43[15]]||_0x5d43[16])||null;break ;;case _0x5d43[15]:break ;;case _0x5d43[23]:_0x63a0xa[_0x5d43[19]][_0x5d43[18]]=[];_0x63a0x7[_0x5d43[22]](function(_0x63a0xd){var _0x63a0xe={};_0x63a0xe[_0x63a0xd]={$like:_0x5d43[20]+_0x63a0xb+_0x5d43[20]};_0x63a0xa[_0x5d43[19]][_0x5d43[18]][_0x5d43[21]](_0x63a0xe);});break ;;default:_0x63a0xa[_0x5d43[19]][_0x63a0xc]={$like:{}};_0x63a0xa[_0x5d43[19]][_0x63a0xc][_0x5d43[24]]=_0x5d43[20]+_0x63a0xb+_0x5d43[20];;}});Automation[_0x5d43[40]](_0x63a0xa)[_0x5d43[39]](function(_0x63a0x10){var _0x63a0x11=Math[_0x5d43[31]](_0x63a0x10[_0x5d43[30]]/_0x63a0x8);var _0x63a0x12=_0x63a0x11>(_0x63a0xa[_0x5d43[32]]+1)?util[_0x5d43[17]](_0x5d43[33],_0x63a0x4[_0x5d43[34]],_0x63a0x4[_0x5d43[36]][_0x5d43[35]],_0x63a0x4[_0x5d43[37]],_0x63a0x9+1):null;var _0x63a0x13=_0x63a0x9>0?util[_0x5d43[17]](_0x5d43[33],_0x63a0x4[_0x5d43[34]],_0x63a0x4[_0x5d43[36]][_0x5d43[35]],_0x63a0x4[_0x5d43[37]],_0x63a0x9-1):null;_0x63a0x5[_0x5d43[28]](200)[_0x5d43[27]]({count:_0x63a0x10[_0x5d43[30]],rows:_0x63a0x10[_0x5d43[38]],next_page:_0x63a0x12,previous_page:_0x63a0x13,total_pages:_0x63a0x11});})[_0x5d43[29]](function(_0x63a0xf){_0x63a0x5[_0x5d43[28]](500)[_0x5d43[27]]({error:_0x5d43[26]})});};exports[_0x5d43[41]]=function(_0x63a0x4,_0x63a0x5){Automation[_0x5d43[45]](_0x63a0x4[_0x5d43[44]][_0x5d43[43]])[_0x5d43[39]](function(Automation){if(!Automation){return _0x63a0x5[_0x5d43[42]](404)};return _0x63a0x5[_0x5d43[27]](Automation);})[_0x5d43[29]](function(_0x63a0xf){return handleError(_0x63a0x5,_0x63a0xf)})};exports[_0x5d43[46]]=function(_0x63a0x4,_0x63a0x5,_0x63a0x6){Automation[_0x5d43[46]](_0x63a0x4[_0x5d43[47]])[_0x5d43[39]](function(){return _0x63a0x5[_0x5d43[42]](201)})[_0x5d43[29]](function(_0x63a0xf){return handleError(_0x63a0x5,_0x63a0xf)})};exports[_0x5d43[48]]=function(_0x63a0x4,_0x63a0x5,_0x63a0x6){if(_0x63a0x4[_0x5d43[47]][_0x5d43[43]]){delete _0x63a0x4[_0x5d43[47]][_0x5d43[43]]};Automation[_0x5d43[45]](_0x63a0x4[_0x5d43[44]][_0x5d43[43]])[_0x5d43[39]](function(Automation){if(!Automation){return _0x63a0x5[_0x5d43[42]](404)};var _0x63a0x14=_[_0x5d43[49]](Automation,_0x63a0x4[_0x5d43[47]]);_0x63a0x14[_0x5d43[50]]()[_0x5d43[39]](function(){return _0x63a0x5[_0x5d43[28]](200)[_0x5d43[27]](Automation)})[_0x5d43[29]](function(_0x63a0xf){return _0x63a0x6(_0x63a0xf)});})[_0x5d43[29]](function(_0x63a0xf){return _0x63a0x6(_0x63a0xf)});};exports[_0x5d43[51]]=function(_0x63a0x4,_0x63a0x5){Automation[_0x5d43[45]](_0x63a0x4[_0x5d43[44]][_0x5d43[43]])[_0x5d43[39]](function(Automation){if(!Automation){return _0x63a0x5[_0x5d43[42]](404)};Automation[_0x5d43[51]]()[_0x5d43[39]](function(){return _0x63a0x5[_0x5d43[42]](204)})[_0x5d43[29]](function(_0x63a0xf){return handleError(_0x63a0x5,_0x63a0xf)});})[_0x5d43[29]](function(_0x63a0xf){return handleError(_0x63a0x5,_0x63a0xf)})};exports[_0x5d43[52]]=function(_0x63a0x4,_0x63a0x5){Automation[_0x5d43[51]]({where:{id:_0x63a0x4[_0x5d43[10]][_0x5d43[43]]},individualHooks:true})[_0x5d43[39]](function(){return _0x63a0x5[_0x5d43[42]](204)})[_0x5d43[29]](function(_0x63a0xf){return handleError(_0x63a0x5,_0x63a0xf)})};function handleError(_0x63a0x5,_0x63a0xf){return _0x63a0x5[_0x5d43[28]](500)[_0x5d43[27]](_0x63a0xf)}
\ No newline at end of file
+var _0xa04e=["\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"];_0xa04e[0];var _=require(_0xa04e[1]);var util=require(_0xa04e[2]);var Automation=require(_0xa04e[4])[_0xa04e[3]];exports[_0xa04e[5]]=function(_0x3a0fx4,_0x3a0fx5,_0x3a0fx6){var _0x3a0fx7=[_0xa04e[6],_0xa04e[7],_0xa04e[8]];var _0x3a0fx8=_0x3a0fx4[_0xa04e[10]][_0xa04e[9]]?parseInt(_0x3a0fx4[_0xa04e[10]][_0xa04e[9]],10):100;var _0x3a0fx9=_0x3a0fx4[_0xa04e[10]][_0xa04e[11]]?parseInt(_0x3a0fx4[_0xa04e[10]][_0xa04e[11]],10):0;var _0x3a0fxa={where:{},limit:_0x3a0fx8,offset:_0x3a0fx9*_0x3a0fx8};_[_0xa04e[25]](_0x3a0fx4[_0xa04e[10]],function(_0x3a0fxb,_0x3a0fxc){switch(_0x3a0fxc){case _0xa04e[9]:;case _0xa04e[11]:break ;;case _0xa04e[14]:_0x3a0fxa[_0xa04e[12]]=util[_0xa04e[17]](_0xa04e[13],_0x3a0fx4[_0xa04e[10]][_0xa04e[14]],_0x3a0fx4[_0xa04e[10]][_0xa04e[15]]||_0xa04e[16])||null;break ;;case _0xa04e[15]:break ;;case _0xa04e[23]:_0x3a0fxa[_0xa04e[19]][_0xa04e[18]]=[];_0x3a0fx7[_0xa04e[22]](function(_0x3a0fxd){var _0x3a0fxe={};_0x3a0fxe[_0x3a0fxd]={$like:_0xa04e[20]+_0x3a0fxb+_0xa04e[20]};_0x3a0fxa[_0xa04e[19]][_0xa04e[18]][_0xa04e[21]](_0x3a0fxe);});break ;;default:_0x3a0fxa[_0xa04e[19]][_0x3a0fxc]={$like:{}};_0x3a0fxa[_0xa04e[19]][_0x3a0fxc][_0xa04e[24]]=_0xa04e[20]+_0x3a0fxb+_0xa04e[20];;}});Automation[_0xa04e[40]](_0x3a0fxa)[_0xa04e[39]](function(_0x3a0fx10){var _0x3a0fx11=Math[_0xa04e[31]](_0x3a0fx10[_0xa04e[30]]/_0x3a0fx8);var _0x3a0fx12=_0x3a0fx11>(_0x3a0fxa[_0xa04e[32]]+1)?util[_0xa04e[17]](_0xa04e[33],_0x3a0fx4[_0xa04e[34]],_0x3a0fx4[_0xa04e[36]][_0xa04e[35]],_0x3a0fx4[_0xa04e[37]],_0x3a0fx9+1):null;var _0x3a0fx13=_0x3a0fx9>0?util[_0xa04e[17]](_0xa04e[33],_0x3a0fx4[_0xa04e[34]],_0x3a0fx4[_0xa04e[36]][_0xa04e[35]],_0x3a0fx4[_0xa04e[37]],_0x3a0fx9-1):null;_0x3a0fx5[_0xa04e[28]](200)[_0xa04e[27]]({count:_0x3a0fx10[_0xa04e[30]],rows:_0x3a0fx10[_0xa04e[38]],next_page:_0x3a0fx12,previous_page:_0x3a0fx13,total_pages:_0x3a0fx11});})[_0xa04e[29]](function(_0x3a0fxf){_0x3a0fx5[_0xa04e[28]](500)[_0xa04e[27]]({error:_0xa04e[26]})});};exports[_0xa04e[41]]=function(_0x3a0fx4,_0x3a0fx5){Automation[_0xa04e[45]](_0x3a0fx4[_0xa04e[44]][_0xa04e[43]])[_0xa04e[39]](function(Automation){if(!Automation){return _0x3a0fx5[_0xa04e[42]](404)};return _0x3a0fx5[_0xa04e[27]](Automation);})[_0xa04e[29]](function(_0x3a0fxf){return handleError(_0x3a0fx5,_0x3a0fxf)})};exports[_0xa04e[46]]=function(_0x3a0fx4,_0x3a0fx5,_0x3a0fx6){Automation[_0xa04e[46]](_0x3a0fx4[_0xa04e[47]])[_0xa04e[39]](function(){return _0x3a0fx5[_0xa04e[42]](201)})[_0xa04e[29]](function(_0x3a0fxf){return handleError(_0x3a0fx5,_0x3a0fxf)})};exports[_0xa04e[48]]=function(_0x3a0fx4,_0x3a0fx5,_0x3a0fx6){if(_0x3a0fx4[_0xa04e[47]][_0xa04e[43]]){delete _0x3a0fx4[_0xa04e[47]][_0xa04e[43]]};Automation[_0xa04e[45]](_0x3a0fx4[_0xa04e[44]][_0xa04e[43]])[_0xa04e[39]](function(Automation){if(!Automation){return _0x3a0fx5[_0xa04e[42]](404)};var _0x3a0fx14=_[_0xa04e[49]](Automation,_0x3a0fx4[_0xa04e[47]]);_0x3a0fx14[_0xa04e[50]]()[_0xa04e[39]](function(){return _0x3a0fx5[_0xa04e[28]](200)[_0xa04e[27]](Automation)})[_0xa04e[29]](function(_0x3a0fxf){return _0x3a0fx6(_0x3a0fxf)});})[_0xa04e[29]](function(_0x3a0fxf){return _0x3a0fx6(_0x3a0fxf)});};exports[_0xa04e[51]]=function(_0x3a0fx4,_0x3a0fx5){Automation[_0xa04e[45]](_0x3a0fx4[_0xa04e[44]][_0xa04e[43]])[_0xa04e[39]](function(Automation){if(!Automation){return _0x3a0fx5[_0xa04e[42]](404)};Automation[_0xa04e[51]]()[_0xa04e[39]](function(){return _0x3a0fx5[_0xa04e[42]](204)})[_0xa04e[29]](function(_0x3a0fxf){return handleError(_0x3a0fx5,_0x3a0fxf)});})[_0xa04e[29]](function(_0x3a0fxf){return handleError(_0x3a0fx5,_0x3a0fxf)})};exports[_0xa04e[52]]=function(_0x3a0fx4,_0x3a0fx5){Automation[_0xa04e[51]]({where:{id:_0x3a0fx4[_0xa04e[10]][_0xa04e[43]]},individualHooks:true})[_0xa04e[39]](function(){return _0x3a0fx5[_0xa04e[42]](204)})[_0xa04e[29]](function(_0x3a0fxf){return handleError(_0x3a0fx5,_0x3a0fxf)})};function handleError(_0x3a0fx5,_0x3a0fxf){return _0x3a0fx5[_0xa04e[28]](500)[_0xa04e[27]](_0x3a0fxf)}
\ No newline at end of file
-var _0x2ba6=["\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"];_0x2ba6[0];var Automation=require(_0x2ba6[2])[_0x2ba6[1]];exports[_0x2ba6[3]]=function(_0x8a53x2){Automation[_0x2ba6[4]](function(_0x8a53x3){onSave(_0x8a53x2,_0x8a53x3)});Automation[_0x2ba6[5]](function(_0x8a53x3){onRemove(_0x8a53x2,_0x8a53x3)});};function onSave(_0x8a53x2,_0x8a53x3,_0x8a53x5){_0x8a53x2[_0x2ba6[7]](_0x2ba6[6],_0x8a53x3)}function onRemove(_0x8a53x2,_0x8a53x3,_0x8a53x5){_0x8a53x2[_0x2ba6[7]](_0x2ba6[8],_0x8a53x3)}
\ No newline at end of file
+var _0x3192=["\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"];_0x3192[0];var Automation=require(_0x3192[2])[_0x3192[1]];exports[_0x3192[3]]=function(_0xeda5x2){Automation[_0x3192[4]](function(_0xeda5x3){onSave(_0xeda5x2,_0xeda5x3)});Automation[_0x3192[5]](function(_0xeda5x3){onRemove(_0xeda5x2,_0xeda5x3)});};function onSave(_0xeda5x2,_0xeda5x3,_0xeda5x5){_0xeda5x2[_0x3192[7]](_0x3192[6],_0xeda5x3)}function onRemove(_0xeda5x2,_0xeda5x3,_0xeda5x5){_0xeda5x2[_0x3192[7]](_0x3192[8],_0xeda5x3)}
\ No newline at end of file
-var _0x15a7=["\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"];_0x15a7[0];var should=require(_0x15a7[1]);var app=require(_0x15a7[2]);var request=require(_0x15a7[3]);describe(_0x15a7[4],function(){it(_0x15a7[5],function(_0xd6ecx4){request(app)[_0x15a7[13]](_0x15a7[12])[_0x15a7[11]](200)[_0x15a7[11]](_0x15a7[10],/json/)[_0x15a7[9]](function(_0xd6ecx5,_0xd6ecx6){if(_0xd6ecx5){return _0xd6ecx4(_0xd6ecx5)};_0xd6ecx6[_0x15a7[8]][_0x15a7[1]][_0x15a7[7]][_0x15a7[6]](Array);_0xd6ecx4();})})});
\ No newline at end of file
+var _0x991c=["\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"];_0x991c[0];var should=require(_0x991c[1]);var app=require(_0x991c[2]);var request=require(_0x991c[3]);describe(_0x991c[4],function(){it(_0x991c[5],function(_0xb876x4){request(app)[_0x991c[13]](_0x991c[12])[_0x991c[11]](200)[_0x991c[11]](_0x991c[10],/json/)[_0x991c[9]](function(_0xb876x5,_0xb876x6){if(_0xb876x5){return _0xb876x4(_0xb876x5)};_0xb876x6[_0x991c[8]][_0x991c[1]][_0x991c[7]][_0x991c[6]](Array);_0xb876x4();})})});
\ No newline at end of file
-var _0x3d45=["\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"];_0x3d45[0];var express=require(_0x3d45[1]);var controller=require(_0x3d45[2]);var auth=require(_0x3d45[3]);var router=express.Router();router[_0x3d45[7]](_0x3d45[4],auth[_0x3d45[5]](),controller[_0x3d45[6]]);router[_0x3d45[7]](_0x3d45[8],auth[_0x3d45[5]](),controller[_0x3d45[9]]);router[_0x3d45[11]](_0x3d45[4],auth[_0x3d45[5]](),controller[_0x3d45[10]]);router[_0x3d45[13]](_0x3d45[8],auth[_0x3d45[5]](),controller[_0x3d45[12]]);router[_0x3d45[14]](_0x3d45[8],auth[_0x3d45[5]](),controller[_0x3d45[12]]);router[_0x3d45[16]](_0x3d45[8],auth[_0x3d45[5]](),controller[_0x3d45[15]]);router[_0x3d45[16]](_0x3d45[4],auth[_0x3d45[5]](),controller[_0x3d45[17]]);module[_0x3d45[18]]=router;
\ No newline at end of file
+var _0xf7af=["\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"];_0xf7af[0];var express=require(_0xf7af[1]);var controller=require(_0xf7af[2]);var auth=require(_0xf7af[3]);var router=express.Router();router[_0xf7af[7]](_0xf7af[4],auth[_0xf7af[5]](),controller[_0xf7af[6]]);router[_0xf7af[7]](_0xf7af[8],auth[_0xf7af[5]](),controller[_0xf7af[9]]);router[_0xf7af[11]](_0xf7af[4],auth[_0xf7af[5]](),controller[_0xf7af[10]]);router[_0xf7af[13]](_0xf7af[8],auth[_0xf7af[5]](),controller[_0xf7af[12]]);router[_0xf7af[14]](_0xf7af[8],auth[_0xf7af[5]](),controller[_0xf7af[12]]);router[_0xf7af[16]](_0xf7af[8],auth[_0xf7af[5]](),controller[_0xf7af[15]]);router[_0xf7af[16]](_0xf7af[4],auth[_0xf7af[5]](),controller[_0xf7af[17]]);module[_0xf7af[18]]=router;
\ No newline at end of file
-var _0xfb6b=["\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"];_0xfb6b[0];var _=require(_0xfb6b[1]);var BusinessAction=require(_0xfb6b[3])[_0xfb6b[2]];exports[_0xfb6b[4]]=function(_0xd901x3,_0xd901x4){BusinessAction[_0xfb6b[9]]()[_0xfb6b[8]](function(_0xd901x6){return _0xd901x4[_0xfb6b[7]](200)[_0xfb6b[6]](_0xd901x6)})[_0xfb6b[5]](function(_0xd901x5){return handleError(_0xd901x4,_0xd901x5)})};exports[_0xfb6b[10]]=function(_0xd901x3,_0xd901x4){BusinessAction[_0xfb6b[14]](_0xd901x3[_0xfb6b[13]][_0xfb6b[12]])[_0xfb6b[8]](function(_0xd901x7){if(!_0xd901x7){return _0xd901x4[_0xfb6b[11]](404)};return _0xd901x4[_0xfb6b[6]](_0xd901x7);})[_0xfb6b[5]](function(_0xd901x5){return handleError(_0xd901x4,_0xd901x5)})};exports[_0xfb6b[15]]=function(_0xd901x3,_0xd901x4){BusinessAction[_0xfb6b[15]](_0xd901x3[_0xfb6b[16]])[_0xfb6b[8]](function(_0xd901x7){return _0xd901x4[_0xfb6b[7]](201)[_0xfb6b[6]](_0xd901x7)})[_0xfb6b[5]](function(_0xd901x5){return handleError(_0xd901x4,_0xd901x5)})};exports[_0xfb6b[17]]=function(_0xd901x3,_0xd901x4){if(_0xd901x3[_0xfb6b[16]][_0xfb6b[12]]){delete _0xd901x3[_0xfb6b[16]][_0xfb6b[12]]};BusinessAction[_0xfb6b[14]](_0xd901x3[_0xfb6b[13]][_0xfb6b[12]])[_0xfb6b[8]](function(_0xd901x7){if(!_0xd901x7){return _0xd901x4[_0xfb6b[11]](404)};var _0xd901x8=_[_0xfb6b[18]](_0xd901x7,_0xd901x3[_0xfb6b[16]]);_0xd901x8[_0xfb6b[19]]()[_0xfb6b[8]](function(){return _0xd901x4[_0xfb6b[7]](200)[_0xfb6b[6]](_0xd901x7)})[_0xfb6b[5]](function(_0xd901x5){return handleError(_0xd901x4,_0xd901x5)});})[_0xfb6b[5]](function(_0xd901x5){return handleError(_0xd901x4,_0xd901x5)});};exports[_0xfb6b[20]]=function(_0xd901x3,_0xd901x4){BusinessAction[_0xfb6b[14]](_0xd901x3[_0xfb6b[13]][_0xfb6b[12]])[_0xfb6b[8]](function(_0xd901x7){if(!_0xd901x7){return _0xd901x4[_0xfb6b[11]](404)};_0xd901x7[_0xfb6b[20]]()[_0xfb6b[8]](function(){return _0xd901x4[_0xfb6b[7]](200)[_0xfb6b[6]](_0xd901x7)})[_0xfb6b[5]](function(_0xd901x5){return handleError(_0xd901x4,_0xd901x5)});})[_0xfb6b[5]](function(_0xd901x5){return handleError(_0xd901x4,_0xd901x5)})};function handleError(_0xd901x4,_0xd901x5){return _0xd901x4[_0xfb6b[7]](500)[_0xfb6b[6]](_0xd901x5)}
\ No newline at end of file
+var _0xf080=["\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"];_0xf080[0];var _=require(_0xf080[1]);var BusinessAction=require(_0xf080[3])[_0xf080[2]];exports[_0xf080[4]]=function(_0x5fa3x3,_0x5fa3x4){BusinessAction[_0xf080[9]]()[_0xf080[8]](function(_0x5fa3x6){return _0x5fa3x4[_0xf080[7]](200)[_0xf080[6]](_0x5fa3x6)})[_0xf080[5]](function(_0x5fa3x5){return handleError(_0x5fa3x4,_0x5fa3x5)})};exports[_0xf080[10]]=function(_0x5fa3x3,_0x5fa3x4){BusinessAction[_0xf080[14]](_0x5fa3x3[_0xf080[13]][_0xf080[12]])[_0xf080[8]](function(_0x5fa3x7){if(!_0x5fa3x7){return _0x5fa3x4[_0xf080[11]](404)};return _0x5fa3x4[_0xf080[6]](_0x5fa3x7);})[_0xf080[5]](function(_0x5fa3x5){return handleError(_0x5fa3x4,_0x5fa3x5)})};exports[_0xf080[15]]=function(_0x5fa3x3,_0x5fa3x4){BusinessAction[_0xf080[15]](_0x5fa3x3[_0xf080[16]])[_0xf080[8]](function(_0x5fa3x7){return _0x5fa3x4[_0xf080[7]](201)[_0xf080[6]](_0x5fa3x7)})[_0xf080[5]](function(_0x5fa3x5){return handleError(_0x5fa3x4,_0x5fa3x5)})};exports[_0xf080[17]]=function(_0x5fa3x3,_0x5fa3x4){if(_0x5fa3x3[_0xf080[16]][_0xf080[12]]){delete _0x5fa3x3[_0xf080[16]][_0xf080[12]]};BusinessAction[_0xf080[14]](_0x5fa3x3[_0xf080[13]][_0xf080[12]])[_0xf080[8]](function(_0x5fa3x7){if(!_0x5fa3x7){return _0x5fa3x4[_0xf080[11]](404)};var _0x5fa3x8=_[_0xf080[18]](_0x5fa3x7,_0x5fa3x3[_0xf080[16]]);_0x5fa3x8[_0xf080[19]]()[_0xf080[8]](function(){return _0x5fa3x4[_0xf080[7]](200)[_0xf080[6]](_0x5fa3x7)})[_0xf080[5]](function(_0x5fa3x5){return handleError(_0x5fa3x4,_0x5fa3x5)});})[_0xf080[5]](function(_0x5fa3x5){return handleError(_0x5fa3x4,_0x5fa3x5)});};exports[_0xf080[20]]=function(_0x5fa3x3,_0x5fa3x4){BusinessAction[_0xf080[14]](_0x5fa3x3[_0xf080[13]][_0xf080[12]])[_0xf080[8]](function(_0x5fa3x7){if(!_0x5fa3x7){return _0x5fa3x4[_0xf080[11]](404)};_0x5fa3x7[_0xf080[20]]()[_0xf080[8]](function(){return _0x5fa3x4[_0xf080[7]](200)[_0xf080[6]](_0x5fa3x7)})[_0xf080[5]](function(_0x5fa3x5){return handleError(_0x5fa3x4,_0x5fa3x5)});})[_0xf080[5]](function(_0x5fa3x5){return handleError(_0x5fa3x4,_0x5fa3x5)})};function handleError(_0x5fa3x4,_0x5fa3x5){return _0x5fa3x4[_0xf080[7]](500)[_0xf080[6]](_0x5fa3x5)}
\ No newline at end of file
-var _0x7db0=["\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"];_0x7db0[0];var BusinessAction=require(_0x7db0[2])[_0x7db0[1]];exports[_0x7db0[3]]=function(_0x486fx2){BusinessAction[_0x7db0[4]](function(_0x486fx3){onSave(_0x486fx2,_0x486fx3)});BusinessAction[_0x7db0[5]](function(_0x486fx3){onRemove(_0x486fx2,_0x486fx3)});};function onSave(_0x486fx2,_0x486fx3,_0x486fx5){_0x486fx2[_0x7db0[7]](_0x7db0[6],_0x486fx3)}function onRemove(_0x486fx2,_0x486fx3,_0x486fx5){_0x486fx2[_0x7db0[7]](_0x7db0[8],_0x486fx3)}
\ No newline at end of file
+var _0xe6fc=["\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"];_0xe6fc[0];var BusinessAction=require(_0xe6fc[2])[_0xe6fc[1]];exports[_0xe6fc[3]]=function(_0xd413x2){BusinessAction[_0xe6fc[4]](function(_0xd413x3){onSave(_0xd413x2,_0xd413x3)});BusinessAction[_0xe6fc[5]](function(_0xd413x3){onRemove(_0xd413x2,_0xd413x3)});};function onSave(_0xd413x2,_0xd413x3,_0xd413x5){_0xd413x2[_0xe6fc[7]](_0xe6fc[6],_0xd413x3)}function onRemove(_0xd413x2,_0xd413x3,_0xd413x5){_0xd413x2[_0xe6fc[7]](_0xe6fc[8],_0xd413x3)}
\ No newline at end of file
-var _0xbbd6=["\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"];_0xbbd6[0];var should=require(_0xbbd6[1]);var app=require(_0xbbd6[2]);var request=require(_0xbbd6[3]);describe(_0xbbd6[4],function(){it(_0xbbd6[5],function(_0x9be2x4){request(app)[_0xbbd6[13]](_0xbbd6[12])[_0xbbd6[11]](200)[_0xbbd6[11]](_0xbbd6[10],/json/)[_0xbbd6[9]](function(_0x9be2x5,_0x9be2x6){if(_0x9be2x5){return _0x9be2x4(_0x9be2x5)};_0x9be2x6[_0xbbd6[8]][_0xbbd6[1]][_0xbbd6[7]][_0xbbd6[6]](Array);_0x9be2x4();})})});
\ No newline at end of file
+var _0x223c=["\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"];_0x223c[0];var should=require(_0x223c[1]);var app=require(_0x223c[2]);var request=require(_0x223c[3]);describe(_0x223c[4],function(){it(_0x223c[5],function(_0x9884x4){request(app)[_0x223c[13]](_0x223c[12])[_0x223c[11]](200)[_0x223c[11]](_0x223c[10],/json/)[_0x223c[9]](function(_0x9884x5,_0x9884x6){if(_0x9884x5){return _0x9884x4(_0x9884x5)};_0x9884x6[_0x223c[8]][_0x223c[1]][_0x223c[7]][_0x223c[6]](Array);_0x9884x4();})})});
\ No newline at end of file
-var _0xfaa5=["\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"];_0xfaa5[0];var express=require(_0xfaa5[1]);var controller=require(_0xfaa5[2]);var router=express.Router();router[_0xfaa5[5]](_0xfaa5[3],controller[_0xfaa5[4]]);router[_0xfaa5[5]](_0xfaa5[6],controller[_0xfaa5[7]]);router[_0xfaa5[9]](_0xfaa5[3],controller[_0xfaa5[8]]);router[_0xfaa5[11]](_0xfaa5[6],controller[_0xfaa5[10]]);router[_0xfaa5[12]](_0xfaa5[6],controller[_0xfaa5[10]]);router[_0xfaa5[14]](_0xfaa5[6],controller[_0xfaa5[13]]);module[_0xfaa5[15]]=router;
\ No newline at end of file
+var _0x6e24=["\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"];_0x6e24[0];var express=require(_0x6e24[1]);var controller=require(_0x6e24[2]);var router=express.Router();router[_0x6e24[5]](_0x6e24[3],controller[_0x6e24[4]]);router[_0x6e24[5]](_0x6e24[6],controller[_0x6e24[7]]);router[_0x6e24[9]](_0x6e24[3],controller[_0x6e24[8]]);router[_0x6e24[11]](_0x6e24[6],controller[_0x6e24[10]]);router[_0x6e24[12]](_0x6e24[6],controller[_0x6e24[10]]);router[_0x6e24[14]](_0x6e24[6],controller[_0x6e24[13]]);module[_0x6e24[15]]=router;
\ No newline at end of file
-var _0xcdfa=["\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"];_0xcdfa[0];var _=require(_0xcdfa[1]);var BusinessCondition=require(_0xcdfa[3])[_0xcdfa[2]];exports[_0xcdfa[4]]=function(_0x2b07x3,_0x2b07x4){BusinessCondition[_0xcdfa[9]]()[_0xcdfa[8]](function(_0x2b07x6){return _0x2b07x4[_0xcdfa[7]](200)[_0xcdfa[6]](_0x2b07x6)})[_0xcdfa[5]](function(_0x2b07x5){return handleError(_0x2b07x4,_0x2b07x5)})};exports[_0xcdfa[10]]=function(_0x2b07x3,_0x2b07x4){BusinessCondition[_0xcdfa[14]](_0x2b07x3[_0xcdfa[13]][_0xcdfa[12]])[_0xcdfa[8]](function(_0x2b07x7){if(!_0x2b07x7){return _0x2b07x4[_0xcdfa[11]](404)};return _0x2b07x4[_0xcdfa[6]](_0x2b07x7);})[_0xcdfa[5]](function(_0x2b07x5){return handleError(_0x2b07x4,_0x2b07x5)})};exports[_0xcdfa[15]]=function(_0x2b07x3,_0x2b07x4){BusinessCondition[_0xcdfa[15]](_0x2b07x3[_0xcdfa[16]])[_0xcdfa[8]](function(_0x2b07x7){return _0x2b07x4[_0xcdfa[7]](201)[_0xcdfa[6]](_0x2b07x7)})[_0xcdfa[5]](function(_0x2b07x5){return handleError(_0x2b07x4,_0x2b07x5)})};exports[_0xcdfa[17]]=function(_0x2b07x3,_0x2b07x4){if(_0x2b07x3[_0xcdfa[16]][_0xcdfa[12]]){delete _0x2b07x3[_0xcdfa[16]][_0xcdfa[12]]};BusinessCondition[_0xcdfa[20]]({where:{id:_0x2b07x3[_0xcdfa[13]][_0xcdfa[12]]}})[_0xcdfa[8]](function(_0x2b07x7){if(!_0x2b07x7){return _0x2b07x4[_0xcdfa[11]](404)};var _0x2b07x8=_[_0xcdfa[18]](_0x2b07x7,_0x2b07x3[_0xcdfa[16]]);_0x2b07x8[_0xcdfa[19]]()[_0xcdfa[8]](function(){return _0x2b07x4[_0xcdfa[7]](200)[_0xcdfa[6]](_0x2b07x7)})[_0xcdfa[5]](function(_0x2b07x5){return handleError(_0x2b07x4,_0x2b07x5)});})[_0xcdfa[5]](function(_0x2b07x5){return handleError(_0x2b07x4,_0x2b07x5)});};exports[_0xcdfa[21]]=function(_0x2b07x3,_0x2b07x4){BusinessCondition[_0xcdfa[20]]({where:{id:_0x2b07x3[_0xcdfa[13]][_0xcdfa[12]]}})[_0xcdfa[8]](function(_0x2b07x7){if(!_0x2b07x7){return _0x2b07x4[_0xcdfa[11]](404)};_0x2b07x7[_0xcdfa[21]]()[_0xcdfa[8]](function(){return _0x2b07x4[_0xcdfa[11]](204)})[_0xcdfa[5]](function(_0x2b07x5){return handleError(_0x2b07x4,_0x2b07x5)});})[_0xcdfa[5]](function(_0x2b07x5){return handleError(_0x2b07x4,_0x2b07x5)})};function handleError(_0x2b07x4,_0x2b07x5){return _0x2b07x4[_0xcdfa[7]](500)[_0xcdfa[6]](_0x2b07x5)}
\ No newline at end of file
+var _0x36af=["\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"];_0x36af[0];var _=require(_0x36af[1]);var BusinessCondition=require(_0x36af[3])[_0x36af[2]];exports[_0x36af[4]]=function(_0x2c21x3,_0x2c21x4){BusinessCondition[_0x36af[9]]()[_0x36af[8]](function(_0x2c21x6){return _0x2c21x4[_0x36af[7]](200)[_0x36af[6]](_0x2c21x6)})[_0x36af[5]](function(_0x2c21x5){return handleError(_0x2c21x4,_0x2c21x5)})};exports[_0x36af[10]]=function(_0x2c21x3,_0x2c21x4){BusinessCondition[_0x36af[14]](_0x2c21x3[_0x36af[13]][_0x36af[12]])[_0x36af[8]](function(_0x2c21x7){if(!_0x2c21x7){return _0x2c21x4[_0x36af[11]](404)};return _0x2c21x4[_0x36af[6]](_0x2c21x7);})[_0x36af[5]](function(_0x2c21x5){return handleError(_0x2c21x4,_0x2c21x5)})};exports[_0x36af[15]]=function(_0x2c21x3,_0x2c21x4){BusinessCondition[_0x36af[15]](_0x2c21x3[_0x36af[16]])[_0x36af[8]](function(_0x2c21x7){return _0x2c21x4[_0x36af[7]](201)[_0x36af[6]](_0x2c21x7)})[_0x36af[5]](function(_0x2c21x5){return handleError(_0x2c21x4,_0x2c21x5)})};exports[_0x36af[17]]=function(_0x2c21x3,_0x2c21x4){if(_0x2c21x3[_0x36af[16]][_0x36af[12]]){delete _0x2c21x3[_0x36af[16]][_0x36af[12]]};BusinessCondition[_0x36af[20]]({where:{id:_0x2c21x3[_0x36af[13]][_0x36af[12]]}})[_0x36af[8]](function(_0x2c21x7){if(!_0x2c21x7){return _0x2c21x4[_0x36af[11]](404)};var _0x2c21x8=_[_0x36af[18]](_0x2c21x7,_0x2c21x3[_0x36af[16]]);_0x2c21x8[_0x36af[19]]()[_0x36af[8]](function(){return _0x2c21x4[_0x36af[7]](200)[_0x36af[6]](_0x2c21x7)})[_0x36af[5]](function(_0x2c21x5){return handleError(_0x2c21x4,_0x2c21x5)});})[_0x36af[5]](function(_0x2c21x5){return handleError(_0x2c21x4,_0x2c21x5)});};exports[_0x36af[21]]=function(_0x2c21x3,_0x2c21x4){BusinessCondition[_0x36af[20]]({where:{id:_0x2c21x3[_0x36af[13]][_0x36af[12]]}})[_0x36af[8]](function(_0x2c21x7){if(!_0x2c21x7){return _0x2c21x4[_0x36af[11]](404)};_0x2c21x7[_0x36af[21]]()[_0x36af[8]](function(){return _0x2c21x4[_0x36af[11]](204)})[_0x36af[5]](function(_0x2c21x5){return handleError(_0x2c21x4,_0x2c21x5)});})[_0x36af[5]](function(_0x2c21x5){return handleError(_0x2c21x4,_0x2c21x5)})};function handleError(_0x2c21x4,_0x2c21x5){return _0x2c21x4[_0x36af[7]](500)[_0x36af[6]](_0x2c21x5)}
\ No newline at end of file
-var _0x11e2=["\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"];_0x11e2[0];var BusinessCondition=require(_0x11e2[2])[_0x11e2[1]];exports[_0x11e2[3]]=function(_0x229dx2){BusinessCondition[_0x11e2[4]](function(_0x229dx3){onSave(_0x229dx2,_0x229dx3)});BusinessCondition[_0x11e2[5]](function(_0x229dx3){onRemove(_0x229dx2,_0x229dx3)});};function onSave(_0x229dx2,_0x229dx3,_0x229dx5){_0x229dx2[_0x11e2[7]](_0x11e2[6],_0x229dx3)}function onRemove(_0x229dx2,_0x229dx3,_0x229dx5){_0x229dx2[_0x11e2[7]](_0x11e2[8],_0x229dx3)}
\ No newline at end of file
+var _0xbe15=["\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"];_0xbe15[0];var BusinessCondition=require(_0xbe15[2])[_0xbe15[1]];exports[_0xbe15[3]]=function(_0xb813x2){BusinessCondition[_0xbe15[4]](function(_0xb813x3){onSave(_0xb813x2,_0xb813x3)});BusinessCondition[_0xbe15[5]](function(_0xb813x3){onRemove(_0xb813x2,_0xb813x3)});};function onSave(_0xb813x2,_0xb813x3,_0xb813x5){_0xb813x2[_0xbe15[7]](_0xbe15[6],_0xb813x3)}function onRemove(_0xb813x2,_0xb813x3,_0xb813x5){_0xb813x2[_0xbe15[7]](_0xbe15[8],_0xb813x3)}
\ No newline at end of file
-var _0x5b67=["\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"];_0x5b67[0];var should=require(_0x5b67[1]);var app=require(_0x5b67[2]);var request=require(_0x5b67[3]);describe(_0x5b67[4],function(){it(_0x5b67[5],function(_0x687ex4){request(app)[_0x5b67[13]](_0x5b67[12])[_0x5b67[11]](200)[_0x5b67[11]](_0x5b67[10],/json/)[_0x5b67[9]](function(_0x687ex5,_0x687ex6){if(_0x687ex5){return _0x687ex4(_0x687ex5)};_0x687ex6[_0x5b67[8]][_0x5b67[1]][_0x5b67[7]][_0x5b67[6]](Array);_0x687ex4();})})});
\ No newline at end of file
+var _0x2954=["\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"];_0x2954[0];var should=require(_0x2954[1]);var app=require(_0x2954[2]);var request=require(_0x2954[3]);describe(_0x2954[4],function(){it(_0x2954[5],function(_0xff47x4){request(app)[_0x2954[13]](_0x2954[12])[_0x2954[11]](200)[_0x2954[11]](_0x2954[10],/json/)[_0x2954[9]](function(_0xff47x5,_0xff47x6){if(_0xff47x5){return _0xff47x4(_0xff47x5)};_0xff47x6[_0x2954[8]][_0x2954[1]][_0x2954[7]][_0x2954[6]](Array);_0xff47x4();})})});
\ No newline at end of file
-var _0x421f=["\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"];_0x421f[0];var express=require(_0x421f[1]);var controller=require(_0x421f[2]);var router=express.Router();router[_0x421f[5]](_0x421f[3],controller[_0x421f[4]]);router[_0x421f[5]](_0x421f[6],controller[_0x421f[7]]);router[_0x421f[9]](_0x421f[3],controller[_0x421f[8]]);router[_0x421f[11]](_0x421f[6],controller[_0x421f[10]]);router[_0x421f[12]](_0x421f[6],controller[_0x421f[10]]);router[_0x421f[14]](_0x421f[6],controller[_0x421f[13]]);module[_0x421f[15]]=router;
\ No newline at end of file
+var _0x81bf=["\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"];_0x81bf[0];var express=require(_0x81bf[1]);var controller=require(_0x81bf[2]);var router=express.Router();router[_0x81bf[5]](_0x81bf[3],controller[_0x81bf[4]]);router[_0x81bf[5]](_0x81bf[6],controller[_0x81bf[7]]);router[_0x81bf[9]](_0x81bf[3],controller[_0x81bf[8]]);router[_0x81bf[11]](_0x81bf[6],controller[_0x81bf[10]]);router[_0x81bf[12]](_0x81bf[6],controller[_0x81bf[10]]);router[_0x81bf[14]](_0x81bf[6],controller[_0x81bf[13]]);module[_0x81bf[15]]=router;
\ No newline at end of file
-var _0x5098=["\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"];_0x5098[0];var _=require(_0x5098[1]);var ChatApplication=require(_0x5098[3])[_0x5098[2]];exports[_0x5098[4]]=function(_0x9341x3,_0x9341x4){ChatApplication[_0x5098[11]]({where:_0x9341x3[_0x5098[9]],order:_0x5098[10],include:[{all:true}]})[_0x5098[8]](function(_0x9341x6){return _0x9341x4[_0x5098[7]](200)[_0x5098[6]](_0x9341x6)})[_0x5098[5]](function(_0x9341x5){return handleError(_0x9341x4,_0x9341x5)})};exports[_0x5098[12]]=function(_0x9341x3,_0x9341x4){ChatApplication[_0x5098[16]](_0x9341x3[_0x5098[15]][_0x5098[14]])[_0x5098[8]](function(_0x9341x7){if(!_0x9341x7){return _0x9341x4[_0x5098[13]](404)};return _0x9341x4[_0x5098[6]](_0x9341x7);})[_0x5098[5]](function(_0x9341x5){return handleError(_0x9341x4,_0x9341x5)})};exports[_0x5098[17]]=function(_0x9341x3,_0x9341x4,_0x9341x8){ChatApplication[_0x5098[20]](_0x5098[10],{where:{ChatWebsiteId:_0x9341x3[_0x5098[18]][_0x5098[19]]}})[_0x5098[8]](function(_0x9341x9){_0x9341x3[_0x5098[18]][_0x5098[10]]=_0x9341x9?++_0x9341x9:1;ChatApplication[_0x5098[17]](_0x9341x3[_0x5098[18]])[_0x5098[8]](function(_0x9341xa){return _0x9341x4[_0x5098[7]](201)[_0x5098[6]](_0x9341xa)})[_0x5098[5]](function(_0x9341x5){return _0x9341x8(_0x9341x5)});})[_0x5098[5]](function(_0x9341x5){_0x9341x8(_0x9341x5)})};exports[_0x5098[21]]=function(_0x9341x3,_0x9341x4){if(_0x9341x3[_0x5098[18]][_0x5098[14]]){delete _0x9341x3[_0x5098[18]][_0x5098[14]]};ChatApplication[_0x5098[16]](_0x9341x3[_0x5098[15]][_0x5098[14]])[_0x5098[8]](function(_0x9341x7){if(!_0x9341x7){return _0x9341x4[_0x5098[13]](404)};var _0x9341xb=_[_0x5098[22]](_0x9341x7,_0x9341x3[_0x5098[18]]);_0x9341xb[_0x5098[23]]()[_0x5098[8]](function(){return _0x9341x4[_0x5098[7]](200)[_0x5098[6]](_0x9341x7)})[_0x5098[5]](function(_0x9341x5){return handleError(_0x9341x4,_0x9341x5)});})[_0x5098[5]](function(_0x9341x5){return handleError(_0x9341x4,_0x9341x5)});};exports[_0x5098[24]]=function(_0x9341x3,_0x9341x4){ChatApplication[_0x5098[16]](_0x9341x3[_0x5098[15]][_0x5098[14]])[_0x5098[8]](function(_0x9341x7){if(!_0x9341x7){return _0x9341x4[_0x5098[13]](404)};_0x9341x7[_0x5098[24]]()[_0x5098[8]](function(){return _0x9341x4[_0x5098[13]](204)})[_0x5098[5]](function(_0x9341x5){return handleError(_0x9341x4,_0x9341x5)});})[_0x5098[5]](function(_0x9341x5){return handleError(_0x9341x4,_0x9341x5)})};function handleError(_0x9341x4,_0x9341x5){return _0x9341x4[_0x5098[7]](500)[_0x5098[6]](_0x9341x5)}
\ No newline at end of file
+var _0xb0b3=["\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"];_0xb0b3[0];var _=require(_0xb0b3[1]);var ChatApplication=require(_0xb0b3[3])[_0xb0b3[2]];exports[_0xb0b3[4]]=function(_0x6261x3,_0x6261x4){ChatApplication[_0xb0b3[11]]({where:_0x6261x3[_0xb0b3[9]],order:_0xb0b3[10],include:[{all:true}]})[_0xb0b3[8]](function(_0x6261x6){return _0x6261x4[_0xb0b3[7]](200)[_0xb0b3[6]](_0x6261x6)})[_0xb0b3[5]](function(_0x6261x5){return handleError(_0x6261x4,_0x6261x5)})};exports[_0xb0b3[12]]=function(_0x6261x3,_0x6261x4){ChatApplication[_0xb0b3[16]](_0x6261x3[_0xb0b3[15]][_0xb0b3[14]])[_0xb0b3[8]](function(_0x6261x7){if(!_0x6261x7){return _0x6261x4[_0xb0b3[13]](404)};return _0x6261x4[_0xb0b3[6]](_0x6261x7);})[_0xb0b3[5]](function(_0x6261x5){return handleError(_0x6261x4,_0x6261x5)})};exports[_0xb0b3[17]]=function(_0x6261x3,_0x6261x4,_0x6261x8){ChatApplication[_0xb0b3[20]](_0xb0b3[10],{where:{ChatWebsiteId:_0x6261x3[_0xb0b3[18]][_0xb0b3[19]]}})[_0xb0b3[8]](function(_0x6261x9){_0x6261x3[_0xb0b3[18]][_0xb0b3[10]]=_0x6261x9?++_0x6261x9:1;ChatApplication[_0xb0b3[17]](_0x6261x3[_0xb0b3[18]])[_0xb0b3[8]](function(_0x6261xa){return _0x6261x4[_0xb0b3[7]](201)[_0xb0b3[6]](_0x6261xa)})[_0xb0b3[5]](function(_0x6261x5){return _0x6261x8(_0x6261x5)});})[_0xb0b3[5]](function(_0x6261x5){_0x6261x8(_0x6261x5)})};exports[_0xb0b3[21]]=function(_0x6261x3,_0x6261x4){if(_0x6261x3[_0xb0b3[18]][_0xb0b3[14]]){delete _0x6261x3[_0xb0b3[18]][_0xb0b3[14]]};ChatApplication[_0xb0b3[16]](_0x6261x3[_0xb0b3[15]][_0xb0b3[14]])[_0xb0b3[8]](function(_0x6261x7){if(!_0x6261x7){return _0x6261x4[_0xb0b3[13]](404)};var _0x6261xb=_[_0xb0b3[22]](_0x6261x7,_0x6261x3[_0xb0b3[18]]);_0x6261xb[_0xb0b3[23]]()[_0xb0b3[8]](function(){return _0x6261x4[_0xb0b3[7]](200)[_0xb0b3[6]](_0x6261x7)})[_0xb0b3[5]](function(_0x6261x5){return handleError(_0x6261x4,_0x6261x5)});})[_0xb0b3[5]](function(_0x6261x5){return handleError(_0x6261x4,_0x6261x5)});};exports[_0xb0b3[24]]=function(_0x6261x3,_0x6261x4){ChatApplication[_0xb0b3[16]](_0x6261x3[_0xb0b3[15]][_0xb0b3[14]])[_0xb0b3[8]](function(_0x6261x7){if(!_0x6261x7){return _0x6261x4[_0xb0b3[13]](404)};_0x6261x7[_0xb0b3[24]]()[_0xb0b3[8]](function(){return _0x6261x4[_0xb0b3[13]](204)})[_0xb0b3[5]](function(_0x6261x5){return handleError(_0x6261x4,_0x6261x5)});})[_0xb0b3[5]](function(_0x6261x5){return handleError(_0x6261x4,_0x6261x5)})};function handleError(_0x6261x4,_0x6261x5){return _0x6261x4[_0xb0b3[7]](500)[_0xb0b3[6]](_0x6261x5)}
\ No newline at end of file
-var _0xee2b=["\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"];_0xee2b[0];var ChatApplication=require(_0xee2b[2])[_0xee2b[1]];exports[_0xee2b[3]]=function(_0xf19bx2){ChatApplication[_0xee2b[4]](function(_0xf19bx3){onSave(_0xf19bx2,_0xf19bx3)});ChatApplication[_0xee2b[5]](function(_0xf19bx3){onRemove(_0xf19bx2,_0xf19bx3)});};function onSave(_0xf19bx2,_0xf19bx3,_0xf19bx5){_0xf19bx2[_0xee2b[7]](_0xee2b[6],_0xf19bx3)}function onRemove(_0xf19bx2,_0xf19bx3,_0xf19bx5){_0xf19bx2[_0xee2b[7]](_0xee2b[8],_0xf19bx3)}
\ No newline at end of file
+var _0x514b=["\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"];_0x514b[0];var ChatApplication=require(_0x514b[2])[_0x514b[1]];exports[_0x514b[3]]=function(_0x57e1x2){ChatApplication[_0x514b[4]](function(_0x57e1x3){onSave(_0x57e1x2,_0x57e1x3)});ChatApplication[_0x514b[5]](function(_0x57e1x3){onRemove(_0x57e1x2,_0x57e1x3)});};function onSave(_0x57e1x2,_0x57e1x3,_0x57e1x5){_0x57e1x2[_0x514b[7]](_0x514b[6],_0x57e1x3)}function onRemove(_0x57e1x2,_0x57e1x3,_0x57e1x5){_0x57e1x2[_0x514b[7]](_0x514b[8],_0x57e1x3)}
\ No newline at end of file
-var _0x79b1=["\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"];_0x79b1[0];var should=require(_0x79b1[1]);var app=require(_0x79b1[2]);var request=require(_0x79b1[3]);describe(_0x79b1[4],function(){it(_0x79b1[5],function(_0x888ex4){request(app)[_0x79b1[13]](_0x79b1[12])[_0x79b1[11]](200)[_0x79b1[11]](_0x79b1[10],/json/)[_0x79b1[9]](function(_0x888ex5,_0x888ex6){if(_0x888ex5){return _0x888ex4(_0x888ex5)};_0x888ex6[_0x79b1[8]][_0x79b1[1]][_0x79b1[7]][_0x79b1[6]](Array);_0x888ex4();})})});
\ No newline at end of file
+var _0x659f=["\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"];_0x659f[0];var should=require(_0x659f[1]);var app=require(_0x659f[2]);var request=require(_0x659f[3]);describe(_0x659f[4],function(){it(_0x659f[5],function(_0x9ccdx4){request(app)[_0x659f[13]](_0x659f[12])[_0x659f[11]](200)[_0x659f[11]](_0x659f[10],/json/)[_0x659f[9]](function(_0x9ccdx5,_0x9ccdx6){if(_0x9ccdx5){return _0x9ccdx4(_0x9ccdx5)};_0x9ccdx6[_0x659f[8]][_0x659f[1]][_0x659f[7]][_0x659f[6]](Array);_0x9ccdx4();})})});
\ No newline at end of file
-var _0xbab1=["\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"];_0xbab1[0];var express=require(_0xbab1[1]);var controller=require(_0xbab1[2]);var router=express.Router();router[_0xbab1[5]](_0xbab1[3],controller[_0xbab1[4]]);router[_0xbab1[5]](_0xbab1[6],controller[_0xbab1[7]]);router[_0xbab1[9]](_0xbab1[3],controller[_0xbab1[8]]);router[_0xbab1[11]](_0xbab1[6],controller[_0xbab1[10]]);router[_0xbab1[12]](_0xbab1[6],controller[_0xbab1[10]]);router[_0xbab1[14]](_0xbab1[6],controller[_0xbab1[13]]);module[_0xbab1[15]]=router;
\ No newline at end of file
+var _0x387d=["\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"];_0x387d[0];var express=require(_0x387d[1]);var controller=require(_0x387d[2]);var router=express.Router();router[_0x387d[5]](_0x387d[3],controller[_0x387d[4]]);router[_0x387d[5]](_0x387d[6],controller[_0x387d[7]]);router[_0x387d[9]](_0x387d[3],controller[_0x387d[8]]);router[_0x387d[11]](_0x387d[6],controller[_0x387d[10]]);router[_0x387d[12]](_0x387d[6],controller[_0x387d[10]]);router[_0x387d[14]](_0x387d[6],controller[_0x387d[13]]);module[_0x387d[15]]=router;
\ No newline at end of file
-var _0x6543=["\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"];_0x6543[0];var _=require(_0x6543[1]);var ChatEnquiry=require(_0x6543[3])[_0x6543[2]];var ChatVisitor=require(_0x6543[3])[_0x6543[4]];exports[_0x6543[5]]=function(_0xf9e4x4,_0xf9e4x5){ChatEnquiry[_0x6543[10]]()[_0x6543[9]](function(_0xf9e4x7){return _0xf9e4x5[_0x6543[8]](200)[_0x6543[7]](_0xf9e4x7)})[_0x6543[6]](function(_0xf9e4x6){return handleError(_0xf9e4x5,_0xf9e4x6)})};exports[_0x6543[11]]=function(_0xf9e4x4,_0xf9e4x5){ChatEnquiry[_0x6543[15]]({where:{id:_0xf9e4x4[_0x6543[14]][_0x6543[13]]},include:[ChatVisitor]})[_0x6543[9]](function(_0xf9e4x8){if(!_0xf9e4x8){return _0xf9e4x5[_0x6543[12]](404)};return _0xf9e4x5[_0x6543[7]](_0xf9e4x8);})[_0x6543[6]](function(_0xf9e4x6){return handleError(_0xf9e4x5,_0xf9e4x6)})};exports[_0x6543[16]]=function(_0xf9e4x4,_0xf9e4x5){ChatEnquiry[_0x6543[16]](_0xf9e4x4[_0x6543[17]])[_0x6543[9]](function(_0xf9e4x8){return _0xf9e4x5[_0x6543[8]](201)[_0x6543[7]](_0xf9e4x8)})[_0x6543[6]](function(_0xf9e4x6){return handleError(_0xf9e4x5,_0xf9e4x6)})};exports[_0x6543[18]]=function(_0xf9e4x4,_0xf9e4x5){if(_0xf9e4x4[_0x6543[17]][_0x6543[13]]){delete _0xf9e4x4[_0x6543[17]][_0x6543[13]]};ChatEnquiry[_0x6543[21]](_0xf9e4x4[_0x6543[14]][_0x6543[13]])[_0x6543[9]](function(_0xf9e4x8){if(!_0xf9e4x8){return _0xf9e4x5[_0x6543[12]](404)};var _0xf9e4x9=_[_0x6543[19]](_0xf9e4x8,_0xf9e4x4[_0x6543[17]]);_0xf9e4x9[_0x6543[20]]()[_0x6543[9]](function(){return _0xf9e4x5[_0x6543[8]](200)[_0x6543[7]](_0xf9e4x8)})[_0x6543[6]](function(_0xf9e4x6){return handleError(_0xf9e4x5,_0xf9e4x6)});})[_0x6543[6]](function(_0xf9e4x6){return handleError(_0xf9e4x5,_0xf9e4x6)});};exports[_0x6543[22]]=function(_0xf9e4x4,_0xf9e4x5){ChatEnquiry[_0x6543[21]](_0xf9e4x4[_0x6543[14]][_0x6543[13]])[_0x6543[9]](function(_0xf9e4x8){if(!_0xf9e4x8){return _0xf9e4x5[_0x6543[12]](404)};_0xf9e4x8[_0x6543[22]]()[_0x6543[9]](function(){return _0xf9e4x5[_0x6543[12]](204)})[_0x6543[6]](function(_0xf9e4x6){return handleError(_0xf9e4x5,_0xf9e4x6)});})[_0x6543[6]](function(_0xf9e4x6){return handleError(_0xf9e4x5,_0xf9e4x6)})};function handleError(_0xf9e4x5,_0xf9e4x6){return _0xf9e4x5[_0x6543[8]](500)[_0x6543[7]](_0xf9e4x6)}
\ No newline at end of file
+var _0xd36c=["\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"];_0xd36c[0];var _=require(_0xd36c[1]);var ChatEnquiry=require(_0xd36c[3])[_0xd36c[2]];var ChatVisitor=require(_0xd36c[3])[_0xd36c[4]];exports[_0xd36c[5]]=function(_0x7228x4,_0x7228x5){ChatEnquiry[_0xd36c[10]]()[_0xd36c[9]](function(_0x7228x7){return _0x7228x5[_0xd36c[8]](200)[_0xd36c[7]](_0x7228x7)})[_0xd36c[6]](function(_0x7228x6){return handleError(_0x7228x5,_0x7228x6)})};exports[_0xd36c[11]]=function(_0x7228x4,_0x7228x5){ChatEnquiry[_0xd36c[15]]({where:{id:_0x7228x4[_0xd36c[14]][_0xd36c[13]]},include:[ChatVisitor]})[_0xd36c[9]](function(_0x7228x8){if(!_0x7228x8){return _0x7228x5[_0xd36c[12]](404)};return _0x7228x5[_0xd36c[7]](_0x7228x8);})[_0xd36c[6]](function(_0x7228x6){return handleError(_0x7228x5,_0x7228x6)})};exports[_0xd36c[16]]=function(_0x7228x4,_0x7228x5){ChatEnquiry[_0xd36c[16]](_0x7228x4[_0xd36c[17]])[_0xd36c[9]](function(_0x7228x8){return _0x7228x5[_0xd36c[8]](201)[_0xd36c[7]](_0x7228x8)})[_0xd36c[6]](function(_0x7228x6){return handleError(_0x7228x5,_0x7228x6)})};exports[_0xd36c[18]]=function(_0x7228x4,_0x7228x5){if(_0x7228x4[_0xd36c[17]][_0xd36c[13]]){delete _0x7228x4[_0xd36c[17]][_0xd36c[13]]};ChatEnquiry[_0xd36c[21]](_0x7228x4[_0xd36c[14]][_0xd36c[13]])[_0xd36c[9]](function(_0x7228x8){if(!_0x7228x8){return _0x7228x5[_0xd36c[12]](404)};var _0x7228x9=_[_0xd36c[19]](_0x7228x8,_0x7228x4[_0xd36c[17]]);_0x7228x9[_0xd36c[20]]()[_0xd36c[9]](function(){return _0x7228x5[_0xd36c[8]](200)[_0xd36c[7]](_0x7228x8)})[_0xd36c[6]](function(_0x7228x6){return handleError(_0x7228x5,_0x7228x6)});})[_0xd36c[6]](function(_0x7228x6){return handleError(_0x7228x5,_0x7228x6)});};exports[_0xd36c[22]]=function(_0x7228x4,_0x7228x5){ChatEnquiry[_0xd36c[21]](_0x7228x4[_0xd36c[14]][_0xd36c[13]])[_0xd36c[9]](function(_0x7228x8){if(!_0x7228x8){return _0x7228x5[_0xd36c[12]](404)};_0x7228x8[_0xd36c[22]]()[_0xd36c[9]](function(){return _0x7228x5[_0xd36c[12]](204)})[_0xd36c[6]](function(_0x7228x6){return handleError(_0x7228x5,_0x7228x6)});})[_0xd36c[6]](function(_0x7228x6){return handleError(_0x7228x5,_0x7228x6)})};function handleError(_0x7228x5,_0x7228x6){return _0x7228x5[_0xd36c[8]](500)[_0xd36c[7]](_0x7228x6)}
\ No newline at end of file
-var _0x8dbb=["\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"];_0x8dbb[0];var enquiry=require(_0x8dbb[2])[_0x8dbb[1]];exports[_0x8dbb[3]]=function(_0xaed0x2){enquiry[_0x8dbb[4]](function(_0xaed0x3){onSave(_0xaed0x2,_0xaed0x3)});enquiry[_0x8dbb[5]](function(_0xaed0x3){onRemove(_0xaed0x2,_0xaed0x3)});};function onSave(_0xaed0x2,_0xaed0x3,_0xaed0x5){_0xaed0x2[_0x8dbb[7]](_0x8dbb[6],_0xaed0x3)}function onRemove(_0xaed0x2,_0xaed0x3,_0xaed0x5){_0xaed0x2[_0x8dbb[7]](_0x8dbb[8],_0xaed0x3)}
\ No newline at end of file
+var _0xa314=["\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"];_0xa314[0];var enquiry=require(_0xa314[2])[_0xa314[1]];exports[_0xa314[3]]=function(_0xb2a4x2){enquiry[_0xa314[4]](function(_0xb2a4x3){onSave(_0xb2a4x2,_0xb2a4x3)});enquiry[_0xa314[5]](function(_0xb2a4x3){onRemove(_0xb2a4x2,_0xb2a4x3)});};function onSave(_0xb2a4x2,_0xb2a4x3,_0xb2a4x5){_0xb2a4x2[_0xa314[7]](_0xa314[6],_0xb2a4x3)}function onRemove(_0xb2a4x2,_0xb2a4x3,_0xb2a4x5){_0xb2a4x2[_0xa314[7]](_0xa314[8],_0xb2a4x3)}
\ No newline at end of file
-var _0x45e1=["\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"];_0x45e1[0];var express=require(_0x45e1[1]);var controller=require(_0x45e1[2]);var router=express.Router();router[_0x45e1[5]](_0x45e1[3],controller[_0x45e1[4]]);router[_0x45e1[5]](_0x45e1[6],controller[_0x45e1[7]]);router[_0x45e1[9]](_0x45e1[3],controller[_0x45e1[8]]);router[_0x45e1[11]](_0x45e1[6],controller[_0x45e1[10]]);router[_0x45e1[12]](_0x45e1[6],controller[_0x45e1[10]]);router[_0x45e1[14]](_0x45e1[6],controller[_0x45e1[13]]);module[_0x45e1[15]]=router;
\ No newline at end of file
+var _0xb3d6=["\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"];_0xb3d6[0];var express=require(_0xb3d6[1]);var controller=require(_0xb3d6[2]);var router=express.Router();router[_0xb3d6[5]](_0xb3d6[3],controller[_0xb3d6[4]]);router[_0xb3d6[5]](_0xb3d6[6],controller[_0xb3d6[7]]);router[_0xb3d6[9]](_0xb3d6[3],controller[_0xb3d6[8]]);router[_0xb3d6[11]](_0xb3d6[6],controller[_0xb3d6[10]]);router[_0xb3d6[12]](_0xb3d6[6],controller[_0xb3d6[10]]);router[_0xb3d6[14]](_0xb3d6[6],controller[_0xb3d6[13]]);module[_0xb3d6[15]]=router;
\ No newline at end of file
-var _0x6daf=["\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"];_0x6daf[0];var _=require(_0x6daf[1]);var md5=require(_0x6daf[2]);var User=require(_0x6daf[4])[_0x6daf[3]];var ChatRoom=require(_0x6daf[4])[_0x6daf[5]];var ChatMessage=require(_0x6daf[4])[_0x6daf[6]];var ChatVisitor=require(_0x6daf[4])[_0x6daf[7]];exports[_0x6daf[8]]=function(_0xa018x7,_0xa018x8){ChatMessage[_0x6daf[13]]()[_0x6daf[12]](function(_0xa018xa){return _0xa018x8[_0x6daf[11]](200)[_0x6daf[10]](_0xa018xa)})[_0x6daf[9]](function(_0xa018x9){return handleError(_0xa018x8,_0xa018x9)})};exports[_0x6daf[14]]=function(_0xa018x7,_0xa018x8){ChatMessage[_0x6daf[18]](_0xa018x7[_0x6daf[17]][_0x6daf[16]])[_0x6daf[12]](function(_0xa018xb){if(!_0xa018xb){return _0xa018x8[_0x6daf[15]](404)};return _0xa018x8[_0x6daf[10]](_0xa018xb);})[_0x6daf[9]](function(_0xa018x9){return handleError(_0xa018x8,_0xa018x9)})};exports[_0x6daf[19]]=function(_0xa018x7,_0xa018x8,_0xa018xc){ChatMessage[_0x6daf[19]](_[_0x6daf[22]](_0xa018x7[_0x6daf[20]],{UserId:_0xa018x7[_0x6daf[21]][_0x6daf[16]]}))[_0x6daf[12]](function(_0xa018xb){return _0xa018x8[_0x6daf[11]](201)[_0x6daf[10]](_0xa018xb)})[_0x6daf[9]](function(_0xa018x9){return handleError(_0xa018x8,_0xa018x9)})};exports[_0x6daf[23]]=function(_0xa018x7,_0xa018x8){if(_0xa018x7[_0x6daf[20]][_0x6daf[16]]){delete _0xa018x7[_0x6daf[20]][_0x6daf[16]]};return ChatMessage[_0x6daf[18]](_0xa018x7[_0x6daf[17]][_0x6daf[16]])[_0x6daf[12]](function(_0xa018xb){if(!_0xa018xb){return _0xa018x8[_0x6daf[15]](404)};var _0xa018xd=_[_0x6daf[22]](_0xa018xb,_0xa018x7[_0x6daf[20]]);return _0xa018xd[_0x6daf[24]]();})[_0x6daf[12]](function(_0xa018xb){return _0xa018x8[_0x6daf[11]](200)[_0x6daf[10]](_0xa018xb)})[_0x6daf[9]](function(_0xa018x9){return handleError(_0xa018x8,_0xa018x9)});};exports[_0x6daf[25]]=function(_0xa018x7,_0xa018x8){ChatMessage[_0x6daf[18]](_0xa018x7[_0x6daf[17]][_0x6daf[16]])[_0x6daf[12]](function(_0xa018xb){if(!_0xa018xb){return _0xa018x8[_0x6daf[15]](404)};_0xa018xb[_0x6daf[25]]()[_0x6daf[12]](function(){return _0xa018x8[_0x6daf[15]](204)})[_0x6daf[9]](function(_0xa018x9){return handleError(_0xa018x8,_0xa018x9)});})[_0x6daf[9]](function(_0xa018x9){return handleError(_0xa018x8,_0xa018x9)})};function handleError(_0xa018x8,_0xa018x9){return _0xa018x8[_0x6daf[11]](500)[_0x6daf[10]](_0xa018x9)}
\ No newline at end of file
+var _0xd187=["\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"];_0xd187[0];var _=require(_0xd187[1]);var md5=require(_0xd187[2]);var User=require(_0xd187[4])[_0xd187[3]];var ChatRoom=require(_0xd187[4])[_0xd187[5]];var ChatMessage=require(_0xd187[4])[_0xd187[6]];var ChatVisitor=require(_0xd187[4])[_0xd187[7]];exports[_0xd187[8]]=function(_0xdb4ex7,_0xdb4ex8){ChatMessage[_0xd187[13]]()[_0xd187[12]](function(_0xdb4exa){return _0xdb4ex8[_0xd187[11]](200)[_0xd187[10]](_0xdb4exa)})[_0xd187[9]](function(_0xdb4ex9){return handleError(_0xdb4ex8,_0xdb4ex9)})};exports[_0xd187[14]]=function(_0xdb4ex7,_0xdb4ex8){ChatMessage[_0xd187[18]](_0xdb4ex7[_0xd187[17]][_0xd187[16]])[_0xd187[12]](function(_0xdb4exb){if(!_0xdb4exb){return _0xdb4ex8[_0xd187[15]](404)};return _0xdb4ex8[_0xd187[10]](_0xdb4exb);})[_0xd187[9]](function(_0xdb4ex9){return handleError(_0xdb4ex8,_0xdb4ex9)})};exports[_0xd187[19]]=function(_0xdb4ex7,_0xdb4ex8,_0xdb4exc){ChatMessage[_0xd187[19]](_[_0xd187[22]](_0xdb4ex7[_0xd187[20]],{UserId:_0xdb4ex7[_0xd187[21]][_0xd187[16]]}))[_0xd187[12]](function(_0xdb4exb){return _0xdb4ex8[_0xd187[11]](201)[_0xd187[10]](_0xdb4exb)})[_0xd187[9]](function(_0xdb4ex9){return handleError(_0xdb4ex8,_0xdb4ex9)})};exports[_0xd187[23]]=function(_0xdb4ex7,_0xdb4ex8){if(_0xdb4ex7[_0xd187[20]][_0xd187[16]]){delete _0xdb4ex7[_0xd187[20]][_0xd187[16]]};return ChatMessage[_0xd187[18]](_0xdb4ex7[_0xd187[17]][_0xd187[16]])[_0xd187[12]](function(_0xdb4exb){if(!_0xdb4exb){return _0xdb4ex8[_0xd187[15]](404)};var _0xdb4exd=_[_0xd187[22]](_0xdb4exb,_0xdb4ex7[_0xd187[20]]);return _0xdb4exd[_0xd187[24]]();})[_0xd187[12]](function(_0xdb4exb){return _0xdb4ex8[_0xd187[11]](200)[_0xd187[10]](_0xdb4exb)})[_0xd187[9]](function(_0xdb4ex9){return handleError(_0xdb4ex8,_0xdb4ex9)});};exports[_0xd187[25]]=function(_0xdb4ex7,_0xdb4ex8){ChatMessage[_0xd187[18]](_0xdb4ex7[_0xd187[17]][_0xd187[16]])[_0xd187[12]](function(_0xdb4exb){if(!_0xdb4exb){return _0xdb4ex8[_0xd187[15]](404)};_0xdb4exb[_0xd187[25]]()[_0xd187[12]](function(){return _0xdb4ex8[_0xd187[15]](204)})[_0xd187[9]](function(_0xdb4ex9){return handleError(_0xdb4ex8,_0xdb4ex9)});})[_0xd187[9]](function(_0xdb4ex9){return handleError(_0xdb4ex8,_0xdb4ex9)})};function handleError(_0xdb4ex8,_0xdb4ex9){return _0xdb4ex8[_0xd187[11]](500)[_0xd187[10]](_0xdb4ex9)}
\ No newline at end of file
-var _0x45f1=["\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"];_0x45f1[0];var chat_message=require(_0x45f1[2])[_0x45f1[1]];var _=require(_0x45f1[3]);exports[_0x45f1[4]]=function(_0xc805x3){chat_message[_0x45f1[5]](function(_0xc805x4){onSave(_0xc805x3,_0xc805x4)});chat_message[_0x45f1[6]](function(_0xc805x4){onSave(_0xc805x3,_0xc805x4)});chat_message[_0x45f1[7]](function(_0xc805x4){onRemove(_0xc805x3,_0xc805x4)});};function onSave(_0xc805x3,_0xc805x4,_0xc805x6){return _0xc805x4[_0x45f1[28]]()[_0x45f1[27]](function(_0xc805xc){return [_0xc805xc[_0x45f1[25]]({attributes:[_0x45f1[13],_0x45f1[20],_0x45f1[21],_0x45f1[22],_0x45f1[23],_0x45f1[24]],raw:true}),_0xc805xc[_0x45f1[26]]({attributes:[_0x45f1[13],_0x45f1[21],_0x45f1[22]],raw:true})]})[_0x45f1[19]](function(_0xc805x8,_0xc805x9){var _0xc805xa=_[_0x45f1[11]](_0xc805x8,{id:_0xc805x4[_0x45f1[10]]});_0xc805x8[_0x45f1[18]](function(_0xc805xb){if(_0xc805x3[_0x45f1[12]]==_0xc805xb[_0x45f1[13]]&&(_0xc805xa||_0xc805x9)){_0xc805x3[_0x45f1[17]](_0x45f1[14],_[_0x45f1[16]](_0xc805x4[_0x45f1[15]],{User:_0xc805xa,ChatVisitor:_0xc805x9}))}});})[_0x45f1[9]](function(_0xc805x7){console[_0x45f1[8]](_0xc805x7)})}function onRemove(_0xc805x3,_0xc805x4,_0xc805x6){_0xc805x3[_0x45f1[17]](_0x45f1[29],_0xc805x4)}
\ No newline at end of file
+var _0xaa34=["\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"];_0xaa34[0];var chat_message=require(_0xaa34[2])[_0xaa34[1]];var _=require(_0xaa34[3]);exports[_0xaa34[4]]=function(_0x669bx3){chat_message[_0xaa34[5]](function(_0x669bx4){onSave(_0x669bx3,_0x669bx4)});chat_message[_0xaa34[6]](function(_0x669bx4){onSave(_0x669bx3,_0x669bx4)});chat_message[_0xaa34[7]](function(_0x669bx4){onRemove(_0x669bx3,_0x669bx4)});};function onSave(_0x669bx3,_0x669bx4,_0x669bx6){return _0x669bx4[_0xaa34[28]]()[_0xaa34[27]](function(_0x669bxc){return [_0x669bxc[_0xaa34[25]]({attributes:[_0xaa34[13],_0xaa34[20],_0xaa34[21],_0xaa34[22],_0xaa34[23],_0xaa34[24]],raw:true}),_0x669bxc[_0xaa34[26]]({attributes:[_0xaa34[13],_0xaa34[21],_0xaa34[22]],raw:true})]})[_0xaa34[19]](function(_0x669bx8,_0x669bx9){var _0x669bxa=_[_0xaa34[11]](_0x669bx8,{id:_0x669bx4[_0xaa34[10]]});_0x669bx8[_0xaa34[18]](function(_0x669bxb){if(_0x669bx3[_0xaa34[12]]==_0x669bxb[_0xaa34[13]]&&(_0x669bxa||_0x669bx9)){_0x669bx3[_0xaa34[17]](_0xaa34[14],_[_0xaa34[16]](_0x669bx4[_0xaa34[15]],{User:_0x669bxa,ChatVisitor:_0x669bx9}))}});})[_0xaa34[9]](function(_0x669bx7){console[_0xaa34[8]](_0x669bx7)})}function onRemove(_0x669bx3,_0x669bx4,_0x669bx6){_0x669bx3[_0xaa34[17]](_0xaa34[29],_0x669bx4)}
\ No newline at end of file
-var _0xb726=["\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"];_0xb726[0];var should=require(_0xb726[1]);var app=require(_0xb726[2]);var request=require(_0xb726[3]);describe(_0xb726[4],function(){it(_0xb726[5],function(_0x109ex4){request(app)[_0xb726[13]](_0xb726[12])[_0xb726[11]](200)[_0xb726[11]](_0xb726[10],/json/)[_0xb726[9]](function(_0x109ex5,_0x109ex6){if(_0x109ex5){return _0x109ex4(_0x109ex5)};_0x109ex6[_0xb726[8]][_0xb726[1]][_0xb726[7]][_0xb726[6]](Array);_0x109ex4();})})});
\ No newline at end of file
+var _0xa8a4=["\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"];_0xa8a4[0];var should=require(_0xa8a4[1]);var app=require(_0xa8a4[2]);var request=require(_0xa8a4[3]);describe(_0xa8a4[4],function(){it(_0xa8a4[5],function(_0x8299x4){request(app)[_0xa8a4[13]](_0xa8a4[12])[_0xa8a4[11]](200)[_0xa8a4[11]](_0xa8a4[10],/json/)[_0xa8a4[9]](function(_0x8299x5,_0x8299x6){if(_0x8299x5){return _0x8299x4(_0x8299x5)};_0x8299x6[_0xa8a4[8]][_0xa8a4[1]][_0xa8a4[7]][_0xa8a4[6]](Array);_0x8299x4();})})});
\ No newline at end of file
-var _0xfe7c=["\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"];_0xfe7c[0];var express=require(_0xfe7c[1]);var controller=require(_0xfe7c[2]);var auth=require(_0xfe7c[3]);var router=express.Router();router[_0xfe7c[6]](_0xfe7c[4],controller[_0xfe7c[5]]);router[_0xfe7c[6]](_0xfe7c[7],controller[_0xfe7c[8]]);router[_0xfe7c[11]](_0xfe7c[4],auth[_0xfe7c[9]](),controller[_0xfe7c[10]]);router[_0xfe7c[13]](_0xfe7c[7],controller[_0xfe7c[12]]);router[_0xfe7c[15]](_0xfe7c[7],controller[_0xfe7c[14]]);module[_0xfe7c[16]]=router;
\ No newline at end of file
+var _0xb9a5=["\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"];_0xb9a5[0];var express=require(_0xb9a5[1]);var controller=require(_0xb9a5[2]);var auth=require(_0xb9a5[3]);var router=express.Router();router[_0xb9a5[6]](_0xb9a5[4],controller[_0xb9a5[5]]);router[_0xb9a5[6]](_0xb9a5[7],controller[_0xb9a5[8]]);router[_0xb9a5[11]](_0xb9a5[4],auth[_0xb9a5[9]](),controller[_0xb9a5[10]]);router[_0xb9a5[13]](_0xb9a5[7],controller[_0xb9a5[12]]);router[_0xb9a5[15]](_0xb9a5[7],controller[_0xb9a5[14]]);module[_0xb9a5[16]]=router;
\ No newline at end of file
-var _0x666d=["\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"];_0x666d[0];var _=require(_0x666d[1]);var util=require(_0x666d[2]);var ChatQueue=require(_0x666d[4])[_0x666d[3]];var UserHasChatQueue=require(_0x666d[4])[_0x666d[5]];exports[_0x666d[6]]=function(_0xf435x5,_0xf435x6){var _0xf435x7=[_0x666d[7],_0x666d[8],_0x666d[9],_0x666d[10]];var _0xf435x8=_0xf435x5[_0x666d[12]][_0x666d[11]]?parseInt(_0xf435x5[_0x666d[12]][_0x666d[11]],10):100;var _0xf435x9=_0xf435x5[_0x666d[12]][_0x666d[13]]?parseInt(_0xf435x5[_0x666d[12]][_0x666d[13]],10):0;var _0xf435xa={where:{},limit:_0xf435x8,offset:_0xf435x9*_0xf435x8,include:[{all:true}]};_[_0x666d[27]](_0xf435x5[_0x666d[12]],function(_0xf435xb,_0xf435xc){switch(_0xf435xc){case _0x666d[11]:;case _0x666d[13]:break ;;case _0x666d[16]:_0xf435xa[_0x666d[14]]=util[_0x666d[19]](_0x666d[15],_0xf435x5[_0x666d[12]][_0x666d[16]],_0xf435x5[_0x666d[12]][_0x666d[17]]||_0x666d[18])||null;break ;;case _0x666d[17]:break ;;case _0x666d[25]:_0xf435xa[_0x666d[21]][_0x666d[20]]=[];_0xf435x7[_0x666d[24]](function(_0xf435xd){var _0xf435xe={};_0xf435xe[_0xf435xd]={$like:_0x666d[22]+_0xf435xb+_0x666d[22]};_0xf435xa[_0x666d[21]][_0x666d[20]][_0x666d[23]](_0xf435xe);});break ;;default:_0xf435xa[_0x666d[21]][_0xf435xc]={$like:{}};_0xf435xa[_0x666d[21]][_0xf435xc][_0x666d[26]]=_0x666d[22]+_0xf435xb+_0x666d[22];;}});ChatQueue[_0x666d[41]](_0xf435xa)[_0x666d[40]](function(_0xf435x10){var _0xf435x11=Math[_0x666d[30]](_0xf435x10[_0x666d[29]]/_0xf435x8);var _0xf435x12=_0xf435x11>(_0xf435xa[_0x666d[31]]+1)?util[_0x666d[19]](_0x666d[32],_0xf435x5[_0x666d[33]],_0xf435x5[_0x666d[35]][_0x666d[34]],_0xf435x5[_0x666d[36]],_0xf435x9+1):null;var _0xf435x13=_0xf435x9>0?util[_0x666d[19]](_0x666d[32],_0xf435x5[_0x666d[33]],_0xf435x5[_0x666d[35]][_0x666d[34]],_0xf435x5[_0x666d[36]],_0xf435x9-1):null;_0xf435x6[_0x666d[39]](200)[_0x666d[38]]({count:_0xf435x10[_0x666d[29]],rows:_0xf435x10[_0x666d[37]],next_page:_0xf435x12,previous_page:_0xf435x13,total_pages:_0xf435x11});})[_0x666d[28]](function(_0xf435xf){return handleError(_0xf435x6,_0xf435xf)});};exports[_0x666d[42]]=function(_0xf435x5,_0xf435x6,_0xf435x14){UserHasChatQueue[_0x666d[45]]({where:{UserId:_0xf435x5[_0x666d[44]][_0x666d[43]]}})[_0x666d[40]](function(_0xf435x15){return _0xf435x6[_0x666d[39]](200)[_0x666d[38]](_0xf435x15)})[_0x666d[28]](function(_0xf435xf){return handleError(_0xf435x6,_0xf435xf)})};exports[_0x666d[46]]=function(_0xf435x5,_0xf435x6){ChatQueue[_0x666d[49]](_0xf435x5[_0x666d[48]][_0x666d[43]])[_0x666d[40]](function(_0xf435x16){if(!_0xf435x16){return _0xf435x6[_0x666d[47]](404)};return _0xf435x6[_0x666d[38]](_0xf435x16);})[_0x666d[28]](function(_0xf435xf){return handleError(_0xf435x6,_0xf435xf)})};exports[_0x666d[50]]=function(_0xf435x5,_0xf435x6){ChatQueue[_0x666d[50]](_0xf435x5[_0x666d[51]])[_0x666d[40]](function(_0xf435x16){return _0xf435x6[_0x666d[39]](201)[_0x666d[38]](_0xf435x16)})[_0x666d[28]](function(_0xf435xf){return handleError(_0xf435x6,_0xf435xf)})};exports[_0x666d[52]]=function(_0xf435x5,_0xf435x6){if(_0xf435x5[_0x666d[51]][_0x666d[43]]){delete _0xf435x5[_0x666d[51]][_0x666d[43]]};ChatQueue[_0x666d[49]](_0xf435x5[_0x666d[48]][_0x666d[43]])[_0x666d[40]](function(_0xf435x16){if(!_0xf435x16){return _0xf435x6[_0x666d[47]](404)};var _0xf435x17=_[_0x666d[53]](_0xf435x16,_0xf435x5[_0x666d[51]]);_0xf435x17[_0x666d[54]]()[_0x666d[40]](function(){return _0xf435x6[_0x666d[39]](200)[_0x666d[38]](_0xf435x16)})[_0x666d[28]](function(_0xf435xf){return handleError(_0xf435x6,_0xf435xf)});})[_0x666d[28]](function(_0xf435xf){return handleError(_0xf435x6,_0xf435xf)});};exports[_0x666d[55]]=function(_0xf435x5,_0xf435x6,_0xf435x14){return ChatQueue[_0x666d[49]](_0xf435x5[_0x666d[48]][_0x666d[43]])[_0x666d[40]](function(_0xf435x18){if(_0xf435x18){return _0xf435x18[_0x666d[57]](_0xf435x5[_0x666d[51]][_0x666d[56]],{individualHooks:true})}else {throw new Error(_0x666d[58])}})[_0x666d[40]](function(){return _0xf435x6[_0x666d[47]](200)})[_0x666d[28]](function(_0xf435xf){return _0xf435x14(_0xf435xf)})};exports[_0x666d[59]]=function(_0xf435x5,_0xf435x6,_0xf435x14){return ChatQueue[_0x666d[49]](_0xf435x5[_0x666d[48]][_0x666d[43]])[_0x666d[40]](function(_0xf435x18){if(_0xf435x18){return _0xf435x18[_0x666d[60]](_0xf435x5[_0x666d[51]][_0x666d[56]],{individualHooks:true})}else {throw new Error(_0x666d[61])}})[_0x666d[40]](function(){return _0xf435x6[_0x666d[47]](200)})[_0x666d[28]](function(_0xf435xf){return _0xf435x14(_0xf435xf)})};exports[_0x666d[62]]=function(_0xf435x5,_0xf435x6){ChatQueue[_0x666d[49]](_0xf435x5[_0x666d[48]][_0x666d[43]])[_0x666d[40]](function(_0xf435x16){if(!_0xf435x16){return _0xf435x6[_0x666d[47]](404)};_0xf435x16[_0x666d[62]]()[_0x666d[40]](function(){return _0xf435x6[_0x666d[47]](204)})[_0x666d[28]](function(_0xf435xf){return handleError(_0xf435x6,_0xf435xf)});})[_0x666d[28]](function(_0xf435xf){return handleError(_0xf435x6,_0xf435xf)})};exports[_0x666d[63]]=function(_0xf435x5,_0xf435x6){ChatQueue[_0x666d[62]]({where:{id:_0xf435x5[_0x666d[12]][_0x666d[43]]},individualHooks:true})[_0x666d[40]](function(){return _0xf435x6[_0x666d[47]](204)})[_0x666d[28]](function(_0xf435xf){return handleError(_0xf435x6,_0xf435xf)})};function handleError(_0xf435x6,_0xf435xf){return _0xf435x6[_0x666d[39]](500)[_0x666d[38]](_0xf435xf)}
\ No newline at end of file
+var _0x39b4=["\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"];_0x39b4[0];var _=require(_0x39b4[1]);var util=require(_0x39b4[2]);var ChatQueue=require(_0x39b4[4])[_0x39b4[3]];var UserHasChatQueue=require(_0x39b4[4])[_0x39b4[5]];exports[_0x39b4[6]]=function(_0x5ba6x5,_0x5ba6x6){var _0x5ba6x7=[_0x39b4[7],_0x39b4[8],_0x39b4[9],_0x39b4[10]];var _0x5ba6x8=_0x5ba6x5[_0x39b4[12]][_0x39b4[11]]?parseInt(_0x5ba6x5[_0x39b4[12]][_0x39b4[11]],10):100;var _0x5ba6x9=_0x5ba6x5[_0x39b4[12]][_0x39b4[13]]?parseInt(_0x5ba6x5[_0x39b4[12]][_0x39b4[13]],10):0;var _0x5ba6xa={where:{},limit:_0x5ba6x8,offset:_0x5ba6x9*_0x5ba6x8,include:[{all:true}]};_[_0x39b4[27]](_0x5ba6x5[_0x39b4[12]],function(_0x5ba6xb,_0x5ba6xc){switch(_0x5ba6xc){case _0x39b4[11]:;case _0x39b4[13]:break ;;case _0x39b4[16]:_0x5ba6xa[_0x39b4[14]]=util[_0x39b4[19]](_0x39b4[15],_0x5ba6x5[_0x39b4[12]][_0x39b4[16]],_0x5ba6x5[_0x39b4[12]][_0x39b4[17]]||_0x39b4[18])||null;break ;;case _0x39b4[17]:break ;;case _0x39b4[25]:_0x5ba6xa[_0x39b4[21]][_0x39b4[20]]=[];_0x5ba6x7[_0x39b4[24]](function(_0x5ba6xd){var _0x5ba6xe={};_0x5ba6xe[_0x5ba6xd]={$like:_0x39b4[22]+_0x5ba6xb+_0x39b4[22]};_0x5ba6xa[_0x39b4[21]][_0x39b4[20]][_0x39b4[23]](_0x5ba6xe);});break ;;default:_0x5ba6xa[_0x39b4[21]][_0x5ba6xc]={$like:{}};_0x5ba6xa[_0x39b4[21]][_0x5ba6xc][_0x39b4[26]]=_0x39b4[22]+_0x5ba6xb+_0x39b4[22];;}});ChatQueue[_0x39b4[41]](_0x5ba6xa)[_0x39b4[40]](function(_0x5ba6x10){var _0x5ba6x11=Math[_0x39b4[30]](_0x5ba6x10[_0x39b4[29]]/_0x5ba6x8);var _0x5ba6x12=_0x5ba6x11>(_0x5ba6xa[_0x39b4[31]]+1)?util[_0x39b4[19]](_0x39b4[32],_0x5ba6x5[_0x39b4[33]],_0x5ba6x5[_0x39b4[35]][_0x39b4[34]],_0x5ba6x5[_0x39b4[36]],_0x5ba6x9+1):null;var _0x5ba6x13=_0x5ba6x9>0?util[_0x39b4[19]](_0x39b4[32],_0x5ba6x5[_0x39b4[33]],_0x5ba6x5[_0x39b4[35]][_0x39b4[34]],_0x5ba6x5[_0x39b4[36]],_0x5ba6x9-1):null;_0x5ba6x6[_0x39b4[39]](200)[_0x39b4[38]]({count:_0x5ba6x10[_0x39b4[29]],rows:_0x5ba6x10[_0x39b4[37]],next_page:_0x5ba6x12,previous_page:_0x5ba6x13,total_pages:_0x5ba6x11});})[_0x39b4[28]](function(_0x5ba6xf){return handleError(_0x5ba6x6,_0x5ba6xf)});};exports[_0x39b4[42]]=function(_0x5ba6x5,_0x5ba6x6,_0x5ba6x14){UserHasChatQueue[_0x39b4[45]]({where:{UserId:_0x5ba6x5[_0x39b4[44]][_0x39b4[43]]}})[_0x39b4[40]](function(_0x5ba6x15){return _0x5ba6x6[_0x39b4[39]](200)[_0x39b4[38]](_0x5ba6x15)})[_0x39b4[28]](function(_0x5ba6xf){return handleError(_0x5ba6x6,_0x5ba6xf)})};exports[_0x39b4[46]]=function(_0x5ba6x5,_0x5ba6x6){ChatQueue[_0x39b4[49]](_0x5ba6x5[_0x39b4[48]][_0x39b4[43]])[_0x39b4[40]](function(_0x5ba6x16){if(!_0x5ba6x16){return _0x5ba6x6[_0x39b4[47]](404)};return _0x5ba6x6[_0x39b4[38]](_0x5ba6x16);})[_0x39b4[28]](function(_0x5ba6xf){return handleError(_0x5ba6x6,_0x5ba6xf)})};exports[_0x39b4[50]]=function(_0x5ba6x5,_0x5ba6x6){ChatQueue[_0x39b4[50]](_0x5ba6x5[_0x39b4[51]])[_0x39b4[40]](function(_0x5ba6x16){return _0x5ba6x6[_0x39b4[39]](201)[_0x39b4[38]](_0x5ba6x16)})[_0x39b4[28]](function(_0x5ba6xf){return handleError(_0x5ba6x6,_0x5ba6xf)})};exports[_0x39b4[52]]=function(_0x5ba6x5,_0x5ba6x6){if(_0x5ba6x5[_0x39b4[51]][_0x39b4[43]]){delete _0x5ba6x5[_0x39b4[51]][_0x39b4[43]]};ChatQueue[_0x39b4[49]](_0x5ba6x5[_0x39b4[48]][_0x39b4[43]])[_0x39b4[40]](function(_0x5ba6x16){if(!_0x5ba6x16){return _0x5ba6x6[_0x39b4[47]](404)};var _0x5ba6x17=_[_0x39b4[53]](_0x5ba6x16,_0x5ba6x5[_0x39b4[51]]);_0x5ba6x17[_0x39b4[54]]()[_0x39b4[40]](function(){return _0x5ba6x6[_0x39b4[39]](200)[_0x39b4[38]](_0x5ba6x16)})[_0x39b4[28]](function(_0x5ba6xf){return handleError(_0x5ba6x6,_0x5ba6xf)});})[_0x39b4[28]](function(_0x5ba6xf){return handleError(_0x5ba6x6,_0x5ba6xf)});};exports[_0x39b4[55]]=function(_0x5ba6x5,_0x5ba6x6,_0x5ba6x14){return ChatQueue[_0x39b4[49]](_0x5ba6x5[_0x39b4[48]][_0x39b4[43]])[_0x39b4[40]](function(_0x5ba6x18){if(_0x5ba6x18){return _0x5ba6x18[_0x39b4[57]](_0x5ba6x5[_0x39b4[51]][_0x39b4[56]],{individualHooks:true})}else {throw new Error(_0x39b4[58])}})[_0x39b4[40]](function(){return _0x5ba6x6[_0x39b4[47]](200)})[_0x39b4[28]](function(_0x5ba6xf){return _0x5ba6x14(_0x5ba6xf)})};exports[_0x39b4[59]]=function(_0x5ba6x5,_0x5ba6x6,_0x5ba6x14){return ChatQueue[_0x39b4[49]](_0x5ba6x5[_0x39b4[48]][_0x39b4[43]])[_0x39b4[40]](function(_0x5ba6x18){if(_0x5ba6x18){return _0x5ba6x18[_0x39b4[60]](_0x5ba6x5[_0x39b4[51]][_0x39b4[56]],{individualHooks:true})}else {throw new Error(_0x39b4[61])}})[_0x39b4[40]](function(){return _0x5ba6x6[_0x39b4[47]](200)})[_0x39b4[28]](function(_0x5ba6xf){return _0x5ba6x14(_0x5ba6xf)})};exports[_0x39b4[62]]=function(_0x5ba6x5,_0x5ba6x6){ChatQueue[_0x39b4[49]](_0x5ba6x5[_0x39b4[48]][_0x39b4[43]])[_0x39b4[40]](function(_0x5ba6x16){if(!_0x5ba6x16){return _0x5ba6x6[_0x39b4[47]](404)};_0x5ba6x16[_0x39b4[62]]()[_0x39b4[40]](function(){return _0x5ba6x6[_0x39b4[47]](204)})[_0x39b4[28]](function(_0x5ba6xf){return handleError(_0x5ba6x6,_0x5ba6xf)});})[_0x39b4[28]](function(_0x5ba6xf){return handleError(_0x5ba6x6,_0x5ba6xf)})};exports[_0x39b4[63]]=function(_0x5ba6x5,_0x5ba6x6){ChatQueue[_0x39b4[62]]({where:{id:_0x5ba6x5[_0x39b4[12]][_0x39b4[43]]},individualHooks:true})[_0x39b4[40]](function(){return _0x5ba6x6[_0x39b4[47]](204)})[_0x39b4[28]](function(_0x5ba6xf){return handleError(_0x5ba6x6,_0x5ba6xf)})};function handleError(_0x5ba6x6,_0x5ba6xf){return _0x5ba6x6[_0x39b4[39]](500)[_0x39b4[38]](_0x5ba6xf)}
\ No newline at end of file
-var _0x8f63=["\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"];_0x8f63[0];var chatQueue=require(_0x8f63[2])[_0x8f63[1]];exports[_0x8f63[3]]=function(_0xc065x2){chatQueue[_0x8f63[4]](function(_0xc065x3){onSave(_0xc065x2,_0xc065x3)});chatQueue[_0x8f63[5]](function(_0xc065x3){onRemove(_0xc065x2,_0xc065x3)});};function onSave(_0xc065x2,_0xc065x3,_0xc065x5){_0xc065x2[_0x8f63[7]](_0x8f63[6],_0xc065x3)}function onRemove(_0xc065x2,_0xc065x3,_0xc065x5){_0xc065x2[_0x8f63[7]](_0x8f63[8],_0xc065x3)}
\ No newline at end of file
+var _0xfb79=["\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"];_0xfb79[0];var chatQueue=require(_0xfb79[2])[_0xfb79[1]];exports[_0xfb79[3]]=function(_0x2fd0x2){chatQueue[_0xfb79[4]](function(_0x2fd0x3){onSave(_0x2fd0x2,_0x2fd0x3)});chatQueue[_0xfb79[5]](function(_0x2fd0x3){onRemove(_0x2fd0x2,_0x2fd0x3)});};function onSave(_0x2fd0x2,_0x2fd0x3,_0x2fd0x5){_0x2fd0x2[_0xfb79[7]](_0xfb79[6],_0x2fd0x3)}function onRemove(_0x2fd0x2,_0x2fd0x3,_0x2fd0x5){_0x2fd0x2[_0xfb79[7]](_0xfb79[8],_0x2fd0x3)}
\ No newline at end of file
-var _0x5a6a=["\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"];_0x5a6a[0];var should=require(_0x5a6a[1]);var app=require(_0x5a6a[2]);var request=require(_0x5a6a[3]);describe(_0x5a6a[4],function(){it(_0x5a6a[5],function(_0xaa59x4){request(app)[_0x5a6a[13]](_0x5a6a[12])[_0x5a6a[11]](200)[_0x5a6a[11]](_0x5a6a[10],/json/)[_0x5a6a[9]](function(_0xaa59x5,_0xaa59x6){if(_0xaa59x5){return _0xaa59x4(_0xaa59x5)};_0xaa59x6[_0x5a6a[8]][_0x5a6a[1]][_0x5a6a[7]][_0x5a6a[6]](Array);_0xaa59x4();})})});
\ No newline at end of file
+var _0x60da=["\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"];_0x60da[0];var should=require(_0x60da[1]);var app=require(_0x60da[2]);var request=require(_0x60da[3]);describe(_0x60da[4],function(){it(_0x60da[5],function(_0x123ex4){request(app)[_0x60da[13]](_0x60da[12])[_0x60da[11]](200)[_0x60da[11]](_0x60da[10],/json/)[_0x60da[9]](function(_0x123ex5,_0x123ex6){if(_0x123ex5){return _0x123ex4(_0x123ex5)};_0x123ex6[_0x60da[8]][_0x60da[1]][_0x60da[7]][_0x60da[6]](Array);_0x123ex4();})})});
\ No newline at end of file
-var _0x3038=["\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"];_0x3038[0];var express=require(_0x3038[1]);var controller=require(_0x3038[2]);var auth=require(_0x3038[3]);var router=express.Router();router[_0x3038[6]](_0x3038[4],controller[_0x3038[5]]);router[_0x3038[6]](_0x3038[7],auth[_0x3038[8]](),controller[_0x3038[9]]);router[_0x3038[6]](_0x3038[10],controller[_0x3038[11]]);router[_0x3038[13]](_0x3038[4],controller[_0x3038[12]]);router[_0x3038[13]](_0x3038[14],controller[_0x3038[15]]);router[_0x3038[17]](_0x3038[10],controller[_0x3038[16]]);router[_0x3038[17]](_0x3038[14],controller[_0x3038[18]]);router[_0x3038[19]](_0x3038[10],controller[_0x3038[16]]);router[_0x3038[21]](_0x3038[4],controller[_0x3038[20]]);router[_0x3038[21]](_0x3038[10],controller[_0x3038[22]]);module[_0x3038[23]]=router;
\ No newline at end of file
+var _0xca9f=["\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"];_0xca9f[0];var express=require(_0xca9f[1]);var controller=require(_0xca9f[2]);var auth=require(_0xca9f[3]);var router=express.Router();router[_0xca9f[6]](_0xca9f[4],controller[_0xca9f[5]]);router[_0xca9f[6]](_0xca9f[7],auth[_0xca9f[8]](),controller[_0xca9f[9]]);router[_0xca9f[6]](_0xca9f[10],controller[_0xca9f[11]]);router[_0xca9f[13]](_0xca9f[4],controller[_0xca9f[12]]);router[_0xca9f[13]](_0xca9f[14],controller[_0xca9f[15]]);router[_0xca9f[17]](_0xca9f[10],controller[_0xca9f[16]]);router[_0xca9f[17]](_0xca9f[14],controller[_0xca9f[18]]);router[_0xca9f[19]](_0xca9f[10],controller[_0xca9f[16]]);router[_0xca9f[21]](_0xca9f[4],controller[_0xca9f[20]]);router[_0xca9f[21]](_0xca9f[10],controller[_0xca9f[22]]);module[_0xca9f[23]]=router;
\ No newline at end of file
-var _0xf5cc=["\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"];_0xf5cc[0];var _=require(_0xf5cc[1]);var md5=require(_0xf5cc[2]);var moment=require(_0xf5cc[3]);var User=require(_0xf5cc[5])[_0xf5cc[4]];var ChatRoom=require(_0xf5cc[5])[_0xf5cc[6]];var ChatMessage=require(_0xf5cc[5])[_0xf5cc[7]];var ChatVisitor=require(_0xf5cc[5])[_0xf5cc[8]];var UserHasChatRoom=require(_0xf5cc[5])[_0xf5cc[9]];exports[_0xf5cc[10]]=function(_0x93dfx9,_0x93dfxa){return ChatRoom[_0xf5cc[21]]({include:[{model:User,attributes:[_0xf5cc[15],_0xf5cc[16],_0xf5cc[17],_0xf5cc[18],_0xf5cc[19],_0xf5cc[20]]},{model:ChatMessage},{model:ChatVisitor}]})[_0xf5cc[14]](function(_0x93dfxc){return _0x93dfxa[_0xf5cc[13]](200)[_0xf5cc[12]](_0x93dfxc)})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)})};exports[_0xf5cc[22]]=function(_0x93dfx9,_0x93dfxa){return User[_0xf5cc[26]](_0x93dfx9[_0xf5cc[25]][_0xf5cc[15]])[_0xf5cc[14]](function(_0x93dfxe){return _0x93dfxe[_0xf5cc[24]]({include:[{model:ChatVisitor,attributes:[_0xf5cc[15],_0xf5cc[17],_0xf5cc[18]]},{model:User,attributes:[_0xf5cc[15],_0xf5cc[16],_0xf5cc[17],_0xf5cc[18],_0xf5cc[19],_0xf5cc[20]]}]})})[_0xf5cc[14]](function(_0x93dfxd){if(!_0x93dfxd){return _0x93dfxa[_0xf5cc[23]](404)};return _0x93dfxa[_0xf5cc[12]](_0x93dfxd);})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)})};exports[_0xf5cc[27]]=function(_0x93dfx9,_0x93dfxa){return ChatRoom[_0xf5cc[26]](_0x93dfx9[_0xf5cc[28]][_0xf5cc[15]],{include:[{model:ChatMessage,include:[{model:ChatVisitor,attributes:[_0xf5cc[15],_0xf5cc[18],_0xf5cc[17]]},{model:User,attributes:[_0xf5cc[15],_0xf5cc[18],_0xf5cc[16],_0xf5cc[17]]}]},{model:User,attributes:[_0xf5cc[15],_0xf5cc[18],_0xf5cc[16],_0xf5cc[17]]}]})[_0xf5cc[14]](function(_0x93dfxf){if(!_0x93dfxf){return _0x93dfxa[_0xf5cc[23]](404)};return _0x93dfxa[_0xf5cc[12]](_0x93dfxf);})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)})};exports[_0xf5cc[29]]=function(_0x93dfx9,_0x93dfxa,_0x93dfx10){var _0x93dfx11;return ChatRoom[_0xf5cc[41]]({where:{token:md5(JSON[_0xf5cc[39]](_0x93dfx9[_0xf5cc[34]][_0xf5cc[33]][_0xf5cc[38]]())).toString(_0xf5cc[37])},defaults:{type:_0xf5cc[20],token:md5(JSON[_0xf5cc[39]](_0x93dfx9[_0xf5cc[34]][_0xf5cc[33]][_0xf5cc[38]]())).toString(_0xf5cc[37]),status:_0xf5cc[40]},include:[{model:ChatMessage,include:[{model:ChatVisitor,attributes:[_0xf5cc[15],_0xf5cc[18],_0xf5cc[17]]},{model:User,attributes:[_0xf5cc[15],_0xf5cc[16],_0xf5cc[17],_0xf5cc[18],_0xf5cc[19],_0xf5cc[20]]}]},{model:User,attributes:[_0xf5cc[15],_0xf5cc[16],_0xf5cc[17],_0xf5cc[18],_0xf5cc[19],_0xf5cc[20]]}]})[_0xf5cc[36]](function(_0x93dfxf,_0x93dfx13){_0x93dfx11=_0x93dfxf;if(_0x93dfx13){return _0x93dfx11[_0xf5cc[35]](_0x93dfx9[_0xf5cc[34]][_0xf5cc[33]])}else {return };})[_0xf5cc[14]](function(){return _0x93dfx11[_0xf5cc[32]]()})[_0xf5cc[14]](function(_0x93dfx12){return _0x93dfxa[_0xf5cc[13]](200)[_0xf5cc[12]](_[_0xf5cc[31]](_0x93dfx11[_0xf5cc[30]],{Users:_0x93dfx12}))})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)});};exports[_0xf5cc[42]]=function(_0x93dfx9,_0x93dfxa){User[_0xf5cc[26]](_0x93dfx9[_0xf5cc[25]][_0xf5cc[15]])[_0xf5cc[14]](function(_0x93dfxe){_0x93dfxe[_0xf5cc[24]]({where:{type:_0x93dfx9[_0xf5cc[28]][_0xf5cc[43]]},include:[{model:ChatVisitor,attributes:[_0xf5cc[15],_0xf5cc[17],_0xf5cc[18]]}]})[_0xf5cc[14]](function(_0x93dfxd){if(!_0x93dfxd){return _0x93dfxa[_0xf5cc[23]](404)};return _0x93dfxa[_0xf5cc[12]](_0x93dfxd);})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)})})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)})};exports[_0xf5cc[44]]=function(_0x93dfx9,_0x93dfxa){User[_0xf5cc[26]](_0x93dfx9[_0xf5cc[25]][_0xf5cc[15]])[_0xf5cc[14]](function(_0x93dfxe){_0x93dfxe[_0xf5cc[24]]({include:[{model:ChatVisitor,attributes:[_0xf5cc[15],_0xf5cc[17],_0xf5cc[18]]},{model:User,attributes:[_0xf5cc[15],_0xf5cc[16],_0xf5cc[17],_0xf5cc[18],_0xf5cc[19],_0xf5cc[20]]}]})[_0xf5cc[14]](function(_0x93dfxd){if(!_0x93dfxd){return _0x93dfxa[_0xf5cc[23]](404)};return _0x93dfxa[_0xf5cc[12]](_0x93dfxd);})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)})})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)})};exports[_0xf5cc[45]]=function(_0x93dfx9,_0x93dfxa){};exports[_0xf5cc[46]]=function(_0x93dfx9,_0x93dfxa){if(_0x93dfx9[_0xf5cc[47]][_0xf5cc[15]]){delete _0x93dfx9[_0xf5cc[47]][_0xf5cc[15]]};ChatRoom[_0xf5cc[26]](_0x93dfx9[_0xf5cc[28]][_0xf5cc[15]])[_0xf5cc[14]](function(_0x93dfxf){if(!_0x93dfxf){return _0x93dfxa[_0xf5cc[23]](404)};var _0x93dfx14=_[_0xf5cc[31]](_0x93dfxf,_0x93dfx9[_0xf5cc[47]]);_0x93dfx14[_0xf5cc[48]]()[_0xf5cc[14]](function(){return _0x93dfxa[_0xf5cc[13]](200)[_0xf5cc[12]](_0x93dfxf)})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)});})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)});};exports[_0xf5cc[49]]=function(_0x93dfx9,_0x93dfxa){var _0x93dfx11;if(_0x93dfx9[_0xf5cc[47]][_0xf5cc[15]]){delete _0x93dfx9[_0xf5cc[47]][_0xf5cc[15]]};return ChatRoom[_0xf5cc[26]](_0x93dfx9[_0xf5cc[28]][_0xf5cc[15]])[_0xf5cc[14]](function(_0x93dfxf){if(!_0x93dfxf||!_0x93dfx9[_0xf5cc[47]][_0xf5cc[33]]){return _0x93dfxa[_0xf5cc[23]](404)};return _0x93dfxf;})[_0xf5cc[14]](function(_0x93dfxf){return _0x93dfxf[_0xf5cc[46]]({token:md5(JSON[_0xf5cc[39]](_0x93dfx9[_0xf5cc[47]][_0xf5cc[33]][_0xf5cc[38]]())).toString(_0xf5cc[37])})})[_0xf5cc[14]](function(_0x93dfxf){_0x93dfx11=_0x93dfxf;return _0x93dfxf[_0xf5cc[35]](_0x93dfx9[_0xf5cc[47]][_0xf5cc[33]][_0xf5cc[38]](),{individualHooks:true});})[_0xf5cc[14]](function(){return _0x93dfx11[_0xf5cc[32]]()})[_0xf5cc[14]](function(_0x93dfx12){return _0x93dfxa[_0xf5cc[13]](200)[_0xf5cc[12]](_[_0xf5cc[31]](_0x93dfx11[_0xf5cc[30]],{Users:_0x93dfx12,ChatMessages:[]}))})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)});};exports[_0xf5cc[50]]=function(_0x93dfx9,_0x93dfxa){ChatRoom[_0xf5cc[26]](_0x93dfx9[_0xf5cc[28]][_0xf5cc[15]])[_0xf5cc[14]](function(_0x93dfxf){if(!_0x93dfxf){return _0x93dfxa[_0xf5cc[23]](404)};_0x93dfxf[_0xf5cc[50]]()[_0xf5cc[14]](function(){return _0x93dfxa[_0xf5cc[23]](204)})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)});})[_0xf5cc[11]](function(_0x93dfxb){return handleError(_0x93dfxa,_0x93dfxb)})};function handleError(_0x93dfxa,_0x93dfxb){return _0x93dfxa[_0xf5cc[13]](500)[_0xf5cc[12]](_0x93dfxb)}
\ No newline at end of file
+var _0xa4c4=["\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"];_0xa4c4[0];var _=require(_0xa4c4[1]);var md5=require(_0xa4c4[2]);var moment=require(_0xa4c4[3]);var User=require(_0xa4c4[5])[_0xa4c4[4]];var ChatRoom=require(_0xa4c4[5])[_0xa4c4[6]];var ChatMessage=require(_0xa4c4[5])[_0xa4c4[7]];var ChatVisitor=require(_0xa4c4[5])[_0xa4c4[8]];var UserHasChatRoom=require(_0xa4c4[5])[_0xa4c4[9]];exports[_0xa4c4[10]]=function(_0x85bex9,_0x85bexa){return ChatRoom[_0xa4c4[21]]({include:[{model:User,attributes:[_0xa4c4[15],_0xa4c4[16],_0xa4c4[17],_0xa4c4[18],_0xa4c4[19],_0xa4c4[20]]},{model:ChatMessage},{model:ChatVisitor}]})[_0xa4c4[14]](function(_0x85bexc){return _0x85bexa[_0xa4c4[13]](200)[_0xa4c4[12]](_0x85bexc)})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)})};exports[_0xa4c4[22]]=function(_0x85bex9,_0x85bexa){return User[_0xa4c4[26]](_0x85bex9[_0xa4c4[25]][_0xa4c4[15]])[_0xa4c4[14]](function(_0x85bexe){return _0x85bexe[_0xa4c4[24]]({include:[{model:ChatVisitor,attributes:[_0xa4c4[15],_0xa4c4[17],_0xa4c4[18]]},{model:User,attributes:[_0xa4c4[15],_0xa4c4[16],_0xa4c4[17],_0xa4c4[18],_0xa4c4[19],_0xa4c4[20]]}]})})[_0xa4c4[14]](function(_0x85bexd){if(!_0x85bexd){return _0x85bexa[_0xa4c4[23]](404)};return _0x85bexa[_0xa4c4[12]](_0x85bexd);})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)})};exports[_0xa4c4[27]]=function(_0x85bex9,_0x85bexa){return ChatRoom[_0xa4c4[26]](_0x85bex9[_0xa4c4[28]][_0xa4c4[15]],{include:[{model:ChatMessage,include:[{model:ChatVisitor,attributes:[_0xa4c4[15],_0xa4c4[18],_0xa4c4[17]]},{model:User,attributes:[_0xa4c4[15],_0xa4c4[18],_0xa4c4[16],_0xa4c4[17]]}]},{model:User,attributes:[_0xa4c4[15],_0xa4c4[18],_0xa4c4[16],_0xa4c4[17]]}]})[_0xa4c4[14]](function(_0x85bexf){if(!_0x85bexf){return _0x85bexa[_0xa4c4[23]](404)};return _0x85bexa[_0xa4c4[12]](_0x85bexf);})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)})};exports[_0xa4c4[29]]=function(_0x85bex9,_0x85bexa,_0x85bex10){var _0x85bex11;return ChatRoom[_0xa4c4[41]]({where:{token:md5(JSON[_0xa4c4[39]](_0x85bex9[_0xa4c4[34]][_0xa4c4[33]][_0xa4c4[38]]())).toString(_0xa4c4[37])},defaults:{type:_0xa4c4[20],token:md5(JSON[_0xa4c4[39]](_0x85bex9[_0xa4c4[34]][_0xa4c4[33]][_0xa4c4[38]]())).toString(_0xa4c4[37]),status:_0xa4c4[40]},include:[{model:ChatMessage,include:[{model:ChatVisitor,attributes:[_0xa4c4[15],_0xa4c4[18],_0xa4c4[17]]},{model:User,attributes:[_0xa4c4[15],_0xa4c4[16],_0xa4c4[17],_0xa4c4[18],_0xa4c4[19],_0xa4c4[20]]}]},{model:User,attributes:[_0xa4c4[15],_0xa4c4[16],_0xa4c4[17],_0xa4c4[18],_0xa4c4[19],_0xa4c4[20]]}]})[_0xa4c4[36]](function(_0x85bexf,_0x85bex13){_0x85bex11=_0x85bexf;if(_0x85bex13){return _0x85bex11[_0xa4c4[35]](_0x85bex9[_0xa4c4[34]][_0xa4c4[33]])}else {return };})[_0xa4c4[14]](function(){return _0x85bex11[_0xa4c4[32]]()})[_0xa4c4[14]](function(_0x85bex12){return _0x85bexa[_0xa4c4[13]](200)[_0xa4c4[12]](_[_0xa4c4[31]](_0x85bex11[_0xa4c4[30]],{Users:_0x85bex12}))})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)});};exports[_0xa4c4[42]]=function(_0x85bex9,_0x85bexa){User[_0xa4c4[26]](_0x85bex9[_0xa4c4[25]][_0xa4c4[15]])[_0xa4c4[14]](function(_0x85bexe){_0x85bexe[_0xa4c4[24]]({where:{type:_0x85bex9[_0xa4c4[28]][_0xa4c4[43]]},include:[{model:ChatVisitor,attributes:[_0xa4c4[15],_0xa4c4[17],_0xa4c4[18]]}]})[_0xa4c4[14]](function(_0x85bexd){if(!_0x85bexd){return _0x85bexa[_0xa4c4[23]](404)};return _0x85bexa[_0xa4c4[12]](_0x85bexd);})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)})})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)})};exports[_0xa4c4[44]]=function(_0x85bex9,_0x85bexa){User[_0xa4c4[26]](_0x85bex9[_0xa4c4[25]][_0xa4c4[15]])[_0xa4c4[14]](function(_0x85bexe){_0x85bexe[_0xa4c4[24]]({include:[{model:ChatVisitor,attributes:[_0xa4c4[15],_0xa4c4[17],_0xa4c4[18]]},{model:User,attributes:[_0xa4c4[15],_0xa4c4[16],_0xa4c4[17],_0xa4c4[18],_0xa4c4[19],_0xa4c4[20]]}]})[_0xa4c4[14]](function(_0x85bexd){if(!_0x85bexd){return _0x85bexa[_0xa4c4[23]](404)};return _0x85bexa[_0xa4c4[12]](_0x85bexd);})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)})})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)})};exports[_0xa4c4[45]]=function(_0x85bex9,_0x85bexa){};exports[_0xa4c4[46]]=function(_0x85bex9,_0x85bexa){if(_0x85bex9[_0xa4c4[47]][_0xa4c4[15]]){delete _0x85bex9[_0xa4c4[47]][_0xa4c4[15]]};ChatRoom[_0xa4c4[26]](_0x85bex9[_0xa4c4[28]][_0xa4c4[15]])[_0xa4c4[14]](function(_0x85bexf){if(!_0x85bexf){return _0x85bexa[_0xa4c4[23]](404)};var _0x85bex14=_[_0xa4c4[31]](_0x85bexf,_0x85bex9[_0xa4c4[47]]);_0x85bex14[_0xa4c4[48]]()[_0xa4c4[14]](function(){return _0x85bexa[_0xa4c4[13]](200)[_0xa4c4[12]](_0x85bexf)})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)});})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)});};exports[_0xa4c4[49]]=function(_0x85bex9,_0x85bexa){var _0x85bex11;if(_0x85bex9[_0xa4c4[47]][_0xa4c4[15]]){delete _0x85bex9[_0xa4c4[47]][_0xa4c4[15]]};return ChatRoom[_0xa4c4[26]](_0x85bex9[_0xa4c4[28]][_0xa4c4[15]])[_0xa4c4[14]](function(_0x85bexf){if(!_0x85bexf||!_0x85bex9[_0xa4c4[47]][_0xa4c4[33]]){return _0x85bexa[_0xa4c4[23]](404)};return _0x85bexf;})[_0xa4c4[14]](function(_0x85bexf){return _0x85bexf[_0xa4c4[46]]({token:md5(JSON[_0xa4c4[39]](_0x85bex9[_0xa4c4[47]][_0xa4c4[33]][_0xa4c4[38]]())).toString(_0xa4c4[37])})})[_0xa4c4[14]](function(_0x85bexf){_0x85bex11=_0x85bexf;return _0x85bexf[_0xa4c4[35]](_0x85bex9[_0xa4c4[47]][_0xa4c4[33]][_0xa4c4[38]](),{individualHooks:true});})[_0xa4c4[14]](function(){return _0x85bex11[_0xa4c4[32]]()})[_0xa4c4[14]](function(_0x85bex12){return _0x85bexa[_0xa4c4[13]](200)[_0xa4c4[12]](_[_0xa4c4[31]](_0x85bex11[_0xa4c4[30]],{Users:_0x85bex12,ChatMessages:[]}))})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)});};exports[_0xa4c4[50]]=function(_0x85bex9,_0x85bexa){ChatRoom[_0xa4c4[26]](_0x85bex9[_0xa4c4[28]][_0xa4c4[15]])[_0xa4c4[14]](function(_0x85bexf){if(!_0x85bexf){return _0x85bexa[_0xa4c4[23]](404)};_0x85bexf[_0xa4c4[50]]()[_0xa4c4[14]](function(){return _0x85bexa[_0xa4c4[23]](204)})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)});})[_0xa4c4[11]](function(_0x85bexb){return handleError(_0x85bexa,_0x85bexb)})};function handleError(_0x85bexa,_0x85bexb){return _0x85bexa[_0xa4c4[13]](500)[_0xa4c4[12]](_0x85bexb)}
\ No newline at end of file
-var _0xaf9b=["\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"];_0xaf9b[0];var User=require(_0xaf9b[2])[_0xaf9b[1]];var ChatRoom=require(_0xaf9b[2])[_0xaf9b[3]];var ChatMessage=require(_0xaf9b[2])[_0xaf9b[4]];var ChatVisitor=require(_0xaf9b[2])[_0xaf9b[5]];exports[_0xaf9b[6]]=function(_0x433dx5){ChatRoom[_0xaf9b[7]](function(_0x433dx6){onSave(_0x433dx5,_0x433dx6)});ChatRoom[_0xaf9b[8]](function(_0x433dx6){onSave(_0x433dx5,_0x433dx6)});ChatRoom[_0xaf9b[9]](function(_0x433dx6){onRemove(_0x433dx5,_0x433dx6)});};function onSave(_0x433dx5,_0x433dx6,_0x433dx8){_0x433dx5[_0xaf9b[11]](_0xaf9b[10],_0x433dx6)}function onRemove(_0x433dx5,_0x433dx6,_0x433dx8){_0x433dx5[_0xaf9b[11]](_0xaf9b[12],_0x433dx6)}
\ No newline at end of file
+var _0x59ab=["\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"];_0x59ab[0];var User=require(_0x59ab[2])[_0x59ab[1]];var ChatRoom=require(_0x59ab[2])[_0x59ab[3]];var ChatMessage=require(_0x59ab[2])[_0x59ab[4]];var ChatVisitor=require(_0x59ab[2])[_0x59ab[5]];exports[_0x59ab[6]]=function(_0x687bx5){ChatRoom[_0x59ab[7]](function(_0x687bx6){onSave(_0x687bx5,_0x687bx6)});ChatRoom[_0x59ab[8]](function(_0x687bx6){onSave(_0x687bx5,_0x687bx6)});ChatRoom[_0x59ab[9]](function(_0x687bx6){onRemove(_0x687bx5,_0x687bx6)});};function onSave(_0x687bx5,_0x687bx6,_0x687bx8){_0x687bx5[_0x59ab[11]](_0x59ab[10],_0x687bx6)}function onRemove(_0x687bx5,_0x687bx6,_0x687bx8){_0x687bx5[_0x59ab[11]](_0x59ab[12],_0x687bx6)}
\ No newline at end of file
-var _0x7477=["\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"];_0x7477[0];var should=require(_0x7477[1]);var app=require(_0x7477[2]);var request=require(_0x7477[3]);describe(_0x7477[4],function(){it(_0x7477[5],function(_0xb430x4){request(app)[_0x7477[13]](_0x7477[12])[_0x7477[11]](200)[_0x7477[11]](_0x7477[10],/json/)[_0x7477[9]](function(_0xb430x5,_0xb430x6){if(_0xb430x5){return _0xb430x4(_0xb430x5)};_0xb430x6[_0x7477[8]][_0x7477[1]][_0x7477[7]][_0x7477[6]](Array);_0xb430x4();})})});
\ No newline at end of file
+var _0x3695=["\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"];_0x3695[0];var should=require(_0x3695[1]);var app=require(_0x3695[2]);var request=require(_0x3695[3]);describe(_0x3695[4],function(){it(_0x3695[5],function(_0x186ax4){request(app)[_0x3695[13]](_0x3695[12])[_0x3695[11]](200)[_0x3695[11]](_0x3695[10],/json/)[_0x3695[9]](function(_0x186ax5,_0x186ax6){if(_0x186ax5){return _0x186ax4(_0x186ax5)};_0x186ax6[_0x3695[8]][_0x3695[1]][_0x3695[7]][_0x3695[6]](Array);_0x186ax4();})})});
\ No newline at end of file
-var _0xd8b3=["\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"];_0xd8b3[0];var express=require(_0xd8b3[1]);var controller=require(_0xd8b3[2]);var auth=require(_0xd8b3[3]);var license=require(_0xd8b3[4]);var router=express.Router();router[_0xd8b3[9]](_0xd8b3[5],license[_0xd8b3[6]](),license[_0xd8b3[7]](),controller[_0xd8b3[8]]);router[_0xd8b3[9]](_0xd8b3[10],license[_0xd8b3[6]](),license[_0xd8b3[7]](),auth[_0xd8b3[11]](),controller[_0xd8b3[12]]);router[_0xd8b3[9]](_0xd8b3[13],license[_0xd8b3[6]](),license[_0xd8b3[7]](),auth[_0xd8b3[11]](),controller[_0xd8b3[14]]);router[_0xd8b3[9]](_0xd8b3[15],license[_0xd8b3[6]](),license[_0xd8b3[7]](),auth[_0xd8b3[11]](),controller[_0xd8b3[16]]);router[_0xd8b3[9]](_0xd8b3[17],license[_0xd8b3[6]](),license[_0xd8b3[7]](),auth[_0xd8b3[11]](),controller[_0xd8b3[18]]);router[_0xd8b3[9]](_0xd8b3[19],license[_0xd8b3[6]](),license[_0xd8b3[7]](),controller[_0xd8b3[20]]);router[_0xd8b3[22]](_0xd8b3[5],license[_0xd8b3[6]](),license[_0xd8b3[7]](),auth[_0xd8b3[11]](),controller[_0xd8b3[21]]);router[_0xd8b3[24]](_0xd8b3[19],license[_0xd8b3[6]](),license[_0xd8b3[7]](),controller[_0xd8b3[23]]);router[_0xd8b3[24]](_0xd8b3[25],license[_0xd8b3[6]](),license[_0xd8b3[7]](),controller[_0xd8b3[26]]);router[_0xd8b3[27]](_0xd8b3[19],license[_0xd8b3[6]](),license[_0xd8b3[7]](),controller[_0xd8b3[23]]);router[_0xd8b3[29]](_0xd8b3[19],license[_0xd8b3[6]](),license[_0xd8b3[7]](),controller[_0xd8b3[28]]);module[_0xd8b3[30]]=router;
\ No newline at end of file
+var _0xa246=["\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"];_0xa246[0];var express=require(_0xa246[1]);var controller=require(_0xa246[2]);var auth=require(_0xa246[3]);var license=require(_0xa246[4]);var router=express.Router();router[_0xa246[9]](_0xa246[5],license[_0xa246[6]](),license[_0xa246[7]](),controller[_0xa246[8]]);router[_0xa246[9]](_0xa246[10],license[_0xa246[6]](),license[_0xa246[7]](),auth[_0xa246[11]](),controller[_0xa246[12]]);router[_0xa246[9]](_0xa246[13],license[_0xa246[6]](),license[_0xa246[7]](),auth[_0xa246[11]](),controller[_0xa246[14]]);router[_0xa246[9]](_0xa246[15],license[_0xa246[6]](),license[_0xa246[7]](),auth[_0xa246[11]](),controller[_0xa246[16]]);router[_0xa246[9]](_0xa246[17],license[_0xa246[6]](),license[_0xa246[7]](),auth[_0xa246[11]](),controller[_0xa246[18]]);router[_0xa246[9]](_0xa246[19],license[_0xa246[6]](),license[_0xa246[7]](),controller[_0xa246[20]]);router[_0xa246[22]](_0xa246[5],license[_0xa246[6]](),license[_0xa246[7]](),auth[_0xa246[11]](),controller[_0xa246[21]]);router[_0xa246[24]](_0xa246[19],license[_0xa246[6]](),license[_0xa246[7]](),controller[_0xa246[23]]);router[_0xa246[24]](_0xa246[25],license[_0xa246[6]](),license[_0xa246[7]](),controller[_0xa246[26]]);router[_0xa246[27]](_0xa246[19],license[_0xa246[6]](),license[_0xa246[7]](),controller[_0xa246[23]]);router[_0xa246[29]](_0xa246[19],license[_0xa246[6]](),license[_0xa246[7]](),controller[_0xa246[28]]);module[_0xa246[30]]=router;
\ No newline at end of file
-var _0xe60a=["\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"];_0xe60a[0];var _=require(_0xe60a[1]);var ChatVisitor=require(_0xe60a[3])[_0xe60a[2]];exports[_0xe60a[4]]=function(_0xe95ax3,_0xe95ax4){ChatVisitor[_0xe60a[9]]()[_0xe60a[8]](function(_0xe95ax6){return _0xe95ax4[_0xe60a[7]](200)[_0xe60a[6]](_0xe95ax6)})[_0xe60a[5]](function(_0xe95ax5){return handleError(_0xe95ax4,_0xe95ax5)})};exports[_0xe60a[10]]=function(_0xe95ax3,_0xe95ax4){ChatVisitor[_0xe60a[14]](_0xe95ax3[_0xe60a[13]][_0xe60a[12]])[_0xe60a[8]](function(_0xe95ax7){if(!_0xe95ax7){return _0xe95ax4[_0xe60a[11]](404)};return _0xe95ax4[_0xe60a[6]](_0xe95ax7);})[_0xe60a[5]](function(_0xe95ax5){return handleError(_0xe95ax4,_0xe95ax5)})};exports[_0xe60a[15]]=function(_0xe95ax3,_0xe95ax4){ChatVisitor[_0xe60a[15]](_0xe95ax3[_0xe60a[16]])[_0xe60a[8]](function(_0xe95ax7){return _0xe95ax4[_0xe60a[7]](201)[_0xe60a[6]](_0xe95ax7)})[_0xe60a[5]](function(_0xe95ax5){return handleError(_0xe95ax4,_0xe95ax5)})};exports[_0xe60a[17]]=function(_0xe95ax3,_0xe95ax4){if(_0xe95ax3[_0xe60a[16]][_0xe60a[12]]){delete _0xe95ax3[_0xe60a[16]][_0xe60a[12]]};ChatVisitor[_0xe60a[14]](_0xe95ax3[_0xe60a[13]][_0xe60a[12]])[_0xe60a[8]](function(_0xe95ax7){if(!_0xe95ax7){return _0xe95ax4[_0xe60a[11]](404)};var _0xe95ax8=_[_0xe60a[18]](_0xe95ax7,_0xe95ax3[_0xe60a[16]]);_0xe95ax8[_0xe60a[19]]()[_0xe60a[8]](function(){return _0xe95ax4[_0xe60a[7]](200)[_0xe60a[6]](_0xe95ax7)})[_0xe60a[5]](function(_0xe95ax5){return handleError(_0xe95ax4,_0xe95ax5)});})[_0xe60a[5]](function(_0xe95ax5){return handleError(_0xe95ax4,_0xe95ax5)});};exports[_0xe60a[20]]=function(_0xe95ax3,_0xe95ax4){ChatVisitor[_0xe60a[14]](_0xe95ax3[_0xe60a[13]][_0xe60a[12]])[_0xe60a[8]](function(_0xe95ax7){if(!_0xe95ax7){return _0xe95ax4[_0xe60a[11]](404)};_0xe95ax7[_0xe60a[20]]()[_0xe60a[8]](function(){return _0xe95ax4[_0xe60a[11]](204)})[_0xe60a[5]](function(_0xe95ax5){return handleError(_0xe95ax4,_0xe95ax5)});})[_0xe60a[5]](function(_0xe95ax5){return handleError(_0xe95ax4,_0xe95ax5)})};function handleError(_0xe95ax4,_0xe95ax5){return _0xe95ax4[_0xe60a[7]](500)[_0xe60a[6]](_0xe95ax5)}
\ No newline at end of file
+var _0x8ac6=["\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"];_0x8ac6[0];var _=require(_0x8ac6[1]);var ChatVisitor=require(_0x8ac6[3])[_0x8ac6[2]];exports[_0x8ac6[4]]=function(_0xeb2ex3,_0xeb2ex4){ChatVisitor[_0x8ac6[9]]()[_0x8ac6[8]](function(_0xeb2ex6){return _0xeb2ex4[_0x8ac6[7]](200)[_0x8ac6[6]](_0xeb2ex6)})[_0x8ac6[5]](function(_0xeb2ex5){return handleError(_0xeb2ex4,_0xeb2ex5)})};exports[_0x8ac6[10]]=function(_0xeb2ex3,_0xeb2ex4){ChatVisitor[_0x8ac6[14]](_0xeb2ex3[_0x8ac6[13]][_0x8ac6[12]])[_0x8ac6[8]](function(_0xeb2ex7){if(!_0xeb2ex7){return _0xeb2ex4[_0x8ac6[11]](404)};return _0xeb2ex4[_0x8ac6[6]](_0xeb2ex7);})[_0x8ac6[5]](function(_0xeb2ex5){return handleError(_0xeb2ex4,_0xeb2ex5)})};exports[_0x8ac6[15]]=function(_0xeb2ex3,_0xeb2ex4){ChatVisitor[_0x8ac6[15]](_0xeb2ex3[_0x8ac6[16]])[_0x8ac6[8]](function(_0xeb2ex7){return _0xeb2ex4[_0x8ac6[7]](201)[_0x8ac6[6]](_0xeb2ex7)})[_0x8ac6[5]](function(_0xeb2ex5){return handleError(_0xeb2ex4,_0xeb2ex5)})};exports[_0x8ac6[17]]=function(_0xeb2ex3,_0xeb2ex4){if(_0xeb2ex3[_0x8ac6[16]][_0x8ac6[12]]){delete _0xeb2ex3[_0x8ac6[16]][_0x8ac6[12]]};ChatVisitor[_0x8ac6[14]](_0xeb2ex3[_0x8ac6[13]][_0x8ac6[12]])[_0x8ac6[8]](function(_0xeb2ex7){if(!_0xeb2ex7){return _0xeb2ex4[_0x8ac6[11]](404)};var _0xeb2ex8=_[_0x8ac6[18]](_0xeb2ex7,_0xeb2ex3[_0x8ac6[16]]);_0xeb2ex8[_0x8ac6[19]]()[_0x8ac6[8]](function(){return _0xeb2ex4[_0x8ac6[7]](200)[_0x8ac6[6]](_0xeb2ex7)})[_0x8ac6[5]](function(_0xeb2ex5){return handleError(_0xeb2ex4,_0xeb2ex5)});})[_0x8ac6[5]](function(_0xeb2ex5){return handleError(_0xeb2ex4,_0xeb2ex5)});};exports[_0x8ac6[20]]=function(_0xeb2ex3,_0xeb2ex4){ChatVisitor[_0x8ac6[14]](_0xeb2ex3[_0x8ac6[13]][_0x8ac6[12]])[_0x8ac6[8]](function(_0xeb2ex7){if(!_0xeb2ex7){return _0xeb2ex4[_0x8ac6[11]](404)};_0xeb2ex7[_0x8ac6[20]]()[_0x8ac6[8]](function(){return _0xeb2ex4[_0x8ac6[11]](204)})[_0x8ac6[5]](function(_0xeb2ex5){return handleError(_0xeb2ex4,_0xeb2ex5)});})[_0x8ac6[5]](function(_0xeb2ex5){return handleError(_0xeb2ex4,_0xeb2ex5)})};function handleError(_0xeb2ex4,_0xeb2ex5){return _0xeb2ex4[_0x8ac6[7]](500)[_0x8ac6[6]](_0xeb2ex5)}
\ No newline at end of file
-var _0x8093=["\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"];_0x8093[0];var chat_visitor=require(_0x8093[2])[_0x8093[1]];exports[_0x8093[3]]=function(_0x5be9x2){chat_visitor[_0x8093[4]](function(_0x5be9x3){onSave(_0x5be9x2,_0x5be9x3)});chat_visitor[_0x8093[5]](function(_0x5be9x3){onSave(_0x5be9x2,_0x5be9x3)});chat_visitor[_0x8093[6]](function(_0x5be9x3){onRemove(_0x5be9x2,_0x5be9x3)});};function onSave(_0x5be9x2,_0x5be9x3,_0x5be9x5){_0x5be9x2[_0x8093[8]](_0x8093[7],_0x5be9x3)}function onRemove(_0x5be9x2,_0x5be9x3,_0x5be9x5){_0x5be9x2[_0x8093[8]](_0x8093[9],_0x5be9x3)}
\ No newline at end of file
+var _0x482b=["\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"];_0x482b[0];var chat_visitor=require(_0x482b[2])[_0x482b[1]];exports[_0x482b[3]]=function(_0x5ea2x2){chat_visitor[_0x482b[4]](function(_0x5ea2x3){onSave(_0x5ea2x2,_0x5ea2x3)});chat_visitor[_0x482b[5]](function(_0x5ea2x3){onSave(_0x5ea2x2,_0x5ea2x3)});chat_visitor[_0x482b[6]](function(_0x5ea2x3){onRemove(_0x5ea2x2,_0x5ea2x3)});};function onSave(_0x5ea2x2,_0x5ea2x3,_0x5ea2x5){_0x5ea2x2[_0x482b[8]](_0x482b[7],_0x5ea2x3)}function onRemove(_0x5ea2x2,_0x5ea2x3,_0x5ea2x5){_0x5ea2x2[_0x482b[8]](_0x482b[9],_0x5ea2x3)}
\ No newline at end of file
-var _0x1b33=["\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"];_0x1b33[0];var should=require(_0x1b33[1]);var app=require(_0x1b33[2]);var request=require(_0x1b33[3]);describe(_0x1b33[4],function(){it(_0x1b33[5],function(_0xf9ddx4){request(app)[_0x1b33[13]](_0x1b33[12])[_0x1b33[11]](200)[_0x1b33[11]](_0x1b33[10],/json/)[_0x1b33[9]](function(_0xf9ddx5,_0xf9ddx6){if(_0xf9ddx5){return _0xf9ddx4(_0xf9ddx5)};_0xf9ddx6[_0x1b33[8]][_0x1b33[1]][_0x1b33[7]][_0x1b33[6]](Array);_0xf9ddx4();})})});
\ No newline at end of file
+var _0x582b=["\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"];_0x582b[0];var should=require(_0x582b[1]);var app=require(_0x582b[2]);var request=require(_0x582b[3]);describe(_0x582b[4],function(){it(_0x582b[5],function(_0x954ex4){request(app)[_0x582b[13]](_0x582b[12])[_0x582b[11]](200)[_0x582b[11]](_0x582b[10],/json/)[_0x582b[9]](function(_0x954ex5,_0x954ex6){if(_0x954ex5){return _0x954ex4(_0x954ex5)};_0x954ex6[_0x582b[8]][_0x582b[1]][_0x582b[7]][_0x582b[6]](Array);_0x954ex4();})})});
\ No newline at end of file
-var _0x2481=["\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"];_0x2481[0];var express=require(_0x2481[1]);var controller=require(_0x2481[2]);var router=express.Router();router[_0x2481[5]](_0x2481[3],controller[_0x2481[4]]);router[_0x2481[5]](_0x2481[6],controller[_0x2481[7]]);router[_0x2481[9]](_0x2481[3],controller[_0x2481[8]]);router[_0x2481[11]](_0x2481[6],controller[_0x2481[10]]);router[_0x2481[12]](_0x2481[6],controller[_0x2481[10]]);router[_0x2481[14]](_0x2481[6],controller[_0x2481[13]]);module[_0x2481[15]]=router;
\ No newline at end of file
+var _0x876f=["\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"];_0x876f[0];var express=require(_0x876f[1]);var controller=require(_0x876f[2]);var router=express.Router();router[_0x876f[5]](_0x876f[3],controller[_0x876f[4]]);router[_0x876f[5]](_0x876f[6],controller[_0x876f[7]]);router[_0x876f[9]](_0x876f[3],controller[_0x876f[8]]);router[_0x876f[11]](_0x876f[6],controller[_0x876f[10]]);router[_0x876f[12]](_0x876f[6],controller[_0x876f[10]]);router[_0x876f[14]](_0x876f[6],controller[_0x876f[13]]);module[_0x876f[15]]=router;
\ No newline at end of file
-var _0xbce3=["\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"];_0xbce3[0];var _=require(_0xbce3[1]);var util=require(_0xbce3[2]);var async=require(_0xbce3[3]);var Mustache=require(_0xbce3[4]);var sequelize=require(_0xbce3[6])[_0xbce3[5]];var ChatWebsite=require(_0xbce3[6])[_0xbce3[7]];var ChatApplication=require(_0xbce3[6])[_0xbce3[8]];var snippet=require(_0xbce3[10])[_0xbce3[9]];exports[_0xbce3[11]]=function(_0xcac7x9,_0xcac7xa,_0xcac7xb){var _0xcac7xc=[_0xbce3[12],_0xbce3[13],_0xbce3[14],_0xbce3[15]];var _0xcac7xd=_0xcac7x9[_0xbce3[17]][_0xbce3[16]]?parseInt(_0xcac7x9[_0xbce3[17]][_0xbce3[16]],10):100;var _0xcac7xe=_0xcac7x9[_0xbce3[17]][_0xbce3[18]]?parseInt(_0xcac7x9[_0xbce3[17]][_0xbce3[18]],10):0;var _0xcac7xf={where:{},limit:_0xcac7xd,offset:_0xcac7xe*_0xcac7xd};_[_0xbce3[32]](_0xcac7x9[_0xbce3[17]],function(_0xcac7x10,_0xcac7x11){switch(_0xcac7x11){case _0xbce3[16]:;case _0xbce3[18]:break ;;case _0xbce3[21]:_0xcac7xf[_0xbce3[19]]=util[_0xbce3[24]](_0xbce3[20],_0xcac7x9[_0xbce3[17]][_0xbce3[21]],_0xcac7x9[_0xbce3[17]][_0xbce3[22]]||_0xbce3[23])||null;break ;;case _0xbce3[22]:break ;;case _0xbce3[30]:_0xcac7xf[_0xbce3[26]][_0xbce3[25]]=[];_0xcac7xc[_0xbce3[29]](function(_0xcac7x12){var _0xcac7x13={};_0xcac7x13[_0xcac7x12]={$like:_0xbce3[27]+_0xcac7x10+_0xbce3[27]};_0xcac7xf[_0xbce3[26]][_0xbce3[25]][_0xbce3[28]](_0xcac7x13);});break ;;default:_0xcac7xf[_0xbce3[26]][_0xcac7x11]={$like:{}};_0xcac7xf[_0xbce3[26]][_0xcac7x11][_0xbce3[31]]=_0xbce3[27]+_0xcac7x10+_0xbce3[27];;}});ChatWebsite[_0xbce3[47]](_0xcac7xf)[_0xbce3[46]](function(_0xcac7x15){var _0xcac7x16=Math[_0xbce3[38]](_0xcac7x15[_0xbce3[37]]/_0xcac7xd);var _0xcac7x17=_0xcac7x16>(_0xcac7xf[_0xbce3[39]]+1)?util[_0xbce3[24]](_0xbce3[40],_0xcac7x9[_0xbce3[41]],_0xcac7x9[_0xbce3[43]][_0xbce3[42]],_0xcac7x9[_0xbce3[44]],_0xcac7xe+1):null;var _0xcac7x18=_0xcac7xe>0?util[_0xbce3[24]](_0xbce3[40],_0xcac7x9[_0xbce3[41]],_0xcac7x9[_0xbce3[43]][_0xbce3[42]],_0xcac7x9[_0xbce3[44]],_0xcac7xe-1):null;_0xcac7xa[_0xbce3[35]](200)[_0xbce3[34]]({count:_0xcac7x15[_0xbce3[37]],rows:_0xcac7x15[_0xbce3[45]],next_page:_0xcac7x17,previous_page:_0xcac7x18,total_pages:_0xcac7x16});})[_0xbce3[36]](function(_0xcac7x14){_0xcac7xa[_0xbce3[35]](500)[_0xbce3[34]]({error:_0xbce3[33]})});};exports[_0xbce3[48]]=function(_0xcac7x9,_0xcac7xa){ChatWebsite[_0xbce3[52]](_0xcac7x9[_0xbce3[51]][_0xbce3[50]])[_0xbce3[46]](function(_0xcac7x19){if(!_0xcac7x19){return _0xcac7xa[_0xbce3[49]](404)};return _0xcac7xa[_0xbce3[34]](_0xcac7x19);})[_0xbce3[36]](function(_0xcac7x14){return handleError(_0xcac7xa,_0xcac7x14)})};exports[_0xbce3[53]]=function(_0xcac7x9,_0xcac7xa){ChatWebsite[_0xbce3[52]](_0xcac7x9[_0xbce3[51]][_0xbce3[50]])[_0xbce3[46]](function(_0xcac7x19){var _0xcac7x1a={remote:_0xcac7x19[_0xbce3[15]],websiteId:_0xcac7x9[_0xbce3[51]][_0xbce3[50]]};var _0xcac7x1b=Mustache[_0xbce3[54]](snippet,_0xcac7x1a);return _0xcac7xa[_0xbce3[34]](_0xcac7x1b);})[_0xbce3[36]](function(_0xcac7x14){return handleError(_0xcac7xa,_0xcac7x14)})};exports[_0xbce3[55]]=function(_0xcac7x9,_0xcac7xa){ChatWebsite[_0xbce3[55]](_0xcac7x9[_0xbce3[56]])[_0xbce3[46]](function(_0xcac7x19){return _0xcac7xa[_0xbce3[35]](201)[_0xbce3[34]](_0xcac7x19)})[_0xbce3[36]](function(_0xcac7x14){return handleError(_0xcac7xa,_0xcac7x14)})};exports[_0xbce3[57]]=function(_0xcac7x9,_0xcac7xa){if(_0xcac7x9[_0xbce3[56]][_0xbce3[50]]){delete _0xcac7x9[_0xbce3[56]][_0xbce3[50]]};return ChatWebsite[_0xbce3[52]](_0xcac7x9[_0xbce3[51]][_0xbce3[50]])[_0xbce3[46]](function(_0xcac7x19){if(!_0xcac7x19){return _0xcac7xa[_0xbce3[49]](404)};return _0xcac7x19[_0xbce3[57]](_0xcac7x9[_0xbce3[56]])[_0xbce3[46]](function(_0xcac7x19){return _0xcac7xa[_0xbce3[35]](200)[_0xbce3[34]](_0xcac7x19)});})[_0xbce3[36]](function(_0xcac7x14){return handleError(_0xcac7xa,_0xcac7x14)});};exports[_0xbce3[58]]=function(_0xcac7x9,_0xcac7xa){ChatWebsite[_0xbce3[59]]({where:{id:_0xcac7x9[_0xbce3[51]][_0xbce3[50]]}})[_0xbce3[46]](function(_0xcac7x19){if(!_0xcac7x19){return _0xcac7xa[_0xbce3[49]](404)};_0xcac7x19[_0xbce3[58]]()[_0xbce3[46]](function(){return _0xcac7xa[_0xbce3[49]](204)})[_0xbce3[36]](function(_0xcac7x14){return handleError(_0xcac7xa,_0xcac7x14)});})[_0xbce3[36]](function(_0xcac7x14){return handleError(_0xcac7xa,_0xcac7x14)})};exports[_0xbce3[60]]=function(_0xcac7x9,_0xcac7xa,_0xcac7xb){ChatApplication[_0xbce3[66]]({where:{id:_0xcac7x9[_0xbce3[56]][_0xbce3[61]]}})[_0xbce3[46]](function(_0xcac7x1c){var _0xcac7x1d=_0xcac7x1c;async[_0xbce3[67]]([function(_0xcac7x1e){ChatApplication[_0xbce3[58]]({where:{id:_0xcac7x9[_0xbce3[56]][_0xbce3[61]]}})[_0xbce3[46]](function(){_0xcac7x1e()})[_0xbce3[36]](function(_0xcac7x14){_0xcac7x1e(_0xcac7x14)})},function(_0xcac7x1e){var _0xcac7x1f=[];for(var _0xcac7x20=0;_0xcac7x20<_0xcac7x9[_0xbce3[56]][_0xbce3[61]][_0xbce3[62]];_0xcac7x20++){var _0xcac7x21=_[_0xbce3[59]](_0xcac7x1d,{"\x69\x64":_0xcac7x9[_0xbce3[56]][_0xbce3[61]][_0xcac7x20]});if(_0xcac7x21){_0xcac7x21[_0xbce3[63]]=_0xcac7x20+1;_0xcac7x1f[_0xbce3[28]](_0xcac7x21[_0xbce3[64]]);};};ChatApplication[_0xbce3[65]](_0xcac7x1f)[_0xbce3[46]](function(){_0xcac7x1e()})[_0xbce3[36]](function(_0xcac7x14){_0xcac7x1e(_0xcac7x14)});},function(_0xcac7x1e){ChatApplication[_0xbce3[66]]({where:{id:_0xcac7x9[_0xbce3[56]][_0xbce3[61]]},order:_0xbce3[63],include:[{all:true}]})[_0xbce3[46]](function(_0xcac7x1c){_0xcac7x1e(null,_0xcac7x1c)})[_0xbce3[36]](function(_0xcac7x14){_0xcac7x1e(_0xcac7x14)})}],function(_0xcac7x14,_0xcac7x15){if(_0xcac7x14){return handleError(_0xcac7xa,_0xcac7x14)}else {return _0xcac7xa[_0xbce3[35]](201)[_0xbce3[34]](_0xcac7x15)}});})[_0xbce3[36]](function(_0xcac7x14){return handleError(_0xcac7xa,_0xcac7x14)})};exports[_0xbce3[68]]=function(_0xcac7x9,_0xcac7xa){ChatWebsite[_0xbce3[58]]({where:{id:_0xcac7x9[_0xbce3[17]][_0xbce3[50]]},individualHooks:true})[_0xbce3[46]](function(){return _0xcac7xa[_0xbce3[49]](204)})[_0xbce3[36]](function(_0xcac7x14){return handleError(_0xcac7xa,_0xcac7x14)})};function handleError(_0xcac7xa,_0xcac7x14){return _0xcac7xa[_0xbce3[35]](500)[_0xbce3[34]](_0xcac7x14)}
\ No newline at end of file
+var _0xd7b2=["\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"];_0xd7b2[0];var _=require(_0xd7b2[1]);var util=require(_0xd7b2[2]);var async=require(_0xd7b2[3]);var Mustache=require(_0xd7b2[4]);var sequelize=require(_0xd7b2[6])[_0xd7b2[5]];var ChatWebsite=require(_0xd7b2[6])[_0xd7b2[7]];var ChatApplication=require(_0xd7b2[6])[_0xd7b2[8]];var snippet=require(_0xd7b2[10])[_0xd7b2[9]];exports[_0xd7b2[11]]=function(_0x53fax9,_0x53faxa,_0x53faxb){var _0x53faxc=[_0xd7b2[12],_0xd7b2[13],_0xd7b2[14],_0xd7b2[15]];var _0x53faxd=_0x53fax9[_0xd7b2[17]][_0xd7b2[16]]?parseInt(_0x53fax9[_0xd7b2[17]][_0xd7b2[16]],10):100;var _0x53faxe=_0x53fax9[_0xd7b2[17]][_0xd7b2[18]]?parseInt(_0x53fax9[_0xd7b2[17]][_0xd7b2[18]],10):0;var _0x53faxf={where:{},limit:_0x53faxd,offset:_0x53faxe*_0x53faxd};_[_0xd7b2[32]](_0x53fax9[_0xd7b2[17]],function(_0x53fax10,_0x53fax11){switch(_0x53fax11){case _0xd7b2[16]:;case _0xd7b2[18]:break ;;case _0xd7b2[21]:_0x53faxf[_0xd7b2[19]]=util[_0xd7b2[24]](_0xd7b2[20],_0x53fax9[_0xd7b2[17]][_0xd7b2[21]],_0x53fax9[_0xd7b2[17]][_0xd7b2[22]]||_0xd7b2[23])||null;break ;;case _0xd7b2[22]:break ;;case _0xd7b2[30]:_0x53faxf[_0xd7b2[26]][_0xd7b2[25]]=[];_0x53faxc[_0xd7b2[29]](function(_0x53fax12){var _0x53fax13={};_0x53fax13[_0x53fax12]={$like:_0xd7b2[27]+_0x53fax10+_0xd7b2[27]};_0x53faxf[_0xd7b2[26]][_0xd7b2[25]][_0xd7b2[28]](_0x53fax13);});break ;;default:_0x53faxf[_0xd7b2[26]][_0x53fax11]={$like:{}};_0x53faxf[_0xd7b2[26]][_0x53fax11][_0xd7b2[31]]=_0xd7b2[27]+_0x53fax10+_0xd7b2[27];;}});ChatWebsite[_0xd7b2[47]](_0x53faxf)[_0xd7b2[46]](function(_0x53fax15){var _0x53fax16=Math[_0xd7b2[38]](_0x53fax15[_0xd7b2[37]]/_0x53faxd);var _0x53fax17=_0x53fax16>(_0x53faxf[_0xd7b2[39]]+1)?util[_0xd7b2[24]](_0xd7b2[40],_0x53fax9[_0xd7b2[41]],_0x53fax9[_0xd7b2[43]][_0xd7b2[42]],_0x53fax9[_0xd7b2[44]],_0x53faxe+1):null;var _0x53fax18=_0x53faxe>0?util[_0xd7b2[24]](_0xd7b2[40],_0x53fax9[_0xd7b2[41]],_0x53fax9[_0xd7b2[43]][_0xd7b2[42]],_0x53fax9[_0xd7b2[44]],_0x53faxe-1):null;_0x53faxa[_0xd7b2[35]](200)[_0xd7b2[34]]({count:_0x53fax15[_0xd7b2[37]],rows:_0x53fax15[_0xd7b2[45]],next_page:_0x53fax17,previous_page:_0x53fax18,total_pages:_0x53fax16});})[_0xd7b2[36]](function(_0x53fax14){_0x53faxa[_0xd7b2[35]](500)[_0xd7b2[34]]({error:_0xd7b2[33]})});};exports[_0xd7b2[48]]=function(_0x53fax9,_0x53faxa){ChatWebsite[_0xd7b2[52]](_0x53fax9[_0xd7b2[51]][_0xd7b2[50]])[_0xd7b2[46]](function(_0x53fax19){if(!_0x53fax19){return _0x53faxa[_0xd7b2[49]](404)};return _0x53faxa[_0xd7b2[34]](_0x53fax19);})[_0xd7b2[36]](function(_0x53fax14){return handleError(_0x53faxa,_0x53fax14)})};exports[_0xd7b2[53]]=function(_0x53fax9,_0x53faxa){ChatWebsite[_0xd7b2[52]](_0x53fax9[_0xd7b2[51]][_0xd7b2[50]])[_0xd7b2[46]](function(_0x53fax19){var _0x53fax1a={remote:_0x53fax19[_0xd7b2[15]],websiteId:_0x53fax9[_0xd7b2[51]][_0xd7b2[50]]};var _0x53fax1b=Mustache[_0xd7b2[54]](snippet,_0x53fax1a);return _0x53faxa[_0xd7b2[34]](_0x53fax1b);})[_0xd7b2[36]](function(_0x53fax14){return handleError(_0x53faxa,_0x53fax14)})};exports[_0xd7b2[55]]=function(_0x53fax9,_0x53faxa){ChatWebsite[_0xd7b2[55]](_0x53fax9[_0xd7b2[56]])[_0xd7b2[46]](function(_0x53fax19){return _0x53faxa[_0xd7b2[35]](201)[_0xd7b2[34]](_0x53fax19)})[_0xd7b2[36]](function(_0x53fax14){return handleError(_0x53faxa,_0x53fax14)})};exports[_0xd7b2[57]]=function(_0x53fax9,_0x53faxa){if(_0x53fax9[_0xd7b2[56]][_0xd7b2[50]]){delete _0x53fax9[_0xd7b2[56]][_0xd7b2[50]]};return ChatWebsite[_0xd7b2[52]](_0x53fax9[_0xd7b2[51]][_0xd7b2[50]])[_0xd7b2[46]](function(_0x53fax19){if(!_0x53fax19){return _0x53faxa[_0xd7b2[49]](404)};return _0x53fax19[_0xd7b2[57]](_0x53fax9[_0xd7b2[56]])[_0xd7b2[46]](function(_0x53fax19){return _0x53faxa[_0xd7b2[35]](200)[_0xd7b2[34]](_0x53fax19)});})[_0xd7b2[36]](function(_0x53fax14){return handleError(_0x53faxa,_0x53fax14)});};exports[_0xd7b2[58]]=function(_0x53fax9,_0x53faxa){ChatWebsite[_0xd7b2[59]]({where:{id:_0x53fax9[_0xd7b2[51]][_0xd7b2[50]]}})[_0xd7b2[46]](function(_0x53fax19){if(!_0x53fax19){return _0x53faxa[_0xd7b2[49]](404)};_0x53fax19[_0xd7b2[58]]()[_0xd7b2[46]](function(){return _0x53faxa[_0xd7b2[49]](204)})[_0xd7b2[36]](function(_0x53fax14){return handleError(_0x53faxa,_0x53fax14)});})[_0xd7b2[36]](function(_0x53fax14){return handleError(_0x53faxa,_0x53fax14)})};exports[_0xd7b2[60]]=function(_0x53fax9,_0x53faxa,_0x53faxb){ChatApplication[_0xd7b2[66]]({where:{id:_0x53fax9[_0xd7b2[56]][_0xd7b2[61]]}})[_0xd7b2[46]](function(_0x53fax1c){var _0x53fax1d=_0x53fax1c;async[_0xd7b2[67]]([function(_0x53fax1e){ChatApplication[_0xd7b2[58]]({where:{id:_0x53fax9[_0xd7b2[56]][_0xd7b2[61]]}})[_0xd7b2[46]](function(){_0x53fax1e()})[_0xd7b2[36]](function(_0x53fax14){_0x53fax1e(_0x53fax14)})},function(_0x53fax1e){var _0x53fax1f=[];for(var _0x53fax20=0;_0x53fax20<_0x53fax9[_0xd7b2[56]][_0xd7b2[61]][_0xd7b2[62]];_0x53fax20++){var _0x53fax21=_[_0xd7b2[59]](_0x53fax1d,{"\x69\x64":_0x53fax9[_0xd7b2[56]][_0xd7b2[61]][_0x53fax20]});if(_0x53fax21){_0x53fax21[_0xd7b2[63]]=_0x53fax20+1;_0x53fax1f[_0xd7b2[28]](_0x53fax21[_0xd7b2[64]]);};};ChatApplication[_0xd7b2[65]](_0x53fax1f)[_0xd7b2[46]](function(){_0x53fax1e()})[_0xd7b2[36]](function(_0x53fax14){_0x53fax1e(_0x53fax14)});},function(_0x53fax1e){ChatApplication[_0xd7b2[66]]({where:{id:_0x53fax9[_0xd7b2[56]][_0xd7b2[61]]},order:_0xd7b2[63],include:[{all:true}]})[_0xd7b2[46]](function(_0x53fax1c){_0x53fax1e(null,_0x53fax1c)})[_0xd7b2[36]](function(_0x53fax14){_0x53fax1e(_0x53fax14)})}],function(_0x53fax14,_0x53fax15){if(_0x53fax14){return handleError(_0x53faxa,_0x53fax14)}else {return _0x53faxa[_0xd7b2[35]](201)[_0xd7b2[34]](_0x53fax15)}});})[_0xd7b2[36]](function(_0x53fax14){return handleError(_0x53faxa,_0x53fax14)})};exports[_0xd7b2[68]]=function(_0x53fax9,_0x53faxa){ChatWebsite[_0xd7b2[58]]({where:{id:_0x53fax9[_0xd7b2[17]][_0xd7b2[50]]},individualHooks:true})[_0xd7b2[46]](function(){return _0x53faxa[_0xd7b2[49]](204)})[_0xd7b2[36]](function(_0x53fax14){return handleError(_0x53faxa,_0x53fax14)})};function handleError(_0x53faxa,_0x53fax14){return _0x53faxa[_0xd7b2[35]](500)[_0xd7b2[34]](_0x53fax14)}
\ No newline at end of file
-var _0xafb2=["\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"];_0xafb2[0];var chat_website=require(_0xafb2[2])[_0xafb2[1]];exports[_0xafb2[3]]=function(_0x7ed1x2){chat_website[_0xafb2[4]](function(_0x7ed1x3){onSave(_0x7ed1x2,_0x7ed1x3)});chat_website[_0xafb2[5]](function(_0x7ed1x3){onRemove(_0x7ed1x2,_0x7ed1x3)});};function onSave(_0x7ed1x2,_0x7ed1x3,_0x7ed1x5){_0x7ed1x2[_0xafb2[7]](_0xafb2[6],_0x7ed1x3)}function onRemove(_0x7ed1x2,_0x7ed1x3,_0x7ed1x5){_0x7ed1x2[_0xafb2[7]](_0xafb2[8],_0x7ed1x3)}
\ No newline at end of file
+var _0xa085=["\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"];_0xa085[0];var chat_website=require(_0xa085[2])[_0xa085[1]];exports[_0xa085[3]]=function(_0x4e53x2){chat_website[_0xa085[4]](function(_0x4e53x3){onSave(_0x4e53x2,_0x4e53x3)});chat_website[_0xa085[5]](function(_0x4e53x3){onRemove(_0x4e53x2,_0x4e53x3)});};function onSave(_0x4e53x2,_0x4e53x3,_0x4e53x5){_0x4e53x2[_0xa085[7]](_0xa085[6],_0x4e53x3)}function onRemove(_0x4e53x2,_0x4e53x3,_0x4e53x5){_0x4e53x2[_0xa085[7]](_0xa085[8],_0x4e53x3)}
\ No newline at end of file
-var _0xf163=["\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"];_0xf163[0];var should=require(_0xf163[1]);var app=require(_0xf163[2]);var request=require(_0xf163[3]);describe(_0xf163[4],function(){it(_0xf163[5],function(_0x3292x4){request(app)[_0xf163[13]](_0xf163[12])[_0xf163[11]](200)[_0xf163[11]](_0xf163[10],/json/)[_0xf163[9]](function(_0x3292x5,_0x3292x6){if(_0x3292x5){return _0x3292x4(_0x3292x5)};_0x3292x6[_0xf163[8]][_0xf163[1]][_0xf163[7]][_0xf163[6]](Array);_0x3292x4();})})});
\ No newline at end of file
+var _0xfde0=["\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"];_0xfde0[0];var should=require(_0xfde0[1]);var app=require(_0xfde0[2]);var request=require(_0xfde0[3]);describe(_0xfde0[4],function(){it(_0xfde0[5],function(_0x8b3cx4){request(app)[_0xfde0[13]](_0xfde0[12])[_0xfde0[11]](200)[_0xfde0[11]](_0xfde0[10],/json/)[_0xfde0[9]](function(_0x8b3cx5,_0x8b3cx6){if(_0x8b3cx5){return _0x8b3cx4(_0x8b3cx5)};_0x8b3cx6[_0xfde0[8]][_0xfde0[1]][_0xfde0[7]][_0xfde0[6]](Array);_0x8b3cx4();})})});
\ No newline at end of file
-var _0x4e27=["\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"];_0x4e27[0];var express=require(_0x4e27[1]);var controller=require(_0x4e27[2]);var auth=require(_0x4e27[3]);var router=express.Router();router[_0x4e27[7]](_0x4e27[4],auth[_0x4e27[5]](),controller[_0x4e27[6]]);router[_0x4e27[7]](_0x4e27[8],auth[_0x4e27[5]](),controller[_0x4e27[9]]);router[_0x4e27[7]](_0x4e27[10],auth[_0x4e27[5]](),controller[_0x4e27[11]]);router[_0x4e27[13]](_0x4e27[4],auth[_0x4e27[5]](),controller[_0x4e27[12]]);router[_0x4e27[13]](_0x4e27[14],auth[_0x4e27[5]](),controller[_0x4e27[15]]);router[_0x4e27[17]](_0x4e27[8],auth[_0x4e27[5]](),controller[_0x4e27[16]]);router[_0x4e27[18]](_0x4e27[8],auth[_0x4e27[5]](),controller[_0x4e27[16]]);router[_0x4e27[20]](_0x4e27[4],auth[_0x4e27[5]](),controller[_0x4e27[19]]);router[_0x4e27[20]](_0x4e27[8],auth[_0x4e27[5]](),controller[_0x4e27[21]]);module[_0x4e27[22]]=router;
\ No newline at end of file
+var _0xb466=["\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"];_0xb466[0];var express=require(_0xb466[1]);var controller=require(_0xb466[2]);var auth=require(_0xb466[3]);var router=express.Router();router[_0xb466[7]](_0xb466[4],auth[_0xb466[5]](),controller[_0xb466[6]]);router[_0xb466[7]](_0xb466[8],auth[_0xb466[5]](),controller[_0xb466[9]]);router[_0xb466[7]](_0xb466[10],auth[_0xb466[5]](),controller[_0xb466[11]]);router[_0xb466[13]](_0xb466[4],auth[_0xb466[5]](),controller[_0xb466[12]]);router[_0xb466[13]](_0xb466[14],auth[_0xb466[5]](),controller[_0xb466[15]]);router[_0xb466[17]](_0xb466[8],auth[_0xb466[5]](),controller[_0xb466[16]]);router[_0xb466[18]](_0xb466[8],auth[_0xb466[5]](),controller[_0xb466[16]]);router[_0xb466[20]](_0xb466[4],auth[_0xb466[5]](),controller[_0xb466[19]]);router[_0xb466[20]](_0xb466[8],auth[_0xb466[5]](),controller[_0xb466[21]]);module[_0xb466[22]]=router;
\ No newline at end of file
-var _0x46d6=["\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"];_0x46d6[0];var _=require(_0x46d6[1]);var Company=require(_0x46d6[3])[_0x46d6[2]];var util=require(_0x46d6[4]);exports[_0x46d6[5]]=function(_0x39c7x4,_0x39c7x5){var _0x39c7x6=[_0x46d6[6],_0x46d6[7]];var _0x39c7x7=_0x39c7x4[_0x46d6[9]][_0x46d6[8]]?parseInt(_0x39c7x4[_0x46d6[9]][_0x46d6[8]],10):100;var _0x39c7x8=_0x39c7x4[_0x46d6[9]][_0x46d6[10]]?parseInt(_0x39c7x4[_0x46d6[9]][_0x46d6[10]],10):0;var _0x39c7x9={where:{},limit:_0x39c7x7,offset:_0x39c7x8*_0x39c7x7};_[_0x46d6[24]](_0x39c7x4[_0x46d6[9]],function(_0x39c7xa,_0x39c7xb){switch(_0x39c7xb){case _0x46d6[8]:;case _0x46d6[10]:break ;;case _0x46d6[13]:_0x39c7x9[_0x46d6[11]]=util[_0x46d6[16]](_0x46d6[12],_0x39c7x4[_0x46d6[9]][_0x46d6[13]],_0x39c7x4[_0x46d6[9]][_0x46d6[14]]||_0x46d6[15])||null;break ;;case _0x46d6[14]:break ;;case _0x46d6[22]:_0x39c7x9[_0x46d6[18]][_0x46d6[17]]=[];_0x39c7x6[_0x46d6[21]](function(_0x39c7xc){var _0x39c7xd={};_0x39c7xd[_0x39c7xc]={$like:_0x46d6[19]+_0x39c7xa+_0x46d6[19]};_0x39c7x9[_0x46d6[18]][_0x46d6[17]][_0x46d6[20]](_0x39c7xd);});break ;;default:_0x39c7x9[_0x46d6[18]][_0x39c7xb]={$like:{}};_0x39c7x9[_0x46d6[18]][_0x39c7xb][_0x46d6[23]]=_0x46d6[19]+_0x39c7xa+_0x46d6[19];;}});Company[_0x46d6[39]](_0x39c7x9)[_0x46d6[38]](function(_0x39c7xf){var _0x39c7x10=Math[_0x46d6[30]](_0x39c7xf[_0x46d6[29]]/_0x39c7x7);var _0x39c7x11=_0x39c7x10>(_0x39c7x9[_0x46d6[31]]+1)?util[_0x46d6[16]](_0x46d6[32],_0x39c7x4[_0x46d6[33]],_0x39c7x4[_0x46d6[35]][_0x46d6[34]],_0x39c7x4[_0x46d6[36]],_0x39c7x8+1):null;var _0x39c7x12=_0x39c7x8>0?util[_0x46d6[16]](_0x46d6[32],_0x39c7x4[_0x46d6[33]],_0x39c7x4[_0x46d6[35]][_0x46d6[34]],_0x39c7x4[_0x46d6[36]],_0x39c7x8-1):null;_0x39c7x5[_0x46d6[27]](200)[_0x46d6[26]]({count:_0x39c7xf[_0x46d6[29]],rows:_0x39c7xf[_0x46d6[37]],next_page:_0x39c7x11,previous_page:_0x39c7x12,total_pages:_0x39c7x10});})[_0x46d6[28]](function(_0x39c7xe){_0x39c7x5[_0x46d6[27]](500)[_0x46d6[26]]({error:_0x46d6[25]})});};exports[_0x46d6[40]]=function(_0x39c7x4,_0x39c7x5){console[_0x46d6[42]](_0x39c7x4[_0x46d6[41]]);Company[_0x46d6[44]]({where:{name:_0x39c7x4[_0x46d6[41]][_0x46d6[6]]}})[_0x46d6[38]](function(_0x39c7x13){if(!_0x39c7x13){return _0x39c7x5[_0x46d6[43]](404)};return _0x39c7x5[_0x46d6[26]](_0x39c7x13);})[_0x46d6[28]](function(_0x39c7xe){return handleError(_0x39c7x5,_0x39c7xe)});};exports[_0x46d6[45]]=function(_0x39c7x4,_0x39c7x5){Company[_0x46d6[48]](_0x39c7x4[_0x46d6[47]][_0x46d6[46]])[_0x46d6[38]](function(_0x39c7x14){if(!_0x39c7x14){return _0x39c7x5[_0x46d6[43]](404)};return _0x39c7x5[_0x46d6[26]](_0x39c7x14);})[_0x46d6[28]](function(_0x39c7xe){return handleError(_0x39c7x5,_0x39c7xe)})};exports[_0x46d6[49]]=function(_0x39c7x4,_0x39c7x5){Company[_0x46d6[49]](_0x39c7x4[_0x46d6[41]])[_0x46d6[38]](function(_0x39c7x14){return _0x39c7x5[_0x46d6[27]](201)[_0x46d6[26]](_0x39c7x14)})[_0x46d6[28]](function(_0x39c7xe){return handleError(_0x39c7x5,_0x39c7xe)})};exports[_0x46d6[50]]=function(_0x39c7x4,_0x39c7x5){Company[_0x46d6[44]]({where:{name:_0x39c7x4[_0x46d6[41]][_0x46d6[6]],id:{$ne:_0x39c7x4[_0x46d6[41]][_0x46d6[46]]}}})[_0x46d6[38]](function(_0x39c7x13){if(!_0x39c7x13){return _0x39c7x5[_0x46d6[43]](404)};if(_0x39c7x13[_0x46d6[51]]>0){return _0x39c7x5[_0x46d6[27]](500)[_0x46d6[26]]({message:_0x46d6[52]})};if(_0x39c7x4[_0x46d6[41]][_0x46d6[46]]){delete _0x39c7x4[_0x46d6[41]][_0x46d6[46]]};Company[_0x46d6[55]]({where:{id:_0x39c7x4[_0x46d6[47]][_0x46d6[46]]}})[_0x46d6[38]](function(_0x39c7x14){if(!_0x39c7x14){return _0x39c7x5[_0x46d6[43]](404)};var _0x39c7x15=_[_0x46d6[53]](_0x39c7x14,_0x39c7x4[_0x46d6[41]]);_0x39c7x15[_0x46d6[54]]()[_0x46d6[38]](function(){return _0x39c7x5[_0x46d6[27]](200)[_0x46d6[26]](_0x39c7x14)})[_0x46d6[28]](function(_0x39c7xe){return handleError(_0x39c7x5,_0x39c7xe)});})[_0x46d6[28]](function(_0x39c7xe){return handleError(_0x39c7x5,_0x39c7xe)});})[_0x46d6[28]](function(_0x39c7xe){return handleError(_0x39c7x5,_0x39c7xe)})};exports[_0x46d6[56]]=function(_0x39c7x4,_0x39c7x5){Company[_0x46d6[48]](_0x39c7x4[_0x46d6[47]][_0x46d6[46]])[_0x46d6[38]](function(_0x39c7x14){if(!_0x39c7x14){return _0x39c7x5[_0x46d6[43]](404)};_0x39c7x14[_0x46d6[56]]()[_0x46d6[38]](function(){return _0x39c7x5[_0x46d6[43]](204)})[_0x46d6[28]](function(_0x39c7xe){return handleError(_0x39c7x5,_0x39c7xe)});})[_0x46d6[28]](function(_0x39c7xe){return handleError(_0x39c7x5,_0x39c7xe)})};exports[_0x46d6[57]]=function(_0x39c7x4,_0x39c7x5){Company[_0x46d6[56]]({where:{id:_0x39c7x4[_0x46d6[9]][_0x46d6[46]]},individualHooks:true})[_0x46d6[38]](function(){return _0x39c7x5[_0x46d6[43]](204)})[_0x46d6[28]](function(_0x39c7xe){return handleError(_0x39c7x5,_0x39c7xe)})};function handleError(_0x39c7x5,_0x39c7xe){return _0x39c7x5[_0x46d6[27]](500)[_0x46d6[26]](_0x39c7xe)}
\ No newline at end of file
+var _0x1e8f=["\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"];_0x1e8f[0];var _=require(_0x1e8f[1]);var Company=require(_0x1e8f[3])[_0x1e8f[2]];var util=require(_0x1e8f[4]);exports[_0x1e8f[5]]=function(_0x3bf3x4,_0x3bf3x5){var _0x3bf3x6=[_0x1e8f[6],_0x1e8f[7]];var _0x3bf3x7=_0x3bf3x4[_0x1e8f[9]][_0x1e8f[8]]?parseInt(_0x3bf3x4[_0x1e8f[9]][_0x1e8f[8]],10):100;var _0x3bf3x8=_0x3bf3x4[_0x1e8f[9]][_0x1e8f[10]]?parseInt(_0x3bf3x4[_0x1e8f[9]][_0x1e8f[10]],10):0;var _0x3bf3x9={where:{},limit:_0x3bf3x7,offset:_0x3bf3x8*_0x3bf3x7};_[_0x1e8f[24]](_0x3bf3x4[_0x1e8f[9]],function(_0x3bf3xa,_0x3bf3xb){switch(_0x3bf3xb){case _0x1e8f[8]:;case _0x1e8f[10]:break ;;case _0x1e8f[13]:_0x3bf3x9[_0x1e8f[11]]=util[_0x1e8f[16]](_0x1e8f[12],_0x3bf3x4[_0x1e8f[9]][_0x1e8f[13]],_0x3bf3x4[_0x1e8f[9]][_0x1e8f[14]]||_0x1e8f[15])||null;break ;;case _0x1e8f[14]:break ;;case _0x1e8f[22]:_0x3bf3x9[_0x1e8f[18]][_0x1e8f[17]]=[];_0x3bf3x6[_0x1e8f[21]](function(_0x3bf3xc){var _0x3bf3xd={};_0x3bf3xd[_0x3bf3xc]={$like:_0x1e8f[19]+_0x3bf3xa+_0x1e8f[19]};_0x3bf3x9[_0x1e8f[18]][_0x1e8f[17]][_0x1e8f[20]](_0x3bf3xd);});break ;;default:_0x3bf3x9[_0x1e8f[18]][_0x3bf3xb]={$like:{}};_0x3bf3x9[_0x1e8f[18]][_0x3bf3xb][_0x1e8f[23]]=_0x1e8f[19]+_0x3bf3xa+_0x1e8f[19];;}});Company[_0x1e8f[39]](_0x3bf3x9)[_0x1e8f[38]](function(_0x3bf3xf){var _0x3bf3x10=Math[_0x1e8f[30]](_0x3bf3xf[_0x1e8f[29]]/_0x3bf3x7);var _0x3bf3x11=_0x3bf3x10>(_0x3bf3x9[_0x1e8f[31]]+1)?util[_0x1e8f[16]](_0x1e8f[32],_0x3bf3x4[_0x1e8f[33]],_0x3bf3x4[_0x1e8f[35]][_0x1e8f[34]],_0x3bf3x4[_0x1e8f[36]],_0x3bf3x8+1):null;var _0x3bf3x12=_0x3bf3x8>0?util[_0x1e8f[16]](_0x1e8f[32],_0x3bf3x4[_0x1e8f[33]],_0x3bf3x4[_0x1e8f[35]][_0x1e8f[34]],_0x3bf3x4[_0x1e8f[36]],_0x3bf3x8-1):null;_0x3bf3x5[_0x1e8f[27]](200)[_0x1e8f[26]]({count:_0x3bf3xf[_0x1e8f[29]],rows:_0x3bf3xf[_0x1e8f[37]],next_page:_0x3bf3x11,previous_page:_0x3bf3x12,total_pages:_0x3bf3x10});})[_0x1e8f[28]](function(_0x3bf3xe){_0x3bf3x5[_0x1e8f[27]](500)[_0x1e8f[26]]({error:_0x1e8f[25]})});};exports[_0x1e8f[40]]=function(_0x3bf3x4,_0x3bf3x5){console[_0x1e8f[42]](_0x3bf3x4[_0x1e8f[41]]);Company[_0x1e8f[44]]({where:{name:_0x3bf3x4[_0x1e8f[41]][_0x1e8f[6]]}})[_0x1e8f[38]](function(_0x3bf3x13){if(!_0x3bf3x13){return _0x3bf3x5[_0x1e8f[43]](404)};return _0x3bf3x5[_0x1e8f[26]](_0x3bf3x13);})[_0x1e8f[28]](function(_0x3bf3xe){return handleError(_0x3bf3x5,_0x3bf3xe)});};exports[_0x1e8f[45]]=function(_0x3bf3x4,_0x3bf3x5){Company[_0x1e8f[48]](_0x3bf3x4[_0x1e8f[47]][_0x1e8f[46]])[_0x1e8f[38]](function(_0x3bf3x14){if(!_0x3bf3x14){return _0x3bf3x5[_0x1e8f[43]](404)};return _0x3bf3x5[_0x1e8f[26]](_0x3bf3x14);})[_0x1e8f[28]](function(_0x3bf3xe){return handleError(_0x3bf3x5,_0x3bf3xe)})};exports[_0x1e8f[49]]=function(_0x3bf3x4,_0x3bf3x5){Company[_0x1e8f[49]](_0x3bf3x4[_0x1e8f[41]])[_0x1e8f[38]](function(_0x3bf3x14){return _0x3bf3x5[_0x1e8f[27]](201)[_0x1e8f[26]](_0x3bf3x14)})[_0x1e8f[28]](function(_0x3bf3xe){return handleError(_0x3bf3x5,_0x3bf3xe)})};exports[_0x1e8f[50]]=function(_0x3bf3x4,_0x3bf3x5){Company[_0x1e8f[44]]({where:{name:_0x3bf3x4[_0x1e8f[41]][_0x1e8f[6]],id:{$ne:_0x3bf3x4[_0x1e8f[41]][_0x1e8f[46]]}}})[_0x1e8f[38]](function(_0x3bf3x13){if(!_0x3bf3x13){return _0x3bf3x5[_0x1e8f[43]](404)};if(_0x3bf3x13[_0x1e8f[51]]>0){return _0x3bf3x5[_0x1e8f[27]](500)[_0x1e8f[26]]({message:_0x1e8f[52]})};if(_0x3bf3x4[_0x1e8f[41]][_0x1e8f[46]]){delete _0x3bf3x4[_0x1e8f[41]][_0x1e8f[46]]};Company[_0x1e8f[55]]({where:{id:_0x3bf3x4[_0x1e8f[47]][_0x1e8f[46]]}})[_0x1e8f[38]](function(_0x3bf3x14){if(!_0x3bf3x14){return _0x3bf3x5[_0x1e8f[43]](404)};var _0x3bf3x15=_[_0x1e8f[53]](_0x3bf3x14,_0x3bf3x4[_0x1e8f[41]]);_0x3bf3x15[_0x1e8f[54]]()[_0x1e8f[38]](function(){return _0x3bf3x5[_0x1e8f[27]](200)[_0x1e8f[26]](_0x3bf3x14)})[_0x1e8f[28]](function(_0x3bf3xe){return handleError(_0x3bf3x5,_0x3bf3xe)});})[_0x1e8f[28]](function(_0x3bf3xe){return handleError(_0x3bf3x5,_0x3bf3xe)});})[_0x1e8f[28]](function(_0x3bf3xe){return handleError(_0x3bf3x5,_0x3bf3xe)})};exports[_0x1e8f[56]]=function(_0x3bf3x4,_0x3bf3x5){Company[_0x1e8f[48]](_0x3bf3x4[_0x1e8f[47]][_0x1e8f[46]])[_0x1e8f[38]](function(_0x3bf3x14){if(!_0x3bf3x14){return _0x3bf3x5[_0x1e8f[43]](404)};_0x3bf3x14[_0x1e8f[56]]()[_0x1e8f[38]](function(){return _0x3bf3x5[_0x1e8f[43]](204)})[_0x1e8f[28]](function(_0x3bf3xe){return handleError(_0x3bf3x5,_0x3bf3xe)});})[_0x1e8f[28]](function(_0x3bf3xe){return handleError(_0x3bf3x5,_0x3bf3xe)})};exports[_0x1e8f[57]]=function(_0x3bf3x4,_0x3bf3x5){Company[_0x1e8f[56]]({where:{id:_0x3bf3x4[_0x1e8f[9]][_0x1e8f[46]]},individualHooks:true})[_0x1e8f[38]](function(){return _0x3bf3x5[_0x1e8f[43]](204)})[_0x1e8f[28]](function(_0x3bf3xe){return handleError(_0x3bf3x5,_0x3bf3xe)})};function handleError(_0x3bf3x5,_0x3bf3xe){return _0x3bf3x5[_0x1e8f[27]](500)[_0x1e8f[26]](_0x3bf3xe)}
\ No newline at end of file
-var _0x62e2=["\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"];_0x62e2[0];var Company=require(_0x62e2[2])[_0x62e2[1]];exports[_0x62e2[3]]=function(_0x3dcdx2){Company[_0x62e2[4]](function(_0x3dcdx3){onSave(_0x3dcdx2,_0x3dcdx3)});Company[_0x62e2[5]](function(_0x3dcdx3){onRemove(_0x3dcdx2,_0x3dcdx3)});};function onSave(_0x3dcdx2,_0x3dcdx3,_0x3dcdx5){_0x3dcdx2[_0x62e2[7]](_0x62e2[6],_0x3dcdx3)}function onRemove(_0x3dcdx2,_0x3dcdx3,_0x3dcdx5){_0x3dcdx2[_0x62e2[7]](_0x62e2[8],_0x3dcdx3)}
\ No newline at end of file
+var _0xd2b9=["\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"];_0xd2b9[0];var Company=require(_0xd2b9[2])[_0xd2b9[1]];exports[_0xd2b9[3]]=function(_0x7ba7x2){Company[_0xd2b9[4]](function(_0x7ba7x3){onSave(_0x7ba7x2,_0x7ba7x3)});Company[_0xd2b9[5]](function(_0x7ba7x3){onRemove(_0x7ba7x2,_0x7ba7x3)});};function onSave(_0x7ba7x2,_0x7ba7x3,_0x7ba7x5){_0x7ba7x2[_0xd2b9[7]](_0xd2b9[6],_0x7ba7x3)}function onRemove(_0x7ba7x2,_0x7ba7x3,_0x7ba7x5){_0x7ba7x2[_0xd2b9[7]](_0xd2b9[8],_0x7ba7x3)}
\ No newline at end of file
-var _0xed3b=["\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"];_0xed3b[0];var should=require(_0xed3b[1]);var app=require(_0xed3b[2]);var request=require(_0xed3b[3]);describe(_0xed3b[4],function(){it(_0xed3b[5],function(_0x5fcex4){request(app)[_0xed3b[13]](_0xed3b[12])[_0xed3b[11]](200)[_0xed3b[11]](_0xed3b[10],/json/)[_0xed3b[9]](function(_0x5fcex5,_0x5fcex6){if(_0x5fcex5){return _0x5fcex4(_0x5fcex5)};_0x5fcex6[_0xed3b[8]][_0xed3b[1]][_0xed3b[7]][_0xed3b[6]](Array);_0x5fcex4();})})});
\ No newline at end of file
+var _0x7097=["\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"];_0x7097[0];var should=require(_0x7097[1]);var app=require(_0x7097[2]);var request=require(_0x7097[3]);describe(_0x7097[4],function(){it(_0x7097[5],function(_0xc3fex4){request(app)[_0x7097[13]](_0x7097[12])[_0x7097[11]](200)[_0x7097[11]](_0x7097[10],/json/)[_0x7097[9]](function(_0xc3fex5,_0xc3fex6){if(_0xc3fex5){return _0xc3fex4(_0xc3fex5)};_0xc3fex6[_0x7097[8]][_0x7097[1]][_0x7097[7]][_0x7097[6]](Array);_0xc3fex4();})})});
\ No newline at end of file
-var _0xa676=["\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"];_0xa676[0];var express=require(_0xa676[1]);var controller=require(_0xa676[2]);var auth=require(_0xa676[3]);var router=express.Router();router[_0xa676[7]](_0xa676[4],auth[_0xa676[5]](),controller[_0xa676[6]]);router[_0xa676[7]](_0xa676[8],auth[_0xa676[5]](),controller[_0xa676[9]]);router[_0xa676[11]](_0xa676[4],auth[_0xa676[5]](),controller[_0xa676[10]]);router[_0xa676[11]](_0xa676[12],auth[_0xa676[5]](),controller[_0xa676[13]]);router[_0xa676[15]](_0xa676[8],auth[_0xa676[5]](),controller[_0xa676[14]]);router[_0xa676[16]](_0xa676[8],auth[_0xa676[5]](),controller[_0xa676[14]]);router[_0xa676[18]](_0xa676[4],auth[_0xa676[5]](),controller[_0xa676[17]]);router[_0xa676[18]](_0xa676[8],auth[_0xa676[5]](),controller[_0xa676[19]]);module[_0xa676[20]]=router;
\ No newline at end of file
+var _0x9af6=["\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"];_0x9af6[0];var express=require(_0x9af6[1]);var controller=require(_0x9af6[2]);var auth=require(_0x9af6[3]);var router=express.Router();router[_0x9af6[7]](_0x9af6[4],auth[_0x9af6[5]](),controller[_0x9af6[6]]);router[_0x9af6[7]](_0x9af6[8],auth[_0x9af6[5]](),controller[_0x9af6[9]]);router[_0x9af6[11]](_0x9af6[4],auth[_0x9af6[5]](),controller[_0x9af6[10]]);router[_0x9af6[11]](_0x9af6[12],auth[_0x9af6[5]](),controller[_0x9af6[13]]);router[_0x9af6[15]](_0x9af6[8],auth[_0x9af6[5]](),controller[_0x9af6[14]]);router[_0x9af6[16]](_0x9af6[8],auth[_0x9af6[5]](),controller[_0x9af6[14]]);router[_0x9af6[18]](_0x9af6[4],auth[_0x9af6[5]](),controller[_0x9af6[17]]);router[_0x9af6[18]](_0x9af6[8],auth[_0x9af6[5]](),controller[_0x9af6[19]]);module[_0x9af6[20]]=router;
\ No newline at end of file
-var _0x2c68=["\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"];_0x2c68[0];var _=require(_0x2c68[1]);var Contact=require(_0x2c68[3])[_0x2c68[2]];exports[_0x2c68[4]]=function(_0x504dx3,_0x504dx4){Contact[_0x2c68[9]]()[_0x2c68[8]](function(_0x504dx6){return _0x504dx4[_0x2c68[7]](200)[_0x2c68[6]](_0x504dx6)})[_0x2c68[5]](function(_0x504dx5){return handleError(_0x504dx4,_0x504dx5)})};exports[_0x2c68[10]]=function(_0x504dx3,_0x504dx4){Contact[_0x2c68[14]](_0x504dx3[_0x2c68[13]][_0x2c68[12]])[_0x2c68[8]](function(_0x504dx7){if(!_0x504dx7){return _0x504dx4[_0x2c68[11]](404)};return _0x504dx4[_0x2c68[6]](_0x504dx7);})[_0x2c68[5]](function(_0x504dx5){return handleError(_0x504dx4,_0x504dx5)})};exports[_0x2c68[15]]=function(_0x504dx3,_0x504dx4){Contact[_0x2c68[15]](_0x504dx3[_0x2c68[16]])[_0x2c68[8]](function(_0x504dx7){return _0x504dx4[_0x2c68[7]](201)[_0x2c68[6]](_0x504dx7)})[_0x2c68[5]](function(_0x504dx5){return handleError(_0x504dx4,_0x504dx5)})};exports[_0x2c68[17]]=function(_0x504dx3,_0x504dx4){if(_0x504dx3[_0x2c68[16]][_0x2c68[12]]){delete _0x504dx3[_0x2c68[16]][_0x2c68[12]]};Contact[_0x2c68[14]](_0x504dx3[_0x2c68[13]][_0x2c68[12]])[_0x2c68[8]](function(_0x504dx7){if(!_0x504dx7){return _0x504dx4[_0x2c68[11]](404)};var _0x504dx8=_[_0x2c68[18]](_0x504dx7,_0x504dx3[_0x2c68[16]]);_0x504dx8[_0x2c68[19]]()[_0x2c68[8]](function(){return _0x504dx4[_0x2c68[7]](200)[_0x2c68[6]](_0x504dx7)})[_0x2c68[5]](function(_0x504dx5){return handleError(_0x504dx4,_0x504dx5)});})[_0x2c68[5]](function(_0x504dx5){return handleError(_0x504dx4,_0x504dx5)});};exports[_0x2c68[20]]=function(_0x504dx3,_0x504dx4){Contact[_0x2c68[14]](_0x504dx3[_0x2c68[13]][_0x2c68[12]])[_0x2c68[8]](function(_0x504dx7){if(!_0x504dx7){return _0x504dx4[_0x2c68[11]](404)};_0x504dx7[_0x2c68[20]]()[_0x2c68[8]](function(){return _0x504dx4[_0x2c68[11]](204)})[_0x2c68[5]](function(_0x504dx5){return handleError(_0x504dx4,_0x504dx5)});})[_0x2c68[5]](function(_0x504dx5){return handleError(_0x504dx4,_0x504dx5)})};function handleError(_0x504dx4,_0x504dx5){return _0x504dx4[_0x2c68[7]](500)[_0x2c68[6]](_0x504dx5)}
\ No newline at end of file
+var _0x7bcb=["\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"];_0x7bcb[0];var _=require(_0x7bcb[1]);var Contact=require(_0x7bcb[3])[_0x7bcb[2]];exports[_0x7bcb[4]]=function(_0x55a2x3,_0x55a2x4){Contact[_0x7bcb[9]]()[_0x7bcb[8]](function(_0x55a2x6){return _0x55a2x4[_0x7bcb[7]](200)[_0x7bcb[6]](_0x55a2x6)})[_0x7bcb[5]](function(_0x55a2x5){return handleError(_0x55a2x4,_0x55a2x5)})};exports[_0x7bcb[10]]=function(_0x55a2x3,_0x55a2x4){Contact[_0x7bcb[14]](_0x55a2x3[_0x7bcb[13]][_0x7bcb[12]])[_0x7bcb[8]](function(_0x55a2x7){if(!_0x55a2x7){return _0x55a2x4[_0x7bcb[11]](404)};return _0x55a2x4[_0x7bcb[6]](_0x55a2x7);})[_0x7bcb[5]](function(_0x55a2x5){return handleError(_0x55a2x4,_0x55a2x5)})};exports[_0x7bcb[15]]=function(_0x55a2x3,_0x55a2x4){Contact[_0x7bcb[15]](_0x55a2x3[_0x7bcb[16]])[_0x7bcb[8]](function(_0x55a2x7){return _0x55a2x4[_0x7bcb[7]](201)[_0x7bcb[6]](_0x55a2x7)})[_0x7bcb[5]](function(_0x55a2x5){return handleError(_0x55a2x4,_0x55a2x5)})};exports[_0x7bcb[17]]=function(_0x55a2x3,_0x55a2x4){if(_0x55a2x3[_0x7bcb[16]][_0x7bcb[12]]){delete _0x55a2x3[_0x7bcb[16]][_0x7bcb[12]]};Contact[_0x7bcb[14]](_0x55a2x3[_0x7bcb[13]][_0x7bcb[12]])[_0x7bcb[8]](function(_0x55a2x7){if(!_0x55a2x7){return _0x55a2x4[_0x7bcb[11]](404)};var _0x55a2x8=_[_0x7bcb[18]](_0x55a2x7,_0x55a2x3[_0x7bcb[16]]);_0x55a2x8[_0x7bcb[19]]()[_0x7bcb[8]](function(){return _0x55a2x4[_0x7bcb[7]](200)[_0x7bcb[6]](_0x55a2x7)})[_0x7bcb[5]](function(_0x55a2x5){return handleError(_0x55a2x4,_0x55a2x5)});})[_0x7bcb[5]](function(_0x55a2x5){return handleError(_0x55a2x4,_0x55a2x5)});};exports[_0x7bcb[20]]=function(_0x55a2x3,_0x55a2x4){Contact[_0x7bcb[14]](_0x55a2x3[_0x7bcb[13]][_0x7bcb[12]])[_0x7bcb[8]](function(_0x55a2x7){if(!_0x55a2x7){return _0x55a2x4[_0x7bcb[11]](404)};_0x55a2x7[_0x7bcb[20]]()[_0x7bcb[8]](function(){return _0x55a2x4[_0x7bcb[11]](204)})[_0x7bcb[5]](function(_0x55a2x5){return handleError(_0x55a2x4,_0x55a2x5)});})[_0x7bcb[5]](function(_0x55a2x5){return handleError(_0x55a2x4,_0x55a2x5)})};function handleError(_0x55a2x4,_0x55a2x5){return _0x55a2x4[_0x7bcb[7]](500)[_0x7bcb[6]](_0x55a2x5)}
\ No newline at end of file
-var _0x4a9f=["\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"];_0x4a9f[0];module[_0x4a9f[1]]=function(_0xe531x1,_0xe531x2){var _0xe531x3=_0xe531x1[_0x4a9f[3]](_0x4a9f[2],{name:String,info:String,active:Boolean});return _0xe531x3;};
\ No newline at end of file
+var _0xd111=["\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"];_0xd111[0];module[_0xd111[1]]=function(_0x8f24x1,_0x8f24x2){var _0x8f24x3=_0x8f24x1[_0xd111[3]](_0xd111[2],{name:String,info:String,active:Boolean});return _0x8f24x3;};
\ No newline at end of file
-var _0x5ded=["\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"];_0x5ded[0];var contact=require(_0x5ded[2])[_0x5ded[1]];exports[_0x5ded[3]]=function(_0x75b5x2){contact[_0x5ded[4]](function(_0x75b5x3){onSave(_0x75b5x2,_0x75b5x3)});contact[_0x5ded[5]](function(_0x75b5x3){onRemove(_0x75b5x2,_0x75b5x3)});};function onSave(_0x75b5x2,_0x75b5x3,_0x75b5x5){_0x75b5x2[_0x5ded[7]](_0x5ded[6],_0x75b5x3)}function onRemove(_0x75b5x2,_0x75b5x3,_0x75b5x5){_0x75b5x2[_0x5ded[7]](_0x5ded[8],_0x75b5x3)}
\ No newline at end of file
+var _0x5517=["\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"];_0x5517[0];var contact=require(_0x5517[2])[_0x5517[1]];exports[_0x5517[3]]=function(_0x144bx2){contact[_0x5517[4]](function(_0x144bx3){onSave(_0x144bx2,_0x144bx3)});contact[_0x5517[5]](function(_0x144bx3){onRemove(_0x144bx2,_0x144bx3)});};function onSave(_0x144bx2,_0x144bx3,_0x144bx5){_0x144bx2[_0x5517[7]](_0x5517[6],_0x144bx3)}function onRemove(_0x144bx2,_0x144bx3,_0x144bx5){_0x144bx2[_0x5517[7]](_0x5517[8],_0x144bx3)}
\ No newline at end of file
-var _0x84eb=["\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"];_0x84eb[0];var should=require(_0x84eb[1]);var app=require(_0x84eb[2]);var request=require(_0x84eb[3]);describe(_0x84eb[4],function(){it(_0x84eb[5],function(_0xda99x4){request(app)[_0x84eb[13]](_0x84eb[12])[_0x84eb[11]](200)[_0x84eb[11]](_0x84eb[10],/json/)[_0x84eb[9]](function(_0xda99x5,_0xda99x6){if(_0xda99x5){return _0xda99x4(_0xda99x5)};_0xda99x6[_0x84eb[8]][_0x84eb[1]][_0x84eb[7]][_0x84eb[6]](Array);_0xda99x4();})})});
\ No newline at end of file
+var _0xead4=["\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"];_0xead4[0];var should=require(_0xead4[1]);var app=require(_0xead4[2]);var request=require(_0xead4[3]);describe(_0xead4[4],function(){it(_0xead4[5],function(_0x8e2bx4){request(app)[_0xead4[13]](_0xead4[12])[_0xead4[11]](200)[_0xead4[11]](_0xead4[10],/json/)[_0xead4[9]](function(_0x8e2bx5,_0x8e2bx6){if(_0x8e2bx5){return _0x8e2bx4(_0x8e2bx5)};_0x8e2bx6[_0xead4[8]][_0xead4[1]][_0xead4[7]][_0xead4[6]](Array);_0x8e2bx4();})})});
\ No newline at end of file
-var _0xa480=["\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"];_0xa480[0];var express=require(_0xa480[1]);var controller=require(_0xa480[2]);var router=express.Router();router[_0xa480[5]](_0xa480[3],controller[_0xa480[4]]);router[_0xa480[5]](_0xa480[6],controller[_0xa480[7]]);router[_0xa480[9]](_0xa480[3],controller[_0xa480[8]]);router[_0xa480[11]](_0xa480[6],controller[_0xa480[10]]);router[_0xa480[12]](_0xa480[6],controller[_0xa480[10]]);router[_0xa480[14]](_0xa480[6],controller[_0xa480[13]]);module[_0xa480[15]]=router;
\ No newline at end of file
+var _0x968b=["\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"];_0x968b[0];var express=require(_0x968b[1]);var controller=require(_0x968b[2]);var router=express.Router();router[_0x968b[5]](_0x968b[3],controller[_0x968b[4]]);router[_0x968b[5]](_0x968b[6],controller[_0x968b[7]]);router[_0x968b[9]](_0x968b[3],controller[_0x968b[8]]);router[_0x968b[11]](_0x968b[6],controller[_0x968b[10]]);router[_0x968b[12]](_0x968b[6],controller[_0x968b[10]]);router[_0x968b[14]](_0x968b[6],controller[_0x968b[13]]);module[_0x968b[15]]=router;
\ No newline at end of file
-var _0x8183=["\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"];_0x8183[0];var _=require(_0x8183[1]);var Contact=require(_0x8183[3])[_0x8183[2]];var ContactPhone=require(_0x8183[3])[_0x8183[4]];var ContactEmail=require(_0x8183[3])[_0x8183[5]];var CustomField=require(_0x8183[3])[_0x8183[6]];var ReportCall=require(_0x8183[3])[_0x8183[7]];var ReportCallHistory=require(_0x8183[3])[_0x8183[9]][_0x8183[8]];var ReportMailSession=require(_0x8183[3])[_0x8183[10]];var ReportMailSessionHistory=require(_0x8183[3])[_0x8183[9]][_0x8183[11]];var Tag=require(_0x8183[3])[_0x8183[12]];var stream=require(_0x8183[13]);var sequelize=require(_0x8183[3])[_0x8183[14]];var util=require(_0x8183[15]);exports[_0x8183[16]]=function(_0xceb3xe,_0xceb3xf){var _0xceb3x10=[_0x8183[17],_0x8183[18],_0x8183[19]];var _0xceb3x11=_0xceb3xe[_0x8183[21]][_0x8183[20]]?parseInt(_0xceb3xe[_0x8183[21]][_0x8183[20]],10):100;var _0xceb3x12=_0xceb3xe[_0x8183[21]][_0x8183[22]]?parseInt(_0xceb3xe[_0x8183[21]][_0x8183[22]],10):0;var _0xceb3x13={where:{},limit:_0xceb3x11,offset:_0xceb3x12*_0xceb3x11};_[_0x8183[36]](_0xceb3xe[_0x8183[21]],function(_0xceb3x14,_0xceb3x15){switch(_0xceb3x15){case _0x8183[20]:;case _0x8183[22]:break ;;case _0x8183[25]:_0xceb3x13[_0x8183[23]]=util[_0x8183[28]](_0x8183[24],_0xceb3xe[_0x8183[21]][_0x8183[25]],_0xceb3xe[_0x8183[21]][_0x8183[26]]||_0x8183[27])||null;break ;;case _0x8183[26]:break ;;case _0x8183[34]:_0xceb3x13[_0x8183[30]][_0x8183[29]]=[];_0xceb3x10[_0x8183[33]](function(_0xceb3x16){var _0xceb3x17={};_0xceb3x17[_0xceb3x16]={$like:_0x8183[31]+_0xceb3x14+_0x8183[31]};_0xceb3x13[_0x8183[30]][_0x8183[29]][_0x8183[32]](_0xceb3x17);});break ;;default:_0xceb3x13[_0x8183[30]][_0xceb3x15]={$like:{}};_0xceb3x13[_0x8183[30]][_0xceb3x15][_0x8183[35]]=_0x8183[31]+_0xceb3x14+_0x8183[31];;}});Contact[_0x8183[51]](_0xceb3x13)[_0x8183[50]](function(_0xceb3x19){var _0xceb3x1a=Math[_0x8183[42]](_0xceb3x19[_0x8183[41]]/_0xceb3x11);var _0xceb3x1b=_0xceb3x1a>(_0xceb3x13[_0x8183[43]]+1)?util[_0x8183[28]](_0x8183[44],_0xceb3xe[_0x8183[45]],_0xceb3xe[_0x8183[47]][_0x8183[46]],_0xceb3xe[_0x8183[48]],_0xceb3x12+1):null;var _0xceb3x1c=_0xceb3x12>0?util[_0x8183[28]](_0x8183[44],_0xceb3xe[_0x8183[45]],_0xceb3xe[_0x8183[47]][_0x8183[46]],_0xceb3xe[_0x8183[48]],_0xceb3x12-1):null;_0xceb3xf[_0x8183[39]](200)[_0x8183[38]]({count:_0xceb3x19[_0x8183[41]],rows:_0xceb3x19[_0x8183[49]],next_page:_0xceb3x1b,previous_page:_0xceb3x1c,total_pages:_0xceb3x1a});})[_0x8183[40]](function(_0xceb3x18){_0xceb3xf[_0x8183[39]](500)[_0x8183[38]]({error:_0x8183[37]})});};exports[_0x8183[52]]=function(_0xceb3xe,_0xceb3xf){Contact[_0x8183[68]](_0xceb3xe[_0x8183[56]][_0x8183[55]],{include:[{model:ContactPhone,as:_0x8183[57],include:[{model:ReportCall,as:_0x8183[58],include:[{all:true}]},{model:ReportCall,as:_0x8183[59],include:[{all:true}]},{model:ReportCallHistory,as:_0x8183[60],include:[{all:true}]},{model:ReportCallHistory,as:_0x8183[61],include:[{all:true}]}]},{model:ContactEmail,as:_0x8183[62],include:[{model:ReportMailSession,as:_0x8183[63],include:[{all:true}]},{model:ReportMailSession,as:_0x8183[64],include:[{all:true}]},{model:ReportMailSessionHistory,as:_0x8183[65],include:[{all:true}]},{model:ReportMailSessionHistory,as:_0x8183[66],include:[{all:true}]}]},{model:CustomField,as:_0x8183[67]}]})[_0x8183[50]](function(_0xceb3x1d){if(!_0xceb3x1d){return _0xceb3xf[_0x8183[54]](404)};return _0xceb3xf[_0x8183[38]](_0xceb3x1d);})[_0x8183[40]](function(_0xceb3x18){console[_0x8183[53]](_0xceb3x18);return handleError(_0xceb3xf,_0xceb3x18);})};exports[_0x8183[69]]=function(_0xceb3xe,_0xceb3xf){};exports[_0x8183[70]]=function(_0xceb3xe,_0xceb3xf){Contact[_0x8183[74]]({where:{$or:{"\x24\x50\x68\x6F\x6E\x65\x73\x2E\x70\x68\x6F\x6E\x65\x24":_0xceb3xe[_0x8183[72]][_0x8183[71]],"\x24\x45\x6D\x61\x69\x6C\x73\x2E\x65\x6D\x61\x69\x6C\x24":_0xceb3xe[_0x8183[72]][_0x8183[73]]}},include:[{all:true}]})[_0x8183[50]](function(_0xceb3x1e){console[_0x8183[53]](_0xceb3x1e);return _0xceb3xf[_0x8183[39]](200)[_0x8183[38]](_0xceb3x1e);})[_0x8183[40]](function(_0xceb3x18){console[_0x8183[53]](_0xceb3x18);return handleError(_0xceb3xf,_0xceb3x18);})};exports[_0x8183[75]]=function(_0xceb3xe,_0xceb3xf,_0xceb3x1f){var _0xceb3x20=[],_0xceb3x21=[],_0xceb3x22={};Tag[_0x8183[74]]()[_0x8183[50]](function(_0xceb3x29){var _0xceb3x2a=[];var _0xceb3x2b=_[_0x8183[87]](_[_0x8183[87]](_0xceb3x29,_0x8183[90]),_0x8183[17]);if(_0xceb3xe[_0x8183[72]][_0x8183[91]]){var _0xceb3x2c=_0xceb3xe[_0x8183[72]][_0x8183[91]][_0x8183[93]](_0x8183[92]);_0xceb3x2c[_0x8183[33]](function(_0xceb3x25){if(!_[_0x8183[94]](_0xceb3x29,_0xceb3x25)){_0xceb3x2a[_0x8183[32]]({name:_0xceb3x25})}});if(_0xceb3x2a[_0x8183[95]]){Tag[_0x8183[96]](_0xceb3x2a,{individualHooks:true})};};_0xceb3xe[_0x8183[72]][_0x8183[97]]=_0xceb3xe[_0x8183[98]][_0x8183[55]];var _0xceb3x2d=_[_0x8183[88]](_[_0x8183[87]](_0xceb3xe[_0x8183[72]].Phones,_0x8183[99]));var _0xceb3x2e=[];_0xceb3x2d[_0x8183[33]](function(_0xceb3x25){_0xceb3x2e[_0x8183[32]](ContactPhone[_0x8183[89]]({where:{phone:_0xceb3x25},defaults:{phone:_0xceb3x25}}))});return _0xceb3x2e;})[_0x8183[85]]()[_0x8183[50]](function(_0xceb3xf){_0xceb3x20=_[_0x8183[82]](_0xceb3xf,function(_0xceb3x25){return _0xceb3x25[0]});var _0xceb3x27=[];var _0xceb3x28=_[_0x8183[88]](_[_0x8183[87]](_0xceb3xe[_0x8183[72]].Emails,_0x8183[86]));_0xceb3x28[_0x8183[33]](function(_0xceb3x25){_0xceb3x27[_0x8183[32]](ContactEmail[_0x8183[89]]({where:{email:_0xceb3x25},defaults:{email:_0xceb3x25}}))});return _0xceb3x27;})[_0x8183[85]]()[_0x8183[50]](function(_0xceb3xf){_0xceb3x21=_[_0x8183[82]](_0xceb3xf,function(_0xceb3x25){return _0xceb3x25[0]});delete _0xceb3xe[_0x8183[72]][_0x8183[57]];delete _0xceb3xe[_0x8183[72]][_0x8183[62]];_0xceb3x22=_[_0x8183[84]](_0xceb3xe[_0x8183[72]][_0x8183[83]]);delete _0xceb3xe[_0x8183[72]][_0x8183[83]];return Contact[_0x8183[75]](_0xceb3xe[_0x8183[72]]);})[_0x8183[50]](function(_0xceb3x23){return [_0xceb3x23,_0xceb3x23[_0x8183[81]](_0xceb3x20)]})[_0x8183[76]](function(_0xceb3x23){return [_0xceb3x23,_0xceb3x23[_0x8183[80]](_0xceb3x21)]})[_0x8183[76]](function(_0xceb3x23){var _0xceb3x26=_[_0x8183[79]](_0xceb3x22);return [_0xceb3x23,CustomField[_0x8183[74]]({where:{id:_0xceb3x26}})];})[_0x8183[76]](function(_0xceb3x23,_0xceb3x24){_0xceb3x24[_0x8183[33]](function(_0xceb3x25){_0xceb3x25[_0x8183[77]]={value:_0xceb3x22[String(_0xceb3x25[_0x8183[55]])]}});return [_0xceb3x23,_0xceb3x23[_0x8183[78]](_0xceb3x24)];})[_0x8183[76]](function(_0xceb3x23){return _0xceb3xf[_0x8183[39]](201)[_0x8183[38]](_0xceb3x23)})[_0x8183[40]](function(_0xceb3x18){console[_0x8183[53]](_0xceb3x18);return _0xceb3x1f(_0xceb3x18);});};exports[_0x8183[100]]=function(_0xceb3xe,_0xceb3xf,_0xceb3x1f){var _0xceb3x20=[],_0xceb3x21=[],_0xceb3x22={};Tag[_0x8183[74]]()[_0x8183[50]](function(_0xceb3x29){var _0xceb3x2a=[];var _0xceb3x2b=_[_0x8183[87]](_[_0x8183[87]](_0xceb3x29,_0x8183[90]),_0x8183[17]);if(_0xceb3xe[_0x8183[72]][_0x8183[91]]){var _0xceb3x2c=_0xceb3xe[_0x8183[72]][_0x8183[91]][_0x8183[93]](_0x8183[92]);_0xceb3x2c[_0x8183[33]](function(_0xceb3x25){if(!_[_0x8183[94]](_0xceb3x29,_0xceb3x25)){_0xceb3x2a[_0x8183[32]]({name:_0xceb3x25})}});if(_0xceb3x2a[_0x8183[95]]){Tag[_0x8183[96]](_0xceb3x2a,{individualHooks:true})};};var _0xceb3x2e=[];var _0xceb3x2d=_[_0x8183[88]](_[_0x8183[87]](_0xceb3xe[_0x8183[72]].Phones,_0x8183[99]));_0xceb3x2d[_0x8183[33]](function(_0xceb3x25){_0xceb3x2e[_0x8183[32]](ContactPhone[_0x8183[89]]({where:{phone:_0xceb3x25},defaults:{phone:_0xceb3x25}}))});return _0xceb3x2e;})[_0x8183[85]]()[_0x8183[50]](function(_0xceb3xf){_0xceb3x20=_[_0x8183[82]](_0xceb3xf,function(_0xceb3x25){return _0xceb3x25[0]});var _0xceb3x27=[];var _0xceb3x28=_[_0x8183[88]](_[_0x8183[87]](_0xceb3xe[_0x8183[72]].Emails,_0x8183[86]));_0xceb3x28[_0x8183[33]](function(_0xceb3x25){_0xceb3x27[_0x8183[32]](ContactEmail[_0x8183[89]]({where:{email:_0xceb3x25},defaults:{email:_0xceb3x25}}))});return _0xceb3x27;})[_0x8183[85]]()[_0x8183[50]](function(_0xceb3xf){_0xceb3x21=_[_0x8183[82]](_0xceb3xf,function(_0xceb3x25){return _0xceb3x25[0]});delete _0xceb3xe[_0x8183[72]][_0x8183[57]];delete _0xceb3xe[_0x8183[72]][_0x8183[62]];_0xceb3x22=_[_0x8183[84]](_0xceb3xe[_0x8183[72]][_0x8183[83]]);delete _0xceb3xe[_0x8183[72]][_0x8183[83]];delete _0xceb3xe[_0x8183[72]][_0x8183[67]];var _0xceb3x2f=_0xceb3xe[_0x8183[72]][_0x8183[55]];delete _0xceb3xe[_0x8183[72]][_0x8183[55]];return Contact[_0x8183[68]](_0xceb3x2f);})[_0x8183[50]](function(_0xceb3x23){return [_0xceb3x23,_0xceb3x23[_0x8183[81]](_0xceb3x20)]})[_0x8183[76]](function(_0xceb3x23){return [_0xceb3x23,_0xceb3x23[_0x8183[80]](_0xceb3x21)]})[_0x8183[76]](function(_0xceb3x23){var _0xceb3x26=_[_0x8183[79]](_0xceb3x22);return [_0xceb3x23,CustomField[_0x8183[74]]({where:{id:_0xceb3x26}})];})[_0x8183[76]](function(_0xceb3x23,_0xceb3x24){_0xceb3x24[_0x8183[33]](function(_0xceb3x25){_0xceb3x25[_0x8183[77]]={value:_0xceb3x22[String(_0xceb3x25[_0x8183[55]])]}});return [_0xceb3x23,_0xceb3x23[_0x8183[78]](_0xceb3x24)];})[_0x8183[76]](function(_0xceb3x23){return _0xceb3x23[_0x8183[101]](_0xceb3xe[_0x8183[72]])})[_0x8183[50]](function(_0xceb3x23){return _0xceb3xf[_0x8183[39]](200)[_0x8183[38]](_0xceb3x23)})[_0x8183[40]](function(_0xceb3x18){console[_0x8183[53]](_0xceb3x18);return handleError(_0xceb3xf,_0xceb3x18);});};exports[_0x8183[102]]=function(_0xceb3xe,_0xceb3xf){Contact[_0x8183[68]](_0xceb3xe[_0x8183[56]][_0x8183[55]])[_0x8183[50]](function(_0xceb3x1d){if(!_0xceb3x1d){return _0xceb3xf[_0x8183[54]](404)};_0xceb3x1d[_0x8183[102]]()[_0x8183[50]](function(){return _0xceb3xf[_0x8183[54]](204)})[_0x8183[40]](function(_0xceb3x18){return handleError(_0xceb3xf,_0xceb3x18)});})[_0x8183[40]](function(_0xceb3x18){return handleError(_0xceb3xf,_0xceb3x18)})};exports[_0x8183[103]]=function(_0xceb3xe,_0xceb3xf){Contact[_0x8183[102]]({where:{id:_0xceb3xe[_0x8183[21]][_0x8183[55]]},individualHooks:true})[_0x8183[50]](function(){return _0xceb3xf[_0x8183[54]](204)})[_0x8183[40]](function(_0xceb3x18){return handleError(_0xceb3xf,_0xceb3x18)})};function handleError(_0xceb3xf,_0xceb3x18){return _0xceb3xf[_0x8183[39]](500)[_0x8183[38]](_0xceb3x18)}
\ No newline at end of file
+var _0x1fb9=["\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"];_0x1fb9[0];var _=require(_0x1fb9[1]);var Contact=require(_0x1fb9[3])[_0x1fb9[2]];var ContactPhone=require(_0x1fb9[3])[_0x1fb9[4]];var ContactEmail=require(_0x1fb9[3])[_0x1fb9[5]];var CustomField=require(_0x1fb9[3])[_0x1fb9[6]];var ReportCall=require(_0x1fb9[3])[_0x1fb9[7]];var ReportCallHistory=require(_0x1fb9[3])[_0x1fb9[9]][_0x1fb9[8]];var ReportMailSession=require(_0x1fb9[3])[_0x1fb9[10]];var ReportMailSessionHistory=require(_0x1fb9[3])[_0x1fb9[9]][_0x1fb9[11]];var Tag=require(_0x1fb9[3])[_0x1fb9[12]];var stream=require(_0x1fb9[13]);var sequelize=require(_0x1fb9[3])[_0x1fb9[14]];var util=require(_0x1fb9[15]);exports[_0x1fb9[16]]=function(_0x4747xe,_0x4747xf){var _0x4747x10=[_0x1fb9[17],_0x1fb9[18],_0x1fb9[19]];var _0x4747x11=_0x4747xe[_0x1fb9[21]][_0x1fb9[20]]?parseInt(_0x4747xe[_0x1fb9[21]][_0x1fb9[20]],10):100;var _0x4747x12=_0x4747xe[_0x1fb9[21]][_0x1fb9[22]]?parseInt(_0x4747xe[_0x1fb9[21]][_0x1fb9[22]],10):0;var _0x4747x13={where:{},limit:_0x4747x11,offset:_0x4747x12*_0x4747x11};_[_0x1fb9[36]](_0x4747xe[_0x1fb9[21]],function(_0x4747x14,_0x4747x15){switch(_0x4747x15){case _0x1fb9[20]:;case _0x1fb9[22]:break ;;case _0x1fb9[25]:_0x4747x13[_0x1fb9[23]]=util[_0x1fb9[28]](_0x1fb9[24],_0x4747xe[_0x1fb9[21]][_0x1fb9[25]],_0x4747xe[_0x1fb9[21]][_0x1fb9[26]]||_0x1fb9[27])||null;break ;;case _0x1fb9[26]:break ;;case _0x1fb9[34]:_0x4747x13[_0x1fb9[30]][_0x1fb9[29]]=[];_0x4747x10[_0x1fb9[33]](function(_0x4747x16){var _0x4747x17={};_0x4747x17[_0x4747x16]={$like:_0x1fb9[31]+_0x4747x14+_0x1fb9[31]};_0x4747x13[_0x1fb9[30]][_0x1fb9[29]][_0x1fb9[32]](_0x4747x17);});break ;;default:_0x4747x13[_0x1fb9[30]][_0x4747x15]={$like:{}};_0x4747x13[_0x1fb9[30]][_0x4747x15][_0x1fb9[35]]=_0x1fb9[31]+_0x4747x14+_0x1fb9[31];;}});Contact[_0x1fb9[51]](_0x4747x13)[_0x1fb9[50]](function(_0x4747x19){var _0x4747x1a=Math[_0x1fb9[42]](_0x4747x19[_0x1fb9[41]]/_0x4747x11);var _0x4747x1b=_0x4747x1a>(_0x4747x13[_0x1fb9[43]]+1)?util[_0x1fb9[28]](_0x1fb9[44],_0x4747xe[_0x1fb9[45]],_0x4747xe[_0x1fb9[47]][_0x1fb9[46]],_0x4747xe[_0x1fb9[48]],_0x4747x12+1):null;var _0x4747x1c=_0x4747x12>0?util[_0x1fb9[28]](_0x1fb9[44],_0x4747xe[_0x1fb9[45]],_0x4747xe[_0x1fb9[47]][_0x1fb9[46]],_0x4747xe[_0x1fb9[48]],_0x4747x12-1):null;_0x4747xf[_0x1fb9[39]](200)[_0x1fb9[38]]({count:_0x4747x19[_0x1fb9[41]],rows:_0x4747x19[_0x1fb9[49]],next_page:_0x4747x1b,previous_page:_0x4747x1c,total_pages:_0x4747x1a});})[_0x1fb9[40]](function(_0x4747x18){_0x4747xf[_0x1fb9[39]](500)[_0x1fb9[38]]({error:_0x1fb9[37]})});};exports[_0x1fb9[52]]=function(_0x4747xe,_0x4747xf){Contact[_0x1fb9[68]](_0x4747xe[_0x1fb9[56]][_0x1fb9[55]],{include:[{model:ContactPhone,as:_0x1fb9[57],include:[{model:ReportCall,as:_0x1fb9[58],include:[{all:true}]},{model:ReportCall,as:_0x1fb9[59],include:[{all:true}]},{model:ReportCallHistory,as:_0x1fb9[60],include:[{all:true}]},{model:ReportCallHistory,as:_0x1fb9[61],include:[{all:true}]}]},{model:ContactEmail,as:_0x1fb9[62],include:[{model:ReportMailSession,as:_0x1fb9[63],include:[{all:true}]},{model:ReportMailSession,as:_0x1fb9[64],include:[{all:true}]},{model:ReportMailSessionHistory,as:_0x1fb9[65],include:[{all:true}]},{model:ReportMailSessionHistory,as:_0x1fb9[66],include:[{all:true}]}]},{model:CustomField,as:_0x1fb9[67]}]})[_0x1fb9[50]](function(_0x4747x1d){if(!_0x4747x1d){return _0x4747xf[_0x1fb9[54]](404)};return _0x4747xf[_0x1fb9[38]](_0x4747x1d);})[_0x1fb9[40]](function(_0x4747x18){console[_0x1fb9[53]](_0x4747x18);return handleError(_0x4747xf,_0x4747x18);})};exports[_0x1fb9[69]]=function(_0x4747xe,_0x4747xf){};exports[_0x1fb9[70]]=function(_0x4747xe,_0x4747xf){Contact[_0x1fb9[74]]({where:{$or:{"\x24\x50\x68\x6F\x6E\x65\x73\x2E\x70\x68\x6F\x6E\x65\x24":_0x4747xe[_0x1fb9[72]][_0x1fb9[71]],"\x24\x45\x6D\x61\x69\x6C\x73\x2E\x65\x6D\x61\x69\x6C\x24":_0x4747xe[_0x1fb9[72]][_0x1fb9[73]]}},include:[{all:true}]})[_0x1fb9[50]](function(_0x4747x1e){console[_0x1fb9[53]](_0x4747x1e);return _0x4747xf[_0x1fb9[39]](200)[_0x1fb9[38]](_0x4747x1e);})[_0x1fb9[40]](function(_0x4747x18){console[_0x1fb9[53]](_0x4747x18);return handleError(_0x4747xf,_0x4747x18);})};exports[_0x1fb9[75]]=function(_0x4747xe,_0x4747xf,_0x4747x1f){var _0x4747x20=[],_0x4747x21=[],_0x4747x22={};Tag[_0x1fb9[74]]()[_0x1fb9[50]](function(_0x4747x29){var _0x4747x2a=[];var _0x4747x2b=_[_0x1fb9[87]](_[_0x1fb9[87]](_0x4747x29,_0x1fb9[90]),_0x1fb9[17]);if(_0x4747xe[_0x1fb9[72]][_0x1fb9[91]]){var _0x4747x2c=_0x4747xe[_0x1fb9[72]][_0x1fb9[91]][_0x1fb9[93]](_0x1fb9[92]);_0x4747x2c[_0x1fb9[33]](function(_0x4747x25){if(!_[_0x1fb9[94]](_0x4747x29,_0x4747x25)){_0x4747x2a[_0x1fb9[32]]({name:_0x4747x25})}});if(_0x4747x2a[_0x1fb9[95]]){Tag[_0x1fb9[96]](_0x4747x2a,{individualHooks:true})};};_0x4747xe[_0x1fb9[72]][_0x1fb9[97]]=_0x4747xe[_0x1fb9[98]][_0x1fb9[55]];var _0x4747x2d=_[_0x1fb9[88]](_[_0x1fb9[87]](_0x4747xe[_0x1fb9[72]].Phones,_0x1fb9[99]));var _0x4747x2e=[];_0x4747x2d[_0x1fb9[33]](function(_0x4747x25){_0x4747x2e[_0x1fb9[32]](ContactPhone[_0x1fb9[89]]({where:{phone:_0x4747x25},defaults:{phone:_0x4747x25}}))});return _0x4747x2e;})[_0x1fb9[85]]()[_0x1fb9[50]](function(_0x4747xf){_0x4747x20=_[_0x1fb9[82]](_0x4747xf,function(_0x4747x25){return _0x4747x25[0]});var _0x4747x27=[];var _0x4747x28=_[_0x1fb9[88]](_[_0x1fb9[87]](_0x4747xe[_0x1fb9[72]].Emails,_0x1fb9[86]));_0x4747x28[_0x1fb9[33]](function(_0x4747x25){_0x4747x27[_0x1fb9[32]](ContactEmail[_0x1fb9[89]]({where:{email:_0x4747x25},defaults:{email:_0x4747x25}}))});return _0x4747x27;})[_0x1fb9[85]]()[_0x1fb9[50]](function(_0x4747xf){_0x4747x21=_[_0x1fb9[82]](_0x4747xf,function(_0x4747x25){return _0x4747x25[0]});delete _0x4747xe[_0x1fb9[72]][_0x1fb9[57]];delete _0x4747xe[_0x1fb9[72]][_0x1fb9[62]];_0x4747x22=_[_0x1fb9[84]](_0x4747xe[_0x1fb9[72]][_0x1fb9[83]]);delete _0x4747xe[_0x1fb9[72]][_0x1fb9[83]];return Contact[_0x1fb9[75]](_0x4747xe[_0x1fb9[72]]);})[_0x1fb9[50]](function(_0x4747x23){return [_0x4747x23,_0x4747x23[_0x1fb9[81]](_0x4747x20)]})[_0x1fb9[76]](function(_0x4747x23){return [_0x4747x23,_0x4747x23[_0x1fb9[80]](_0x4747x21)]})[_0x1fb9[76]](function(_0x4747x23){var _0x4747x26=_[_0x1fb9[79]](_0x4747x22);return [_0x4747x23,CustomField[_0x1fb9[74]]({where:{id:_0x4747x26}})];})[_0x1fb9[76]](function(_0x4747x23,_0x4747x24){_0x4747x24[_0x1fb9[33]](function(_0x4747x25){_0x4747x25[_0x1fb9[77]]={value:_0x4747x22[String(_0x4747x25[_0x1fb9[55]])]}});return [_0x4747x23,_0x4747x23[_0x1fb9[78]](_0x4747x24)];})[_0x1fb9[76]](function(_0x4747x23){return _0x4747xf[_0x1fb9[39]](201)[_0x1fb9[38]](_0x4747x23)})[_0x1fb9[40]](function(_0x4747x18){console[_0x1fb9[53]](_0x4747x18);return _0x4747x1f(_0x4747x18);});};exports[_0x1fb9[100]]=function(_0x4747xe,_0x4747xf,_0x4747x1f){var _0x4747x20=[],_0x4747x21=[],_0x4747x22={};Tag[_0x1fb9[74]]()[_0x1fb9[50]](function(_0x4747x29){var _0x4747x2a=[];var _0x4747x2b=_[_0x1fb9[87]](_[_0x1fb9[87]](_0x4747x29,_0x1fb9[90]),_0x1fb9[17]);if(_0x4747xe[_0x1fb9[72]][_0x1fb9[91]]){var _0x4747x2c=_0x4747xe[_0x1fb9[72]][_0x1fb9[91]][_0x1fb9[93]](_0x1fb9[92]);_0x4747x2c[_0x1fb9[33]](function(_0x4747x25){if(!_[_0x1fb9[94]](_0x4747x29,_0x4747x25)){_0x4747x2a[_0x1fb9[32]]({name:_0x4747x25})}});if(_0x4747x2a[_0x1fb9[95]]){Tag[_0x1fb9[96]](_0x4747x2a,{individualHooks:true})};};var _0x4747x2e=[];var _0x4747x2d=_[_0x1fb9[88]](_[_0x1fb9[87]](_0x4747xe[_0x1fb9[72]].Phones,_0x1fb9[99]));_0x4747x2d[_0x1fb9[33]](function(_0x4747x25){_0x4747x2e[_0x1fb9[32]](ContactPhone[_0x1fb9[89]]({where:{phone:_0x4747x25},defaults:{phone:_0x4747x25}}))});return _0x4747x2e;})[_0x1fb9[85]]()[_0x1fb9[50]](function(_0x4747xf){_0x4747x20=_[_0x1fb9[82]](_0x4747xf,function(_0x4747x25){return _0x4747x25[0]});var _0x4747x27=[];var _0x4747x28=_[_0x1fb9[88]](_[_0x1fb9[87]](_0x4747xe[_0x1fb9[72]].Emails,_0x1fb9[86]));_0x4747x28[_0x1fb9[33]](function(_0x4747x25){_0x4747x27[_0x1fb9[32]](ContactEmail[_0x1fb9[89]]({where:{email:_0x4747x25},defaults:{email:_0x4747x25}}))});return _0x4747x27;})[_0x1fb9[85]]()[_0x1fb9[50]](function(_0x4747xf){_0x4747x21=_[_0x1fb9[82]](_0x4747xf,function(_0x4747x25){return _0x4747x25[0]});delete _0x4747xe[_0x1fb9[72]][_0x1fb9[57]];delete _0x4747xe[_0x1fb9[72]][_0x1fb9[62]];_0x4747x22=_[_0x1fb9[84]](_0x4747xe[_0x1fb9[72]][_0x1fb9[83]]);delete _0x4747xe[_0x1fb9[72]][_0x1fb9[83]];delete _0x4747xe[_0x1fb9[72]][_0x1fb9[67]];var _0x4747x2f=_0x4747xe[_0x1fb9[72]][_0x1fb9[55]];delete _0x4747xe[_0x1fb9[72]][_0x1fb9[55]];return Contact[_0x1fb9[68]](_0x4747x2f);})[_0x1fb9[50]](function(_0x4747x23){return [_0x4747x23,_0x4747x23[_0x1fb9[81]](_0x4747x20)]})[_0x1fb9[76]](function(_0x4747x23){return [_0x4747x23,_0x4747x23[_0x1fb9[80]](_0x4747x21)]})[_0x1fb9[76]](function(_0x4747x23){var _0x4747x26=_[_0x1fb9[79]](_0x4747x22);return [_0x4747x23,CustomField[_0x1fb9[74]]({where:{id:_0x4747x26}})];})[_0x1fb9[76]](function(_0x4747x23,_0x4747x24){_0x4747x24[_0x1fb9[33]](function(_0x4747x25){_0x4747x25[_0x1fb9[77]]={value:_0x4747x22[String(_0x4747x25[_0x1fb9[55]])]}});return [_0x4747x23,_0x4747x23[_0x1fb9[78]](_0x4747x24)];})[_0x1fb9[76]](function(_0x4747x23){return _0x4747x23[_0x1fb9[101]](_0x4747xe[_0x1fb9[72]])})[_0x1fb9[50]](function(_0x4747x23){return _0x4747xf[_0x1fb9[39]](200)[_0x1fb9[38]](_0x4747x23)})[_0x1fb9[40]](function(_0x4747x18){console[_0x1fb9[53]](_0x4747x18);return handleError(_0x4747xf,_0x4747x18);});};exports[_0x1fb9[102]]=function(_0x4747xe,_0x4747xf){Contact[_0x1fb9[68]](_0x4747xe[_0x1fb9[56]][_0x1fb9[55]])[_0x1fb9[50]](function(_0x4747x1d){if(!_0x4747x1d){return _0x4747xf[_0x1fb9[54]](404)};_0x4747x1d[_0x1fb9[102]]()[_0x1fb9[50]](function(){return _0x4747xf[_0x1fb9[54]](204)})[_0x1fb9[40]](function(_0x4747x18){return handleError(_0x4747xf,_0x4747x18)});})[_0x1fb9[40]](function(_0x4747x18){return handleError(_0x4747xf,_0x4747x18)})};exports[_0x1fb9[103]]=function(_0x4747xe,_0x4747xf){Contact[_0x1fb9[102]]({where:{id:_0x4747xe[_0x1fb9[21]][_0x1fb9[55]]},individualHooks:true})[_0x1fb9[50]](function(){return _0x4747xf[_0x1fb9[54]](204)})[_0x1fb9[40]](function(_0x4747x18){return handleError(_0x4747xf,_0x4747x18)})};function handleError(_0x4747xf,_0x4747x18){return _0x4747xf[_0x1fb9[39]](500)[_0x1fb9[38]](_0x4747x18)}
\ No newline at end of file
-var _0x72e7=["\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"];_0x72e7[0];var Contact=require(_0x72e7[2])[_0x72e7[1]];exports[_0x72e7[3]]=function(_0x1e11x2){Contact[_0x72e7[4]](function(_0x1e11x3){onSave(_0x1e11x2,_0x1e11x3)});Contact[_0x72e7[5]](function(_0x1e11x3){onRemove(_0x1e11x2,_0x1e11x3)});};function onSave(_0x1e11x2,_0x1e11x3,_0x1e11x5){_0x1e11x2[_0x72e7[7]](_0x72e7[6],_0x1e11x3)}function onRemove(_0x1e11x2,_0x1e11x3,_0x1e11x5){_0x1e11x2[_0x72e7[7]](_0x72e7[8],_0x1e11x3)}
\ No newline at end of file
+var _0x7317=["\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"];_0x7317[0];var Contact=require(_0x7317[2])[_0x7317[1]];exports[_0x7317[3]]=function(_0xb77cx2){Contact[_0x7317[4]](function(_0xb77cx3){onSave(_0xb77cx2,_0xb77cx3)});Contact[_0x7317[5]](function(_0xb77cx3){onRemove(_0xb77cx2,_0xb77cx3)});};function onSave(_0xb77cx2,_0xb77cx3,_0xb77cx5){_0xb77cx2[_0x7317[7]](_0x7317[6],_0xb77cx3)}function onRemove(_0xb77cx2,_0xb77cx3,_0xb77cx5){_0xb77cx2[_0x7317[7]](_0x7317[8],_0xb77cx3)}
\ No newline at end of file
-var _0x418e=["\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"];_0x418e[0];var should=require(_0x418e[1]);var app=require(_0x418e[2]);var request=require(_0x418e[3]);describe(_0x418e[4],function(){it(_0x418e[5],function(_0x180fx4){request(app)[_0x418e[13]](_0x418e[12])[_0x418e[11]](200)[_0x418e[11]](_0x418e[10],/json/)[_0x418e[9]](function(_0x180fx5,_0x180fx6){if(_0x180fx5){return _0x180fx4(_0x180fx5)};_0x180fx6[_0x418e[8]][_0x418e[1]][_0x418e[7]][_0x418e[6]](Array);_0x180fx4();})})});
\ No newline at end of file
+var _0x887a=["\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"];_0x887a[0];var should=require(_0x887a[1]);var app=require(_0x887a[2]);var request=require(_0x887a[3]);describe(_0x887a[4],function(){it(_0x887a[5],function(_0x4ea1x4){request(app)[_0x887a[13]](_0x887a[12])[_0x887a[11]](200)[_0x887a[11]](_0x887a[10],/json/)[_0x887a[9]](function(_0x4ea1x5,_0x4ea1x6){if(_0x4ea1x5){return _0x4ea1x4(_0x4ea1x5)};_0x4ea1x6[_0x887a[8]][_0x887a[1]][_0x887a[7]][_0x887a[6]](Array);_0x4ea1x4();})})});
\ No newline at end of file
-var _0xe4a4=["\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"];_0xe4a4[0];var express=require(_0xe4a4[1]);var controller=require(_0xe4a4[2]);var auth=require(_0xe4a4[3]);var router=express.Router();router[_0xe4a4[7]](_0xe4a4[4],auth[_0xe4a4[5]](),controller[_0xe4a4[6]]);router[_0xe4a4[7]](_0xe4a4[8],auth[_0xe4a4[5]](),controller[_0xe4a4[9]]);router[_0xe4a4[7]](_0xe4a4[10],auth[_0xe4a4[5]](),controller[_0xe4a4[11]]);router[_0xe4a4[13]](_0xe4a4[4],auth[_0xe4a4[5]](),controller[_0xe4a4[12]]);router[_0xe4a4[13]](_0xe4a4[14],auth[_0xe4a4[5]](),controller[_0xe4a4[15]]);router[_0xe4a4[17]](_0xe4a4[8],auth[_0xe4a4[5]](),controller[_0xe4a4[16]]);router[_0xe4a4[18]](_0xe4a4[8],auth[_0xe4a4[5]](),controller[_0xe4a4[16]]);router[_0xe4a4[20]](_0xe4a4[4],auth[_0xe4a4[5]](),controller[_0xe4a4[19]]);router[_0xe4a4[20]](_0xe4a4[8],auth[_0xe4a4[5]](),controller[_0xe4a4[21]]);module[_0xe4a4[22]]=router;
\ No newline at end of file
+var _0x9128=["\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"];_0x9128[0];var express=require(_0x9128[1]);var controller=require(_0x9128[2]);var auth=require(_0x9128[3]);var router=express.Router();router[_0x9128[7]](_0x9128[4],auth[_0x9128[5]](),controller[_0x9128[6]]);router[_0x9128[7]](_0x9128[8],auth[_0x9128[5]](),controller[_0x9128[9]]);router[_0x9128[7]](_0x9128[10],auth[_0x9128[5]](),controller[_0x9128[11]]);router[_0x9128[13]](_0x9128[4],auth[_0x9128[5]](),controller[_0x9128[12]]);router[_0x9128[13]](_0x9128[14],auth[_0x9128[5]](),controller[_0x9128[15]]);router[_0x9128[17]](_0x9128[8],auth[_0x9128[5]](),controller[_0x9128[16]]);router[_0x9128[18]](_0x9128[8],auth[_0x9128[5]](),controller[_0x9128[16]]);router[_0x9128[20]](_0x9128[4],auth[_0x9128[5]](),controller[_0x9128[19]]);router[_0x9128[20]](_0x9128[8],auth[_0x9128[5]](),controller[_0x9128[21]]);module[_0x9128[22]]=router;
\ No newline at end of file
-var _0x74e2=["\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"];_0x74e2[0];var _=require(_0x74e2[1]);var CustomField=require(_0x74e2[3])[_0x74e2[2]];var util=require(_0x74e2[4]);exports[_0x74e2[5]]=function(_0xfa68x4,_0xfa68x5){var _0xfa68x6=[_0x74e2[6],_0x74e2[7]];var _0xfa68x7=_0xfa68x4[_0x74e2[9]][_0x74e2[8]]?parseInt(_0xfa68x4[_0x74e2[9]][_0x74e2[8]],10):100;var _0xfa68x8=_0xfa68x4[_0x74e2[9]][_0x74e2[10]]?parseInt(_0xfa68x4[_0x74e2[9]][_0x74e2[10]],10):0;var _0xfa68x9={where:{active:true},limit:_0xfa68x7,offset:_0xfa68x8*_0xfa68x7};_[_0x74e2[24]](_0xfa68x4[_0x74e2[9]],function(_0xfa68xa,_0xfa68xb){switch(_0xfa68xb){case _0x74e2[8]:;case _0x74e2[10]:break ;;case _0x74e2[13]:_0xfa68x9[_0x74e2[11]]=util[_0x74e2[16]](_0x74e2[12],_0xfa68x4[_0x74e2[9]][_0x74e2[13]],_0xfa68x4[_0x74e2[9]][_0x74e2[14]]||_0x74e2[15])||null;break ;;case _0x74e2[14]:break ;;case _0x74e2[22]:_0xfa68x9[_0x74e2[18]][_0x74e2[17]]=[];_0xfa68x6[_0x74e2[21]](function(_0xfa68xc){var _0xfa68xd={};_0xfa68xd[_0xfa68xc]={$like:_0x74e2[19]+_0xfa68xa+_0x74e2[19]};_0xfa68x9[_0x74e2[18]][_0x74e2[17]][_0x74e2[20]](_0xfa68xd);});break ;;default:_0xfa68x9[_0x74e2[18]][_0xfa68xb]={$like:{}};_0xfa68x9[_0x74e2[18]][_0xfa68xb][_0x74e2[23]]=_0x74e2[19]+_0xfa68xa+_0x74e2[19];;}});CustomField[_0x74e2[39]](_0xfa68x9)[_0x74e2[38]](function(_0xfa68xf){var _0xfa68x10=Math[_0x74e2[30]](_0xfa68xf[_0x74e2[29]]/_0xfa68x7);var _0xfa68x11=_0xfa68x10>(_0xfa68x9[_0x74e2[31]]+1)?util[_0x74e2[16]](_0x74e2[32],_0xfa68x4[_0x74e2[33]],_0xfa68x4[_0x74e2[35]][_0x74e2[34]],_0xfa68x4[_0x74e2[36]],_0xfa68x8+1):null;var _0xfa68x12=_0xfa68x8>0?util[_0x74e2[16]](_0x74e2[32],_0xfa68x4[_0x74e2[33]],_0xfa68x4[_0x74e2[35]][_0x74e2[34]],_0xfa68x4[_0x74e2[36]],_0xfa68x8-1):null;_0xfa68x5[_0x74e2[27]](200)[_0x74e2[26]]({count:_0xfa68xf[_0x74e2[29]],rows:_0xfa68xf[_0x74e2[37]],next_page:_0xfa68x11,previous_page:_0xfa68x12,total_pages:_0xfa68x10});})[_0x74e2[28]](function(_0xfa68xe){_0xfa68x5[_0x74e2[27]](500)[_0x74e2[26]]({error:_0x74e2[25]})});};exports[_0x74e2[40]]=function(_0xfa68x4,_0xfa68x5){CustomField[_0x74e2[41]]()[_0x74e2[38]](function(_0xfa68x13){return _0xfa68x5[_0x74e2[27]](200)[_0x74e2[26]](_0xfa68x13)})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)})};exports[_0x74e2[42]]=function(_0xfa68x4,_0xfa68x5){console[_0x74e2[44]](_0xfa68x4[_0x74e2[43]]);CustomField[_0x74e2[41]]({where:{name:_0xfa68x4[_0x74e2[43]][_0x74e2[6]]}})[_0x74e2[38]](function(_0xfa68x13){if(!_0xfa68x13){return _0xfa68x5[_0x74e2[45]](404)};return _0xfa68x5[_0x74e2[26]](_0xfa68x13);})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)});};exports[_0x74e2[46]]=function(_0xfa68x4,_0xfa68x5){CustomField[_0x74e2[49]](_0xfa68x4[_0x74e2[48]][_0x74e2[47]])[_0x74e2[38]](function(_0xfa68x14){if(!_0xfa68x14){return _0xfa68x5[_0x74e2[45]](404)};return _0xfa68x5[_0x74e2[26]](_0xfa68x14);})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)})};exports[_0x74e2[50]]=function(_0xfa68x4,_0xfa68x5){CustomField[_0x74e2[50]](_0xfa68x4[_0x74e2[43]])[_0x74e2[38]](function(_0xfa68x14){return _0xfa68x5[_0x74e2[27]](201)[_0x74e2[26]](_0xfa68x14)})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)})};exports[_0x74e2[51]]=function(_0xfa68x4,_0xfa68x5){CustomField[_0x74e2[41]]({where:{name:_0xfa68x4[_0x74e2[43]][_0x74e2[6]],id:{$ne:_0xfa68x4[_0x74e2[43]][_0x74e2[47]]}}})[_0x74e2[38]](function(_0xfa68x13){if(!_0xfa68x13){return _0xfa68x5[_0x74e2[45]](404)};if(_0xfa68x13[_0x74e2[52]]>0){return _0xfa68x5[_0x74e2[27]](500)[_0x74e2[26]]({message:_0x74e2[53]})};if(_0xfa68x4[_0x74e2[43]][_0x74e2[47]]){delete _0xfa68x4[_0x74e2[43]][_0x74e2[47]]};CustomField[_0x74e2[49]](_0xfa68x4[_0x74e2[48]][_0x74e2[47]])[_0x74e2[38]](function(_0xfa68x14){if(!_0xfa68x14){return _0xfa68x5[_0x74e2[45]](404)};var _0xfa68x15=_[_0x74e2[54]](_0xfa68x14,_0xfa68x4[_0x74e2[43]]);_0xfa68x15[_0x74e2[55]]()[_0x74e2[38]](function(){return _0xfa68x5[_0x74e2[27]](200)[_0x74e2[26]](_0xfa68x14)})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)});})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)});})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)})};exports[_0x74e2[56]]=function(_0xfa68x4,_0xfa68x5){CustomField[_0x74e2[49]](_0xfa68x4[_0x74e2[48]][_0x74e2[47]])[_0x74e2[38]](function(_0xfa68x14){if(!_0xfa68x14){return _0xfa68x5[_0x74e2[45]](404)};_0xfa68x14[_0x74e2[51]]({active:false})[_0x74e2[38]](function(){return _0xfa68x5[_0x74e2[45]](204)})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)});})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)})};exports[_0x74e2[57]]=function(_0xfa68x4,_0xfa68x5){CustomField[_0x74e2[51]]({active:false},{where:{id:_0xfa68x4[_0x74e2[9]][_0x74e2[47]]},individualHooks:true})[_0x74e2[38]](function(){return _0xfa68x5[_0x74e2[45]](204)})[_0x74e2[28]](function(_0xfa68xe){return handleError(_0xfa68x5,_0xfa68xe)})};function handleError(_0xfa68x5,_0xfa68xe){return _0xfa68x5[_0x74e2[27]](500)[_0x74e2[26]](_0xfa68xe)}
\ No newline at end of file
+var _0x3ca8=["\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"];_0x3ca8[0];var _=require(_0x3ca8[1]);var CustomField=require(_0x3ca8[3])[_0x3ca8[2]];var util=require(_0x3ca8[4]);exports[_0x3ca8[5]]=function(_0x30abx4,_0x30abx5){var _0x30abx6=[_0x3ca8[6],_0x3ca8[7]];var _0x30abx7=_0x30abx4[_0x3ca8[9]][_0x3ca8[8]]?parseInt(_0x30abx4[_0x3ca8[9]][_0x3ca8[8]],10):100;var _0x30abx8=_0x30abx4[_0x3ca8[9]][_0x3ca8[10]]?parseInt(_0x30abx4[_0x3ca8[9]][_0x3ca8[10]],10):0;var _0x30abx9={where:{active:true},limit:_0x30abx7,offset:_0x30abx8*_0x30abx7};_[_0x3ca8[24]](_0x30abx4[_0x3ca8[9]],function(_0x30abxa,_0x30abxb){switch(_0x30abxb){case _0x3ca8[8]:;case _0x3ca8[10]:break ;;case _0x3ca8[13]:_0x30abx9[_0x3ca8[11]]=util[_0x3ca8[16]](_0x3ca8[12],_0x30abx4[_0x3ca8[9]][_0x3ca8[13]],_0x30abx4[_0x3ca8[9]][_0x3ca8[14]]||_0x3ca8[15])||null;break ;;case _0x3ca8[14]:break ;;case _0x3ca8[22]:_0x30abx9[_0x3ca8[18]][_0x3ca8[17]]=[];_0x30abx6[_0x3ca8[21]](function(_0x30abxc){var _0x30abxd={};_0x30abxd[_0x30abxc]={$like:_0x3ca8[19]+_0x30abxa+_0x3ca8[19]};_0x30abx9[_0x3ca8[18]][_0x3ca8[17]][_0x3ca8[20]](_0x30abxd);});break ;;default:_0x30abx9[_0x3ca8[18]][_0x30abxb]={$like:{}};_0x30abx9[_0x3ca8[18]][_0x30abxb][_0x3ca8[23]]=_0x3ca8[19]+_0x30abxa+_0x3ca8[19];;}});CustomField[_0x3ca8[39]](_0x30abx9)[_0x3ca8[38]](function(_0x30abxf){var _0x30abx10=Math[_0x3ca8[30]](_0x30abxf[_0x3ca8[29]]/_0x30abx7);var _0x30abx11=_0x30abx10>(_0x30abx9[_0x3ca8[31]]+1)?util[_0x3ca8[16]](_0x3ca8[32],_0x30abx4[_0x3ca8[33]],_0x30abx4[_0x3ca8[35]][_0x3ca8[34]],_0x30abx4[_0x3ca8[36]],_0x30abx8+1):null;var _0x30abx12=_0x30abx8>0?util[_0x3ca8[16]](_0x3ca8[32],_0x30abx4[_0x3ca8[33]],_0x30abx4[_0x3ca8[35]][_0x3ca8[34]],_0x30abx4[_0x3ca8[36]],_0x30abx8-1):null;_0x30abx5[_0x3ca8[27]](200)[_0x3ca8[26]]({count:_0x30abxf[_0x3ca8[29]],rows:_0x30abxf[_0x3ca8[37]],next_page:_0x30abx11,previous_page:_0x30abx12,total_pages:_0x30abx10});})[_0x3ca8[28]](function(_0x30abxe){_0x30abx5[_0x3ca8[27]](500)[_0x3ca8[26]]({error:_0x3ca8[25]})});};exports[_0x3ca8[40]]=function(_0x30abx4,_0x30abx5){CustomField[_0x3ca8[41]]()[_0x3ca8[38]](function(_0x30abx13){return _0x30abx5[_0x3ca8[27]](200)[_0x3ca8[26]](_0x30abx13)})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)})};exports[_0x3ca8[42]]=function(_0x30abx4,_0x30abx5){console[_0x3ca8[44]](_0x30abx4[_0x3ca8[43]]);CustomField[_0x3ca8[41]]({where:{name:_0x30abx4[_0x3ca8[43]][_0x3ca8[6]]}})[_0x3ca8[38]](function(_0x30abx13){if(!_0x30abx13){return _0x30abx5[_0x3ca8[45]](404)};return _0x30abx5[_0x3ca8[26]](_0x30abx13);})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)});};exports[_0x3ca8[46]]=function(_0x30abx4,_0x30abx5){CustomField[_0x3ca8[49]](_0x30abx4[_0x3ca8[48]][_0x3ca8[47]])[_0x3ca8[38]](function(_0x30abx14){if(!_0x30abx14){return _0x30abx5[_0x3ca8[45]](404)};return _0x30abx5[_0x3ca8[26]](_0x30abx14);})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)})};exports[_0x3ca8[50]]=function(_0x30abx4,_0x30abx5){CustomField[_0x3ca8[50]](_0x30abx4[_0x3ca8[43]])[_0x3ca8[38]](function(_0x30abx14){return _0x30abx5[_0x3ca8[27]](201)[_0x3ca8[26]](_0x30abx14)})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)})};exports[_0x3ca8[51]]=function(_0x30abx4,_0x30abx5){CustomField[_0x3ca8[41]]({where:{name:_0x30abx4[_0x3ca8[43]][_0x3ca8[6]],id:{$ne:_0x30abx4[_0x3ca8[43]][_0x3ca8[47]]}}})[_0x3ca8[38]](function(_0x30abx13){if(!_0x30abx13){return _0x30abx5[_0x3ca8[45]](404)};if(_0x30abx13[_0x3ca8[52]]>0){return _0x30abx5[_0x3ca8[27]](500)[_0x3ca8[26]]({message:_0x3ca8[53]})};if(_0x30abx4[_0x3ca8[43]][_0x3ca8[47]]){delete _0x30abx4[_0x3ca8[43]][_0x3ca8[47]]};CustomField[_0x3ca8[49]](_0x30abx4[_0x3ca8[48]][_0x3ca8[47]])[_0x3ca8[38]](function(_0x30abx14){if(!_0x30abx14){return _0x30abx5[_0x3ca8[45]](404)};var _0x30abx15=_[_0x3ca8[54]](_0x30abx14,_0x30abx4[_0x3ca8[43]]);_0x30abx15[_0x3ca8[55]]()[_0x3ca8[38]](function(){return _0x30abx5[_0x3ca8[27]](200)[_0x3ca8[26]](_0x30abx14)})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)});})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)});})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)})};exports[_0x3ca8[56]]=function(_0x30abx4,_0x30abx5){CustomField[_0x3ca8[49]](_0x30abx4[_0x3ca8[48]][_0x3ca8[47]])[_0x3ca8[38]](function(_0x30abx14){if(!_0x30abx14){return _0x30abx5[_0x3ca8[45]](404)};_0x30abx14[_0x3ca8[51]]({active:false})[_0x3ca8[38]](function(){return _0x30abx5[_0x3ca8[45]](204)})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)});})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)})};exports[_0x3ca8[57]]=function(_0x30abx4,_0x30abx5){CustomField[_0x3ca8[51]]({active:false},{where:{id:_0x30abx4[_0x3ca8[9]][_0x3ca8[47]]},individualHooks:true})[_0x3ca8[38]](function(){return _0x30abx5[_0x3ca8[45]](204)})[_0x3ca8[28]](function(_0x30abxe){return handleError(_0x30abx5,_0x30abxe)})};function handleError(_0x30abx5,_0x30abxe){return _0x30abx5[_0x3ca8[27]](500)[_0x3ca8[26]](_0x30abxe)}
\ No newline at end of file
-var _0xa6f3=["\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"];_0xa6f3[0];var CustomField=require(_0xa6f3[2])[_0xa6f3[1]];exports[_0xa6f3[3]]=function(_0x9298x2){CustomField[_0xa6f3[4]](function(_0x9298x3){onSave(_0x9298x2,_0x9298x3)});CustomField[_0xa6f3[6]](function(_0x9298x3){if(!_0x9298x3[_0xa6f3[5]]){onRemove(_0x9298x2,_0x9298x3)}});CustomField[_0xa6f3[7]](function(_0x9298x3){onRemove(_0x9298x2,_0x9298x3)});};function onSave(_0x9298x2,_0x9298x3,_0x9298x5){_0x9298x2[_0xa6f3[9]](_0xa6f3[8],_0x9298x3)}function onRemove(_0x9298x2,_0x9298x3,_0x9298x5){_0x9298x2[_0xa6f3[9]](_0xa6f3[10],_0x9298x3)}
\ No newline at end of file
+var _0x294a=["\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"];_0x294a[0];var CustomField=require(_0x294a[2])[_0x294a[1]];exports[_0x294a[3]]=function(_0x2564x2){CustomField[_0x294a[4]](function(_0x2564x3){onSave(_0x2564x2,_0x2564x3)});CustomField[_0x294a[6]](function(_0x2564x3){if(!_0x2564x3[_0x294a[5]]){onRemove(_0x2564x2,_0x2564x3)}});CustomField[_0x294a[7]](function(_0x2564x3){onRemove(_0x2564x2,_0x2564x3)});};function onSave(_0x2564x2,_0x2564x3,_0x2564x5){_0x2564x2[_0x294a[9]](_0x294a[8],_0x2564x3)}function onRemove(_0x2564x2,_0x2564x3,_0x2564x5){_0x2564x2[_0x294a[9]](_0x294a[10],_0x2564x3)}
\ No newline at end of file
-var _0x154f=["\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"];_0x154f[0];var should=require(_0x154f[1]);var app=require(_0x154f[2]);var request=require(_0x154f[3]);describe(_0x154f[4],function(){it(_0x154f[5],function(_0xd771x4){request(app)[_0x154f[13]](_0x154f[12])[_0x154f[11]](200)[_0x154f[11]](_0x154f[10],/json/)[_0x154f[9]](function(_0xd771x5,_0xd771x6){if(_0xd771x5){return _0xd771x4(_0xd771x5)};_0xd771x6[_0x154f[8]][_0x154f[1]][_0x154f[7]][_0x154f[6]](Array);_0xd771x4();})})});
\ No newline at end of file
+var _0x1365=["\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"];_0x1365[0];var should=require(_0x1365[1]);var app=require(_0x1365[2]);var request=require(_0x1365[3]);describe(_0x1365[4],function(){it(_0x1365[5],function(_0xe138x4){request(app)[_0x1365[13]](_0x1365[12])[_0x1365[11]](200)[_0x1365[11]](_0x1365[10],/json/)[_0x1365[9]](function(_0xe138x5,_0xe138x6){if(_0xe138x5){return _0xe138x4(_0xe138x5)};_0xe138x6[_0x1365[8]][_0x1365[1]][_0x1365[7]][_0x1365[6]](Array);_0xe138x4();})})});
\ No newline at end of file
-var _0x7f27=["\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"];_0x7f27[0];var express=require(_0x7f27[1]);var controller=require(_0x7f27[2]);var auth=require(_0x7f27[3]);var router=express.Router();router[_0x7f27[7]](_0x7f27[4],auth[_0x7f27[5]](),controller[_0x7f27[6]]);router[_0x7f27[7]](_0x7f27[8],auth[_0x7f27[5]](),controller[_0x7f27[9]]);router[_0x7f27[7]](_0x7f27[10],auth[_0x7f27[5]](),controller[_0x7f27[11]]);router[_0x7f27[13]](_0x7f27[4],auth[_0x7f27[5]](),controller[_0x7f27[12]]);router[_0x7f27[13]](_0x7f27[14],auth[_0x7f27[5]](),controller[_0x7f27[15]]);router[_0x7f27[17]](_0x7f27[10],auth[_0x7f27[5]](),controller[_0x7f27[16]]);router[_0x7f27[18]](_0x7f27[10],auth[_0x7f27[5]](),controller[_0x7f27[16]]);router[_0x7f27[20]](_0x7f27[4],auth[_0x7f27[5]](),controller[_0x7f27[19]]);router[_0x7f27[20]](_0x7f27[10],auth[_0x7f27[5]](),controller[_0x7f27[21]]);module[_0x7f27[22]]=router;
\ No newline at end of file
+var _0x9218=["\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"];_0x9218[0];var express=require(_0x9218[1]);var controller=require(_0x9218[2]);var auth=require(_0x9218[3]);var router=express.Router();router[_0x9218[7]](_0x9218[4],auth[_0x9218[5]](),controller[_0x9218[6]]);router[_0x9218[7]](_0x9218[8],auth[_0x9218[5]](),controller[_0x9218[9]]);router[_0x9218[7]](_0x9218[10],auth[_0x9218[5]](),controller[_0x9218[11]]);router[_0x9218[13]](_0x9218[4],auth[_0x9218[5]](),controller[_0x9218[12]]);router[_0x9218[13]](_0x9218[14],auth[_0x9218[5]](),controller[_0x9218[15]]);router[_0x9218[17]](_0x9218[10],auth[_0x9218[5]](),controller[_0x9218[16]]);router[_0x9218[18]](_0x9218[10],auth[_0x9218[5]](),controller[_0x9218[16]]);router[_0x9218[20]](_0x9218[4],auth[_0x9218[5]](),controller[_0x9218[19]]);router[_0x9218[20]](_0x9218[10],auth[_0x9218[5]](),controller[_0x9218[21]]);module[_0x9218[22]]=router;
\ No newline at end of file
-var _0xc860=["\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"];_0xc860[0];var _=require(_0xc860[1]);var util=require(_0xc860[2]);var sequelize=require(_0xc860[4])[_0xc860[3]];var CustomReport=require(_0xc860[4])[_0xc860[5]];var ReportField=require(_0xc860[4])[_0xc860[6]];var ReportTree=require(_0xc860[4])[_0xc860[7]];exports[_0xc860[8]]=function(_0x2399x7,_0x2399x8,_0x2399x9){var _0x2399xa=[_0xc860[9],_0xc860[10],_0xc860[11]];var _0x2399xb=_0x2399x7[_0xc860[13]][_0xc860[12]]?parseInt(_0x2399x7[_0xc860[13]][_0xc860[12]],10):100;var _0x2399xc=_0x2399x7[_0xc860[13]][_0xc860[14]]?parseInt(_0x2399x7[_0xc860[13]][_0xc860[14]],10):0;var _0x2399xd={where:{},limit:_0x2399xb,offset:_0x2399xc*_0x2399xb};_[_0xc860[33]](_0x2399x7[_0xc860[13]],function(_0x2399xe,_0x2399xf){switch(_0x2399xf){case _0xc860[12]:;case _0xc860[14]:break ;;case _0xc860[17]:_0x2399xd[_0xc860[15]]=util[_0xc860[20]](_0xc860[16],_0x2399x7[_0xc860[13]][_0xc860[17]],_0x2399x7[_0xc860[13]][_0xc860[18]]||_0xc860[19])||null;break ;;case _0xc860[18]:break ;;case _0xc860[26]:_0x2399xd[_0xc860[22]][_0xc860[21]]=[];_0x2399xa[_0xc860[25]](function(_0x2399x10){var _0x2399x11={};_0x2399x11[_0x2399x10]={$like:_0xc860[23]+_0x2399xe+_0xc860[23]};_0x2399xd[_0xc860[22]][_0xc860[21]][_0xc860[24]](_0x2399x11);});break ;;case _0xc860[27]:_0x2399xd[_0xc860[22]][_0xc860[27]]={$or:_0x2399xe[_0xc860[28]](/[\s,]+/)};break ;;case _0xc860[31]:var _0x2399x12=JSON[_0xc860[29]](_0x2399xe);_[_0xc860[30]](_0x2399x12,function(_0x2399x13,_0x2399x14){_0x2399xd[_0xc860[22]][_0x2399x14]=_0x2399x13});break ;;default:_0x2399xd[_0xc860[22]][_0x2399xf]={$like:{}};_0x2399xd[_0xc860[22]][_0x2399xf][_0xc860[32]]=_0xc860[23]+_0x2399xe+_0xc860[23];;}});CustomReport[_0xc860[48]](_0x2399xd)[_0xc860[47]](function(_0x2399x16){var _0x2399x17=Math[_0xc860[39]](_0x2399x16[_0xc860[38]]/_0x2399xb);var _0x2399x18=_0x2399x17>(_0x2399xd[_0xc860[40]]+1)?util[_0xc860[20]](_0xc860[41],_0x2399x7[_0xc860[42]],_0x2399x7[_0xc860[44]][_0xc860[43]],_0x2399x7[_0xc860[45]],_0x2399xc+1):null;var _0x2399x19=_0x2399xc>0?util[_0xc860[20]](_0xc860[41],_0x2399x7[_0xc860[42]],_0x2399x7[_0xc860[44]][_0xc860[43]],_0x2399x7[_0xc860[45]],_0x2399xc-1):null;_0x2399x8[_0xc860[36]](200)[_0xc860[35]]({count:_0x2399x16[_0xc860[38]],rows:_0x2399x16[_0xc860[46]],next_page:_0x2399x18,previous_page:_0x2399x19,total_pages:_0x2399x17});})[_0xc860[37]](function(_0x2399x15){_0x2399x8[_0xc860[36]](500)[_0xc860[35]]({error:_0xc860[34]})});};exports[_0xc860[49]]=function(_0x2399x7,_0x2399x8){CustomReport[_0xc860[53]](_0x2399x7[_0xc860[52]][_0xc860[51]],{include:[{all:true}]})[_0xc860[47]](function(_0x2399x1a){if(!_0x2399x1a){return _0x2399x8[_0xc860[50]](404)};return _0x2399x8[_0xc860[35]](_0x2399x1a);})[_0xc860[37]](function(_0x2399x15){return handleError(_0x2399x8,_0x2399x15)})};exports[_0xc860[54]]=function(_0x2399x7,_0x2399x8){CustomReport[_0xc860[53]](_0x2399x7[_0xc860[52]][_0xc860[51]],{include:[{all:true}]})[_0xc860[47]](function(_0x2399x1a){if(!_0x2399x1a){return _0x2399x8[_0xc860[50]](404)};var _0x2399x1b=_0x2399x1a[_0xc860[56]];delete _0x2399x1b[_0xc860[51]];delete _0x2399x1b[_0xc860[57]];delete _0x2399x1b[_0xc860[58]];_0x2399x1b[_0xc860[11]]=_0x2399x7[_0xc860[59]][_0xc860[11]];_0x2399x1b[_0xc860[60]]=_[_0xc860[61]](_0x2399x1b.Fields,_0xc860[56]);_[_0xc860[25]](_0x2399x1b.Fields,function(_0x2399x1c){delete _0x2399x1c[_0xc860[51]];delete _0x2399x1c[_0xc860[62]];delete _0x2399x1c[_0xc860[57]];delete _0x2399x1c[_0xc860[58]];});return CustomReport[_0xc860[63]](_0x2399x1b,{include:[{all:true}]});})[_0xc860[47]](function(){return _0x2399x8[_0xc860[50]](201)})[_0xc860[37]](function(_0x2399x15){console[_0xc860[55]](_0x2399x15);return handleError(_0x2399x8,_0x2399x15);})};exports[_0xc860[64]]=function(_0x2399x7,_0x2399x8){CustomReport[_0xc860[63]](_0x2399x7[_0xc860[59]],{include:[{all:true}]})[_0xc860[47]](function(_0x2399x1a){return _0x2399x8[_0xc860[36]](201)[_0xc860[35]](_0x2399x1a)})[_0xc860[37]](function(_0x2399x15){return handleError(_0x2399x8,_0x2399x15)})};exports[_0xc860[65]]=function(_0x2399x7,_0x2399x8){CustomReport[_0xc860[53]](_0x2399x7[_0xc860[52]][_0xc860[51]],{include:[{all:true}]})[_0xc860[47]](function(_0x2399x1a){if(!_0x2399x1a){return _0x2399x8[_0xc860[50]](404)};if(!_0x2399x1a[_0xc860[60]][_0xc860[66]]){return _0x2399x8[_0xc860[36]](500)[_0xc860[35]]({message:_0xc860[67]})};var _0x2399xd=buildReport(_0x2399x1a[_0xc860[56]]);return sequelize[_0xc860[13]](_0x2399xd+_0xc860[68],{type:sequelize[_0xc860[70]][_0xc860[69]]});})[_0xc860[47]](function(_0x2399x1d){return _0x2399x8[_0xc860[36]](200)[_0xc860[35]](_0x2399x1d)})[_0xc860[37]](function(_0x2399x15){return handleError(_0x2399x8,_0x2399x15)})};function buildReport(_0x2399x1a){var _0x2399x1f=[],_0x2399x20=[],_0x2399x21=[];_[_0xc860[25]](_0x2399x1a.Fields,function(_0x2399x1c){var _0x2399x22=_0xc860[71];if(_0x2399x1c[_0xc860[72]]){switch(_0x2399x1c[_0xc860[72]]){case _0xc860[75]:_0x2399x22=util[_0xc860[20]](_0xc860[73],_0x2399x1c[_0xc860[74]]);break ;;case _0xc860[77]:_0x2399x22=util[_0xc860[20]](_0xc860[76],_0x2399x1c[_0xc860[74]],_0x2399x1c[_0xc860[74]]);break ;;case _0xc860[79]:_0x2399x22=util[_0xc860[20]](_0xc860[78],_0x2399x1c[_0xc860[74]],_0x2399x1c[_0xc860[74]]);break ;;default:_0x2399x22=util[_0xc860[20]](_0xc860[80],_0x2399x1c[_0xc860[72]],_0x2399x1c[_0xc860[74]]);;}}else {_0x2399x22=_0x2399x1c[_0xc860[74]]};_0x2399x1f[_0xc860[24]](util[_0xc860[20]](_0xc860[81],_0x2399x22,_0x2399x1c[_0xc860[82]]));if(_0x2399x1c[_0xc860[83]]){_0x2399x20[_0xc860[24]](_0x2399x1c[_0xc860[74]])};if(_0x2399x1c[_0xc860[84]]){_0x2399x21[_0xc860[24]](util[_0xc860[20]](_0xc860[16],_0x2399x1c[_0xc860[74]],_0x2399x1c[_0xc860[84]]))};});var _0x2399x23=getConditions(JSON[_0xc860[29]](_0x2399x1a[_0xc860[86]])[_0xc860[85]]);var _0x2399xd=_0xc860[69];_0x2399xd+=_0xc860[87]+_0x2399x1f[_0xc860[89]](_0xc860[88]);_0x2399xd+=_0xc860[90]+_0x2399x1a[_0xc860[91]];_0x2399xd+=_0x2399x23!==_0xc860[92]?_0xc860[93]+_0x2399x23:_0xc860[71];_0x2399xd+=_0x2399x20[_0xc860[66]]?_0xc860[94]+_0x2399x20[_0xc860[89]](_0xc860[88]):_0xc860[71];_0x2399xd+=_0x2399x21[_0xc860[66]]?_0xc860[95]+_0x2399x21[_0xc860[89]](_0xc860[88]):_0xc860[71];return _0x2399xd;}function getConditions(_0x2399x25){if(!_0x2399x25){return _0xc860[71]};for(var _0x2399x26=_0xc860[96],_0x2399x27=0;_0x2399x27<_0x2399x25[_0xc860[97]][_0xc860[66]];_0x2399x27++){_0x2399x27>0&&(_0x2399x26+=_0xc860[87]+_0x2399x25[_0xc860[98]]+_0xc860[87]);_0x2399x26+=_0x2399x25[_0xc860[97]][_0x2399x27][_0xc860[85]]?getConditions(_0x2399x25[_0xc860[97]][_0x2399x27][_0xc860[85]]):_0x2399x25[_0xc860[97]][_0x2399x27][_0xc860[74]]+_0xc860[87]+_0x2399x25[_0xc860[97]][_0x2399x27][_0xc860[99]]+_0xc860[100]+(_0x2399x25[_0xc860[97]][_0x2399x27][_0xc860[99]]===_0xc860[101]?_0xc860[23]+_0x2399x25[_0xc860[97]][_0x2399x27][_0xc860[102]]+_0xc860[23]:_0x2399x25[_0xc860[97]][_0x2399x27][_0xc860[102]])+_0xc860[103];};return _0x2399x26+_0xc860[104];}exports[_0xc860[63]]=function(_0x2399x7,_0x2399x8){CustomReport[_0xc860[63]](_0x2399x7[_0xc860[59]])[_0xc860[47]](function(_0x2399x1a){return _0x2399x8[_0xc860[36]](201)[_0xc860[35]](_0x2399x1a)})[_0xc860[37]](function(_0x2399x15){return handleError(_0x2399x8,_0x2399x15)})};exports[_0xc860[105]]=function(_0x2399x7,_0x2399x8){if(_0x2399x7[_0xc860[59]][_0xc860[51]]){delete _0x2399x7[_0xc860[59]][_0xc860[51]]};ReportField[_0xc860[107]]({where:{CustomReportId:_0x2399x7[_0xc860[52]][_0xc860[51]]}})[_0xc860[47]](function(){return ReportField[_0xc860[106]](_0x2399x7[_0xc860[59]].Fields)})[_0xc860[47]](function(){delete _0x2399x7[_0xc860[59]][_0xc860[60]];return CustomReport[_0xc860[105]](_0x2399x7[_0xc860[59]],{where:{id:_0x2399x7[_0xc860[52]][_0xc860[51]]}});})[_0xc860[47]](function(){return _0x2399x8[_0xc860[50]](200)})[_0xc860[37]](function(_0x2399x15){console[_0xc860[55]](_0x2399x15);return handleError(_0x2399x8,_0x2399x15);});};exports[_0xc860[107]]=function(_0x2399x7,_0x2399x8){CustomReport[_0xc860[53]](_0x2399x7[_0xc860[52]][_0xc860[51]])[_0xc860[47]](function(_0x2399x1a){if(!_0x2399x1a){return _0x2399x8[_0xc860[50]](404)};_0x2399x1a[_0xc860[107]]()[_0xc860[47]](function(){return _0x2399x8[_0xc860[50]](204)})[_0xc860[37]](function(_0x2399x15){return handleError(_0x2399x8,_0x2399x15)});})[_0xc860[37]](function(_0x2399x15){return handleError(_0x2399x8,_0x2399x15)})};exports[_0xc860[108]]=function(_0x2399x7,_0x2399x8){CustomReport[_0xc860[107]]({where:{id:_0x2399x7[_0xc860[13]][_0xc860[51]]},individualHooks:true})[_0xc860[47]](function(){return _0x2399x8[_0xc860[50]](204)})[_0xc860[37]](function(_0x2399x15){return handleError(_0x2399x8,_0x2399x15)})};function handleError(_0x2399x8,_0x2399x15){return _0x2399x8[_0xc860[36]](500)[_0xc860[35]](_0x2399x15)}
\ No newline at end of file
+var _0xd069=["\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","\x65\x78\x74\x72\x61\x63\x74","\x6C\x6F\x67","\x6C\x65\x6E\x67\x74\x68","\x46\x4F\x55\x4E\x44\x5F\x52\x4F\x57\x53\x28\x29","\x73\x70\x72\x65\x61\x64","\x61\x6C\x6C","\x66\x6F\x75\x6E\x64\x20\x72\x65\x70\x6F\x72\x74","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x75\x69\x50\x61\x67\x69\x6E\x61\x74\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x46\x4F\x55\x4E\x44\x5F\x52\x4F\x57\x53\x28\x29","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x73\x68\x6F\x77","\x63\x6F\x70\x79","\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","\x4D\x45\x53\x53\x41\x47\x45\x5F\x53\x45\x4C\x45\x43\x54\x5F\x41\x5F\x46\x49\x45\x4C\x44","","\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\x53\x51\x4C\x5F\x43\x41\x4C\x43\x5F\x46\x4F\x55\x4E\x44\x5F\x52\x4F\x57\x53\x20","\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","\x70\x65\x72\x50\x61\x67\x65","\x20\x41\x4E\x44\x20\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x3E\x3D\x20\x27","\x27","\x73\x74\x61\x72\x74\x44\x61\x74\x65","\x20\x41\x4E\x44\x20\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x3C\x3D\x20\x27","\x65\x6E\x64\x44\x61\x74\x65","\x66\x69\x6E\x64","\x20\x41\x4E\x44\x20","\x20\x4C\x49\x4B\x45\x20\x27\x25","\x25\x27","\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20","\x20\x4F\x52\x44\x45\x52\x20\x42\x59\x20","\x20\x4C\x49\x4D\x49\x54\x20","\x20\x4F\x46\x46\x53\x45\x54\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","\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"];_0xd069[0];var _=require(_0xd069[1]);var util=require(_0xd069[2]);var sequelize=require(_0xd069[4])[_0xd069[3]];var CustomReport=require(_0xd069[4])[_0xd069[5]];var ReportField=require(_0xd069[4])[_0xd069[6]];var ReportTree=require(_0xd069[4])[_0xd069[7]];exports[_0xd069[8]]=function(_0xf3b1x7,_0xf3b1x8,_0xf3b1x9){var _0xf3b1xa=[_0xd069[9],_0xd069[10],_0xd069[11]];var _0xf3b1xb=_0xf3b1x7[_0xd069[13]][_0xd069[12]]?parseInt(_0xf3b1x7[_0xd069[13]][_0xd069[12]],10):100;var _0xf3b1xc=_0xf3b1x7[_0xd069[13]][_0xd069[14]]?parseInt(_0xf3b1x7[_0xd069[13]][_0xd069[14]],10):0;var _0xf3b1xd={where:{},limit:_0xf3b1xb,offset:_0xf3b1xc*_0xf3b1xb};_[_0xd069[33]](_0xf3b1x7[_0xd069[13]],function(_0xf3b1xe,_0xf3b1xf){switch(_0xf3b1xf){case _0xd069[12]:;case _0xd069[14]:break ;;case _0xd069[17]:_0xf3b1xd[_0xd069[15]]=util[_0xd069[20]](_0xd069[16],_0xf3b1x7[_0xd069[13]][_0xd069[17]],_0xf3b1x7[_0xd069[13]][_0xd069[18]]||_0xd069[19])||null;break ;;case _0xd069[18]:break ;;case _0xd069[26]:_0xf3b1xd[_0xd069[22]][_0xd069[21]]=[];_0xf3b1xa[_0xd069[25]](function(_0xf3b1x10){var _0xf3b1x11={};_0xf3b1x11[_0xf3b1x10]={$like:_0xd069[23]+_0xf3b1xe+_0xd069[23]};_0xf3b1xd[_0xd069[22]][_0xd069[21]][_0xd069[24]](_0xf3b1x11);});break ;;case _0xd069[27]:_0xf3b1xd[_0xd069[22]][_0xd069[27]]={$or:_0xf3b1xe[_0xd069[28]](/[\s,]+/)};break ;;case _0xd069[31]:var _0xf3b1x12=JSON[_0xd069[29]](_0xf3b1xe);_[_0xd069[30]](_0xf3b1x12,function(_0xf3b1x13,_0xf3b1x14){_0xf3b1xd[_0xd069[22]][_0xf3b1x14]=_0xf3b1x13});break ;;default:_0xf3b1xd[_0xd069[22]][_0xf3b1xf]={$like:{}};_0xf3b1xd[_0xd069[22]][_0xf3b1xf][_0xd069[32]]=_0xd069[23]+_0xf3b1xe+_0xd069[23];;}});CustomReport[_0xd069[48]](_0xf3b1xd)[_0xd069[47]](function(_0xf3b1x16){var _0xf3b1x17=Math[_0xd069[39]](_0xf3b1x16[_0xd069[38]]/_0xf3b1xb);var _0xf3b1x18=_0xf3b1x17>(_0xf3b1xd[_0xd069[40]]+1)?util[_0xd069[20]](_0xd069[41],_0xf3b1x7[_0xd069[42]],_0xf3b1x7[_0xd069[44]][_0xd069[43]],_0xf3b1x7[_0xd069[45]],_0xf3b1xc+1):null;var _0xf3b1x19=_0xf3b1xc>0?util[_0xd069[20]](_0xd069[41],_0xf3b1x7[_0xd069[42]],_0xf3b1x7[_0xd069[44]][_0xd069[43]],_0xf3b1x7[_0xd069[45]],_0xf3b1xc-1):null;_0xf3b1x8[_0xd069[36]](200)[_0xd069[35]]({count:_0xf3b1x16[_0xd069[38]],rows:_0xf3b1x16[_0xd069[46]],next_page:_0xf3b1x18,previous_page:_0xf3b1x19,total_pages:_0xf3b1x17});})[_0xd069[37]](function(_0xf3b1x15){_0xf3b1x8[_0xd069[36]](500)[_0xd069[35]]({error:_0xd069[34]})});};exports[_0xd069[49]]=function(_0xf3b1x7,_0xf3b1x8){CustomReport[_0xd069[64]](_0xf3b1x7[_0xd069[63]][_0xd069[62]],{include:[{all:true}]})[_0xd069[47]](function(_0xf3b1x1c){console[_0xd069[50]](_0xd069[55]);if(!_0xf3b1x1c){return _0xf3b1x8[_0xd069[56]](404)};var _0xf3b1xd=buildReport(_0xf3b1x1c[_0xd069[57]],_0xf3b1x7[_0xd069[13]]);var _0xf3b1x1d=[sequelize[_0xd069[13]](_0xf3b1xd,{type:sequelize[_0xd069[59]][_0xd069[58]]})];if(_0xf3b1x7[_0xd069[13]][_0xd069[60]]){_0xf3b1x1d[_0xd069[24]](sequelize[_0xd069[13]](_0xd069[61],{type:sequelize[_0xd069[59]][_0xd069[58]]}))};return _0xf3b1x1d;})[_0xd069[54]]()[_0xd069[53]](function(_0xf3b1x1a,_0xf3b1x1b){console[_0xd069[50]](_0xf3b1x1a[_0xd069[51]]);console[_0xd069[50]](_0xf3b1x1b);_0xf3b1x8[_0xd069[36]](200)[_0xd069[35]]({rows:_0xf3b1x1a,count:_0xf3b1x1b?_0xf3b1x1b[0][_0xd069[52]]:null});})[_0xd069[37]](function(_0xf3b1x15){console[_0xd069[50]](_0xf3b1x15);return handleError(_0xf3b1x8,_0xf3b1x15);})};exports[_0xd069[65]]=function(_0xf3b1x7,_0xf3b1x8){CustomReport[_0xd069[64]](_0xf3b1x7[_0xd069[63]][_0xd069[62]],{include:[{all:true}]})[_0xd069[47]](function(_0xf3b1x1c){if(!_0xf3b1x1c){return _0xf3b1x8[_0xd069[56]](404)};return _0xf3b1x8[_0xd069[35]](_0xf3b1x1c);})[_0xd069[37]](function(_0xf3b1x15){return handleError(_0xf3b1x8,_0xf3b1x15)})};exports[_0xd069[66]]=function(_0xf3b1x7,_0xf3b1x8){CustomReport[_0xd069[64]](_0xf3b1x7[_0xd069[63]][_0xd069[62]],{include:[{all:true}]})[_0xd069[47]](function(_0xf3b1x1c){if(!_0xf3b1x1c){return _0xf3b1x8[_0xd069[56]](404)};var _0xf3b1x1e=_0xf3b1x1c[_0xd069[57]];delete _0xf3b1x1e[_0xd069[62]];delete _0xf3b1x1e[_0xd069[67]];delete _0xf3b1x1e[_0xd069[68]];_0xf3b1x1e[_0xd069[11]]=_0xf3b1x7[_0xd069[69]][_0xd069[11]];_0xf3b1x1e[_0xd069[70]]=_[_0xd069[71]](_0xf3b1x1e.Fields,_0xd069[57]);_[_0xd069[25]](_0xf3b1x1e.Fields,function(_0xf3b1x1f){delete _0xf3b1x1f[_0xd069[62]];delete _0xf3b1x1f[_0xd069[72]];delete _0xf3b1x1f[_0xd069[67]];delete _0xf3b1x1f[_0xd069[68]];});return CustomReport[_0xd069[73]](_0xf3b1x1e,{include:[{all:true}]});})[_0xd069[47]](function(){return _0xf3b1x8[_0xd069[56]](201)})[_0xd069[37]](function(_0xf3b1x15){console[_0xd069[50]](_0xf3b1x15);return handleError(_0xf3b1x8,_0xf3b1x15);})};exports[_0xd069[74]]=function(_0xf3b1x7,_0xf3b1x8){CustomReport[_0xd069[73]](_0xf3b1x7[_0xd069[69]],{include:[{all:true}]})[_0xd069[47]](function(_0xf3b1x1c){return _0xf3b1x8[_0xd069[36]](201)[_0xd069[35]](_0xf3b1x1c)})[_0xd069[37]](function(_0xf3b1x15){return handleError(_0xf3b1x8,_0xf3b1x15)})};exports[_0xd069[75]]=function(_0xf3b1x7,_0xf3b1x8){CustomReport[_0xd069[64]](_0xf3b1x7[_0xd069[63]][_0xd069[62]],{include:[{all:true}]})[_0xd069[47]](function(_0xf3b1x1c){if(!_0xf3b1x1c){return _0xf3b1x8[_0xd069[56]](404)};if(!_0xf3b1x1c[_0xd069[70]][_0xd069[51]]){return _0xf3b1x8[_0xd069[36]](500)[_0xd069[35]]({message:_0xd069[76]})};var _0xf3b1xd=buildReport(_0xf3b1x1c[_0xd069[57]],{perPage:20});return sequelize[_0xd069[13]](_0xf3b1xd,{type:sequelize[_0xd069[59]][_0xd069[58]]});})[_0xd069[47]](function(_0xf3b1x1a){return _0xf3b1x8[_0xd069[36]](200)[_0xd069[35]](_0xf3b1x1a)})[_0xd069[37]](function(_0xf3b1x15){return handleError(_0xf3b1x8,_0xf3b1x15)})};function buildReport(_0xf3b1x1c,_0xf3b1xd){console[_0xd069[50]](_0xf3b1xd);var _0xf3b1x21=[],_0xf3b1x22=[],_0xf3b1x23=[];_[_0xd069[25]](_0xf3b1x1c.Fields,function(_0xf3b1x1f){var _0xf3b1x24=_0xd069[77];if(_0xf3b1x1f[_0xd069[78]]){switch(_0xf3b1x1f[_0xd069[78]]){case _0xd069[81]:_0xf3b1x24=util[_0xd069[20]](_0xd069[79],_0xf3b1x1f[_0xd069[80]]);break ;;case _0xd069[83]:_0xf3b1x24=util[_0xd069[20]](_0xd069[82],_0xf3b1x1f[_0xd069[80]],_0xf3b1x1f[_0xd069[80]]);break ;;case _0xd069[85]:_0xf3b1x24=util[_0xd069[20]](_0xd069[84],_0xf3b1x1f[_0xd069[80]],_0xf3b1x1f[_0xd069[80]]);break ;;default:_0xf3b1x24=util[_0xd069[20]](_0xd069[86],_0xf3b1x1f[_0xd069[78]],_0xf3b1x1f[_0xd069[80]]);;}}else {_0xf3b1x24=_0xf3b1x1f[_0xd069[80]]};_0xf3b1x21[_0xd069[24]](util[_0xd069[20]](_0xd069[87],_0xf3b1x24,_0xf3b1x1f[_0xd069[88]]));if(_0xf3b1x1f[_0xd069[89]]){_0xf3b1x22[_0xd069[24]](_0xf3b1x1f[_0xd069[80]])};if(_0xf3b1x1f[_0xd069[90]]){_0xf3b1x23[_0xd069[24]](util[_0xd069[20]](_0xd069[16],_0xf3b1x1f[_0xd069[80]],_0xf3b1x1f[_0xd069[90]]))};});var _0xf3b1x25=getConditions(JSON[_0xd069[29]](_0xf3b1x1c[_0xd069[92]])[_0xd069[91]]);var _0xf3b1x26=_0xd069[58];if(_0xf3b1xd&&_0xf3b1xd[_0xd069[60]]){_0xf3b1x26+=_0xd069[93]};_0xf3b1x26+=_0xd069[94]+_0xf3b1x21[_0xd069[96]](_0xd069[95]);_0xf3b1x26+=_0xd069[97]+_0xf3b1x1c[_0xd069[98]];_0xf3b1x26+=_0xf3b1x25!==_0xd069[99]?_0xd069[100]+_0xf3b1x25:_0xd069[77];var _0xf3b1x27=false;var _0xf3b1x28=false;if(_0xf3b1xd){_[_0xd069[30]](_0xf3b1xd,function(_0xf3b1xe,_0xf3b1xf){switch(_0xf3b1xf){case _0xd069[14]:if(_0xf3b1xd[_0xd069[101]]){_0xf3b1x27=parseInt(_0xf3b1xd[_0xd069[101]],10);_0xf3b1x28=parseInt(_0xf3b1xe,10)*_0xf3b1x27;};break ;;case _0xd069[101]:_0xf3b1x27=parseInt(_0xf3b1xe,10);break ;;case _0xd069[104]:_0xf3b1x26+=_0xd069[102]+_0xf3b1xe+_0xd069[103];break ;;case _0xd069[106]:_0xf3b1x26+=_0xd069[105]+_0xf3b1xe+_0xd069[103];break ;;case _0xd069[60]:break ;;default:var _0xf3b1x29=_[_0xd069[107]](_0xf3b1x1c.Fields,{alias:_0xf3b1xf})[_0xd069[80]];if(_0xf3b1x29){_0xf3b1x26+=_0xd069[108]+_0xf3b1x29+_0xd069[109]+_0xf3b1xe+_0xd069[110]}else {_0xf3b1x26+=_0xd069[108]+_0xf3b1xf+_0xd069[109]+_0xf3b1xe+_0xd069[110]};;}})};_0xf3b1x26+=_0xf3b1x22[_0xd069[51]]?_0xd069[111]+_0xf3b1x22[_0xd069[96]](_0xd069[95]):_0xd069[77];_0xf3b1x26+=_0xf3b1x23[_0xd069[51]]?_0xd069[112]+_0xf3b1x23[_0xd069[96]](_0xd069[95]):_0xd069[77];_0xf3b1x26+=_0xf3b1x27?_0xd069[113]+_0xf3b1x27:_0xd069[77];_0xf3b1x26+=_0xf3b1x28?_0xd069[114]+_0xf3b1x28:_0xd069[77];return _0xf3b1x26;}function getConditions(_0xf3b1x2b){if(!_0xf3b1x2b){return _0xd069[77]};for(var _0xf3b1x2c=_0xd069[115],_0xf3b1x2d=0;_0xf3b1x2d<_0xf3b1x2b[_0xd069[116]][_0xd069[51]];_0xf3b1x2d++){_0xf3b1x2d>0&&(_0xf3b1x2c+=_0xd069[94]+_0xf3b1x2b[_0xd069[117]]+_0xd069[94]);_0xf3b1x2c+=_0xf3b1x2b[_0xd069[116]][_0xf3b1x2d][_0xd069[91]]?getConditions(_0xf3b1x2b[_0xd069[116]][_0xf3b1x2d][_0xd069[91]]):_0xf3b1x2b[_0xd069[116]][_0xf3b1x2d][_0xd069[80]]+_0xd069[94]+_0xf3b1x2b[_0xd069[116]][_0xf3b1x2d][_0xd069[118]]+_0xd069[119]+(_0xf3b1x2b[_0xd069[116]][_0xf3b1x2d][_0xd069[118]]===_0xd069[120]?_0xd069[23]+_0xf3b1x2b[_0xd069[116]][_0xf3b1x2d][_0xd069[121]]+_0xd069[23]:_0xf3b1x2b[_0xd069[116]][_0xf3b1x2d][_0xd069[121]])+_0xd069[103];};return _0xf3b1x2c+_0xd069[122];}exports[_0xd069[73]]=function(_0xf3b1x7,_0xf3b1x8){CustomReport[_0xd069[73]](_0xf3b1x7[_0xd069[69]])[_0xd069[47]](function(_0xf3b1x1c){return _0xf3b1x8[_0xd069[36]](201)[_0xd069[35]](_0xf3b1x1c)})[_0xd069[37]](function(_0xf3b1x15){return handleError(_0xf3b1x8,_0xf3b1x15)})};exports[_0xd069[123]]=function(_0xf3b1x7,_0xf3b1x8){if(_0xf3b1x7[_0xd069[69]][_0xd069[62]]){delete _0xf3b1x7[_0xd069[69]][_0xd069[62]]};ReportField[_0xd069[125]]({where:{CustomReportId:_0xf3b1x7[_0xd069[63]][_0xd069[62]]}})[_0xd069[47]](function(){return ReportField[_0xd069[124]](_0xf3b1x7[_0xd069[69]].Fields)})[_0xd069[47]](function(){delete _0xf3b1x7[_0xd069[69]][_0xd069[70]];return CustomReport[_0xd069[123]](_0xf3b1x7[_0xd069[69]],{where:{id:_0xf3b1x7[_0xd069[63]][_0xd069[62]]}});})[_0xd069[47]](function(){return _0xf3b1x8[_0xd069[56]](200)})[_0xd069[37]](function(_0xf3b1x15){console[_0xd069[50]](_0xf3b1x15);return handleError(_0xf3b1x8,_0xf3b1x15);});};exports[_0xd069[125]]=function(_0xf3b1x7,_0xf3b1x8){CustomReport[_0xd069[64]](_0xf3b1x7[_0xd069[63]][_0xd069[62]])[_0xd069[47]](function(_0xf3b1x1c){if(!_0xf3b1x1c){return _0xf3b1x8[_0xd069[56]](404)};_0xf3b1x1c[_0xd069[125]]()[_0xd069[47]](function(){return _0xf3b1x8[_0xd069[56]](204)})[_0xd069[37]](function(_0xf3b1x15){return handleError(_0xf3b1x8,_0xf3b1x15)});})[_0xd069[37]](function(_0xf3b1x15){return handleError(_0xf3b1x8,_0xf3b1x15)})};exports[_0xd069[126]]=function(_0xf3b1x7,_0xf3b1x8){CustomReport[_0xd069[125]]({where:{id:_0xf3b1x7[_0xd069[13]][_0xd069[62]]},individualHooks:true})[_0xd069[47]](function(){return _0xf3b1x8[_0xd069[56]](204)})[_0xd069[37]](function(_0xf3b1x15){return handleError(_0xf3b1x8,_0xf3b1x15)})};function handleError(_0xf3b1x8,_0xf3b1x15){return _0xf3b1x8[_0xd069[36]](500)[_0xd069[35]](_0xf3b1x15)}
\ No newline at end of file
-var _0x8498=["\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"];_0x8498[0];var CustomReport=require(_0x8498[2])[_0x8498[1]];exports[_0x8498[3]]=function(_0x54a1x2){CustomReport[_0x8498[4]](function(_0x54a1x3){onSave(_0x54a1x2,_0x54a1x3)});CustomReport[_0x8498[5]](function(_0x54a1x3){onRemove(_0x54a1x2,_0x54a1x3)});};function onSave(_0x54a1x2,_0x54a1x3,_0x54a1x5){_0x54a1x2[_0x8498[7]](_0x8498[6],_0x54a1x3)}function onRemove(_0x54a1x2,_0x54a1x3,_0x54a1x5){_0x54a1x2[_0x8498[7]](_0x8498[8],_0x54a1x3)}
\ No newline at end of file
+var _0xbfc1=["\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"];_0xbfc1[0];var CustomReport=require(_0xbfc1[2])[_0xbfc1[1]];exports[_0xbfc1[3]]=function(_0xc1f4x2){CustomReport[_0xbfc1[4]](function(_0xc1f4x3){onSave(_0xc1f4x2,_0xc1f4x3)});CustomReport[_0xbfc1[5]](function(_0xc1f4x3){onRemove(_0xc1f4x2,_0xc1f4x3)});};function onSave(_0xc1f4x2,_0xc1f4x3,_0xc1f4x5){_0xc1f4x2[_0xbfc1[7]](_0xbfc1[6],_0xc1f4x3)}function onRemove(_0xc1f4x2,_0xc1f4x3,_0xc1f4x5){_0xc1f4x2[_0xbfc1[7]](_0xbfc1[8],_0xc1f4x3)}
\ No newline at end of file
-var _0x94aa=["\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"];_0x94aa[0];var should=require(_0x94aa[1]);var app=require(_0x94aa[2]);var request=require(_0x94aa[3]);describe(_0x94aa[4],function(){it(_0x94aa[5],function(_0x640bx4){request(app)[_0x94aa[13]](_0x94aa[12])[_0x94aa[11]](200)[_0x94aa[11]](_0x94aa[10],/json/)[_0x94aa[9]](function(_0x640bx5,_0x640bx6){if(_0x640bx5){return _0x640bx4(_0x640bx5)};_0x640bx6[_0x94aa[8]][_0x94aa[1]][_0x94aa[7]][_0x94aa[6]](Array);_0x640bx4();})})});
\ No newline at end of file
+var _0xe3d3=["\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"];_0xe3d3[0];var should=require(_0xe3d3[1]);var app=require(_0xe3d3[2]);var request=require(_0xe3d3[3]);describe(_0xe3d3[4],function(){it(_0xe3d3[5],function(_0x6e62x4){request(app)[_0xe3d3[13]](_0xe3d3[12])[_0xe3d3[11]](200)[_0xe3d3[11]](_0xe3d3[10],/json/)[_0xe3d3[9]](function(_0x6e62x5,_0x6e62x6){if(_0x6e62x5){return _0x6e62x4(_0x6e62x5)};_0x6e62x6[_0xe3d3[8]][_0xe3d3[1]][_0xe3d3[7]][_0xe3d3[6]](Array);_0x6e62x4();})})});
\ No newline at end of file
-var _0xe0b7=["\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"];_0xe0b7[0];var express=require(_0xe0b7[1]);var controller=require(_0xe0b7[2]);var router=express.Router();router[_0xe0b7[5]](_0xe0b7[3],controller[_0xe0b7[4]]);router[_0xe0b7[5]](_0xe0b7[6],controller[_0xe0b7[7]]);router[_0xe0b7[5]](_0xe0b7[8],controller[_0xe0b7[9]]);router[_0xe0b7[11]](_0xe0b7[3],controller[_0xe0b7[10]]);router[_0xe0b7[11]](_0xe0b7[12],controller[_0xe0b7[13]]);router[_0xe0b7[11]](_0xe0b7[14],controller[_0xe0b7[15]]);router[_0xe0b7[17]](_0xe0b7[8],controller[_0xe0b7[16]]);router[_0xe0b7[18]](_0xe0b7[8],controller[_0xe0b7[16]]);router[_0xe0b7[20]](_0xe0b7[3],controller[_0xe0b7[19]]);router[_0xe0b7[20]](_0xe0b7[8],controller[_0xe0b7[21]]);module[_0xe0b7[22]]=router;
\ No newline at end of file
+var _0xd4b5=["\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\x65\x78\x74\x72\x61\x63\x74\x2F\x3A\x69\x64","\x65\x78\x74\x72\x61\x63\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"];_0xd4b5[0];var express=require(_0xd4b5[1]);var controller=require(_0xd4b5[2]);var router=express.Router();router[_0xd4b5[5]](_0xd4b5[3],controller[_0xd4b5[4]]);router[_0xd4b5[5]](_0xd4b5[6],controller[_0xd4b5[7]]);router[_0xd4b5[5]](_0xd4b5[8],controller[_0xd4b5[9]]);router[_0xd4b5[5]](_0xd4b5[10],controller[_0xd4b5[11]]);router[_0xd4b5[13]](_0xd4b5[3],controller[_0xd4b5[12]]);router[_0xd4b5[13]](_0xd4b5[14],controller[_0xd4b5[15]]);router[_0xd4b5[13]](_0xd4b5[16],controller[_0xd4b5[17]]);router[_0xd4b5[19]](_0xd4b5[10],controller[_0xd4b5[18]]);router[_0xd4b5[20]](_0xd4b5[10],controller[_0xd4b5[18]]);router[_0xd4b5[22]](_0xd4b5[3],controller[_0xd4b5[21]]);router[_0xd4b5[22]](_0xd4b5[10],controller[_0xd4b5[23]]);module[_0xd4b5[24]]=router;
\ No newline at end of file
-var _0x32bf=["\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"];_0x32bf[0];var _=require(_0x32bf[1]);var util=require(_0x32bf[2]);var Dashboard=require(_0x32bf[4])[_0x32bf[3]];exports[_0x32bf[5]]=function(_0x6d77x4,_0x6d77x5){var _0x6d77x6=[_0x32bf[6],_0x32bf[7]];var _0x6d77x7=_0x6d77x4[_0x32bf[9]][_0x32bf[8]]?parseInt(_0x6d77x4[_0x32bf[9]][_0x32bf[8]],10):100;var _0x6d77x8=_0x6d77x4[_0x32bf[9]][_0x32bf[10]]?parseInt(_0x6d77x4[_0x32bf[9]][_0x32bf[10]],10):0;var _0x6d77x9={where:{},limit:_0x6d77x7,offset:_0x6d77x8*_0x6d77x7};_[_0x32bf[24]](_0x6d77x4[_0x32bf[9]],function(_0x6d77xa,_0x6d77xb){switch(_0x6d77xb){case _0x32bf[8]:;case _0x32bf[10]:break ;;case _0x32bf[13]:_0x6d77x9[_0x32bf[11]]=util[_0x32bf[16]](_0x32bf[12],_0x6d77x4[_0x32bf[9]][_0x32bf[13]],_0x6d77x4[_0x32bf[9]][_0x32bf[14]]||_0x32bf[15])||null;break ;;case _0x32bf[14]:break ;;case _0x32bf[22]:_0x6d77x9[_0x32bf[18]][_0x32bf[17]]=[];_0x6d77x6[_0x32bf[21]](function(_0x6d77xc){var _0x6d77xd={};_0x6d77xd[_0x6d77xc]={$like:_0x32bf[19]+_0x6d77xa+_0x32bf[19]};_0x6d77x9[_0x32bf[18]][_0x32bf[17]][_0x32bf[20]](_0x6d77xd);});break ;;default:_0x6d77x9[_0x32bf[18]][_0x6d77xb]={$like:{}};_0x6d77x9[_0x32bf[18]][_0x6d77xb][_0x32bf[23]]=_0x32bf[19]+_0x6d77xa+_0x32bf[19];;}});Dashboard[_0x32bf[39]](_0x6d77x9)[_0x32bf[38]](function(_0x6d77xf){var _0x6d77x10=Math[_0x32bf[30]](_0x6d77xf[_0x32bf[29]]/_0x6d77x7);var _0x6d77x11=_0x6d77x10>(_0x6d77x9[_0x32bf[31]]+1)?util[_0x32bf[16]](_0x32bf[32],_0x6d77x4[_0x32bf[33]],_0x6d77x4[_0x32bf[35]][_0x32bf[34]],_0x6d77x4[_0x32bf[36]],_0x6d77x8+1):null;var _0x6d77x12=_0x6d77x8>0?util[_0x32bf[16]](_0x32bf[32],_0x6d77x4[_0x32bf[33]],_0x6d77x4[_0x32bf[35]][_0x32bf[34]],_0x6d77x4[_0x32bf[36]],_0x6d77x8-1):null;return _0x6d77x5[_0x32bf[27]](200)[_0x32bf[26]]({count:_0x6d77xf[_0x32bf[29]],rows:_0x6d77xf[_0x32bf[37]],next_page:_0x6d77x11,previous_page:_0x6d77x12,total_pages:_0x6d77x10});})[_0x32bf[28]](function(_0x6d77xe){return _0x6d77x5[_0x32bf[27]](500)[_0x32bf[26]]({error:_0x32bf[25]})});};exports[_0x32bf[40]]=function(_0x6d77x4,_0x6d77x5){Dashboard[_0x32bf[42]]()[_0x32bf[38]](function(_0x6d77x13){if(!_0x6d77x13){return _0x6d77x5[_0x32bf[41]](404)};return _0x6d77x5[_0x32bf[27]](200)[_0x32bf[26]](_0x6d77x13);})[_0x32bf[28]](function(_0x6d77xe){return handleError(_0x6d77x5,_0x6d77xe)})};exports[_0x32bf[43]]=function(_0x6d77x4,_0x6d77x5){Dashboard[_0x32bf[46]](_0x6d77x4[_0x32bf[45]][_0x32bf[44]])[_0x32bf[38]](function(_0x6d77x14){if(!_0x6d77x14){return _0x6d77x5[_0x32bf[41]](404)};return _0x6d77x5[_0x32bf[26]](_0x6d77x14);})[_0x32bf[28]](function(_0x6d77xe){return handleError(_0x6d77x5,_0x6d77xe)})};exports[_0x32bf[47]]=function(_0x6d77x4,_0x6d77x5){Dashboard[_0x32bf[47]](_0x6d77x4[_0x32bf[48]])[_0x32bf[38]](function(_0x6d77x14){return _0x6d77x5[_0x32bf[27]](201)[_0x32bf[26]](_0x6d77x14)})[_0x32bf[28]](function(_0x6d77xe){return handleError(_0x6d77x5,_0x6d77xe)})};exports[_0x32bf[49]]=function(_0x6d77x4,_0x6d77x5){if(_0x6d77x4[_0x32bf[48]][_0x32bf[44]]){delete _0x6d77x4[_0x32bf[48]][_0x32bf[44]]};Dashboard[_0x32bf[46]](_0x6d77x4[_0x32bf[45]][_0x32bf[44]])[_0x32bf[38]](function(_0x6d77x14){if(!_0x6d77x14){return _0x6d77x5[_0x32bf[41]](404)};var _0x6d77x15=_[_0x32bf[50]](_0x6d77x14,_0x6d77x4[_0x32bf[48]]);_0x6d77x15[_0x32bf[51]]()[_0x32bf[38]](function(){return _0x6d77x5[_0x32bf[27]](200)[_0x32bf[26]](_0x6d77x14)})[_0x32bf[28]](function(_0x6d77xe){return handleError(_0x6d77x5,_0x6d77xe)});})[_0x32bf[28]](function(_0x6d77xe){return handleError(_0x6d77x5,_0x6d77xe)});};exports[_0x32bf[52]]=function(_0x6d77x4,_0x6d77x5){Dashboard[_0x32bf[46]](_0x6d77x4[_0x32bf[45]][_0x32bf[44]])[_0x32bf[38]](function(_0x6d77x14){if(!_0x6d77x14){return _0x6d77x5[_0x32bf[41]](404)};_0x6d77x14[_0x32bf[52]]()[_0x32bf[38]](function(){return _0x6d77x5[_0x32bf[41]](204)})[_0x32bf[28]](function(_0x6d77xe){return handleError(_0x6d77x5,_0x6d77xe)});})[_0x32bf[28]](function(_0x6d77xe){return handleError(_0x6d77x5,_0x6d77xe)})};exports[_0x32bf[53]]=function(_0x6d77x4,_0x6d77x5){Dashboard[_0x32bf[52]]({where:{id:_0x6d77x4[_0x32bf[9]][_0x32bf[44]]},individualHooks:true})[_0x32bf[38]](function(){return _0x6d77x5[_0x32bf[41]](204)})[_0x32bf[28]](function(_0x6d77xe){return handleError(_0x6d77x5,_0x6d77xe)})};function handleError(_0x6d77x5,_0x6d77xe){return _0x6d77x5[_0x32bf[27]](500)[_0x32bf[26]](_0x6d77xe)}
\ No newline at end of file
+var _0xcd62=["\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"];_0xcd62[0];var _=require(_0xcd62[1]);var util=require(_0xcd62[2]);var Dashboard=require(_0xcd62[4])[_0xcd62[3]];exports[_0xcd62[5]]=function(_0xd31cx4,_0xd31cx5){var _0xd31cx6=[_0xcd62[6],_0xcd62[7]];var _0xd31cx7=_0xd31cx4[_0xcd62[9]][_0xcd62[8]]?parseInt(_0xd31cx4[_0xcd62[9]][_0xcd62[8]],10):100;var _0xd31cx8=_0xd31cx4[_0xcd62[9]][_0xcd62[10]]?parseInt(_0xd31cx4[_0xcd62[9]][_0xcd62[10]],10):0;var _0xd31cx9={where:{},limit:_0xd31cx7,offset:_0xd31cx8*_0xd31cx7};_[_0xcd62[24]](_0xd31cx4[_0xcd62[9]],function(_0xd31cxa,_0xd31cxb){switch(_0xd31cxb){case _0xcd62[8]:;case _0xcd62[10]:break ;;case _0xcd62[13]:_0xd31cx9[_0xcd62[11]]=util[_0xcd62[16]](_0xcd62[12],_0xd31cx4[_0xcd62[9]][_0xcd62[13]],_0xd31cx4[_0xcd62[9]][_0xcd62[14]]||_0xcd62[15])||null;break ;;case _0xcd62[14]:break ;;case _0xcd62[22]:_0xd31cx9[_0xcd62[18]][_0xcd62[17]]=[];_0xd31cx6[_0xcd62[21]](function(_0xd31cxc){var _0xd31cxd={};_0xd31cxd[_0xd31cxc]={$like:_0xcd62[19]+_0xd31cxa+_0xcd62[19]};_0xd31cx9[_0xcd62[18]][_0xcd62[17]][_0xcd62[20]](_0xd31cxd);});break ;;default:_0xd31cx9[_0xcd62[18]][_0xd31cxb]={$like:{}};_0xd31cx9[_0xcd62[18]][_0xd31cxb][_0xcd62[23]]=_0xcd62[19]+_0xd31cxa+_0xcd62[19];;}});Dashboard[_0xcd62[39]](_0xd31cx9)[_0xcd62[38]](function(_0xd31cxf){var _0xd31cx10=Math[_0xcd62[30]](_0xd31cxf[_0xcd62[29]]/_0xd31cx7);var _0xd31cx11=_0xd31cx10>(_0xd31cx9[_0xcd62[31]]+1)?util[_0xcd62[16]](_0xcd62[32],_0xd31cx4[_0xcd62[33]],_0xd31cx4[_0xcd62[35]][_0xcd62[34]],_0xd31cx4[_0xcd62[36]],_0xd31cx8+1):null;var _0xd31cx12=_0xd31cx8>0?util[_0xcd62[16]](_0xcd62[32],_0xd31cx4[_0xcd62[33]],_0xd31cx4[_0xcd62[35]][_0xcd62[34]],_0xd31cx4[_0xcd62[36]],_0xd31cx8-1):null;return _0xd31cx5[_0xcd62[27]](200)[_0xcd62[26]]({count:_0xd31cxf[_0xcd62[29]],rows:_0xd31cxf[_0xcd62[37]],next_page:_0xd31cx11,previous_page:_0xd31cx12,total_pages:_0xd31cx10});})[_0xcd62[28]](function(_0xd31cxe){return _0xd31cx5[_0xcd62[27]](500)[_0xcd62[26]]({error:_0xcd62[25]})});};exports[_0xcd62[40]]=function(_0xd31cx4,_0xd31cx5){Dashboard[_0xcd62[42]]()[_0xcd62[38]](function(_0xd31cx13){if(!_0xd31cx13){return _0xd31cx5[_0xcd62[41]](404)};return _0xd31cx5[_0xcd62[27]](200)[_0xcd62[26]](_0xd31cx13);})[_0xcd62[28]](function(_0xd31cxe){return handleError(_0xd31cx5,_0xd31cxe)})};exports[_0xcd62[43]]=function(_0xd31cx4,_0xd31cx5){Dashboard[_0xcd62[46]](_0xd31cx4[_0xcd62[45]][_0xcd62[44]])[_0xcd62[38]](function(_0xd31cx14){if(!_0xd31cx14){return _0xd31cx5[_0xcd62[41]](404)};return _0xd31cx5[_0xcd62[26]](_0xd31cx14);})[_0xcd62[28]](function(_0xd31cxe){return handleError(_0xd31cx5,_0xd31cxe)})};exports[_0xcd62[47]]=function(_0xd31cx4,_0xd31cx5){Dashboard[_0xcd62[47]](_0xd31cx4[_0xcd62[48]])[_0xcd62[38]](function(_0xd31cx14){return _0xd31cx5[_0xcd62[27]](201)[_0xcd62[26]](_0xd31cx14)})[_0xcd62[28]](function(_0xd31cxe){return handleError(_0xd31cx5,_0xd31cxe)})};exports[_0xcd62[49]]=function(_0xd31cx4,_0xd31cx5){if(_0xd31cx4[_0xcd62[48]][_0xcd62[44]]){delete _0xd31cx4[_0xcd62[48]][_0xcd62[44]]};Dashboard[_0xcd62[46]](_0xd31cx4[_0xcd62[45]][_0xcd62[44]])[_0xcd62[38]](function(_0xd31cx14){if(!_0xd31cx14){return _0xd31cx5[_0xcd62[41]](404)};var _0xd31cx15=_[_0xcd62[50]](_0xd31cx14,_0xd31cx4[_0xcd62[48]]);_0xd31cx15[_0xcd62[51]]()[_0xcd62[38]](function(){return _0xd31cx5[_0xcd62[27]](200)[_0xcd62[26]](_0xd31cx14)})[_0xcd62[28]](function(_0xd31cxe){return handleError(_0xd31cx5,_0xd31cxe)});})[_0xcd62[28]](function(_0xd31cxe){return handleError(_0xd31cx5,_0xd31cxe)});};exports[_0xcd62[52]]=function(_0xd31cx4,_0xd31cx5){Dashboard[_0xcd62[46]](_0xd31cx4[_0xcd62[45]][_0xcd62[44]])[_0xcd62[38]](function(_0xd31cx14){if(!_0xd31cx14){return _0xd31cx5[_0xcd62[41]](404)};_0xd31cx14[_0xcd62[52]]()[_0xcd62[38]](function(){return _0xd31cx5[_0xcd62[41]](204)})[_0xcd62[28]](function(_0xd31cxe){return handleError(_0xd31cx5,_0xd31cxe)});})[_0xcd62[28]](function(_0xd31cxe){return handleError(_0xd31cx5,_0xd31cxe)})};exports[_0xcd62[53]]=function(_0xd31cx4,_0xd31cx5){Dashboard[_0xcd62[52]]({where:{id:_0xd31cx4[_0xcd62[9]][_0xcd62[44]]},individualHooks:true})[_0xcd62[38]](function(){return _0xd31cx5[_0xcd62[41]](204)})[_0xcd62[28]](function(_0xd31cxe){return handleError(_0xd31cx5,_0xd31cxe)})};function handleError(_0xd31cx5,_0xd31cxe){return _0xd31cx5[_0xcd62[27]](500)[_0xcd62[26]](_0xd31cxe)}
\ No newline at end of file
-var _0xf1ea=["\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"];_0xf1ea[0];var Dashboard=require(_0xf1ea[2])[_0xf1ea[1]];exports[_0xf1ea[3]]=function(_0x4adcx2){Dashboard[_0xf1ea[4]](function(_0x4adcx3){onSave(_0x4adcx2,_0x4adcx3)});Dashboard[_0xf1ea[5]](function(_0x4adcx3){onSave(_0x4adcx2,_0x4adcx3)});Dashboard[_0xf1ea[6]](function(_0x4adcx3){onRemove(_0x4adcx2,_0x4adcx3)});};function onSave(_0x4adcx2,_0x4adcx3,_0x4adcx5){_0x4adcx2[_0xf1ea[8]](_0xf1ea[7],_0x4adcx3)}function onRemove(_0x4adcx2,_0x4adcx3,_0x4adcx5){_0x4adcx2[_0xf1ea[8]](_0xf1ea[9],_0x4adcx3)}
\ No newline at end of file
+var _0x8426=["\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"];_0x8426[0];var Dashboard=require(_0x8426[2])[_0x8426[1]];exports[_0x8426[3]]=function(_0xc40fx2){Dashboard[_0x8426[4]](function(_0xc40fx3){onSave(_0xc40fx2,_0xc40fx3)});Dashboard[_0x8426[5]](function(_0xc40fx3){onSave(_0xc40fx2,_0xc40fx3)});Dashboard[_0x8426[6]](function(_0xc40fx3){onRemove(_0xc40fx2,_0xc40fx3)});};function onSave(_0xc40fx2,_0xc40fx3,_0xc40fx5){_0xc40fx2[_0x8426[8]](_0x8426[7],_0xc40fx3)}function onRemove(_0xc40fx2,_0xc40fx3,_0xc40fx5){_0xc40fx2[_0x8426[8]](_0x8426[9],_0xc40fx3)}
\ No newline at end of file
-var _0xbd52=["\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"];_0xbd52[0];var should=require(_0xbd52[1]);var app=require(_0xbd52[2]);var request=require(_0xbd52[3]);describe(_0xbd52[4],function(){it(_0xbd52[5],function(_0xfff5x4){request(app)[_0xbd52[13]](_0xbd52[12])[_0xbd52[11]](200)[_0xbd52[11]](_0xbd52[10],/json/)[_0xbd52[9]](function(_0xfff5x5,_0xfff5x6){if(_0xfff5x5){return _0xfff5x4(_0xfff5x5)};_0xfff5x6[_0xbd52[8]][_0xbd52[1]][_0xbd52[7]][_0xbd52[6]](Array);_0xfff5x4();})})});
\ No newline at end of file
+var _0xb36b=["\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"];_0xb36b[0];var should=require(_0xb36b[1]);var app=require(_0xb36b[2]);var request=require(_0xb36b[3]);describe(_0xb36b[4],function(){it(_0xb36b[5],function(_0x6a06x4){request(app)[_0xb36b[13]](_0xb36b[12])[_0xb36b[11]](200)[_0xb36b[11]](_0xb36b[10],/json/)[_0xb36b[9]](function(_0x6a06x5,_0x6a06x6){if(_0x6a06x5){return _0x6a06x4(_0x6a06x5)};_0x6a06x6[_0xb36b[8]][_0xb36b[1]][_0xb36b[7]][_0xb36b[6]](Array);_0x6a06x4();})})});
\ No newline at end of file
-var _0x1c74=["\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"];_0x1c74[0];var express=require(_0x1c74[1]);var controller=require(_0x1c74[2]);var auth=require(_0x1c74[3]);var router=express.Router();router[_0x1c74[7]](_0x1c74[4],auth[_0x1c74[5]](),controller[_0x1c74[6]]);router[_0x1c74[7]](_0x1c74[8],auth[_0x1c74[5]](),controller[_0x1c74[9]]);router[_0x1c74[7]](_0x1c74[10],auth[_0x1c74[5]](),controller[_0x1c74[11]]);router[_0x1c74[13]](_0x1c74[4],auth[_0x1c74[5]](),controller[_0x1c74[12]]);router[_0x1c74[15]](_0x1c74[10],auth[_0x1c74[5]](),controller[_0x1c74[14]]);router[_0x1c74[16]](_0x1c74[10],auth[_0x1c74[5]](),controller[_0x1c74[14]]);router[_0x1c74[18]](_0x1c74[4],auth[_0x1c74[5]](),controller[_0x1c74[17]]);router[_0x1c74[18]](_0x1c74[10],auth[_0x1c74[5]](),controller[_0x1c74[19]]);module[_0x1c74[20]]=router;
\ No newline at end of file
+var _0x25d8=["\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"];_0x25d8[0];var express=require(_0x25d8[1]);var controller=require(_0x25d8[2]);var auth=require(_0x25d8[3]);var router=express.Router();router[_0x25d8[7]](_0x25d8[4],auth[_0x25d8[5]](),controller[_0x25d8[6]]);router[_0x25d8[7]](_0x25d8[8],auth[_0x25d8[5]](),controller[_0x25d8[9]]);router[_0x25d8[7]](_0x25d8[10],auth[_0x25d8[5]](),controller[_0x25d8[11]]);router[_0x25d8[13]](_0x25d8[4],auth[_0x25d8[5]](),controller[_0x25d8[12]]);router[_0x25d8[15]](_0x25d8[10],auth[_0x25d8[5]](),controller[_0x25d8[14]]);router[_0x25d8[16]](_0x25d8[10],auth[_0x25d8[5]](),controller[_0x25d8[14]]);router[_0x25d8[18]](_0x25d8[4],auth[_0x25d8[5]](),controller[_0x25d8[17]]);router[_0x25d8[18]](_0x25d8[10],auth[_0x25d8[5]](),controller[_0x25d8[19]]);module[_0x25d8[20]]=router;
\ No newline at end of file
-var _0xfa81=["\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"];_0xfa81[0];var _=require(_0xfa81[1]);var util=require(_0xfa81[2]);var DefaultReport=require(_0xfa81[4])[_0xfa81[3]];var CustomReport=require(_0xfa81[4])[_0xfa81[5]];exports[_0xfa81[6]]=function(_0xb94ax5,_0xb94ax6,_0xb94ax7){var _0xb94ax8=[_0xfa81[7],_0xfa81[8],_0xfa81[9]];var _0xb94ax9=_0xb94ax5[_0xfa81[11]][_0xfa81[10]]?parseInt(_0xb94ax5[_0xfa81[11]][_0xfa81[10]],10):100;var _0xb94axa=_0xb94ax5[_0xfa81[11]][_0xfa81[12]]?parseInt(_0xb94ax5[_0xfa81[11]][_0xfa81[12]],10):0;var _0xb94axb={where:{},limit:_0xb94ax9,offset:_0xb94axa*_0xb94ax9};_[_0xfa81[31]](_0xb94ax5[_0xfa81[11]],function(_0xb94axc,_0xb94axd){switch(_0xb94axd){case _0xfa81[10]:;case _0xfa81[12]:break ;;case _0xfa81[15]:_0xb94axb[_0xfa81[13]]=util[_0xfa81[18]](_0xfa81[14],_0xb94ax5[_0xfa81[11]][_0xfa81[15]],_0xb94ax5[_0xfa81[11]][_0xfa81[16]]||_0xfa81[17])||null;break ;;case _0xfa81[16]:break ;;case _0xfa81[24]:_0xb94axb[_0xfa81[20]][_0xfa81[19]]=[];_0xb94ax8[_0xfa81[23]](function(_0xb94axe){var _0xb94axf={};_0xb94axf[_0xb94axe]={$like:_0xfa81[21]+_0xb94axc+_0xfa81[21]};_0xb94axb[_0xfa81[20]][_0xfa81[19]][_0xfa81[22]](_0xb94axf);});break ;;case _0xfa81[25]:_0xb94axb[_0xfa81[20]][_0xfa81[25]]={$or:_0xb94axc[_0xfa81[26]](/[\s,]+/)};break ;;case _0xfa81[29]:var _0xb94ax10=JSON[_0xfa81[27]](_0xb94axc);_[_0xfa81[28]](_0xb94ax10,function(_0xb94ax11,_0xb94ax12){_0xb94axb[_0xfa81[20]][_0xb94ax12]=_0xb94ax11});break ;;default:_0xb94axb[_0xfa81[20]][_0xb94axd]={$like:{}};_0xb94axb[_0xfa81[20]][_0xb94axd][_0xfa81[30]]=_0xfa81[21]+_0xb94axc+_0xfa81[21];;}});DefaultReport[_0xfa81[46]](_0xb94axb)[_0xfa81[45]](function(_0xb94ax14){var _0xb94ax15=Math[_0xfa81[37]](_0xb94ax14[_0xfa81[36]]/_0xb94ax9);var _0xb94ax16=_0xb94ax15>(_0xb94axb[_0xfa81[38]]+1)?util[_0xfa81[18]](_0xfa81[39],_0xb94ax5[_0xfa81[40]],_0xb94ax5[_0xfa81[42]][_0xfa81[41]],_0xb94ax5[_0xfa81[43]],_0xb94axa+1):null;var _0xb94ax17=_0xb94axa>0?util[_0xfa81[18]](_0xfa81[39],_0xb94ax5[_0xfa81[40]],_0xb94ax5[_0xfa81[42]][_0xfa81[41]],_0xb94ax5[_0xfa81[43]],_0xb94axa-1):null;_0xb94ax6[_0xfa81[34]](200)[_0xfa81[33]]({count:_0xb94ax14[_0xfa81[36]],rows:_0xb94ax14[_0xfa81[44]],next_page:_0xb94ax16,previous_page:_0xb94ax17,total_pages:_0xb94ax15});})[_0xfa81[35]](function(_0xb94ax13){_0xb94ax6[_0xfa81[34]](500)[_0xfa81[33]]({error:_0xfa81[32]})});};exports[_0xfa81[47]]=function(_0xb94ax5,_0xb94ax6){DefaultReport[_0xfa81[51]](_0xb94ax5[_0xfa81[50]][_0xfa81[49]],{include:[{all:true}]})[_0xfa81[45]](function(_0xb94ax18){if(!_0xb94ax18){return _0xb94ax6[_0xfa81[48]](404)};return _0xb94ax6[_0xfa81[33]](_0xb94ax18);})[_0xfa81[35]](function(_0xb94ax13){return handleError(_0xb94ax6,_0xb94ax13)})};exports[_0xfa81[52]]=function(_0xb94ax5,_0xb94ax6){DefaultReport[_0xfa81[51]](_0xb94ax5[_0xfa81[50]][_0xfa81[49]],{include:[{all:true}]})[_0xfa81[45]](function(_0xb94ax18){if(!_0xb94ax18){return _0xb94ax6[_0xfa81[48]](404)};var _0xb94ax19=_0xb94ax18[_0xfa81[54]];delete _0xb94ax19[_0xfa81[49]];delete _0xb94ax19[_0xfa81[55]];delete _0xb94ax19[_0xfa81[56]];_0xb94ax19[_0xfa81[9]]=_0xb94ax5[_0xfa81[57]][_0xfa81[9]];_0xb94ax19[_0xfa81[58]]=_[_0xfa81[59]](_0xb94ax19.Fields,_0xfa81[54]);_[_0xfa81[23]](_0xb94ax19.Fields,function(_0xb94ax1a){delete _0xb94ax1a[_0xfa81[49]];delete _0xb94ax1a[_0xfa81[60]];delete _0xb94ax1a[_0xfa81[55]];delete _0xb94ax1a[_0xfa81[56]];});return CustomReport[_0xfa81[61]](_0xb94ax19,{include:[{all:true}]});})[_0xfa81[45]](function(){return _0xb94ax6[_0xfa81[48]](201)})[_0xfa81[35]](function(_0xb94ax13){console[_0xfa81[53]](_0xb94ax13);return handleError(_0xb94ax6,_0xb94ax13);})};exports[_0xfa81[61]]=function(_0xb94ax5,_0xb94ax6){DefaultReport[_0xfa81[61]](_0xb94ax5[_0xfa81[57]])[_0xfa81[45]](function(_0xb94ax18){return _0xb94ax6[_0xfa81[34]](201)[_0xfa81[33]](_0xb94ax18)})[_0xfa81[35]](function(_0xb94ax13){return handleError(_0xb94ax6,_0xb94ax13)})};exports[_0xfa81[62]]=function(_0xb94ax5,_0xb94ax6){if(_0xb94ax5[_0xfa81[57]][_0xfa81[49]]){delete _0xb94ax5[_0xfa81[57]][_0xfa81[49]]};DefaultReport[_0xfa81[51]](_0xb94ax5[_0xfa81[50]][_0xfa81[49]])[_0xfa81[45]](function(_0xb94ax18){if(!_0xb94ax18){return _0xb94ax6[_0xfa81[48]](404)};var _0xb94ax1b=_[_0xfa81[63]](_0xb94ax18,_0xb94ax5[_0xfa81[57]]);_0xb94ax1b[_0xfa81[64]]()[_0xfa81[45]](function(){return _0xb94ax6[_0xfa81[34]](200)[_0xfa81[33]](_0xb94ax18)})[_0xfa81[35]](function(_0xb94ax13){return handleError(_0xb94ax6,_0xb94ax13)});})[_0xfa81[35]](function(_0xb94ax13){return handleError(_0xb94ax6,_0xb94ax13)});};exports[_0xfa81[65]]=function(_0xb94ax5,_0xb94ax6){DefaultReport[_0xfa81[51]](_0xb94ax5[_0xfa81[50]][_0xfa81[49]])[_0xfa81[45]](function(_0xb94ax18){if(!_0xb94ax18){return _0xb94ax6[_0xfa81[48]](404)};_0xb94ax18[_0xfa81[65]]()[_0xfa81[45]](function(){return _0xb94ax6[_0xfa81[48]](204)})[_0xfa81[35]](function(_0xb94ax13){return handleError(_0xb94ax6,_0xb94ax13)});})[_0xfa81[35]](function(_0xb94ax13){return handleError(_0xb94ax6,_0xb94ax13)})};function handleError(_0xb94ax6,_0xb94ax13){return _0xb94ax6[_0xfa81[34]](500)[_0xfa81[33]](_0xb94ax13)}
\ No newline at end of file
+var _0xdea8=["\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"];_0xdea8[0];var _=require(_0xdea8[1]);var util=require(_0xdea8[2]);var DefaultReport=require(_0xdea8[4])[_0xdea8[3]];var CustomReport=require(_0xdea8[4])[_0xdea8[5]];exports[_0xdea8[6]]=function(_0xaa45x5,_0xaa45x6,_0xaa45x7){var _0xaa45x8=[_0xdea8[7],_0xdea8[8],_0xdea8[9]];var _0xaa45x9=_0xaa45x5[_0xdea8[11]][_0xdea8[10]]?parseInt(_0xaa45x5[_0xdea8[11]][_0xdea8[10]],10):100;var _0xaa45xa=_0xaa45x5[_0xdea8[11]][_0xdea8[12]]?parseInt(_0xaa45x5[_0xdea8[11]][_0xdea8[12]],10):0;var _0xaa45xb={where:{},limit:_0xaa45x9,offset:_0xaa45xa*_0xaa45x9};_[_0xdea8[31]](_0xaa45x5[_0xdea8[11]],function(_0xaa45xc,_0xaa45xd){switch(_0xaa45xd){case _0xdea8[10]:;case _0xdea8[12]:break ;;case _0xdea8[15]:_0xaa45xb[_0xdea8[13]]=util[_0xdea8[18]](_0xdea8[14],_0xaa45x5[_0xdea8[11]][_0xdea8[15]],_0xaa45x5[_0xdea8[11]][_0xdea8[16]]||_0xdea8[17])||null;break ;;case _0xdea8[16]:break ;;case _0xdea8[24]:_0xaa45xb[_0xdea8[20]][_0xdea8[19]]=[];_0xaa45x8[_0xdea8[23]](function(_0xaa45xe){var _0xaa45xf={};_0xaa45xf[_0xaa45xe]={$like:_0xdea8[21]+_0xaa45xc+_0xdea8[21]};_0xaa45xb[_0xdea8[20]][_0xdea8[19]][_0xdea8[22]](_0xaa45xf);});break ;;case _0xdea8[25]:_0xaa45xb[_0xdea8[20]][_0xdea8[25]]={$or:_0xaa45xc[_0xdea8[26]](/[\s,]+/)};break ;;case _0xdea8[29]:var _0xaa45x10=JSON[_0xdea8[27]](_0xaa45xc);_[_0xdea8[28]](_0xaa45x10,function(_0xaa45x11,_0xaa45x12){_0xaa45xb[_0xdea8[20]][_0xaa45x12]=_0xaa45x11});break ;;default:_0xaa45xb[_0xdea8[20]][_0xaa45xd]={$like:{}};_0xaa45xb[_0xdea8[20]][_0xaa45xd][_0xdea8[30]]=_0xdea8[21]+_0xaa45xc+_0xdea8[21];;}});DefaultReport[_0xdea8[46]](_0xaa45xb)[_0xdea8[45]](function(_0xaa45x14){var _0xaa45x15=Math[_0xdea8[37]](_0xaa45x14[_0xdea8[36]]/_0xaa45x9);var _0xaa45x16=_0xaa45x15>(_0xaa45xb[_0xdea8[38]]+1)?util[_0xdea8[18]](_0xdea8[39],_0xaa45x5[_0xdea8[40]],_0xaa45x5[_0xdea8[42]][_0xdea8[41]],_0xaa45x5[_0xdea8[43]],_0xaa45xa+1):null;var _0xaa45x17=_0xaa45xa>0?util[_0xdea8[18]](_0xdea8[39],_0xaa45x5[_0xdea8[40]],_0xaa45x5[_0xdea8[42]][_0xdea8[41]],_0xaa45x5[_0xdea8[43]],_0xaa45xa-1):null;_0xaa45x6[_0xdea8[34]](200)[_0xdea8[33]]({count:_0xaa45x14[_0xdea8[36]],rows:_0xaa45x14[_0xdea8[44]],next_page:_0xaa45x16,previous_page:_0xaa45x17,total_pages:_0xaa45x15});})[_0xdea8[35]](function(_0xaa45x13){_0xaa45x6[_0xdea8[34]](500)[_0xdea8[33]]({error:_0xdea8[32]})});};exports[_0xdea8[47]]=function(_0xaa45x5,_0xaa45x6){DefaultReport[_0xdea8[51]](_0xaa45x5[_0xdea8[50]][_0xdea8[49]],{include:[{all:true}]})[_0xdea8[45]](function(_0xaa45x18){if(!_0xaa45x18){return _0xaa45x6[_0xdea8[48]](404)};return _0xaa45x6[_0xdea8[33]](_0xaa45x18);})[_0xdea8[35]](function(_0xaa45x13){return handleError(_0xaa45x6,_0xaa45x13)})};exports[_0xdea8[52]]=function(_0xaa45x5,_0xaa45x6){DefaultReport[_0xdea8[51]](_0xaa45x5[_0xdea8[50]][_0xdea8[49]],{include:[{all:true}]})[_0xdea8[45]](function(_0xaa45x18){if(!_0xaa45x18){return _0xaa45x6[_0xdea8[48]](404)};var _0xaa45x19=_0xaa45x18[_0xdea8[54]];delete _0xaa45x19[_0xdea8[49]];delete _0xaa45x19[_0xdea8[55]];delete _0xaa45x19[_0xdea8[56]];_0xaa45x19[_0xdea8[9]]=_0xaa45x5[_0xdea8[57]][_0xdea8[9]];_0xaa45x19[_0xdea8[58]]=_[_0xdea8[59]](_0xaa45x19.Fields,_0xdea8[54]);_[_0xdea8[23]](_0xaa45x19.Fields,function(_0xaa45x1a){delete _0xaa45x1a[_0xdea8[49]];delete _0xaa45x1a[_0xdea8[60]];delete _0xaa45x1a[_0xdea8[55]];delete _0xaa45x1a[_0xdea8[56]];});return CustomReport[_0xdea8[61]](_0xaa45x19,{include:[{all:true}]});})[_0xdea8[45]](function(){return _0xaa45x6[_0xdea8[48]](201)})[_0xdea8[35]](function(_0xaa45x13){console[_0xdea8[53]](_0xaa45x13);return handleError(_0xaa45x6,_0xaa45x13);})};exports[_0xdea8[61]]=function(_0xaa45x5,_0xaa45x6){DefaultReport[_0xdea8[61]](_0xaa45x5[_0xdea8[57]])[_0xdea8[45]](function(_0xaa45x18){return _0xaa45x6[_0xdea8[34]](201)[_0xdea8[33]](_0xaa45x18)})[_0xdea8[35]](function(_0xaa45x13){return handleError(_0xaa45x6,_0xaa45x13)})};exports[_0xdea8[62]]=function(_0xaa45x5,_0xaa45x6){if(_0xaa45x5[_0xdea8[57]][_0xdea8[49]]){delete _0xaa45x5[_0xdea8[57]][_0xdea8[49]]};DefaultReport[_0xdea8[51]](_0xaa45x5[_0xdea8[50]][_0xdea8[49]])[_0xdea8[45]](function(_0xaa45x18){if(!_0xaa45x18){return _0xaa45x6[_0xdea8[48]](404)};var _0xaa45x1b=_[_0xdea8[63]](_0xaa45x18,_0xaa45x5[_0xdea8[57]]);_0xaa45x1b[_0xdea8[64]]()[_0xdea8[45]](function(){return _0xaa45x6[_0xdea8[34]](200)[_0xdea8[33]](_0xaa45x18)})[_0xdea8[35]](function(_0xaa45x13){return handleError(_0xaa45x6,_0xaa45x13)});})[_0xdea8[35]](function(_0xaa45x13){return handleError(_0xaa45x6,_0xaa45x13)});};exports[_0xdea8[65]]=function(_0xaa45x5,_0xaa45x6){DefaultReport[_0xdea8[51]](_0xaa45x5[_0xdea8[50]][_0xdea8[49]])[_0xdea8[45]](function(_0xaa45x18){if(!_0xaa45x18){return _0xaa45x6[_0xdea8[48]](404)};_0xaa45x18[_0xdea8[65]]()[_0xdea8[45]](function(){return _0xaa45x6[_0xdea8[48]](204)})[_0xdea8[35]](function(_0xaa45x13){return handleError(_0xaa45x6,_0xaa45x13)});})[_0xdea8[35]](function(_0xaa45x13){return handleError(_0xaa45x6,_0xaa45x13)})};function handleError(_0xaa45x6,_0xaa45x13){return _0xaa45x6[_0xdea8[34]](500)[_0xdea8[33]](_0xaa45x13)}
\ No newline at end of file
-var _0xe1b4=["\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"];_0xe1b4[0];var DefaultReport=require(_0xe1b4[2])[_0xe1b4[1]];exports[_0xe1b4[3]]=function(_0x43ffx2){DefaultReport[_0xe1b4[4]](function(_0x43ffx3){onSave(_0x43ffx2,_0x43ffx3)});DefaultReport[_0xe1b4[5]](function(_0x43ffx3){onRemove(_0x43ffx2,_0x43ffx3)});};function onSave(_0x43ffx2,_0x43ffx3,_0x43ffx5){_0x43ffx2[_0xe1b4[7]](_0xe1b4[6],_0x43ffx3)}function onRemove(_0x43ffx2,_0x43ffx3,_0x43ffx5){_0x43ffx2[_0xe1b4[7]](_0xe1b4[8],_0x43ffx3)}
\ No newline at end of file
+var _0xfc6c=["\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"];_0xfc6c[0];var DefaultReport=require(_0xfc6c[2])[_0xfc6c[1]];exports[_0xfc6c[3]]=function(_0x613dx2){DefaultReport[_0xfc6c[4]](function(_0x613dx3){onSave(_0x613dx2,_0x613dx3)});DefaultReport[_0xfc6c[5]](function(_0x613dx3){onRemove(_0x613dx2,_0x613dx3)});};function onSave(_0x613dx2,_0x613dx3,_0x613dx5){_0x613dx2[_0xfc6c[7]](_0xfc6c[6],_0x613dx3)}function onRemove(_0x613dx2,_0x613dx3,_0x613dx5){_0x613dx2[_0xfc6c[7]](_0xfc6c[8],_0x613dx3)}
\ No newline at end of file
-var _0x580e=["\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"];_0x580e[0];var should=require(_0x580e[1]);var app=require(_0x580e[2]);var request=require(_0x580e[3]);describe(_0x580e[4],function(){it(_0x580e[5],function(_0x4d34x4){request(app)[_0x580e[13]](_0x580e[12])[_0x580e[11]](200)[_0x580e[11]](_0x580e[10],/json/)[_0x580e[9]](function(_0x4d34x5,_0x4d34x6){if(_0x4d34x5){return _0x4d34x4(_0x4d34x5)};_0x4d34x6[_0x580e[8]][_0x580e[1]][_0x580e[7]][_0x580e[6]](Array);_0x4d34x4();})})});
\ No newline at end of file
+var _0xf13e=["\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"];_0xf13e[0];var should=require(_0xf13e[1]);var app=require(_0xf13e[2]);var request=require(_0xf13e[3]);describe(_0xf13e[4],function(){it(_0xf13e[5],function(_0x186ex4){request(app)[_0xf13e[13]](_0xf13e[12])[_0xf13e[11]](200)[_0xf13e[11]](_0xf13e[10],/json/)[_0xf13e[9]](function(_0x186ex5,_0x186ex6){if(_0x186ex5){return _0x186ex4(_0x186ex5)};_0x186ex6[_0xf13e[8]][_0xf13e[1]][_0xf13e[7]][_0xf13e[6]](Array);_0x186ex4();})})});
\ No newline at end of file
-var _0xddba=["\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"];_0xddba[0];var express=require(_0xddba[1]);var controller=require(_0xddba[2]);var router=express.Router();router[_0xddba[5]](_0xddba[3],controller[_0xddba[4]]);router[_0xddba[5]](_0xddba[6],controller[_0xddba[7]]);router[_0xddba[9]](_0xddba[3],controller[_0xddba[8]]);router[_0xddba[9]](_0xddba[10],controller[_0xddba[11]]);router[_0xddba[13]](_0xddba[6],controller[_0xddba[12]]);router[_0xddba[14]](_0xddba[6],controller[_0xddba[12]]);router[_0xddba[16]](_0xddba[6],controller[_0xddba[15]]);module[_0xddba[17]]=router;
\ No newline at end of file
+var _0xe4c2=["\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"];_0xe4c2[0];var express=require(_0xe4c2[1]);var controller=require(_0xe4c2[2]);var router=express.Router();router[_0xe4c2[5]](_0xe4c2[3],controller[_0xe4c2[4]]);router[_0xe4c2[5]](_0xe4c2[6],controller[_0xe4c2[7]]);router[_0xe4c2[9]](_0xe4c2[3],controller[_0xe4c2[8]]);router[_0xe4c2[9]](_0xe4c2[10],controller[_0xe4c2[11]]);router[_0xe4c2[13]](_0xe4c2[6],controller[_0xe4c2[12]]);router[_0xe4c2[14]](_0xe4c2[6],controller[_0xe4c2[12]]);router[_0xe4c2[16]](_0xe4c2[6],controller[_0xe4c2[15]]);module[_0xe4c2[17]]=router;
\ No newline at end of file
-var _0xfa82=["\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"];_0xfa82[0];var _=require(_0xfa82[1]);var util=require(_0xfa82[2]);var desk=require(_0xfa82[3]);var DeskAccount=require(_0xfa82[5])[_0xfa82[4]];exports[_0xfa82[6]]=function(_0x9244x5,_0x9244x6){var _0x9244x7=[_0xfa82[7],_0xfa82[8],_0xfa82[9],_0xfa82[10]];var _0x9244x8=_0x9244x5[_0xfa82[12]][_0xfa82[11]]?parseInt(_0x9244x5[_0xfa82[12]][_0xfa82[11]],10):100;var _0x9244x9=_0x9244x5[_0xfa82[12]][_0xfa82[13]]?parseInt(_0x9244x5[_0xfa82[12]][_0xfa82[13]],10):0;var _0x9244xa={where:{},limit:_0x9244x8,offset:_0x9244x9*_0x9244x8};_[_0xfa82[27]](_0x9244x5[_0xfa82[12]],function(_0x9244xb,_0x9244xc){switch(_0x9244xc){case _0xfa82[11]:;case _0xfa82[13]:break ;;case _0xfa82[16]:_0x9244xa[_0xfa82[14]]=util[_0xfa82[19]](_0xfa82[15],_0x9244x5[_0xfa82[12]][_0xfa82[16]],_0x9244x5[_0xfa82[12]][_0xfa82[17]]||_0xfa82[18])||null;break ;;case _0xfa82[17]:break ;;case _0xfa82[25]:_0x9244xa[_0xfa82[21]][_0xfa82[20]]=[];_0x9244x7[_0xfa82[24]](function(_0x9244xd){var _0x9244xe={};_0x9244xe[_0x9244xd]={$like:_0xfa82[22]+_0x9244xb+_0xfa82[22]};_0x9244xa[_0xfa82[21]][_0xfa82[20]][_0xfa82[23]](_0x9244xe);});break ;;default:_0x9244xa[_0xfa82[21]][_0x9244xc]={$like:{}};_0x9244xa[_0xfa82[21]][_0x9244xc][_0xfa82[26]]=_0xfa82[22]+_0x9244xb+_0xfa82[22];;}});DeskAccount[_0xfa82[42]](_0x9244xa)[_0xfa82[41]](function(_0x9244x10){var _0x9244x11=Math[_0xfa82[33]](_0x9244x10[_0xfa82[32]]/_0x9244x8);var _0x9244x12=_0x9244x11>(_0x9244xa[_0xfa82[34]]+1)?util[_0xfa82[19]](_0xfa82[35],_0x9244x5[_0xfa82[36]],_0x9244x5[_0xfa82[38]][_0xfa82[37]],_0x9244x5[_0xfa82[39]],_0x9244x9+1):null;var _0x9244x13=_0x9244x9>0?util[_0xfa82[19]](_0xfa82[35],_0x9244x5[_0xfa82[36]],_0x9244x5[_0xfa82[38]][_0xfa82[37]],_0x9244x5[_0xfa82[39]],_0x9244x9-1):null;return _0x9244x6[_0xfa82[30]](200)[_0xfa82[29]]({count:_0x9244x10[_0xfa82[32]],rows:_0x9244x10[_0xfa82[40]],next_page:_0x9244x12,previous_page:_0x9244x13,total_pages:_0x9244x11});})[_0xfa82[31]](function(_0x9244xf){return _0x9244x6[_0xfa82[30]](500)[_0xfa82[29]]({error:_0xfa82[28]})});};exports[_0xfa82[43]]=function(_0x9244x5,_0x9244x6){DeskAccount[_0xfa82[47]](_0x9244x5[_0xfa82[46]][_0xfa82[45]])[_0xfa82[41]](function(_0x9244x14){if(!_0x9244x14){return _0x9244x6[_0xfa82[44]](404)};return _0x9244x6[_0xfa82[29]](_0x9244x14);})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)})};exports[_0xfa82[48]]=function(_0x9244x5,_0x9244x6,_0x9244x15){DeskAccount[_0xfa82[48]](_0x9244x5[_0xfa82[49]])[_0xfa82[41]](function(_0x9244x14){return _0x9244x6[_0xfa82[30]](201)[_0xfa82[29]](_0x9244x14)})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)})};exports[_0xfa82[50]]=function(_0x9244x5,_0x9244x6){if(_0x9244x5[_0xfa82[49]][_0xfa82[45]]){delete _0x9244x5[_0xfa82[49]][_0xfa82[45]]};DeskAccount[_0xfa82[47]](_0x9244x5[_0xfa82[46]][_0xfa82[45]])[_0xfa82[41]](function(_0x9244x14){if(!_0x9244x14){return _0x9244x6[_0xfa82[44]](404)};var _0x9244x16=_[_0xfa82[51]](_0x9244x14,_0x9244x5[_0xfa82[49]]);_0x9244x16[_0xfa82[52]]()[_0xfa82[41]](function(){return _0x9244x6[_0xfa82[30]](200)[_0xfa82[29]](_0x9244x14)})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)});})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)});};exports[_0xfa82[53]]=function(_0x9244x5,_0x9244x6){DeskAccount[_0xfa82[47]](_0x9244x5[_0xfa82[46]][_0xfa82[45]])[_0xfa82[41]](function(_0x9244x14){if(!_0x9244x14){return _0x9244x6[_0xfa82[44]](404)};_0x9244x14[_0xfa82[53]]()[_0xfa82[41]](function(){return _0x9244x6[_0xfa82[44]](204)})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)});})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)})};exports[_0xfa82[54]]=function(_0x9244x5,_0x9244x6){DeskAccount[_0xfa82[47]](_0x9244x5[_0xfa82[46]][_0xfa82[45]])[_0xfa82[41]](function(_0x9244x17){var _0x9244x14={endpoint:stripTrailingSlash(_0x9244x17[_0xfa82[10]]),retry:false};if(_0x9244x17[_0xfa82[55]]===_0xfa82[56]){_0x9244x14[_0xfa82[9]]=_0x9244x17[_0xfa82[9]];_0x9244x14[_0xfa82[57]]=_0x9244x17[_0xfa82[57]];}else {if(_0x9244x17[_0xfa82[55]]===_0xfa82[58]){_0x9244x14[_0xfa82[59]]=_0x9244x17[_0xfa82[59]];_0x9244x14[_0xfa82[60]]=_0x9244x17[_0xfa82[60]];_0x9244x14[_0xfa82[61]]=_0x9244x17[_0xfa82[61]];_0x9244x14[_0xfa82[62]]=_0x9244x17[_0xfa82[62]];}};var _0x9244x18=desk[_0xfa82[63]](_0x9244x14);_0x9244x18[_0xfa82[65]](_0xfa82[64],function(_0x9244xf,_0x9244x19,_0x9244x1a){if(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)};return _0x9244x6[_0xfa82[44]](200);});})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)})};exports[_0xfa82[66]]=function(_0x9244x5,_0x9244x6){var _0x9244x1b={};_0x9244x1b[_0x9244x5[_0xfa82[46]][_0xfa82[67]]]=_0x9244x5[_0xfa82[49]][_0xfa82[68]];DeskAccount[_0xfa82[42]]({where:_0x9244x1b})[_0xfa82[41]](function(_0x9244x10){if(_0x9244x10[_0xfa82[32]]){return _0x9244x6[_0xfa82[30]](200)[_0xfa82[29]]({isValid:false,value:_0x9244x5[_0xfa82[49]][_0xfa82[68]]})};return _0x9244x6[_0xfa82[30]](200)[_0xfa82[29]]({isValid:true,value:_0x9244x5[_0xfa82[49]][_0xfa82[68]]});})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)});};exports[_0xfa82[69]]=function(_0x9244x5,_0x9244x6){DeskAccount[_0xfa82[47]](_0x9244x5[_0xfa82[46]][_0xfa82[45]])[_0xfa82[41]](function(_0x9244x17){var _0x9244x14={endpoint:stripTrailingSlash(_0x9244x17[_0xfa82[10]]),retry:false};if(_0x9244x17[_0xfa82[55]]===_0xfa82[56]){_0x9244x14[_0xfa82[9]]=_0x9244x17[_0xfa82[9]];_0x9244x14[_0xfa82[57]]=_0x9244x17[_0xfa82[57]];}else {if(_0x9244x17[_0xfa82[55]]===_0xfa82[58]){_0x9244x14[_0xfa82[59]]=_0x9244x17[_0xfa82[59]];_0x9244x14[_0xfa82[60]]=_0x9244x17[_0xfa82[60]];_0x9244x14[_0xfa82[61]]=_0x9244x17[_0xfa82[61]];_0x9244x14[_0xfa82[62]]=_0x9244x17[_0xfa82[62]];}};var _0x9244x18=desk[_0xfa82[63]](_0x9244x14);_0x9244x18[_0xfa82[65]](_0xfa82[70],function(_0x9244xf,_0x9244x19,_0x9244x1a){if(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)};return _0x9244x6[_0xfa82[30]](200)[_0xfa82[73]](_0x9244x19[_0xfa82[72]][_0xfa82[71]]);});})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)})};exports[_0xfa82[74]]=function(_0x9244x5,_0x9244x6){DeskAccount[_0xfa82[53]]({where:{id:_0x9244x5[_0xfa82[12]][_0xfa82[45]]},individualHooks:true})[_0xfa82[41]](function(){return _0x9244x6[_0xfa82[44]](204)})[_0xfa82[31]](function(_0x9244xf){return handleError(_0x9244x6,_0x9244xf)})};function stripTrailingSlash(_0x9244x1d){if(_0x9244x1d[_0xfa82[75]](-1)===_0xfa82[76]){return _0x9244x1d[_0xfa82[75]](0,_0x9244x1d[_0xfa82[77]]-1)};return _0x9244x1d;}function handleError(_0x9244x6,_0x9244xf){return _0x9244x6[_0xfa82[30]](500)[_0xfa82[29]](_0x9244xf)}
\ No newline at end of file
+var _0x25e9=["\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"];_0x25e9[0];var _=require(_0x25e9[1]);var util=require(_0x25e9[2]);var desk=require(_0x25e9[3]);var DeskAccount=require(_0x25e9[5])[_0x25e9[4]];exports[_0x25e9[6]]=function(_0x2dd0x5,_0x2dd0x6){var _0x2dd0x7=[_0x25e9[7],_0x25e9[8],_0x25e9[9],_0x25e9[10]];var _0x2dd0x8=_0x2dd0x5[_0x25e9[12]][_0x25e9[11]]?parseInt(_0x2dd0x5[_0x25e9[12]][_0x25e9[11]],10):100;var _0x2dd0x9=_0x2dd0x5[_0x25e9[12]][_0x25e9[13]]?parseInt(_0x2dd0x5[_0x25e9[12]][_0x25e9[13]],10):0;var _0x2dd0xa={where:{},limit:_0x2dd0x8,offset:_0x2dd0x9*_0x2dd0x8};_[_0x25e9[27]](_0x2dd0x5[_0x25e9[12]],function(_0x2dd0xb,_0x2dd0xc){switch(_0x2dd0xc){case _0x25e9[11]:;case _0x25e9[13]:break ;;case _0x25e9[16]:_0x2dd0xa[_0x25e9[14]]=util[_0x25e9[19]](_0x25e9[15],_0x2dd0x5[_0x25e9[12]][_0x25e9[16]],_0x2dd0x5[_0x25e9[12]][_0x25e9[17]]||_0x25e9[18])||null;break ;;case _0x25e9[17]:break ;;case _0x25e9[25]:_0x2dd0xa[_0x25e9[21]][_0x25e9[20]]=[];_0x2dd0x7[_0x25e9[24]](function(_0x2dd0xd){var _0x2dd0xe={};_0x2dd0xe[_0x2dd0xd]={$like:_0x25e9[22]+_0x2dd0xb+_0x25e9[22]};_0x2dd0xa[_0x25e9[21]][_0x25e9[20]][_0x25e9[23]](_0x2dd0xe);});break ;;default:_0x2dd0xa[_0x25e9[21]][_0x2dd0xc]={$like:{}};_0x2dd0xa[_0x25e9[21]][_0x2dd0xc][_0x25e9[26]]=_0x25e9[22]+_0x2dd0xb+_0x25e9[22];;}});DeskAccount[_0x25e9[42]](_0x2dd0xa)[_0x25e9[41]](function(_0x2dd0x10){var _0x2dd0x11=Math[_0x25e9[33]](_0x2dd0x10[_0x25e9[32]]/_0x2dd0x8);var _0x2dd0x12=_0x2dd0x11>(_0x2dd0xa[_0x25e9[34]]+1)?util[_0x25e9[19]](_0x25e9[35],_0x2dd0x5[_0x25e9[36]],_0x2dd0x5[_0x25e9[38]][_0x25e9[37]],_0x2dd0x5[_0x25e9[39]],_0x2dd0x9+1):null;var _0x2dd0x13=_0x2dd0x9>0?util[_0x25e9[19]](_0x25e9[35],_0x2dd0x5[_0x25e9[36]],_0x2dd0x5[_0x25e9[38]][_0x25e9[37]],_0x2dd0x5[_0x25e9[39]],_0x2dd0x9-1):null;return _0x2dd0x6[_0x25e9[30]](200)[_0x25e9[29]]({count:_0x2dd0x10[_0x25e9[32]],rows:_0x2dd0x10[_0x25e9[40]],next_page:_0x2dd0x12,previous_page:_0x2dd0x13,total_pages:_0x2dd0x11});})[_0x25e9[31]](function(_0x2dd0xf){return _0x2dd0x6[_0x25e9[30]](500)[_0x25e9[29]]({error:_0x25e9[28]})});};exports[_0x25e9[43]]=function(_0x2dd0x5,_0x2dd0x6){DeskAccount[_0x25e9[47]](_0x2dd0x5[_0x25e9[46]][_0x25e9[45]])[_0x25e9[41]](function(_0x2dd0x14){if(!_0x2dd0x14){return _0x2dd0x6[_0x25e9[44]](404)};return _0x2dd0x6[_0x25e9[29]](_0x2dd0x14);})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)})};exports[_0x25e9[48]]=function(_0x2dd0x5,_0x2dd0x6,_0x2dd0x15){DeskAccount[_0x25e9[48]](_0x2dd0x5[_0x25e9[49]])[_0x25e9[41]](function(_0x2dd0x14){return _0x2dd0x6[_0x25e9[30]](201)[_0x25e9[29]](_0x2dd0x14)})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)})};exports[_0x25e9[50]]=function(_0x2dd0x5,_0x2dd0x6){if(_0x2dd0x5[_0x25e9[49]][_0x25e9[45]]){delete _0x2dd0x5[_0x25e9[49]][_0x25e9[45]]};DeskAccount[_0x25e9[47]](_0x2dd0x5[_0x25e9[46]][_0x25e9[45]])[_0x25e9[41]](function(_0x2dd0x14){if(!_0x2dd0x14){return _0x2dd0x6[_0x25e9[44]](404)};var _0x2dd0x16=_[_0x25e9[51]](_0x2dd0x14,_0x2dd0x5[_0x25e9[49]]);_0x2dd0x16[_0x25e9[52]]()[_0x25e9[41]](function(){return _0x2dd0x6[_0x25e9[30]](200)[_0x25e9[29]](_0x2dd0x14)})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)});})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)});};exports[_0x25e9[53]]=function(_0x2dd0x5,_0x2dd0x6){DeskAccount[_0x25e9[47]](_0x2dd0x5[_0x25e9[46]][_0x25e9[45]])[_0x25e9[41]](function(_0x2dd0x14){if(!_0x2dd0x14){return _0x2dd0x6[_0x25e9[44]](404)};_0x2dd0x14[_0x25e9[53]]()[_0x25e9[41]](function(){return _0x2dd0x6[_0x25e9[44]](204)})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)});})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)})};exports[_0x25e9[54]]=function(_0x2dd0x5,_0x2dd0x6){DeskAccount[_0x25e9[47]](_0x2dd0x5[_0x25e9[46]][_0x25e9[45]])[_0x25e9[41]](function(_0x2dd0x17){var _0x2dd0x14={endpoint:stripTrailingSlash(_0x2dd0x17[_0x25e9[10]]),retry:false};if(_0x2dd0x17[_0x25e9[55]]===_0x25e9[56]){_0x2dd0x14[_0x25e9[9]]=_0x2dd0x17[_0x25e9[9]];_0x2dd0x14[_0x25e9[57]]=_0x2dd0x17[_0x25e9[57]];}else {if(_0x2dd0x17[_0x25e9[55]]===_0x25e9[58]){_0x2dd0x14[_0x25e9[59]]=_0x2dd0x17[_0x25e9[59]];_0x2dd0x14[_0x25e9[60]]=_0x2dd0x17[_0x25e9[60]];_0x2dd0x14[_0x25e9[61]]=_0x2dd0x17[_0x25e9[61]];_0x2dd0x14[_0x25e9[62]]=_0x2dd0x17[_0x25e9[62]];}};var _0x2dd0x18=desk[_0x25e9[63]](_0x2dd0x14);_0x2dd0x18[_0x25e9[65]](_0x25e9[64],function(_0x2dd0xf,_0x2dd0x19,_0x2dd0x1a){if(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)};return _0x2dd0x6[_0x25e9[44]](200);});})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)})};exports[_0x25e9[66]]=function(_0x2dd0x5,_0x2dd0x6){var _0x2dd0x1b={};_0x2dd0x1b[_0x2dd0x5[_0x25e9[46]][_0x25e9[67]]]=_0x2dd0x5[_0x25e9[49]][_0x25e9[68]];DeskAccount[_0x25e9[42]]({where:_0x2dd0x1b})[_0x25e9[41]](function(_0x2dd0x10){if(_0x2dd0x10[_0x25e9[32]]){return _0x2dd0x6[_0x25e9[30]](200)[_0x25e9[29]]({isValid:false,value:_0x2dd0x5[_0x25e9[49]][_0x25e9[68]]})};return _0x2dd0x6[_0x25e9[30]](200)[_0x25e9[29]]({isValid:true,value:_0x2dd0x5[_0x25e9[49]][_0x25e9[68]]});})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)});};exports[_0x25e9[69]]=function(_0x2dd0x5,_0x2dd0x6){DeskAccount[_0x25e9[47]](_0x2dd0x5[_0x25e9[46]][_0x25e9[45]])[_0x25e9[41]](function(_0x2dd0x17){var _0x2dd0x14={endpoint:stripTrailingSlash(_0x2dd0x17[_0x25e9[10]]),retry:false};if(_0x2dd0x17[_0x25e9[55]]===_0x25e9[56]){_0x2dd0x14[_0x25e9[9]]=_0x2dd0x17[_0x25e9[9]];_0x2dd0x14[_0x25e9[57]]=_0x2dd0x17[_0x25e9[57]];}else {if(_0x2dd0x17[_0x25e9[55]]===_0x25e9[58]){_0x2dd0x14[_0x25e9[59]]=_0x2dd0x17[_0x25e9[59]];_0x2dd0x14[_0x25e9[60]]=_0x2dd0x17[_0x25e9[60]];_0x2dd0x14[_0x25e9[61]]=_0x2dd0x17[_0x25e9[61]];_0x2dd0x14[_0x25e9[62]]=_0x2dd0x17[_0x25e9[62]];}};var _0x2dd0x18=desk[_0x25e9[63]](_0x2dd0x14);_0x2dd0x18[_0x25e9[65]](_0x25e9[70],function(_0x2dd0xf,_0x2dd0x19,_0x2dd0x1a){if(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)};return _0x2dd0x6[_0x25e9[30]](200)[_0x25e9[73]](_0x2dd0x19[_0x25e9[72]][_0x25e9[71]]);});})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)})};exports[_0x25e9[74]]=function(_0x2dd0x5,_0x2dd0x6){DeskAccount[_0x25e9[53]]({where:{id:_0x2dd0x5[_0x25e9[12]][_0x25e9[45]]},individualHooks:true})[_0x25e9[41]](function(){return _0x2dd0x6[_0x25e9[44]](204)})[_0x25e9[31]](function(_0x2dd0xf){return handleError(_0x2dd0x6,_0x2dd0xf)})};function stripTrailingSlash(_0x2dd0x1d){if(_0x2dd0x1d[_0x25e9[75]](-1)===_0x25e9[76]){return _0x2dd0x1d[_0x25e9[75]](0,_0x2dd0x1d[_0x25e9[77]]-1)};return _0x2dd0x1d;}function handleError(_0x2dd0x6,_0x2dd0xf){return _0x2dd0x6[_0x25e9[30]](500)[_0x25e9[29]](_0x2dd0xf)}
\ No newline at end of file
-var _0x94e6=["\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"];_0x94e6[0];var DeskAccount=require(_0x94e6[2])[_0x94e6[1]];exports[_0x94e6[3]]=function(_0x6f79x2){DeskAccount[_0x94e6[4]](function(_0x6f79x3){onSave(_0x6f79x2,_0x6f79x3)});DeskAccount[_0x94e6[5]](function(_0x6f79x3){onRemove(_0x6f79x2,_0x6f79x3)});};function onSave(_0x6f79x2,_0x6f79x3,_0x6f79x5){_0x6f79x2[_0x94e6[7]](_0x94e6[6],_0x6f79x3)}function onRemove(_0x6f79x2,_0x6f79x3,_0x6f79x5){_0x6f79x2[_0x94e6[7]](_0x94e6[8],_0x6f79x3)}
\ No newline at end of file
+var _0xc418=["\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"];_0xc418[0];var DeskAccount=require(_0xc418[2])[_0xc418[1]];exports[_0xc418[3]]=function(_0x1582x2){DeskAccount[_0xc418[4]](function(_0x1582x3){onSave(_0x1582x2,_0x1582x3)});DeskAccount[_0xc418[5]](function(_0x1582x3){onRemove(_0x1582x2,_0x1582x3)});};function onSave(_0x1582x2,_0x1582x3,_0x1582x5){_0x1582x2[_0xc418[7]](_0xc418[6],_0x1582x3)}function onRemove(_0x1582x2,_0x1582x3,_0x1582x5){_0x1582x2[_0xc418[7]](_0xc418[8],_0x1582x3)}
\ No newline at end of file
-var _0x4201=["\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"];_0x4201[0];var should=require(_0x4201[1]);var app=require(_0x4201[2]);var request=require(_0x4201[3]);describe(_0x4201[4],function(){it(_0x4201[5],function(_0xcc0cx4){request(app)[_0x4201[13]](_0x4201[12])[_0x4201[11]](200)[_0x4201[11]](_0x4201[10],/json/)[_0x4201[9]](function(_0xcc0cx5,_0xcc0cx6){if(_0xcc0cx5){return _0xcc0cx4(_0xcc0cx5)};_0xcc0cx6[_0x4201[8]][_0x4201[1]][_0x4201[7]][_0x4201[6]](Array);_0xcc0cx4();})})});
\ No newline at end of file
+var _0x62fb=["\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"];_0x62fb[0];var should=require(_0x62fb[1]);var app=require(_0x62fb[2]);var request=require(_0x62fb[3]);describe(_0x62fb[4],function(){it(_0x62fb[5],function(_0x382fx4){request(app)[_0x62fb[13]](_0x62fb[12])[_0x62fb[11]](200)[_0x62fb[11]](_0x62fb[10],/json/)[_0x62fb[9]](function(_0x382fx5,_0x382fx6){if(_0x382fx5){return _0x382fx4(_0x382fx5)};_0x382fx6[_0x62fb[8]][_0x62fb[1]][_0x62fb[7]][_0x62fb[6]](Array);_0x382fx4();})})});
\ No newline at end of file
-var _0x358b=["\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"];_0x358b[0];var express=require(_0x358b[1]);var controller=require(_0x358b[2]);var auth=require(_0x358b[3]);var router=express.Router();router[_0x358b[7]](_0x358b[4],auth[_0x358b[5]](),controller[_0x358b[6]]);router[_0x358b[7]](_0x358b[8],auth[_0x358b[5]](),controller[_0x358b[9]]);router[_0x358b[7]](_0x358b[10],auth[_0x358b[5]](),controller[_0x358b[11]]);router[_0x358b[7]](_0x358b[12],auth[_0x358b[5]](),controller[_0x358b[13]]);router[_0x358b[16]](_0x358b[14],auth[_0x358b[5]](),controller[_0x358b[15]]);router[_0x358b[16]](_0x358b[4],auth[_0x358b[5]](),controller[_0x358b[17]]);router[_0x358b[19]](_0x358b[8],auth[_0x358b[5]](),controller[_0x358b[18]]);router[_0x358b[20]](_0x358b[8],auth[_0x358b[5]](),controller[_0x358b[18]]);router[_0x358b[22]](_0x358b[4],auth[_0x358b[5]](),controller[_0x358b[21]]);router[_0x358b[22]](_0x358b[8],auth[_0x358b[5]](),controller[_0x358b[23]]);module[_0x358b[24]]=router;
\ No newline at end of file
+var _0x700f=["\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"];_0x700f[0];var express=require(_0x700f[1]);var controller=require(_0x700f[2]);var auth=require(_0x700f[3]);var router=express.Router();router[_0x700f[7]](_0x700f[4],auth[_0x700f[5]](),controller[_0x700f[6]]);router[_0x700f[7]](_0x700f[8],auth[_0x700f[5]](),controller[_0x700f[9]]);router[_0x700f[7]](_0x700f[10],auth[_0x700f[5]](),controller[_0x700f[11]]);router[_0x700f[7]](_0x700f[12],auth[_0x700f[5]](),controller[_0x700f[13]]);router[_0x700f[16]](_0x700f[14],auth[_0x700f[5]](),controller[_0x700f[15]]);router[_0x700f[16]](_0x700f[4],auth[_0x700f[5]](),controller[_0x700f[17]]);router[_0x700f[19]](_0x700f[8],auth[_0x700f[5]](),controller[_0x700f[18]]);router[_0x700f[20]](_0x700f[8],auth[_0x700f[5]](),controller[_0x700f[18]]);router[_0x700f[22]](_0x700f[4],auth[_0x700f[5]](),controller[_0x700f[21]]);router[_0x700f[22]](_0x700f[8],auth[_0x700f[5]](),controller[_0x700f[23]]);module[_0x700f[24]]=router;
\ No newline at end of file
-var _0x24d7=["\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"];_0x24d7[0];var _=require(_0x24d7[1]);var DeskConfiguration=require(_0x24d7[3])[_0x24d7[2]];var DeskField=require(_0x24d7[3])[_0x24d7[4]];function handleError(_0x9da1x5,_0x9da1x6){_0x9da1x6=_0x9da1x6||500;return function(_0x9da1x7){_0x9da1x5[_0x24d7[6]](_0x9da1x6)[_0x24d7[5]](_0x9da1x7)};}function responseWithResult(_0x9da1x5,_0x9da1x6){_0x9da1x6=_0x9da1x6||200;return function(_0x9da1x9){if(_0x9da1x9){_0x9da1x5[_0x24d7[6]](_0x9da1x6)[_0x24d7[7]](_0x9da1x9)}};}function handleEntityNotFound(_0x9da1x5){return function(_0x9da1x9){if(!_0x9da1x9){_0x9da1x5[_0x24d7[6]](404)[_0x24d7[8]]();return null;};return _0x9da1x9;}}function saveUpdates(_0x9da1xc){return function(_0x9da1x9){return _0x9da1x9[_0x24d7[10]](_0x9da1xc)[_0x24d7[9]](function(_0x9da1xd){return _0x9da1xd})}}function removeEntity(_0x9da1x5){return function(_0x9da1x9){if(_0x9da1x9){return _0x9da1x9[_0x24d7[11]]()[_0x24d7[9]](function(){_0x9da1x5[_0x24d7[6]](204)[_0x24d7[8]]()})}}}exports[_0x24d7[12]]=function(_0x9da1xf,_0x9da1x5){DeskConfiguration[_0x24d7[15]]({where:_0x9da1xf[_0x24d7[14]]})[_0x24d7[9]](responseWithResult(_0x9da1x5))[_0x24d7[13]](handleError(_0x9da1x5))};exports[_0x24d7[16]]=function(_0x9da1xf,_0x9da1x5){DeskConfiguration[_0x24d7[22]]({where:{id:_0x9da1xf[_0x24d7[18]][_0x24d7[17]]},include:[{model:DeskField,as:_0x24d7[19]},{model:DeskField,as:_0x24d7[20]},{model:DeskField,as:_0x24d7[21]}]})[_0x24d7[9]](handleEntityNotFound(_0x9da1x5))[_0x24d7[9]](responseWithResult(_0x9da1x5))[_0x24d7[13]](handleError(_0x9da1x5))};exports[_0x24d7[23]]=function(_0x9da1xf,_0x9da1x5){DeskConfiguration[_0x24d7[23]](_0x9da1xf[_0x24d7[24]])[_0x24d7[9]](responseWithResult(_0x9da1x5,201))[_0x24d7[13]](handleError(_0x9da1x5))};exports[_0x24d7[25]]=function(_0x9da1xf,_0x9da1x5){if(_0x9da1xf[_0x24d7[24]][_0x24d7[17]]){delete _0x9da1xf[_0x24d7[24]][_0x24d7[17]]};DeskConfiguration[_0x24d7[26]](_0x9da1xf[_0x24d7[18]][_0x24d7[17]])[_0x24d7[9]](handleEntityNotFound(_0x9da1x5))[_0x24d7[9]](saveUpdates(_0x9da1xf[_0x24d7[24]]))[_0x24d7[9]](responseWithResult(_0x9da1x5))[_0x24d7[13]](handleError(_0x9da1x5));};exports[_0x24d7[11]]=function(_0x9da1xf,_0x9da1x5){DeskConfiguration[_0x24d7[26]](_0x9da1xf[_0x24d7[18]][_0x24d7[17]])[_0x24d7[9]](handleEntityNotFound(_0x9da1x5))[_0x24d7[9]](removeEntity(_0x9da1x5))[_0x24d7[13]](handleError(_0x9da1x5))};exports[_0x24d7[27]]=function(_0x9da1xf,_0x9da1x5,_0x9da1x10){var _0x9da1x11;DeskConfiguration[_0x24d7[26]](_0x9da1xf[_0x24d7[18]][_0x24d7[17]])[_0x24d7[9]](handleEntityNotFound(_0x9da1x5))[_0x24d7[9]](function(_0x9da1x14){_0x9da1x11=_0x9da1x14;return DeskField[_0x24d7[23]](_0x9da1xf[_0x24d7[24]]);})[_0x24d7[9]](function(_0x9da1x13){switch(_0x9da1xf[_0x24d7[18]][_0x24d7[35]]){case _0x24d7[30]:return [_0x9da1x11[_0x24d7[29]](_0x9da1x13),_0x9da1x13];;case _0x24d7[32]:return [_0x9da1x11[_0x24d7[31]](_0x9da1x13),_0x9da1x13];;case _0x24d7[34]:return [_0x9da1x11[_0x24d7[33]](_0x9da1x13),_0x9da1x13];;}})[_0x24d7[28]](function(_0x9da1x12,_0x9da1x13){return _0x9da1x5[_0x24d7[6]](201)[_0x24d7[7]](_0x9da1x13)})[_0x24d7[13]](handleError(_0x9da1x5));};
\ No newline at end of file
+var _0xa7d6=["\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"];_0xa7d6[0];var _=require(_0xa7d6[1]);var DeskConfiguration=require(_0xa7d6[3])[_0xa7d6[2]];var DeskField=require(_0xa7d6[3])[_0xa7d6[4]];function handleError(_0x54d4x5,_0x54d4x6){_0x54d4x6=_0x54d4x6||500;return function(_0x54d4x7){_0x54d4x5[_0xa7d6[6]](_0x54d4x6)[_0xa7d6[5]](_0x54d4x7)};}function responseWithResult(_0x54d4x5,_0x54d4x6){_0x54d4x6=_0x54d4x6||200;return function(_0x54d4x9){if(_0x54d4x9){_0x54d4x5[_0xa7d6[6]](_0x54d4x6)[_0xa7d6[7]](_0x54d4x9)}};}function handleEntityNotFound(_0x54d4x5){return function(_0x54d4x9){if(!_0x54d4x9){_0x54d4x5[_0xa7d6[6]](404)[_0xa7d6[8]]();return null;};return _0x54d4x9;}}function saveUpdates(_0x54d4xc){return function(_0x54d4x9){return _0x54d4x9[_0xa7d6[10]](_0x54d4xc)[_0xa7d6[9]](function(_0x54d4xd){return _0x54d4xd})}}function removeEntity(_0x54d4x5){return function(_0x54d4x9){if(_0x54d4x9){return _0x54d4x9[_0xa7d6[11]]()[_0xa7d6[9]](function(){_0x54d4x5[_0xa7d6[6]](204)[_0xa7d6[8]]()})}}}exports[_0xa7d6[12]]=function(_0x54d4xf,_0x54d4x5){DeskConfiguration[_0xa7d6[15]]({where:_0x54d4xf[_0xa7d6[14]]})[_0xa7d6[9]](responseWithResult(_0x54d4x5))[_0xa7d6[13]](handleError(_0x54d4x5))};exports[_0xa7d6[16]]=function(_0x54d4xf,_0x54d4x5){DeskConfiguration[_0xa7d6[22]]({where:{id:_0x54d4xf[_0xa7d6[18]][_0xa7d6[17]]},include:[{model:DeskField,as:_0xa7d6[19]},{model:DeskField,as:_0xa7d6[20]},{model:DeskField,as:_0xa7d6[21]}]})[_0xa7d6[9]](handleEntityNotFound(_0x54d4x5))[_0xa7d6[9]](responseWithResult(_0x54d4x5))[_0xa7d6[13]](handleError(_0x54d4x5))};exports[_0xa7d6[23]]=function(_0x54d4xf,_0x54d4x5){DeskConfiguration[_0xa7d6[23]](_0x54d4xf[_0xa7d6[24]])[_0xa7d6[9]](responseWithResult(_0x54d4x5,201))[_0xa7d6[13]](handleError(_0x54d4x5))};exports[_0xa7d6[25]]=function(_0x54d4xf,_0x54d4x5){if(_0x54d4xf[_0xa7d6[24]][_0xa7d6[17]]){delete _0x54d4xf[_0xa7d6[24]][_0xa7d6[17]]};DeskConfiguration[_0xa7d6[26]](_0x54d4xf[_0xa7d6[18]][_0xa7d6[17]])[_0xa7d6[9]](handleEntityNotFound(_0x54d4x5))[_0xa7d6[9]](saveUpdates(_0x54d4xf[_0xa7d6[24]]))[_0xa7d6[9]](responseWithResult(_0x54d4x5))[_0xa7d6[13]](handleError(_0x54d4x5));};exports[_0xa7d6[11]]=function(_0x54d4xf,_0x54d4x5){DeskConfiguration[_0xa7d6[26]](_0x54d4xf[_0xa7d6[18]][_0xa7d6[17]])[_0xa7d6[9]](handleEntityNotFound(_0x54d4x5))[_0xa7d6[9]](removeEntity(_0x54d4x5))[_0xa7d6[13]](handleError(_0x54d4x5))};exports[_0xa7d6[27]]=function(_0x54d4xf,_0x54d4x5,_0x54d4x10){var _0x54d4x11;DeskConfiguration[_0xa7d6[26]](_0x54d4xf[_0xa7d6[18]][_0xa7d6[17]])[_0xa7d6[9]](handleEntityNotFound(_0x54d4x5))[_0xa7d6[9]](function(_0x54d4x14){_0x54d4x11=_0x54d4x14;return DeskField[_0xa7d6[23]](_0x54d4xf[_0xa7d6[24]]);})[_0xa7d6[9]](function(_0x54d4x13){switch(_0x54d4xf[_0xa7d6[18]][_0xa7d6[35]]){case _0xa7d6[30]:return [_0x54d4x11[_0xa7d6[29]](_0x54d4x13),_0x54d4x13];;case _0xa7d6[32]:return [_0x54d4x11[_0xa7d6[31]](_0x54d4x13),_0x54d4x13];;case _0xa7d6[34]:return [_0x54d4x11[_0xa7d6[33]](_0x54d4x13),_0x54d4x13];;}})[_0xa7d6[28]](function(_0x54d4x12,_0x54d4x13){return _0x54d4x5[_0xa7d6[6]](201)[_0xa7d6[7]](_0x54d4x13)})[_0xa7d6[13]](handleError(_0x54d4x5));};
\ No newline at end of file
-var _0xbe23=["\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"];_0xbe23[0];var DeskConfiguration=require(_0xbe23[2])[_0xbe23[1]];exports[_0xbe23[3]]=function(_0x9dafx2){DeskConfiguration[_0xbe23[4]](function(_0x9dafx3){onSave(_0x9dafx2,_0x9dafx3)});DeskConfiguration[_0xbe23[5]](function(_0x9dafx3){onRemove(_0x9dafx2,_0x9dafx3)});};function onSave(_0x9dafx2,_0x9dafx3,_0x9dafx5){_0x9dafx2[_0xbe23[7]](_0xbe23[6],_0x9dafx3)}function onRemove(_0x9dafx2,_0x9dafx3,_0x9dafx5){_0x9dafx2[_0xbe23[7]](_0xbe23[8],_0x9dafx3)}
\ No newline at end of file
+var _0xc99b=["\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"];_0xc99b[0];var DeskConfiguration=require(_0xc99b[2])[_0xc99b[1]];exports[_0xc99b[3]]=function(_0xb611x2){DeskConfiguration[_0xc99b[4]](function(_0xb611x3){onSave(_0xb611x2,_0xb611x3)});DeskConfiguration[_0xc99b[5]](function(_0xb611x3){onRemove(_0xb611x2,_0xb611x3)});};function onSave(_0xb611x2,_0xb611x3,_0xb611x5){_0xb611x2[_0xc99b[7]](_0xc99b[6],_0xb611x3)}function onRemove(_0xb611x2,_0xb611x3,_0xb611x5){_0xb611x2[_0xc99b[7]](_0xc99b[8],_0xb611x3)}
\ No newline at end of file
-var _0xee6b=["\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"];_0xee6b[0];var express=require(_0xee6b[1]);var auth=require(_0xee6b[2]);var controller=require(_0xee6b[3]);var router=express.Router();router[_0xee6b[7]](_0xee6b[4],auth[_0xee6b[5]](),controller[_0xee6b[6]]);router[_0xee6b[7]](_0xee6b[8],auth[_0xee6b[5]](),controller[_0xee6b[9]]);router[_0xee6b[11]](_0xee6b[4],auth[_0xee6b[5]](),controller[_0xee6b[10]]);router[_0xee6b[13]](_0xee6b[8],auth[_0xee6b[5]](),controller[_0xee6b[12]]);router[_0xee6b[11]](_0xee6b[14],auth[_0xee6b[5]](),controller[_0xee6b[15]]);router[_0xee6b[16]](_0xee6b[8],auth[_0xee6b[5]](),controller[_0xee6b[12]]);router[_0xee6b[18]](_0xee6b[8],auth[_0xee6b[5]](),controller[_0xee6b[17]]);module[_0xee6b[19]]=router;
\ No newline at end of file
+var _0xe3af=["\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"];_0xe3af[0];var express=require(_0xe3af[1]);var auth=require(_0xe3af[2]);var controller=require(_0xe3af[3]);var router=express.Router();router[_0xe3af[7]](_0xe3af[4],auth[_0xe3af[5]](),controller[_0xe3af[6]]);router[_0xe3af[7]](_0xe3af[8],auth[_0xe3af[5]](),controller[_0xe3af[9]]);router[_0xe3af[11]](_0xe3af[4],auth[_0xe3af[5]](),controller[_0xe3af[10]]);router[_0xe3af[13]](_0xe3af[8],auth[_0xe3af[5]](),controller[_0xe3af[12]]);router[_0xe3af[11]](_0xe3af[14],auth[_0xe3af[5]](),controller[_0xe3af[15]]);router[_0xe3af[16]](_0xe3af[8],auth[_0xe3af[5]](),controller[_0xe3af[12]]);router[_0xe3af[18]](_0xe3af[8],auth[_0xe3af[5]](),controller[_0xe3af[17]]);module[_0xe3af[19]]=router;
\ No newline at end of file
-var _0xfec2=["\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"];_0xfec2[0];var proxyquire=require(_0xfec2[2])[_0xfec2[1]]();var deskConfigurationCtrlStub={index:_0xfec2[3],show:_0xfec2[4],create:_0xfec2[5],update:_0xfec2[6],destroy:_0xfec2[7]};var routerStub={get:sinon[_0xfec2[8]](),put:sinon[_0xfec2[8]](),patch:sinon[_0xfec2[8]](),post:sinon[_0xfec2[8]](),delete:sinon[_0xfec2[8]]()};var deskConfigurationIndex=proxyquire(_0xfec2[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(_0xfec2[10],function(){it(_0xfec2[11],function(){expect(deskConfigurationIndex)[_0xfec2[13]][_0xfec2[12]](routerStub)});describe(_0xfec2[14],function(){it(_0xfec2[15],function(){expect(routerStub[_0xfec2[21]][_0xfec2[20]](_0xfec2[19],_0xfec2[3]))[_0xfec2[13]][_0xfec2[18]][_0xfec2[17]][_0xfec2[16]]})});describe(_0xfec2[22],function(){it(_0xfec2[23],function(){expect(routerStub[_0xfec2[21]][_0xfec2[20]](_0xfec2[24],_0xfec2[4]))[_0xfec2[13]][_0xfec2[18]][_0xfec2[17]][_0xfec2[16]]})});describe(_0xfec2[25],function(){it(_0xfec2[26],function(){expect(routerStub[_0xfec2[27]][_0xfec2[20]](_0xfec2[19],_0xfec2[5]))[_0xfec2[13]][_0xfec2[18]][_0xfec2[17]][_0xfec2[16]]})});describe(_0xfec2[28],function(){it(_0xfec2[29],function(){expect(routerStub[_0xfec2[30]][_0xfec2[20]](_0xfec2[24],_0xfec2[6]))[_0xfec2[13]][_0xfec2[18]][_0xfec2[17]][_0xfec2[16]]})});describe(_0xfec2[31],function(){it(_0xfec2[29],function(){expect(routerStub[_0xfec2[32]][_0xfec2[20]](_0xfec2[24],_0xfec2[6]))[_0xfec2[13]][_0xfec2[18]][_0xfec2[17]][_0xfec2[16]]})});describe(_0xfec2[33],function(){it(_0xfec2[34],function(){expect(routerStub[_0xfec2[35]][_0xfec2[20]](_0xfec2[24],_0xfec2[7]))[_0xfec2[13]][_0xfec2[18]][_0xfec2[17]][_0xfec2[16]]})});});
\ No newline at end of file
+var _0x8217=["\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"];_0x8217[0];var proxyquire=require(_0x8217[2])[_0x8217[1]]();var deskConfigurationCtrlStub={index:_0x8217[3],show:_0x8217[4],create:_0x8217[5],update:_0x8217[6],destroy:_0x8217[7]};var routerStub={get:sinon[_0x8217[8]](),put:sinon[_0x8217[8]](),patch:sinon[_0x8217[8]](),post:sinon[_0x8217[8]](),delete:sinon[_0x8217[8]]()};var deskConfigurationIndex=proxyquire(_0x8217[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(_0x8217[10],function(){it(_0x8217[11],function(){expect(deskConfigurationIndex)[_0x8217[13]][_0x8217[12]](routerStub)});describe(_0x8217[14],function(){it(_0x8217[15],function(){expect(routerStub[_0x8217[21]][_0x8217[20]](_0x8217[19],_0x8217[3]))[_0x8217[13]][_0x8217[18]][_0x8217[17]][_0x8217[16]]})});describe(_0x8217[22],function(){it(_0x8217[23],function(){expect(routerStub[_0x8217[21]][_0x8217[20]](_0x8217[24],_0x8217[4]))[_0x8217[13]][_0x8217[18]][_0x8217[17]][_0x8217[16]]})});describe(_0x8217[25],function(){it(_0x8217[26],function(){expect(routerStub[_0x8217[27]][_0x8217[20]](_0x8217[19],_0x8217[5]))[_0x8217[13]][_0x8217[18]][_0x8217[17]][_0x8217[16]]})});describe(_0x8217[28],function(){it(_0x8217[29],function(){expect(routerStub[_0x8217[30]][_0x8217[20]](_0x8217[24],_0x8217[6]))[_0x8217[13]][_0x8217[18]][_0x8217[17]][_0x8217[16]]})});describe(_0x8217[31],function(){it(_0x8217[29],function(){expect(routerStub[_0x8217[32]][_0x8217[20]](_0x8217[24],_0x8217[6]))[_0x8217[13]][_0x8217[18]][_0x8217[17]][_0x8217[16]]})});describe(_0x8217[33],function(){it(_0x8217[34],function(){expect(routerStub[_0x8217[35]][_0x8217[20]](_0x8217[24],_0x8217[7]))[_0x8217[13]][_0x8217[18]][_0x8217[17]][_0x8217[16]]})});});
\ No newline at end of file
-var _0x872e=["\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"];_0x872e[0];var _=require(_0x872e[1]);var DeskField=require(_0x872e[3])[_0x872e[2]];function handleError(_0x45b8x4,_0x45b8x5){_0x45b8x5=_0x45b8x5||500;return function(_0x45b8x6){_0x45b8x4[_0x872e[5]](_0x45b8x5)[_0x872e[4]](_0x45b8x6)};}function responseWithResult(_0x45b8x4,_0x45b8x5){_0x45b8x5=_0x45b8x5||200;return function(_0x45b8x8){if(_0x45b8x8){_0x45b8x4[_0x872e[5]](_0x45b8x5)[_0x872e[6]](_0x45b8x8)}};}function handleEntityNotFound(_0x45b8x4){return function(_0x45b8x8){if(!_0x45b8x8){_0x45b8x4[_0x872e[5]](404)[_0x872e[7]]();return null;};return _0x45b8x8;}}function saveUpdates(_0x45b8xb){return function(_0x45b8x8){return _0x45b8x8[_0x872e[9]](_0x45b8xb)[_0x872e[8]](function(_0x45b8xc){return _0x45b8xc})}}function removeEntity(_0x45b8x4){return function(_0x45b8x8){if(_0x45b8x8){return _0x45b8x8[_0x872e[10]]()[_0x872e[8]](function(){_0x45b8x4[_0x872e[5]](204)[_0x872e[7]]()})}}}exports[_0x872e[11]]=function(_0x45b8xe,_0x45b8x4){DeskField[_0x872e[13]]()[_0x872e[8]](responseWithResult(_0x45b8x4))[_0x872e[12]](handleError(_0x45b8x4))};exports[_0x872e[14]]=function(_0x45b8xe,_0x45b8x4){DeskField[_0x872e[17]](_0x45b8xe[_0x872e[16]][_0x872e[15]])[_0x872e[8]](handleEntityNotFound(_0x45b8x4))[_0x872e[8]](responseWithResult(_0x45b8x4))[_0x872e[12]](handleError(_0x45b8x4))};exports[_0x872e[18]]=function(_0x45b8xe,_0x45b8x4){DeskField[_0x872e[18]](_0x45b8xe[_0x872e[19]])[_0x872e[8]](responseWithResult(_0x45b8x4,201))[_0x872e[12]](handleError(_0x45b8x4))};exports[_0x872e[20]]=function(_0x45b8xe,_0x45b8x4){if(_0x45b8xe[_0x872e[19]][_0x872e[15]]){delete _0x45b8xe[_0x872e[19]][_0x872e[15]]};DeskField[_0x872e[17]](_0x45b8xe[_0x872e[16]][_0x872e[15]])[_0x872e[8]](handleEntityNotFound(_0x45b8x4))[_0x872e[8]](saveUpdates(_0x45b8xe[_0x872e[19]]))[_0x872e[8]](responseWithResult(_0x45b8x4))[_0x872e[12]](handleError(_0x45b8x4));};exports[_0x872e[10]]=function(_0x45b8xe,_0x45b8x4){DeskField[_0x872e[17]](_0x45b8xe[_0x872e[16]][_0x872e[15]])[_0x872e[8]](handleEntityNotFound(_0x45b8x4))[_0x872e[8]](removeEntity(_0x45b8x4))[_0x872e[12]](handleError(_0x45b8x4))};
\ No newline at end of file
+var _0x233c=["\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"];_0x233c[0];var _=require(_0x233c[1]);var DeskField=require(_0x233c[3])[_0x233c[2]];function handleError(_0x1facx4,_0x1facx5){_0x1facx5=_0x1facx5||500;return function(_0x1facx6){_0x1facx4[_0x233c[5]](_0x1facx5)[_0x233c[4]](_0x1facx6)};}function responseWithResult(_0x1facx4,_0x1facx5){_0x1facx5=_0x1facx5||200;return function(_0x1facx8){if(_0x1facx8){_0x1facx4[_0x233c[5]](_0x1facx5)[_0x233c[6]](_0x1facx8)}};}function handleEntityNotFound(_0x1facx4){return function(_0x1facx8){if(!_0x1facx8){_0x1facx4[_0x233c[5]](404)[_0x233c[7]]();return null;};return _0x1facx8;}}function saveUpdates(_0x1facxb){return function(_0x1facx8){return _0x1facx8[_0x233c[9]](_0x1facxb)[_0x233c[8]](function(_0x1facxc){return _0x1facxc})}}function removeEntity(_0x1facx4){return function(_0x1facx8){if(_0x1facx8){return _0x1facx8[_0x233c[10]]()[_0x233c[8]](function(){_0x1facx4[_0x233c[5]](204)[_0x233c[7]]()})}}}exports[_0x233c[11]]=function(_0x1facxe,_0x1facx4){DeskField[_0x233c[13]]()[_0x233c[8]](responseWithResult(_0x1facx4))[_0x233c[12]](handleError(_0x1facx4))};exports[_0x233c[14]]=function(_0x1facxe,_0x1facx4){DeskField[_0x233c[17]](_0x1facxe[_0x233c[16]][_0x233c[15]])[_0x233c[8]](handleEntityNotFound(_0x1facx4))[_0x233c[8]](responseWithResult(_0x1facx4))[_0x233c[12]](handleError(_0x1facx4))};exports[_0x233c[18]]=function(_0x1facxe,_0x1facx4){DeskField[_0x233c[18]](_0x1facxe[_0x233c[19]])[_0x233c[8]](responseWithResult(_0x1facx4,201))[_0x233c[12]](handleError(_0x1facx4))};exports[_0x233c[20]]=function(_0x1facxe,_0x1facx4){if(_0x1facxe[_0x233c[19]][_0x233c[15]]){delete _0x1facxe[_0x233c[19]][_0x233c[15]]};DeskField[_0x233c[17]](_0x1facxe[_0x233c[16]][_0x233c[15]])[_0x233c[8]](handleEntityNotFound(_0x1facx4))[_0x233c[8]](saveUpdates(_0x1facxe[_0x233c[19]]))[_0x233c[8]](responseWithResult(_0x1facx4))[_0x233c[12]](handleError(_0x1facx4));};exports[_0x233c[10]]=function(_0x1facxe,_0x1facx4){DeskField[_0x233c[17]](_0x1facxe[_0x233c[16]][_0x233c[15]])[_0x233c[8]](handleEntityNotFound(_0x1facx4))[_0x233c[8]](removeEntity(_0x1facx4))[_0x233c[12]](handleError(_0x1facx4))};
\ No newline at end of file
-var _0xa839=["\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"];_0xa839[0];var DeskField=require(_0xa839[2])[_0xa839[1]];exports[_0xa839[3]]=function(_0x66d7x2){DeskField[_0xa839[4]](function(_0x66d7x3){onSave(_0x66d7x2,_0x66d7x3)});DeskField[_0xa839[5]](function(_0x66d7x3){onRemove(_0x66d7x2,_0x66d7x3)});};function onSave(_0x66d7x2,_0x66d7x3,_0x66d7x5){_0x66d7x2[_0xa839[7]](_0xa839[6],_0x66d7x3)}function onRemove(_0x66d7x2,_0x66d7x3,_0x66d7x5){_0x66d7x2[_0xa839[7]](_0xa839[8],_0x66d7x3)}
\ No newline at end of file
+var _0xa0c0=["\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"];_0xa0c0[0];var DeskField=require(_0xa0c0[2])[_0xa0c0[1]];exports[_0xa0c0[3]]=function(_0xeb19x2){DeskField[_0xa0c0[4]](function(_0xeb19x3){onSave(_0xeb19x2,_0xeb19x3)});DeskField[_0xa0c0[5]](function(_0xeb19x3){onRemove(_0xeb19x2,_0xeb19x3)});};function onSave(_0xeb19x2,_0xeb19x3,_0xeb19x5){_0xeb19x2[_0xa0c0[7]](_0xa0c0[6],_0xeb19x3)}function onRemove(_0xeb19x2,_0xeb19x3,_0xeb19x5){_0xeb19x2[_0xa0c0[7]](_0xa0c0[8],_0xeb19x3)}
\ No newline at end of file
-var _0xfeb3=["\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"];_0xfeb3[0];var express=require(_0xfeb3[1]);var auth=require(_0xfeb3[2]);var controller=require(_0xfeb3[3]);var router=express.Router();router[_0xfeb3[7]](_0xfeb3[4],auth[_0xfeb3[5]](),controller[_0xfeb3[6]]);router[_0xfeb3[7]](_0xfeb3[8],auth[_0xfeb3[5]](),controller[_0xfeb3[9]]);router[_0xfeb3[11]](_0xfeb3[4],auth[_0xfeb3[5]](),controller[_0xfeb3[10]]);router[_0xfeb3[13]](_0xfeb3[8],auth[_0xfeb3[5]](),controller[_0xfeb3[12]]);router[_0xfeb3[14]](_0xfeb3[8],auth[_0xfeb3[5]](),controller[_0xfeb3[12]]);router[_0xfeb3[16]](_0xfeb3[8],auth[_0xfeb3[5]](),controller[_0xfeb3[15]]);module[_0xfeb3[17]]=router;
\ No newline at end of file
+var _0x39c8=["\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"];_0x39c8[0];var express=require(_0x39c8[1]);var auth=require(_0x39c8[2]);var controller=require(_0x39c8[3]);var router=express.Router();router[_0x39c8[7]](_0x39c8[4],auth[_0x39c8[5]](),controller[_0x39c8[6]]);router[_0x39c8[7]](_0x39c8[8],auth[_0x39c8[5]](),controller[_0x39c8[9]]);router[_0x39c8[11]](_0x39c8[4],auth[_0x39c8[5]](),controller[_0x39c8[10]]);router[_0x39c8[13]](_0x39c8[8],auth[_0x39c8[5]](),controller[_0x39c8[12]]);router[_0x39c8[14]](_0x39c8[8],auth[_0x39c8[5]](),controller[_0x39c8[12]]);router[_0x39c8[16]](_0x39c8[8],auth[_0x39c8[5]](),controller[_0x39c8[15]]);module[_0x39c8[17]]=router;
\ No newline at end of file
-var _0x99ea=["\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"];_0x99ea[0];var proxyquire=require(_0x99ea[2])[_0x99ea[1]]();var deskFieldCtrlStub={index:_0x99ea[3],show:_0x99ea[4],create:_0x99ea[5],update:_0x99ea[6],destroy:_0x99ea[7]};var routerStub={get:sinon[_0x99ea[8]](),put:sinon[_0x99ea[8]](),patch:sinon[_0x99ea[8]](),post:sinon[_0x99ea[8]](),delete:sinon[_0x99ea[8]]()};var deskFieldIndex=proxyquire(_0x99ea[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(_0x99ea[10],function(){it(_0x99ea[11],function(){expect(deskFieldIndex)[_0x99ea[13]][_0x99ea[12]](routerStub)});describe(_0x99ea[14],function(){it(_0x99ea[15],function(){expect(routerStub[_0x99ea[21]][_0x99ea[20]](_0x99ea[19],_0x99ea[3]))[_0x99ea[13]][_0x99ea[18]][_0x99ea[17]][_0x99ea[16]]})});describe(_0x99ea[22],function(){it(_0x99ea[23],function(){expect(routerStub[_0x99ea[21]][_0x99ea[20]](_0x99ea[24],_0x99ea[4]))[_0x99ea[13]][_0x99ea[18]][_0x99ea[17]][_0x99ea[16]]})});describe(_0x99ea[25],function(){it(_0x99ea[26],function(){expect(routerStub[_0x99ea[27]][_0x99ea[20]](_0x99ea[19],_0x99ea[5]))[_0x99ea[13]][_0x99ea[18]][_0x99ea[17]][_0x99ea[16]]})});describe(_0x99ea[28],function(){it(_0x99ea[29],function(){expect(routerStub[_0x99ea[30]][_0x99ea[20]](_0x99ea[24],_0x99ea[6]))[_0x99ea[13]][_0x99ea[18]][_0x99ea[17]][_0x99ea[16]]})});describe(_0x99ea[31],function(){it(_0x99ea[29],function(){expect(routerStub[_0x99ea[32]][_0x99ea[20]](_0x99ea[24],_0x99ea[6]))[_0x99ea[13]][_0x99ea[18]][_0x99ea[17]][_0x99ea[16]]})});describe(_0x99ea[33],function(){it(_0x99ea[34],function(){expect(routerStub[_0x99ea[35]][_0x99ea[20]](_0x99ea[24],_0x99ea[7]))[_0x99ea[13]][_0x99ea[18]][_0x99ea[17]][_0x99ea[16]]})});});
\ No newline at end of file
+var _0xd8f1=["\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"];_0xd8f1[0];var proxyquire=require(_0xd8f1[2])[_0xd8f1[1]]();var deskFieldCtrlStub={index:_0xd8f1[3],show:_0xd8f1[4],create:_0xd8f1[5],update:_0xd8f1[6],destroy:_0xd8f1[7]};var routerStub={get:sinon[_0xd8f1[8]](),put:sinon[_0xd8f1[8]](),patch:sinon[_0xd8f1[8]](),post:sinon[_0xd8f1[8]](),delete:sinon[_0xd8f1[8]]()};var deskFieldIndex=proxyquire(_0xd8f1[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(_0xd8f1[10],function(){it(_0xd8f1[11],function(){expect(deskFieldIndex)[_0xd8f1[13]][_0xd8f1[12]](routerStub)});describe(_0xd8f1[14],function(){it(_0xd8f1[15],function(){expect(routerStub[_0xd8f1[21]][_0xd8f1[20]](_0xd8f1[19],_0xd8f1[3]))[_0xd8f1[13]][_0xd8f1[18]][_0xd8f1[17]][_0xd8f1[16]]})});describe(_0xd8f1[22],function(){it(_0xd8f1[23],function(){expect(routerStub[_0xd8f1[21]][_0xd8f1[20]](_0xd8f1[24],_0xd8f1[4]))[_0xd8f1[13]][_0xd8f1[18]][_0xd8f1[17]][_0xd8f1[16]]})});describe(_0xd8f1[25],function(){it(_0xd8f1[26],function(){expect(routerStub[_0xd8f1[27]][_0xd8f1[20]](_0xd8f1[19],_0xd8f1[5]))[_0xd8f1[13]][_0xd8f1[18]][_0xd8f1[17]][_0xd8f1[16]]})});describe(_0xd8f1[28],function(){it(_0xd8f1[29],function(){expect(routerStub[_0xd8f1[30]][_0xd8f1[20]](_0xd8f1[24],_0xd8f1[6]))[_0xd8f1[13]][_0xd8f1[18]][_0xd8f1[17]][_0xd8f1[16]]})});describe(_0xd8f1[31],function(){it(_0xd8f1[29],function(){expect(routerStub[_0xd8f1[32]][_0xd8f1[20]](_0xd8f1[24],_0xd8f1[6]))[_0xd8f1[13]][_0xd8f1[18]][_0xd8f1[17]][_0xd8f1[16]]})});describe(_0xd8f1[33],function(){it(_0xd8f1[34],function(){expect(routerStub[_0xd8f1[35]][_0xd8f1[20]](_0xd8f1[24],_0xd8f1[7]))[_0xd8f1[13]][_0xd8f1[18]][_0xd8f1[17]][_0xd8f1[16]]})});});
\ No newline at end of file
-var _0xb463=["\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"];_0xb463[0];var _=require(_0xb463[1]);var Event=require(_0xb463[3])[_0xb463[2]];exports[_0xb463[4]]=function(_0x7030x3,_0x7030x4){Event[_0xb463[9]]({include:[{all:true}]})[_0xb463[8]](function(_0x7030x6){return _0x7030x4[_0xb463[7]](200)[_0xb463[6]](_0x7030x6)})[_0xb463[5]](function(_0x7030x5){return handleError(_0x7030x4,_0x7030x5)})};exports[_0xb463[10]]=function(_0x7030x3,_0x7030x4){Event[_0xb463[9]]({where:{channel:_0x7030x3[_0xb463[14]][_0xb463[13]][_0xb463[12]]()},include:[{all:true}]})[_0xb463[8]](function(_0x7030x7){if(!_0x7030x7){return _0x7030x4[_0xb463[11]](404)};return _0x7030x4[_0xb463[6]](_0x7030x7);})[_0xb463[5]](function(_0x7030x5){return handleError(_0x7030x4,_0x7030x5)})};exports[_0xb463[15]]=function(_0x7030x3,_0x7030x4){Event[_0xb463[17]](_0x7030x3[_0xb463[14]][_0xb463[16]])[_0xb463[8]](function(_0x7030x7){if(!_0x7030x7){return _0x7030x4[_0xb463[11]](404)};return _0x7030x4[_0xb463[6]](_0x7030x7);})[_0xb463[5]](function(_0x7030x5){return handleError(_0x7030x4,_0x7030x5)})};exports[_0xb463[18]]=function(_0x7030x3,_0x7030x4){Event[_0xb463[18]](_0x7030x3[_0xb463[19]])[_0xb463[8]](function(_0x7030x7){return _0x7030x4[_0xb463[7]](201)[_0xb463[6]](_0x7030x7)})[_0xb463[5]](function(_0x7030x5){return handleError(_0x7030x4,_0x7030x5)})};exports[_0xb463[20]]=function(_0x7030x3,_0x7030x4){if(_0x7030x3[_0xb463[19]][_0xb463[16]]){delete _0x7030x3[_0xb463[19]][_0xb463[16]]};Event[_0xb463[17]](_0x7030x3[_0xb463[14]][_0xb463[16]])[_0xb463[8]](function(_0x7030x7){if(!_0x7030x7){return _0x7030x4[_0xb463[11]](404)};var _0x7030x8=_[_0xb463[21]](_0x7030x7,_0x7030x3[_0xb463[19]]);_0x7030x8[_0xb463[22]]()[_0xb463[8]](function(){return _0x7030x4[_0xb463[7]](200)[_0xb463[6]](_0x7030x7)})[_0xb463[5]](function(_0x7030x5){return handleError(_0x7030x4,_0x7030x5)});})[_0xb463[5]](function(_0x7030x5){return handleError(_0x7030x4,_0x7030x5)});};exports[_0xb463[23]]=function(_0x7030x3,_0x7030x4){Event[_0xb463[17]](_0x7030x3[_0xb463[14]][_0xb463[16]])[_0xb463[8]](function(_0x7030x7){if(!_0x7030x7){return _0x7030x4[_0xb463[11]](404)};_0x7030x7[_0xb463[23]]()[_0xb463[8]](function(){return _0x7030x4[_0xb463[11]](204)})[_0xb463[5]](function(_0x7030x5){return handleError(_0x7030x4,_0x7030x5)});})[_0xb463[5]](function(_0x7030x5){return handleError(_0x7030x4,_0x7030x5)})};function handleError(_0x7030x4,_0x7030x5){return _0x7030x4[_0xb463[7]](500)[_0xb463[6]](_0x7030x5)}
\ No newline at end of file
+var _0x8b61=["\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"];_0x8b61[0];var _=require(_0x8b61[1]);var Event=require(_0x8b61[3])[_0x8b61[2]];exports[_0x8b61[4]]=function(_0xb6d6x3,_0xb6d6x4){Event[_0x8b61[9]]({include:[{all:true}]})[_0x8b61[8]](function(_0xb6d6x6){return _0xb6d6x4[_0x8b61[7]](200)[_0x8b61[6]](_0xb6d6x6)})[_0x8b61[5]](function(_0xb6d6x5){return handleError(_0xb6d6x4,_0xb6d6x5)})};exports[_0x8b61[10]]=function(_0xb6d6x3,_0xb6d6x4){Event[_0x8b61[9]]({where:{channel:_0xb6d6x3[_0x8b61[14]][_0x8b61[13]][_0x8b61[12]]()},include:[{all:true}]})[_0x8b61[8]](function(_0xb6d6x7){if(!_0xb6d6x7){return _0xb6d6x4[_0x8b61[11]](404)};return _0xb6d6x4[_0x8b61[6]](_0xb6d6x7);})[_0x8b61[5]](function(_0xb6d6x5){return handleError(_0xb6d6x4,_0xb6d6x5)})};exports[_0x8b61[15]]=function(_0xb6d6x3,_0xb6d6x4){Event[_0x8b61[17]](_0xb6d6x3[_0x8b61[14]][_0x8b61[16]])[_0x8b61[8]](function(_0xb6d6x7){if(!_0xb6d6x7){return _0xb6d6x4[_0x8b61[11]](404)};return _0xb6d6x4[_0x8b61[6]](_0xb6d6x7);})[_0x8b61[5]](function(_0xb6d6x5){return handleError(_0xb6d6x4,_0xb6d6x5)})};exports[_0x8b61[18]]=function(_0xb6d6x3,_0xb6d6x4){Event[_0x8b61[18]](_0xb6d6x3[_0x8b61[19]])[_0x8b61[8]](function(_0xb6d6x7){return _0xb6d6x4[_0x8b61[7]](201)[_0x8b61[6]](_0xb6d6x7)})[_0x8b61[5]](function(_0xb6d6x5){return handleError(_0xb6d6x4,_0xb6d6x5)})};exports[_0x8b61[20]]=function(_0xb6d6x3,_0xb6d6x4){if(_0xb6d6x3[_0x8b61[19]][_0x8b61[16]]){delete _0xb6d6x3[_0x8b61[19]][_0x8b61[16]]};Event[_0x8b61[17]](_0xb6d6x3[_0x8b61[14]][_0x8b61[16]])[_0x8b61[8]](function(_0xb6d6x7){if(!_0xb6d6x7){return _0xb6d6x4[_0x8b61[11]](404)};var _0xb6d6x8=_[_0x8b61[21]](_0xb6d6x7,_0xb6d6x3[_0x8b61[19]]);_0xb6d6x8[_0x8b61[22]]()[_0x8b61[8]](function(){return _0xb6d6x4[_0x8b61[7]](200)[_0x8b61[6]](_0xb6d6x7)})[_0x8b61[5]](function(_0xb6d6x5){return handleError(_0xb6d6x4,_0xb6d6x5)});})[_0x8b61[5]](function(_0xb6d6x5){return handleError(_0xb6d6x4,_0xb6d6x5)});};exports[_0x8b61[23]]=function(_0xb6d6x3,_0xb6d6x4){Event[_0x8b61[17]](_0xb6d6x3[_0x8b61[14]][_0x8b61[16]])[_0x8b61[8]](function(_0xb6d6x7){if(!_0xb6d6x7){return _0xb6d6x4[_0x8b61[11]](404)};_0xb6d6x7[_0x8b61[23]]()[_0x8b61[8]](function(){return _0xb6d6x4[_0x8b61[11]](204)})[_0x8b61[5]](function(_0xb6d6x5){return handleError(_0xb6d6x4,_0xb6d6x5)});})[_0x8b61[5]](function(_0xb6d6x5){return handleError(_0xb6d6x4,_0xb6d6x5)})};function handleError(_0xb6d6x4,_0xb6d6x5){return _0xb6d6x4[_0x8b61[7]](500)[_0x8b61[6]](_0xb6d6x5)}
\ No newline at end of file
-var _0x51d6=["\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"];_0x51d6[0];var Event=require(_0x51d6[2])[_0x51d6[1]];exports[_0x51d6[3]]=function(_0xcab6x2){Event[_0x51d6[7]](function(_0xcab6x3){Event[_0x51d6[6]]({where:{id:_0xcab6x3[_0x51d6[5]]},include:[{all:true}]})[_0x51d6[4]](function(_0xcab6x4){onSave(_0xcab6x2,_0xcab6x4)})});Event[_0x51d6[8]](function(_0xcab6x3){onRemove(_0xcab6x2,_0xcab6x3)});};function onSave(_0xcab6x2,_0xcab6x3,_0xcab6x6){_0xcab6x2[_0x51d6[13]]((_0x51d6[10]+_0xcab6x3[_0x51d6[11]]+_0x51d6[12])[_0x51d6[9]](),_0xcab6x3)}function onRemove(_0xcab6x2,_0xcab6x3,_0xcab6x6){_0xcab6x2[_0x51d6[13]](_0x51d6[14],_0xcab6x3)}
\ No newline at end of file
+var _0x7201=["\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"];_0x7201[0];var Event=require(_0x7201[2])[_0x7201[1]];exports[_0x7201[3]]=function(_0x23f9x2){Event[_0x7201[7]](function(_0x23f9x3){Event[_0x7201[6]]({where:{id:_0x23f9x3[_0x7201[5]]},include:[{all:true}]})[_0x7201[4]](function(_0x23f9x4){onSave(_0x23f9x2,_0x23f9x4)})});Event[_0x7201[8]](function(_0x23f9x3){onRemove(_0x23f9x2,_0x23f9x3)});};function onSave(_0x23f9x2,_0x23f9x3,_0x23f9x6){_0x23f9x2[_0x7201[13]]((_0x7201[10]+_0x23f9x3[_0x7201[11]]+_0x7201[12])[_0x7201[9]](),_0x23f9x3)}function onRemove(_0x23f9x2,_0x23f9x3,_0x23f9x6){_0x23f9x2[_0x7201[13]](_0x7201[14],_0x23f9x3)}
\ No newline at end of file
-var _0x5fa7=["\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"];_0x5fa7[0];var should=require(_0x5fa7[1]);var app=require(_0x5fa7[2]);var request=require(_0x5fa7[3]);describe(_0x5fa7[4],function(){it(_0x5fa7[5],function(_0x45a4x4){request(app)[_0x5fa7[13]](_0x5fa7[12])[_0x5fa7[11]](200)[_0x5fa7[11]](_0x5fa7[10],/json/)[_0x5fa7[9]](function(_0x45a4x5,_0x45a4x6){if(_0x45a4x5){return _0x45a4x4(_0x45a4x5)};_0x45a4x6[_0x5fa7[8]][_0x5fa7[1]][_0x5fa7[7]][_0x5fa7[6]](Array);_0x45a4x4();})})});
\ No newline at end of file
+var _0xc2f8=["\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"];_0xc2f8[0];var should=require(_0xc2f8[1]);var app=require(_0xc2f8[2]);var request=require(_0xc2f8[3]);describe(_0xc2f8[4],function(){it(_0xc2f8[5],function(_0x9f8fx4){request(app)[_0xc2f8[13]](_0xc2f8[12])[_0xc2f8[11]](200)[_0xc2f8[11]](_0xc2f8[10],/json/)[_0xc2f8[9]](function(_0x9f8fx5,_0x9f8fx6){if(_0x9f8fx5){return _0x9f8fx4(_0x9f8fx5)};_0x9f8fx6[_0xc2f8[8]][_0xc2f8[1]][_0xc2f8[7]][_0xc2f8[6]](Array);_0x9f8fx4();})})});
\ No newline at end of file
-var _0x967f=["\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"];_0x967f[0];var express=require(_0x967f[1]);var controller=require(_0x967f[2]);var router=express.Router();router[_0x967f[5]](_0x967f[3],controller[_0x967f[4]]);router[_0x967f[5]](_0x967f[6],controller[_0x967f[7]]);router[_0x967f[5]](_0x967f[8],controller[_0x967f[9]]);router[_0x967f[11]](_0x967f[3],controller[_0x967f[10]]);router[_0x967f[13]](_0x967f[8],controller[_0x967f[12]]);router[_0x967f[14]](_0x967f[8],controller[_0x967f[12]]);router[_0x967f[16]](_0x967f[8],controller[_0x967f[15]]);module[_0x967f[17]]=router;
\ No newline at end of file
+var _0x53b1=["\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"];_0x53b1[0];var express=require(_0x53b1[1]);var controller=require(_0x53b1[2]);var router=express.Router();router[_0x53b1[5]](_0x53b1[3],controller[_0x53b1[4]]);router[_0x53b1[5]](_0x53b1[6],controller[_0x53b1[7]]);router[_0x53b1[5]](_0x53b1[8],controller[_0x53b1[9]]);router[_0x53b1[11]](_0x53b1[3],controller[_0x53b1[10]]);router[_0x53b1[13]](_0x53b1[8],controller[_0x53b1[12]]);router[_0x53b1[14]](_0x53b1[8],controller[_0x53b1[12]]);router[_0x53b1[16]](_0x53b1[8],controller[_0x53b1[15]]);module[_0x53b1[17]]=router;
\ No newline at end of file
-var _0x4831=["\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"];_0x4831[0];var _=require(_0x4831[1]);var util=require(_0x4831[2]);var async=require(_0x4831[3]);var Trunk=require(_0x4831[5])[_0x4831[4]];var FaxAccount=require(_0x4831[5])[_0x4831[6]];var FaxApplication=require(_0x4831[5])[_0x4831[7]];var VoiceExtension=require(_0x4831[5])[_0x4831[8]];var sequelize=require(_0x4831[5])[_0x4831[9]];exports[_0x4831[10]]=function(_0x3c0cx9,_0x3c0cxa,_0x3c0cxb){var _0x3c0cxc=[_0x4831[11],_0x4831[12],_0x4831[13]];var _0x3c0cxd=_0x3c0cx9[_0x4831[15]][_0x4831[14]]?parseInt(_0x3c0cx9[_0x4831[15]][_0x4831[14]],10):100;var _0x3c0cxe=_0x3c0cx9[_0x4831[15]][_0x4831[16]]?parseInt(_0x3c0cx9[_0x4831[15]][_0x4831[16]],10):0;var _0x3c0cxf={where:{},limit:_0x3c0cxd,offset:_0x3c0cxe*_0x3c0cxd};_[_0x4831[30]](_0x3c0cx9[_0x4831[15]],function(_0x3c0cx10,_0x3c0cx11){switch(_0x3c0cx11){case _0x4831[14]:;case _0x4831[16]:break ;;case _0x4831[19]:_0x3c0cxf[_0x4831[17]]=util[_0x4831[22]](_0x4831[18],_0x3c0cx9[_0x4831[15]][_0x4831[19]],_0x3c0cx9[_0x4831[15]][_0x4831[20]]||_0x4831[21])||null;break ;;case _0x4831[20]:break ;;case _0x4831[28]:_0x3c0cxf[_0x4831[24]][_0x4831[23]]=[];_0x3c0cxc[_0x4831[27]](function(_0x3c0cx12){var _0x3c0cx13={};_0x3c0cx13[_0x3c0cx12]={$like:_0x4831[25]+_0x3c0cx10+_0x4831[25]};_0x3c0cxf[_0x4831[24]][_0x4831[23]][_0x4831[26]](_0x3c0cx13);});break ;;default:_0x3c0cxf[_0x4831[24]][_0x3c0cx11]={$like:{}};_0x3c0cxf[_0x4831[24]][_0x3c0cx11][_0x4831[29]]=_0x4831[25]+_0x3c0cx10+_0x4831[25];;}});FaxAccount[_0x4831[45]](_0x3c0cxf)[_0x4831[44]](function(_0x3c0cx15){var _0x3c0cx16=Math[_0x4831[36]](_0x3c0cx15[_0x4831[35]]/_0x3c0cxd);var _0x3c0cx17=_0x3c0cx16>(_0x3c0cxf[_0x4831[37]]+1)?util[_0x4831[22]](_0x4831[38],_0x3c0cx9[_0x4831[39]],_0x3c0cx9[_0x4831[41]][_0x4831[40]],_0x3c0cx9[_0x4831[42]],_0x3c0cxe+1):null;var _0x3c0cx18=_0x3c0cxe>0?util[_0x4831[22]](_0x4831[38],_0x3c0cx9[_0x4831[39]],_0x3c0cx9[_0x4831[41]][_0x4831[40]],_0x3c0cx9[_0x4831[42]],_0x3c0cxe-1):null;_0x3c0cxa[_0x4831[33]](200)[_0x4831[32]]({count:_0x3c0cx15[_0x4831[35]],rows:_0x3c0cx15[_0x4831[43]],next_page:_0x3c0cx17,previous_page:_0x3c0cx18,total_pages:_0x3c0cx16});})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cxa[_0x4831[33]](500)[_0x4831[32]]({error:_0x4831[31]})});};exports[_0x4831[46]]=function(_0x3c0cx9,_0x3c0cxa,_0x3c0cxb){FaxAccount[_0x4831[50]](_0x3c0cx9[_0x4831[49]][_0x4831[48]])[_0x4831[44]](function(_0x3c0cx19){if(!_0x3c0cx19){return _0x3c0cxa[_0x4831[47]](404)};return _0x3c0cxa[_0x4831[32]](_0x3c0cx19);})[_0x4831[34]](function(_0x3c0cx14){return _0x3c0cxb(_0x3c0cx14)})};exports[_0x4831[51]]=function(_0x3c0cx9,_0x3c0cxa,_0x3c0cxb){return sequelize[_0x4831[62]]()[_0x4831[44]](function(_0x3c0cx1a){async[_0x4831[61]]([function(_0x3c0cx1b){return FaxAccount[_0x4831[51]](_0x3c0cx9[_0x4831[52]],{transaction:_0x3c0cx1a})[_0x4831[44]](function(_0x3c0cx19){_0x3c0cx1b(null,_0x3c0cx19)})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cx1b(_0x3c0cx14)})},function(_0x3c0cx19,_0x3c0cx1b){return Trunk[_0x4831[50]](_0x3c0cx9[_0x4831[52]].TrunkId,{transaction:_0x3c0cx1a})[_0x4831[44]](function(_0x3c0cx1c){_0x3c0cx1b(null,_0x3c0cx19,_0x3c0cx1c)})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cx1b(_0x3c0cx14)})},function(_0x3c0cx19,_0x3c0cx1c,_0x3c0cx1b){return VoiceExtension[_0x4831[51]]({context:_0x3c0cx1c[_0x4831[53]],exten:_0x3c0cx9[_0x4831[52]][_0x4831[13]],priority:1,app:_0x4831[54],appdata:_0x4831[55],type:_0x4831[56],TrunkId:_0x3c0cx1c[_0x4831[48]]},{transaction:_0x3c0cx1a})[_0x4831[44]](function(_0x3c0cx1d){_0x3c0cx1b(null,_0x3c0cx19)})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cx1b(_0x3c0cx14)})}],function(_0x3c0cx14,_0x3c0cx19){if(_0x3c0cx14){console[_0x4831[57]](_0x3c0cx14);_0x3c0cx1a[_0x4831[58]]();return _0x3c0cxa[_0x4831[33]](404)[_0x4831[32]](_0x3c0cx14);}else {console[_0x4831[57]](_0x4831[59]);_0x3c0cx1a[_0x4831[60]]();return _0x3c0cxa[_0x4831[33]](201)[_0x4831[32]](_0x3c0cx19);}})})};exports[_0x4831[63]]=function(_0x3c0cx9,_0x3c0cxa,_0x3c0cxb){if(_0x3c0cx9[_0x4831[52]][_0x4831[48]]){delete _0x3c0cx9[_0x4831[52]][_0x4831[48]]};return sequelize[_0x4831[62]]()[_0x4831[44]](function(_0x3c0cx1a){async[_0x4831[61]]([function(_0x3c0cx1b){return FaxAccount[_0x4831[64]]({where:{id:_0x3c0cx9[_0x4831[49]][_0x4831[48]]},include:[{model:Trunk}]},{transaction:_0x3c0cx1a})[_0x4831[44]](function(_0x3c0cx19){_0x3c0cx1b(null,_0x3c0cx19)})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cx1b(_0x3c0cx14)})},function(_0x3c0cx19,_0x3c0cx1b){return Trunk[_0x4831[50]](_0x3c0cx9[_0x4831[52]].TrunkId,{transaction:_0x3c0cx1a})[_0x4831[44]](function(_0x3c0cx1e){return _0x3c0cx19[_0x4831[65]]({TrunkId:_0x3c0cx1e[_0x4831[48]]},{transaction:_0x3c0cx1a})[_0x4831[44]](function(_0x3c0cx1f){_0x3c0cx1b(null,_0x3c0cx19,_0x3c0cx1e)})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cx1b(_0x3c0cx14)})})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cx1b(_0x3c0cx14)})},function(_0x3c0cx19,_0x3c0cx1e,_0x3c0cx1b){return VoiceExtension[_0x4831[64]]({where:{priority:1,exten:_0x3c0cx19[_0x4831[13]],context:_0x3c0cx19[_0x4831[4]][_0x4831[53]]}},{transaction:_0x3c0cx1a})[_0x4831[44]](function(_0x3c0cx1d){if(!_0x3c0cx1d){_0x3c0cx1b(null,_0x3c0cx19)};return _0x3c0cx1d[_0x4831[65]]({exten:_0x3c0cx9[_0x4831[52]][_0x4831[13]],context:_0x3c0cx1e[_0x4831[53]],TrunkId:_0x3c0cx9[_0x4831[52]][_0x4831[67]]},{transaction:_0x3c0cx1a})[_0x4831[44]](function(){console[_0x4831[57]](_0x4831[66]);_0x3c0cx1b(null,_0x3c0cx19);})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cx1b(_0x3c0cx14)});})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cx1b(_0x3c0cx14)})},function(_0x3c0cx19,_0x3c0cx1b){var _0x3c0cx20=_[_0x4831[68]](_0x3c0cx19,_0x3c0cx9[_0x4831[52]]);return _0x3c0cx20[_0x4831[70]]({transaction:_0x3c0cx1a})[_0x4831[44]](function(){console[_0x4831[57]](_0x4831[69]);_0x3c0cx1b(null,_0x3c0cx19);})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cx1b(_0x3c0cx14)});}],function(_0x3c0cx14,_0x3c0cx19){if(_0x3c0cx14){console[_0x4831[57]](_0x3c0cx14);_0x3c0cx1a[_0x4831[58]]();return _0x3c0cxa[_0x4831[33]](404)[_0x4831[32]](_0x3c0cx14);}else {console[_0x4831[57]](_0x4831[59]);_0x3c0cx1a[_0x4831[60]]();return _0x3c0cxa[_0x4831[33]](201)[_0x4831[32]](_0x3c0cx19);}})});};exports[_0x4831[71]]=function(_0x3c0cx9,_0x3c0cxa,_0x3c0cxb){FaxAccount[_0x4831[72]]({where:{id:_0x3c0cx9[_0x4831[49]][_0x4831[48]]}})[_0x4831[44]](function(_0x3c0cx19){if(!_0x3c0cx19){return _0x3c0cxa[_0x4831[47]](404)};_0x3c0cx19[_0x4831[71]]()[_0x4831[44]](function(){return _0x3c0cxa[_0x4831[47]](204)})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cxb(_0x3c0cx14)});})[_0x4831[34]](function(_0x3c0cx14){_0x3c0cxb(_0x3c0cx14)})};exports[_0x4831[73]]=function(_0x3c0cx9,_0x3c0cxa,_0x3c0cxb){FaxApplication[_0x4831[79]]({where:{id:_0x3c0cx9[_0x4831[52]][_0x4831[75]]}})[_0x4831[44]](function(_0x3c0cx21){var _0x3c0cx22=_0x3c0cx21;return sequelize[_0x4831[62]](function(_0x3c0cx1a){return FaxApplication[_0x4831[71]]({where:{id:_0x3c0cx9[_0x4831[52]][_0x4831[75]]}},{transaction:_0x3c0cx1a})[_0x4831[44]](function(){var _0x3c0cx23=[];for(var _0x3c0cx24=0;_0x3c0cx24<_0x3c0cx9[_0x4831[52]][_0x4831[75]][_0x4831[74]];_0x3c0cx24++){var _0x3c0cx25=_[_0x4831[72]](_0x3c0cx22,{"\x69\x64":_0x3c0cx9[_0x4831[52]][_0x4831[75]][_0x3c0cx24]});if(_0x3c0cx25){_0x3c0cx25[_0x4831[76]]=_0x3c0cx24+1;_0x3c0cx23[_0x4831[26]](_0x3c0cx25[_0x4831[77]]);};};return FaxApplication[_0x4831[78]](_0x3c0cx23,{transaction:_0x3c0cx1a})[_0x4831[44]](function(_0x3c0cx1f){return _0x3c0cx1f});})})[_0x4831[44]](function(_0x3c0cx15){return _0x3c0cxa[_0x4831[33]](200)[_0x4831[32]](_0x3c0cx15)})[_0x4831[34]](function(_0x3c0cx14){return handleError(_0x3c0cxa,_0x3c0cx14)});})[_0x4831[34]](function(_0x3c0cx14){return _0x3c0cxb(_0x3c0cx14)})};exports[_0x4831[80]]=function(_0x3c0cx9,_0x3c0cxa){FaxAccount[_0x4831[71]]({where:{id:_0x3c0cx9[_0x4831[15]][_0x4831[48]]},individualHooks:true})[_0x4831[44]](function(){return _0x3c0cxa[_0x4831[47]](204)})[_0x4831[34]](function(_0x3c0cx14){return handleError(_0x3c0cxa,_0x3c0cx14)})};function handleError(_0x3c0cxa,_0x3c0cx14){return _0x3c0cxa[_0x4831[33]](500)[_0x4831[32]](_0x3c0cx14)}
\ No newline at end of file
+var _0xe2a7=["\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"];_0xe2a7[0];var _=require(_0xe2a7[1]);var util=require(_0xe2a7[2]);var async=require(_0xe2a7[3]);var Trunk=require(_0xe2a7[5])[_0xe2a7[4]];var FaxAccount=require(_0xe2a7[5])[_0xe2a7[6]];var FaxApplication=require(_0xe2a7[5])[_0xe2a7[7]];var VoiceExtension=require(_0xe2a7[5])[_0xe2a7[8]];var sequelize=require(_0xe2a7[5])[_0xe2a7[9]];exports[_0xe2a7[10]]=function(_0xb302x9,_0xb302xa,_0xb302xb){var _0xb302xc=[_0xe2a7[11],_0xe2a7[12],_0xe2a7[13]];var _0xb302xd=_0xb302x9[_0xe2a7[15]][_0xe2a7[14]]?parseInt(_0xb302x9[_0xe2a7[15]][_0xe2a7[14]],10):100;var _0xb302xe=_0xb302x9[_0xe2a7[15]][_0xe2a7[16]]?parseInt(_0xb302x9[_0xe2a7[15]][_0xe2a7[16]],10):0;var _0xb302xf={where:{},limit:_0xb302xd,offset:_0xb302xe*_0xb302xd};_[_0xe2a7[30]](_0xb302x9[_0xe2a7[15]],function(_0xb302x10,_0xb302x11){switch(_0xb302x11){case _0xe2a7[14]:;case _0xe2a7[16]:break ;;case _0xe2a7[19]:_0xb302xf[_0xe2a7[17]]=util[_0xe2a7[22]](_0xe2a7[18],_0xb302x9[_0xe2a7[15]][_0xe2a7[19]],_0xb302x9[_0xe2a7[15]][_0xe2a7[20]]||_0xe2a7[21])||null;break ;;case _0xe2a7[20]:break ;;case _0xe2a7[28]:_0xb302xf[_0xe2a7[24]][_0xe2a7[23]]=[];_0xb302xc[_0xe2a7[27]](function(_0xb302x12){var _0xb302x13={};_0xb302x13[_0xb302x12]={$like:_0xe2a7[25]+_0xb302x10+_0xe2a7[25]};_0xb302xf[_0xe2a7[24]][_0xe2a7[23]][_0xe2a7[26]](_0xb302x13);});break ;;default:_0xb302xf[_0xe2a7[24]][_0xb302x11]={$like:{}};_0xb302xf[_0xe2a7[24]][_0xb302x11][_0xe2a7[29]]=_0xe2a7[25]+_0xb302x10+_0xe2a7[25];;}});FaxAccount[_0xe2a7[45]](_0xb302xf)[_0xe2a7[44]](function(_0xb302x15){var _0xb302x16=Math[_0xe2a7[36]](_0xb302x15[_0xe2a7[35]]/_0xb302xd);var _0xb302x17=_0xb302x16>(_0xb302xf[_0xe2a7[37]]+1)?util[_0xe2a7[22]](_0xe2a7[38],_0xb302x9[_0xe2a7[39]],_0xb302x9[_0xe2a7[41]][_0xe2a7[40]],_0xb302x9[_0xe2a7[42]],_0xb302xe+1):null;var _0xb302x18=_0xb302xe>0?util[_0xe2a7[22]](_0xe2a7[38],_0xb302x9[_0xe2a7[39]],_0xb302x9[_0xe2a7[41]][_0xe2a7[40]],_0xb302x9[_0xe2a7[42]],_0xb302xe-1):null;_0xb302xa[_0xe2a7[33]](200)[_0xe2a7[32]]({count:_0xb302x15[_0xe2a7[35]],rows:_0xb302x15[_0xe2a7[43]],next_page:_0xb302x17,previous_page:_0xb302x18,total_pages:_0xb302x16});})[_0xe2a7[34]](function(_0xb302x14){_0xb302xa[_0xe2a7[33]](500)[_0xe2a7[32]]({error:_0xe2a7[31]})});};exports[_0xe2a7[46]]=function(_0xb302x9,_0xb302xa,_0xb302xb){FaxAccount[_0xe2a7[50]](_0xb302x9[_0xe2a7[49]][_0xe2a7[48]])[_0xe2a7[44]](function(_0xb302x19){if(!_0xb302x19){return _0xb302xa[_0xe2a7[47]](404)};return _0xb302xa[_0xe2a7[32]](_0xb302x19);})[_0xe2a7[34]](function(_0xb302x14){return _0xb302xb(_0xb302x14)})};exports[_0xe2a7[51]]=function(_0xb302x9,_0xb302xa,_0xb302xb){return sequelize[_0xe2a7[62]]()[_0xe2a7[44]](function(_0xb302x1a){async[_0xe2a7[61]]([function(_0xb302x1b){return FaxAccount[_0xe2a7[51]](_0xb302x9[_0xe2a7[52]],{transaction:_0xb302x1a})[_0xe2a7[44]](function(_0xb302x19){_0xb302x1b(null,_0xb302x19)})[_0xe2a7[34]](function(_0xb302x14){_0xb302x1b(_0xb302x14)})},function(_0xb302x19,_0xb302x1b){return Trunk[_0xe2a7[50]](_0xb302x9[_0xe2a7[52]].TrunkId,{transaction:_0xb302x1a})[_0xe2a7[44]](function(_0xb302x1c){_0xb302x1b(null,_0xb302x19,_0xb302x1c)})[_0xe2a7[34]](function(_0xb302x14){_0xb302x1b(_0xb302x14)})},function(_0xb302x19,_0xb302x1c,_0xb302x1b){return VoiceExtension[_0xe2a7[51]]({context:_0xb302x1c[_0xe2a7[53]],exten:_0xb302x9[_0xe2a7[52]][_0xe2a7[13]],priority:1,app:_0xe2a7[54],appdata:_0xe2a7[55],type:_0xe2a7[56],TrunkId:_0xb302x1c[_0xe2a7[48]]},{transaction:_0xb302x1a})[_0xe2a7[44]](function(_0xb302x1d){_0xb302x1b(null,_0xb302x19)})[_0xe2a7[34]](function(_0xb302x14){_0xb302x1b(_0xb302x14)})}],function(_0xb302x14,_0xb302x19){if(_0xb302x14){console[_0xe2a7[57]](_0xb302x14);_0xb302x1a[_0xe2a7[58]]();return _0xb302xa[_0xe2a7[33]](404)[_0xe2a7[32]](_0xb302x14);}else {console[_0xe2a7[57]](_0xe2a7[59]);_0xb302x1a[_0xe2a7[60]]();return _0xb302xa[_0xe2a7[33]](201)[_0xe2a7[32]](_0xb302x19);}})})};exports[_0xe2a7[63]]=function(_0xb302x9,_0xb302xa,_0xb302xb){if(_0xb302x9[_0xe2a7[52]][_0xe2a7[48]]){delete _0xb302x9[_0xe2a7[52]][_0xe2a7[48]]};return sequelize[_0xe2a7[62]]()[_0xe2a7[44]](function(_0xb302x1a){async[_0xe2a7[61]]([function(_0xb302x1b){return FaxAccount[_0xe2a7[64]]({where:{id:_0xb302x9[_0xe2a7[49]][_0xe2a7[48]]},include:[{model:Trunk}]},{transaction:_0xb302x1a})[_0xe2a7[44]](function(_0xb302x19){_0xb302x1b(null,_0xb302x19)})[_0xe2a7[34]](function(_0xb302x14){_0xb302x1b(_0xb302x14)})},function(_0xb302x19,_0xb302x1b){return Trunk[_0xe2a7[50]](_0xb302x9[_0xe2a7[52]].TrunkId,{transaction:_0xb302x1a})[_0xe2a7[44]](function(_0xb302x1e){return _0xb302x19[_0xe2a7[65]]({TrunkId:_0xb302x1e[_0xe2a7[48]]},{transaction:_0xb302x1a})[_0xe2a7[44]](function(_0xb302x1f){_0xb302x1b(null,_0xb302x19,_0xb302x1e)})[_0xe2a7[34]](function(_0xb302x14){_0xb302x1b(_0xb302x14)})})[_0xe2a7[34]](function(_0xb302x14){_0xb302x1b(_0xb302x14)})},function(_0xb302x19,_0xb302x1e,_0xb302x1b){return VoiceExtension[_0xe2a7[64]]({where:{priority:1,exten:_0xb302x19[_0xe2a7[13]],context:_0xb302x19[_0xe2a7[4]][_0xe2a7[53]]}},{transaction:_0xb302x1a})[_0xe2a7[44]](function(_0xb302x1d){if(!_0xb302x1d){_0xb302x1b(null,_0xb302x19)};return _0xb302x1d[_0xe2a7[65]]({exten:_0xb302x9[_0xe2a7[52]][_0xe2a7[13]],context:_0xb302x1e[_0xe2a7[53]],TrunkId:_0xb302x9[_0xe2a7[52]][_0xe2a7[67]]},{transaction:_0xb302x1a})[_0xe2a7[44]](function(){console[_0xe2a7[57]](_0xe2a7[66]);_0xb302x1b(null,_0xb302x19);})[_0xe2a7[34]](function(_0xb302x14){_0xb302x1b(_0xb302x14)});})[_0xe2a7[34]](function(_0xb302x14){_0xb302x1b(_0xb302x14)})},function(_0xb302x19,_0xb302x1b){var _0xb302x20=_[_0xe2a7[68]](_0xb302x19,_0xb302x9[_0xe2a7[52]]);return _0xb302x20[_0xe2a7[70]]({transaction:_0xb302x1a})[_0xe2a7[44]](function(){console[_0xe2a7[57]](_0xe2a7[69]);_0xb302x1b(null,_0xb302x19);})[_0xe2a7[34]](function(_0xb302x14){_0xb302x1b(_0xb302x14)});}],function(_0xb302x14,_0xb302x19){if(_0xb302x14){console[_0xe2a7[57]](_0xb302x14);_0xb302x1a[_0xe2a7[58]]();return _0xb302xa[_0xe2a7[33]](404)[_0xe2a7[32]](_0xb302x14);}else {console[_0xe2a7[57]](_0xe2a7[59]);_0xb302x1a[_0xe2a7[60]]();return _0xb302xa[_0xe2a7[33]](201)[_0xe2a7[32]](_0xb302x19);}})});};exports[_0xe2a7[71]]=function(_0xb302x9,_0xb302xa,_0xb302xb){FaxAccount[_0xe2a7[72]]({where:{id:_0xb302x9[_0xe2a7[49]][_0xe2a7[48]]}})[_0xe2a7[44]](function(_0xb302x19){if(!_0xb302x19){return _0xb302xa[_0xe2a7[47]](404)};_0xb302x19[_0xe2a7[71]]()[_0xe2a7[44]](function(){return _0xb302xa[_0xe2a7[47]](204)})[_0xe2a7[34]](function(_0xb302x14){_0xb302xb(_0xb302x14)});})[_0xe2a7[34]](function(_0xb302x14){_0xb302xb(_0xb302x14)})};exports[_0xe2a7[73]]=function(_0xb302x9,_0xb302xa,_0xb302xb){FaxApplication[_0xe2a7[79]]({where:{id:_0xb302x9[_0xe2a7[52]][_0xe2a7[75]]}})[_0xe2a7[44]](function(_0xb302x21){var _0xb302x22=_0xb302x21;return sequelize[_0xe2a7[62]](function(_0xb302x1a){return FaxApplication[_0xe2a7[71]]({where:{id:_0xb302x9[_0xe2a7[52]][_0xe2a7[75]]}},{transaction:_0xb302x1a})[_0xe2a7[44]](function(){var _0xb302x23=[];for(var _0xb302x24=0;_0xb302x24<_0xb302x9[_0xe2a7[52]][_0xe2a7[75]][_0xe2a7[74]];_0xb302x24++){var _0xb302x25=_[_0xe2a7[72]](_0xb302x22,{"\x69\x64":_0xb302x9[_0xe2a7[52]][_0xe2a7[75]][_0xb302x24]});if(_0xb302x25){_0xb302x25[_0xe2a7[76]]=_0xb302x24+1;_0xb302x23[_0xe2a7[26]](_0xb302x25[_0xe2a7[77]]);};};return FaxApplication[_0xe2a7[78]](_0xb302x23,{transaction:_0xb302x1a})[_0xe2a7[44]](function(_0xb302x1f){return _0xb302x1f});})})[_0xe2a7[44]](function(_0xb302x15){return _0xb302xa[_0xe2a7[33]](200)[_0xe2a7[32]](_0xb302x15)})[_0xe2a7[34]](function(_0xb302x14){return handleError(_0xb302xa,_0xb302x14)});})[_0xe2a7[34]](function(_0xb302x14){return _0xb302xb(_0xb302x14)})};exports[_0xe2a7[80]]=function(_0xb302x9,_0xb302xa){FaxAccount[_0xe2a7[71]]({where:{id:_0xb302x9[_0xe2a7[15]][_0xe2a7[48]]},individualHooks:true})[_0xe2a7[44]](function(){return _0xb302xa[_0xe2a7[47]](204)})[_0xe2a7[34]](function(_0xb302x14){return handleError(_0xb302xa,_0xb302x14)})};function handleError(_0xb302xa,_0xb302x14){return _0xb302xa[_0xe2a7[33]](500)[_0xe2a7[32]](_0xb302x14)}
\ No newline at end of file
-var _0x81d6=["\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"];_0x81d6[0];var fax_account=require(_0x81d6[2])[_0x81d6[1]];exports[_0x81d6[3]]=function(_0xf3f5x2){fax_account[_0x81d6[4]](function(_0xf3f5x3){onSave(_0xf3f5x2,_0xf3f5x3)});fax_account[_0x81d6[5]](function(_0xf3f5x3){onRemove(_0xf3f5x2,_0xf3f5x3)});};function onSave(_0xf3f5x2,_0xf3f5x3,_0xf3f5x5){_0xf3f5x2[_0x81d6[7]](_0x81d6[6],_0xf3f5x3)}function onRemove(_0xf3f5x2,_0xf3f5x3,_0xf3f5x5){_0xf3f5x2[_0x81d6[7]](_0x81d6[8],_0xf3f5x3)}
\ No newline at end of file
+var _0xfdb7=["\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"];_0xfdb7[0];var fax_account=require(_0xfdb7[2])[_0xfdb7[1]];exports[_0xfdb7[3]]=function(_0x352dx2){fax_account[_0xfdb7[4]](function(_0x352dx3){onSave(_0x352dx2,_0x352dx3)});fax_account[_0xfdb7[5]](function(_0x352dx3){onRemove(_0x352dx2,_0x352dx3)});};function onSave(_0x352dx2,_0x352dx3,_0x352dx5){_0x352dx2[_0xfdb7[7]](_0xfdb7[6],_0x352dx3)}function onRemove(_0x352dx2,_0x352dx3,_0x352dx5){_0x352dx2[_0xfdb7[7]](_0xfdb7[8],_0x352dx3)}
\ No newline at end of file
-var _0x334b=["\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"];_0x334b[0];var should=require(_0x334b[1]);var app=require(_0x334b[2]);var request=require(_0x334b[3]);describe(_0x334b[4],function(){it(_0x334b[5],function(_0x12b7x4){request(app)[_0x334b[13]](_0x334b[12])[_0x334b[11]](200)[_0x334b[11]](_0x334b[10],/json/)[_0x334b[9]](function(_0x12b7x5,_0x12b7x6){if(_0x12b7x5){return _0x12b7x4(_0x12b7x5)};_0x12b7x6[_0x334b[8]][_0x334b[1]][_0x334b[7]][_0x334b[6]](Array);_0x12b7x4();})})});
\ No newline at end of file
+var _0x4776=["\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"];_0x4776[0];var should=require(_0x4776[1]);var app=require(_0x4776[2]);var request=require(_0x4776[3]);describe(_0x4776[4],function(){it(_0x4776[5],function(_0x33a9x4){request(app)[_0x4776[13]](_0x4776[12])[_0x4776[11]](200)[_0x4776[11]](_0x4776[10],/json/)[_0x4776[9]](function(_0x33a9x5,_0x33a9x6){if(_0x33a9x5){return _0x33a9x4(_0x33a9x5)};_0x33a9x6[_0x4776[8]][_0x4776[1]][_0x4776[7]][_0x4776[6]](Array);_0x33a9x4();})})});
\ No newline at end of file
-var _0x65d9=["\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"];_0x65d9[0];var express=require(_0x65d9[1]);var controller=require(_0x65d9[2]);var auth=require(_0x65d9[3]);var router=express.Router();router[_0x65d9[7]](_0x65d9[4],auth[_0x65d9[5]](),controller[_0x65d9[6]]);router[_0x65d9[7]](_0x65d9[8],controller[_0x65d9[9]]);router[_0x65d9[11]](_0x65d9[4],controller[_0x65d9[10]]);router[_0x65d9[11]](_0x65d9[12],controller[_0x65d9[13]]);router[_0x65d9[15]](_0x65d9[8],controller[_0x65d9[14]]);router[_0x65d9[16]](_0x65d9[8],controller[_0x65d9[14]]);router[_0x65d9[18]](_0x65d9[4],controller[_0x65d9[17]]);router[_0x65d9[18]](_0x65d9[8],controller[_0x65d9[19]]);module[_0x65d9[20]]=router;
\ No newline at end of file
+var _0x4e59=["\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"];_0x4e59[0];var express=require(_0x4e59[1]);var controller=require(_0x4e59[2]);var auth=require(_0x4e59[3]);var router=express.Router();router[_0x4e59[7]](_0x4e59[4],auth[_0x4e59[5]](),controller[_0x4e59[6]]);router[_0x4e59[7]](_0x4e59[8],controller[_0x4e59[9]]);router[_0x4e59[11]](_0x4e59[4],controller[_0x4e59[10]]);router[_0x4e59[11]](_0x4e59[12],controller[_0x4e59[13]]);router[_0x4e59[15]](_0x4e59[8],controller[_0x4e59[14]]);router[_0x4e59[16]](_0x4e59[8],controller[_0x4e59[14]]);router[_0x4e59[18]](_0x4e59[4],controller[_0x4e59[17]]);router[_0x4e59[18]](_0x4e59[8],controller[_0x4e59[19]]);module[_0x4e59[20]]=router;
\ No newline at end of file
-var _0xf03f=["\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"];_0xf03f[0];var _=require(_0xf03f[1]);var FaxApplication=require(_0xf03f[3])[_0xf03f[2]];exports[_0xf03f[4]]=function(_0x80a3x3,_0x80a3x4){FaxApplication[_0xf03f[10]]({where:_0x80a3x3[_0xf03f[9]]})[_0xf03f[8]](function(_0x80a3x6){return _0x80a3x4[_0xf03f[7]](200)[_0xf03f[6]](_0x80a3x6)})[_0xf03f[5]](function(_0x80a3x5){return handleError(_0x80a3x4,_0x80a3x5)})};exports[_0xf03f[11]]=function(_0x80a3x3,_0x80a3x4){FaxApplication[_0xf03f[15]](_0x80a3x3[_0xf03f[14]][_0xf03f[13]])[_0xf03f[8]](function(_0x80a3x7){if(!_0x80a3x7){return _0x80a3x4[_0xf03f[12]](404)};return _0x80a3x4[_0xf03f[6]](_0x80a3x7);})[_0xf03f[5]](function(_0x80a3x5){return handleError(_0x80a3x4,_0x80a3x5)})};exports[_0xf03f[16]]=function(_0x80a3x3,_0x80a3x4,_0x80a3x8){console[_0xf03f[18]](_0x80a3x3[_0xf03f[17]]);FaxApplication[_0xf03f[21]](_0xf03f[19],{where:{FaxAccountId:_0x80a3x3[_0xf03f[17]][_0xf03f[20]]}})[_0xf03f[8]](function(_0x80a3x9){_0x80a3x3[_0xf03f[17]][_0xf03f[19]]=_0x80a3x9?++_0x80a3x9:1;FaxApplication[_0xf03f[16]](_0x80a3x3[_0xf03f[17]])[_0xf03f[8]](function(_0x80a3xa){return _0x80a3x4[_0xf03f[7]](201)[_0xf03f[6]](_0x80a3xa)})[_0xf03f[5]](function(_0x80a3x5){return _0x80a3x8(_0x80a3x5)});console[_0xf03f[18]](_0x80a3x9);})[_0xf03f[5]](function(_0x80a3x5){_0x80a3x8(_0x80a3x5)});};exports[_0xf03f[22]]=function(_0x80a3x3,_0x80a3x4){if(_0x80a3x3[_0xf03f[17]][_0xf03f[13]]){delete _0x80a3x3[_0xf03f[17]][_0xf03f[13]]};FaxApplication[_0xf03f[15]](_0x80a3x3[_0xf03f[14]][_0xf03f[13]])[_0xf03f[8]](function(_0x80a3x7){if(!_0x80a3x7){return _0x80a3x4[_0xf03f[12]](404)};var _0x80a3xb=_[_0xf03f[23]](_0x80a3x7,_0x80a3x3[_0xf03f[17]]);_0x80a3xb[_0xf03f[24]]()[_0xf03f[8]](function(){return _0x80a3x4[_0xf03f[7]](200)[_0xf03f[6]](_0x80a3x7)})[_0xf03f[5]](function(_0x80a3x5){return handleError(_0x80a3x4,_0x80a3x5)});})[_0xf03f[5]](function(_0x80a3x5){return handleError(_0x80a3x4,_0x80a3x5)});};exports[_0xf03f[25]]=function(_0x80a3x3,_0x80a3x4){FaxApplication[_0xf03f[26]]({where:{id:_0x80a3x3[_0xf03f[14]][_0xf03f[13]]}})[_0xf03f[8]](function(_0x80a3x7){if(!_0x80a3x7){return _0x80a3x4[_0xf03f[12]](404)};_0x80a3x7[_0xf03f[25]]()[_0xf03f[8]](function(){return _0x80a3x4[_0xf03f[12]](204)})[_0xf03f[5]](function(_0x80a3x5){return handleError(_0x80a3x4,_0x80a3x5)});})[_0xf03f[5]](function(_0x80a3x5){return handleError(_0x80a3x4,_0x80a3x5)})};function handleError(_0x80a3x4,_0x80a3x5){return _0x80a3x4[_0xf03f[7]](500)[_0xf03f[6]](_0x80a3x5)}
\ No newline at end of file
+var _0x35b4=["\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"];_0x35b4[0];var _=require(_0x35b4[1]);var FaxApplication=require(_0x35b4[3])[_0x35b4[2]];exports[_0x35b4[4]]=function(_0xd33ax3,_0xd33ax4){FaxApplication[_0x35b4[10]]({where:_0xd33ax3[_0x35b4[9]]})[_0x35b4[8]](function(_0xd33ax6){return _0xd33ax4[_0x35b4[7]](200)[_0x35b4[6]](_0xd33ax6)})[_0x35b4[5]](function(_0xd33ax5){return handleError(_0xd33ax4,_0xd33ax5)})};exports[_0x35b4[11]]=function(_0xd33ax3,_0xd33ax4){FaxApplication[_0x35b4[15]](_0xd33ax3[_0x35b4[14]][_0x35b4[13]])[_0x35b4[8]](function(_0xd33ax7){if(!_0xd33ax7){return _0xd33ax4[_0x35b4[12]](404)};return _0xd33ax4[_0x35b4[6]](_0xd33ax7);})[_0x35b4[5]](function(_0xd33ax5){return handleError(_0xd33ax4,_0xd33ax5)})};exports[_0x35b4[16]]=function(_0xd33ax3,_0xd33ax4,_0xd33ax8){console[_0x35b4[18]](_0xd33ax3[_0x35b4[17]]);FaxApplication[_0x35b4[21]](_0x35b4[19],{where:{FaxAccountId:_0xd33ax3[_0x35b4[17]][_0x35b4[20]]}})[_0x35b4[8]](function(_0xd33ax9){_0xd33ax3[_0x35b4[17]][_0x35b4[19]]=_0xd33ax9?++_0xd33ax9:1;FaxApplication[_0x35b4[16]](_0xd33ax3[_0x35b4[17]])[_0x35b4[8]](function(_0xd33axa){return _0xd33ax4[_0x35b4[7]](201)[_0x35b4[6]](_0xd33axa)})[_0x35b4[5]](function(_0xd33ax5){return _0xd33ax8(_0xd33ax5)});console[_0x35b4[18]](_0xd33ax9);})[_0x35b4[5]](function(_0xd33ax5){_0xd33ax8(_0xd33ax5)});};exports[_0x35b4[22]]=function(_0xd33ax3,_0xd33ax4){if(_0xd33ax3[_0x35b4[17]][_0x35b4[13]]){delete _0xd33ax3[_0x35b4[17]][_0x35b4[13]]};FaxApplication[_0x35b4[15]](_0xd33ax3[_0x35b4[14]][_0x35b4[13]])[_0x35b4[8]](function(_0xd33ax7){if(!_0xd33ax7){return _0xd33ax4[_0x35b4[12]](404)};var _0xd33axb=_[_0x35b4[23]](_0xd33ax7,_0xd33ax3[_0x35b4[17]]);_0xd33axb[_0x35b4[24]]()[_0x35b4[8]](function(){return _0xd33ax4[_0x35b4[7]](200)[_0x35b4[6]](_0xd33ax7)})[_0x35b4[5]](function(_0xd33ax5){return handleError(_0xd33ax4,_0xd33ax5)});})[_0x35b4[5]](function(_0xd33ax5){return handleError(_0xd33ax4,_0xd33ax5)});};exports[_0x35b4[25]]=function(_0xd33ax3,_0xd33ax4){FaxApplication[_0x35b4[26]]({where:{id:_0xd33ax3[_0x35b4[14]][_0x35b4[13]]}})[_0x35b4[8]](function(_0xd33ax7){if(!_0xd33ax7){return _0xd33ax4[_0x35b4[12]](404)};_0xd33ax7[_0x35b4[25]]()[_0x35b4[8]](function(){return _0xd33ax4[_0x35b4[12]](204)})[_0x35b4[5]](function(_0xd33ax5){return handleError(_0xd33ax4,_0xd33ax5)});})[_0x35b4[5]](function(_0xd33ax5){return handleError(_0xd33ax4,_0xd33ax5)})};function handleError(_0xd33ax4,_0xd33ax5){return _0xd33ax4[_0x35b4[7]](500)[_0x35b4[6]](_0xd33ax5)}
\ No newline at end of file
-var _0x66a3=["\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"];_0x66a3[0];var fax_application=require(_0x66a3[2])[_0x66a3[1]];exports[_0x66a3[3]]=function(_0x1261x2){fax_application[_0x66a3[4]](function(_0x1261x3){onSave(_0x1261x2,_0x1261x3)});fax_application[_0x66a3[5]](function(_0x1261x3){onRemove(_0x1261x2,_0x1261x3)});};function onSave(_0x1261x2,_0x1261x3,_0x1261x5){_0x1261x2[_0x66a3[7]](_0x66a3[6],_0x1261x3)}function onRemove(_0x1261x2,_0x1261x3,_0x1261x5){_0x1261x2[_0x66a3[7]](_0x66a3[8],_0x1261x3)}
\ No newline at end of file
+var _0xd1e8=["\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"];_0xd1e8[0];var fax_application=require(_0xd1e8[2])[_0xd1e8[1]];exports[_0xd1e8[3]]=function(_0x30f4x2){fax_application[_0xd1e8[4]](function(_0x30f4x3){onSave(_0x30f4x2,_0x30f4x3)});fax_application[_0xd1e8[5]](function(_0x30f4x3){onRemove(_0x30f4x2,_0x30f4x3)});};function onSave(_0x30f4x2,_0x30f4x3,_0x30f4x5){_0x30f4x2[_0xd1e8[7]](_0xd1e8[6],_0x30f4x3)}function onRemove(_0x30f4x2,_0x30f4x3,_0x30f4x5){_0x30f4x2[_0xd1e8[7]](_0xd1e8[8],_0x30f4x3)}
\ No newline at end of file
-var _0x95bc=["\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"];_0x95bc[0];var should=require(_0x95bc[1]);var app=require(_0x95bc[2]);var request=require(_0x95bc[3]);describe(_0x95bc[4],function(){it(_0x95bc[5],function(_0x831bx4){request(app)[_0x95bc[13]](_0x95bc[12])[_0x95bc[11]](200)[_0x95bc[11]](_0x95bc[10],/json/)[_0x95bc[9]](function(_0x831bx5,_0x831bx6){if(_0x831bx5){return _0x831bx4(_0x831bx5)};_0x831bx6[_0x95bc[8]][_0x95bc[1]][_0x95bc[7]][_0x95bc[6]](Array);_0x831bx4();})})});
\ No newline at end of file
+var _0x5b4f=["\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"];_0x5b4f[0];var should=require(_0x5b4f[1]);var app=require(_0x5b4f[2]);var request=require(_0x5b4f[3]);describe(_0x5b4f[4],function(){it(_0x5b4f[5],function(_0xc31ax4){request(app)[_0x5b4f[13]](_0x5b4f[12])[_0x5b4f[11]](200)[_0x5b4f[11]](_0x5b4f[10],/json/)[_0x5b4f[9]](function(_0xc31ax5,_0xc31ax6){if(_0xc31ax5){return _0xc31ax4(_0xc31ax5)};_0xc31ax6[_0x5b4f[8]][_0x5b4f[1]][_0x5b4f[7]][_0x5b4f[6]](Array);_0xc31ax4();})})});
\ No newline at end of file
-var _0x6dbe=["\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"];_0x6dbe[0];var express=require(_0x6dbe[1]);var controller=require(_0x6dbe[2]);var router=express.Router();router[_0x6dbe[5]](_0x6dbe[3],controller[_0x6dbe[4]]);router[_0x6dbe[5]](_0x6dbe[6],controller[_0x6dbe[7]]);router[_0x6dbe[9]](_0x6dbe[3],controller[_0x6dbe[8]]);router[_0x6dbe[11]](_0x6dbe[6],controller[_0x6dbe[10]]);router[_0x6dbe[12]](_0x6dbe[6],controller[_0x6dbe[10]]);router[_0x6dbe[14]](_0x6dbe[6],controller[_0x6dbe[13]]);module[_0x6dbe[15]]=router;
\ No newline at end of file
+var _0x5c09=["\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"];_0x5c09[0];var express=require(_0x5c09[1]);var controller=require(_0x5c09[2]);var router=express.Router();router[_0x5c09[5]](_0x5c09[3],controller[_0x5c09[4]]);router[_0x5c09[5]](_0x5c09[6],controller[_0x5c09[7]]);router[_0x5c09[9]](_0x5c09[3],controller[_0x5c09[8]]);router[_0x5c09[11]](_0x5c09[6],controller[_0x5c09[10]]);router[_0x5c09[12]](_0x5c09[6],controller[_0x5c09[10]]);router[_0x5c09[14]](_0x5c09[6],controller[_0x5c09[13]]);module[_0x5c09[15]]=router;
\ No newline at end of file
-var _0x5790=["\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"];_0x5790[0];var _=require(_0x5790[1]);var util=require(_0x5790[2]);var FaxBusinessAutomation=require(_0x5790[4])[_0x5790[3]];var BusinessCondition=require(_0x5790[4])[_0x5790[5]];var BusinessAction=require(_0x5790[4])[_0x5790[6]];var sequelize=require(_0x5790[4])[_0x5790[7]];exports[_0x5790[8]]=function(_0x2bc8x7,_0x2bc8x8,_0x2bc8x9){var _0x2bc8xa=[_0x5790[9],_0x5790[10]];var _0x2bc8xb=_0x2bc8x7[_0x5790[12]][_0x5790[11]]?parseInt(_0x2bc8x7[_0x5790[12]][_0x5790[11]],10):100;var _0x2bc8xc=_0x2bc8x7[_0x5790[12]][_0x5790[13]]?parseInt(_0x2bc8x7[_0x5790[12]][_0x5790[13]],10):0;var _0x2bc8xd={where:{},limit:_0x2bc8xb,offset:_0x2bc8xc*_0x2bc8xb};_[_0x5790[27]](_0x2bc8x7[_0x5790[12]],function(_0x2bc8xe,_0x2bc8xf){switch(_0x2bc8xf){case _0x5790[11]:;case _0x5790[13]:break ;;case _0x5790[16]:_0x2bc8xd[_0x5790[14]]=util[_0x5790[19]](_0x5790[15],_0x2bc8x7[_0x5790[12]][_0x5790[16]],_0x2bc8x7[_0x5790[12]][_0x5790[17]]||_0x5790[18])||null;break ;;case _0x5790[17]:break ;;case _0x5790[25]:_0x2bc8xd[_0x5790[21]][_0x5790[20]]=[];_0x2bc8xa[_0x5790[24]](function(_0x2bc8x10){var _0x2bc8x11={};_0x2bc8x11[_0x2bc8x10]={$like:_0x5790[22]+_0x2bc8xe+_0x5790[22]};_0x2bc8xd[_0x5790[21]][_0x5790[20]][_0x5790[23]](_0x2bc8x11);});break ;;default:_0x2bc8xd[_0x5790[21]][_0x2bc8xf]={$like:{}};_0x2bc8xd[_0x5790[21]][_0x2bc8xf][_0x5790[26]]=_0x5790[22]+_0x2bc8xe+_0x5790[22];;}});FaxBusinessAutomation[_0x5790[42]](_0x2bc8xd)[_0x5790[41]](function(_0x2bc8x13){var _0x2bc8x14=Math[_0x5790[33]](_0x2bc8x13[_0x5790[32]]/_0x2bc8xb);var _0x2bc8x15=_0x2bc8x14>(_0x2bc8xd[_0x5790[34]]+1)?util[_0x5790[19]](_0x5790[35],_0x2bc8x7[_0x5790[36]],_0x2bc8x7[_0x5790[38]][_0x5790[37]],_0x2bc8x7[_0x5790[39]],_0x2bc8xc+1):null;var _0x2bc8x16=_0x2bc8xc>0?util[_0x5790[19]](_0x5790[35],_0x2bc8x7[_0x5790[36]],_0x2bc8x7[_0x5790[38]][_0x5790[37]],_0x2bc8x7[_0x5790[39]],_0x2bc8xc-1):null;_0x2bc8x8[_0x5790[30]](200)[_0x5790[29]]({count:_0x2bc8x13[_0x5790[32]],rows:_0x2bc8x13[_0x5790[40]],next_page:_0x2bc8x15,previous_page:_0x2bc8x16,total_pages:_0x2bc8x14});})[_0x5790[31]](function(_0x2bc8x12){_0x2bc8x8[_0x5790[30]](500)[_0x5790[29]]({error:_0x5790[28]})});};exports[_0x5790[43]]=function(_0x2bc8x7,_0x2bc8x8){FaxBusinessAutomation[_0x5790[47]](_0x2bc8x7[_0x5790[46]][_0x5790[45]],{include:[{all:true}]})[_0x5790[41]](function(_0x2bc8x17){if(!_0x2bc8x17){return _0x2bc8x8[_0x5790[44]](404)};return _0x2bc8x8[_0x5790[29]](_0x2bc8x17);})[_0x5790[31]](function(_0x2bc8x12){return handleError(_0x2bc8x8,_0x2bc8x12)})};exports[_0x5790[48]]=function(_0x2bc8x7,_0x2bc8x8,_0x2bc8x9){return sequelize[_0x5790[56]](function(_0x2bc8x18){return FaxBusinessAutomation[_0x5790[48]](_0x2bc8x7[_0x5790[50]],{transaction:_0x2bc8x18})[_0x5790[41]](function(_0x2bc8x19){var _0x2bc8x1a=[];if(_0x2bc8x7[_0x5790[50]][_0x5790[49]]){_0x2bc8x7[_0x5790[50]][_0x5790[49]][_0x5790[24]](function(_0x2bc8x1b){_0x2bc8x1b[_0x5790[51]]=_0x2bc8x19[_0x5790[45]]});_0x2bc8x1a=_0x2bc8x1a[_0x5790[52]](_0x2bc8x7[_0x5790[50]][_0x5790[49]]);};if(_0x2bc8x7[_0x5790[50]][_0x5790[53]]){_0x2bc8x7[_0x5790[50]][_0x5790[53]][_0x5790[24]](function(_0x2bc8x1b){_0x2bc8x1b[_0x5790[51]]=_0x2bc8x19[_0x5790[45]]});_0x2bc8x1a=_0x2bc8x1a[_0x5790[52]](_0x2bc8x7[_0x5790[50]][_0x5790[53]]);};return BusinessCondition[_0x5790[55]](_0x2bc8x1a,{transaction:_0x2bc8x18})[_0x5790[41]](function(_0x2bc8x1c){if(_0x2bc8x7[_0x5790[50]][_0x5790[54]]){_0x2bc8x7[_0x5790[50]][_0x5790[54]][_0x5790[24]](function(_0x2bc8x1b){_0x2bc8x1b[_0x5790[51]]=_0x2bc8x19[_0x5790[45]]})};return BusinessAction[_0x5790[55]](_0x2bc8x7[_0x5790[50]][_0x5790[54]],{transaction:_0x2bc8x18});});})})[_0x5790[41]](function(){return _0x2bc8x8[_0x5790[44]](201)})[_0x5790[31]](function(_0x2bc8x12){return _0x2bc8x9(_0x2bc8x12)})};exports[_0x5790[57]]=function(_0x2bc8x7,_0x2bc8x8){if(_0x2bc8x7[_0x5790[50]][_0x5790[45]]){delete _0x2bc8x7[_0x5790[50]][_0x5790[45]]};FaxBusinessAutomation[_0x5790[60]]({where:{id:_0x2bc8x7[_0x5790[46]][_0x5790[45]]}})[_0x5790[41]](function(_0x2bc8x17){if(!_0x2bc8x17){return _0x2bc8x8[_0x5790[44]](404)};var _0x2bc8x1d=_[_0x5790[58]](_0x2bc8x17,_0x2bc8x7[_0x5790[50]]);_0x2bc8x1d[_0x5790[59]]()[_0x5790[41]](function(){return _0x2bc8x8[_0x5790[30]](200)[_0x5790[29]](_0x2bc8x17)})[_0x5790[31]](function(_0x2bc8x12){return handleError(_0x2bc8x8,_0x2bc8x12)});})[_0x5790[31]](function(_0x2bc8x12){return handleError(_0x2bc8x8,_0x2bc8x12)});};exports[_0x5790[61]]=function(_0x2bc8x7,_0x2bc8x8){FaxBusinessAutomation[_0x5790[60]]({where:{id:_0x2bc8x7[_0x5790[46]][_0x5790[45]]}})[_0x5790[41]](function(_0x2bc8x17){if(!_0x2bc8x17){return _0x2bc8x8[_0x5790[44]](404)};_0x2bc8x17[_0x5790[61]]()[_0x5790[41]](function(){return _0x2bc8x8[_0x5790[44]](204)})[_0x5790[31]](function(_0x2bc8x12){return handleError(_0x2bc8x8,_0x2bc8x12)});})[_0x5790[31]](function(_0x2bc8x12){return handleError(_0x2bc8x8,_0x2bc8x12)})};function handleError(_0x2bc8x8,_0x2bc8x12){return _0x2bc8x8[_0x5790[30]](500)[_0x5790[29]](_0x2bc8x12)}
\ No newline at end of file
+var _0x460d=["\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"];_0x460d[0];var _=require(_0x460d[1]);var util=require(_0x460d[2]);var FaxBusinessAutomation=require(_0x460d[4])[_0x460d[3]];var BusinessCondition=require(_0x460d[4])[_0x460d[5]];var BusinessAction=require(_0x460d[4])[_0x460d[6]];var sequelize=require(_0x460d[4])[_0x460d[7]];exports[_0x460d[8]]=function(_0xc5bex7,_0xc5bex8,_0xc5bex9){var _0xc5bexa=[_0x460d[9],_0x460d[10]];var _0xc5bexb=_0xc5bex7[_0x460d[12]][_0x460d[11]]?parseInt(_0xc5bex7[_0x460d[12]][_0x460d[11]],10):100;var _0xc5bexc=_0xc5bex7[_0x460d[12]][_0x460d[13]]?parseInt(_0xc5bex7[_0x460d[12]][_0x460d[13]],10):0;var _0xc5bexd={where:{},limit:_0xc5bexb,offset:_0xc5bexc*_0xc5bexb};_[_0x460d[27]](_0xc5bex7[_0x460d[12]],function(_0xc5bexe,_0xc5bexf){switch(_0xc5bexf){case _0x460d[11]:;case _0x460d[13]:break ;;case _0x460d[16]:_0xc5bexd[_0x460d[14]]=util[_0x460d[19]](_0x460d[15],_0xc5bex7[_0x460d[12]][_0x460d[16]],_0xc5bex7[_0x460d[12]][_0x460d[17]]||_0x460d[18])||null;break ;;case _0x460d[17]:break ;;case _0x460d[25]:_0xc5bexd[_0x460d[21]][_0x460d[20]]=[];_0xc5bexa[_0x460d[24]](function(_0xc5bex10){var _0xc5bex11={};_0xc5bex11[_0xc5bex10]={$like:_0x460d[22]+_0xc5bexe+_0x460d[22]};_0xc5bexd[_0x460d[21]][_0x460d[20]][_0x460d[23]](_0xc5bex11);});break ;;default:_0xc5bexd[_0x460d[21]][_0xc5bexf]={$like:{}};_0xc5bexd[_0x460d[21]][_0xc5bexf][_0x460d[26]]=_0x460d[22]+_0xc5bexe+_0x460d[22];;}});FaxBusinessAutomation[_0x460d[42]](_0xc5bexd)[_0x460d[41]](function(_0xc5bex13){var _0xc5bex14=Math[_0x460d[33]](_0xc5bex13[_0x460d[32]]/_0xc5bexb);var _0xc5bex15=_0xc5bex14>(_0xc5bexd[_0x460d[34]]+1)?util[_0x460d[19]](_0x460d[35],_0xc5bex7[_0x460d[36]],_0xc5bex7[_0x460d[38]][_0x460d[37]],_0xc5bex7[_0x460d[39]],_0xc5bexc+1):null;var _0xc5bex16=_0xc5bexc>0?util[_0x460d[19]](_0x460d[35],_0xc5bex7[_0x460d[36]],_0xc5bex7[_0x460d[38]][_0x460d[37]],_0xc5bex7[_0x460d[39]],_0xc5bexc-1):null;_0xc5bex8[_0x460d[30]](200)[_0x460d[29]]({count:_0xc5bex13[_0x460d[32]],rows:_0xc5bex13[_0x460d[40]],next_page:_0xc5bex15,previous_page:_0xc5bex16,total_pages:_0xc5bex14});})[_0x460d[31]](function(_0xc5bex12){_0xc5bex8[_0x460d[30]](500)[_0x460d[29]]({error:_0x460d[28]})});};exports[_0x460d[43]]=function(_0xc5bex7,_0xc5bex8){FaxBusinessAutomation[_0x460d[47]](_0xc5bex7[_0x460d[46]][_0x460d[45]],{include:[{all:true}]})[_0x460d[41]](function(_0xc5bex17){if(!_0xc5bex17){return _0xc5bex8[_0x460d[44]](404)};return _0xc5bex8[_0x460d[29]](_0xc5bex17);})[_0x460d[31]](function(_0xc5bex12){return handleError(_0xc5bex8,_0xc5bex12)})};exports[_0x460d[48]]=function(_0xc5bex7,_0xc5bex8,_0xc5bex9){return sequelize[_0x460d[56]](function(_0xc5bex18){return FaxBusinessAutomation[_0x460d[48]](_0xc5bex7[_0x460d[50]],{transaction:_0xc5bex18})[_0x460d[41]](function(_0xc5bex19){var _0xc5bex1a=[];if(_0xc5bex7[_0x460d[50]][_0x460d[49]]){_0xc5bex7[_0x460d[50]][_0x460d[49]][_0x460d[24]](function(_0xc5bex1b){_0xc5bex1b[_0x460d[51]]=_0xc5bex19[_0x460d[45]]});_0xc5bex1a=_0xc5bex1a[_0x460d[52]](_0xc5bex7[_0x460d[50]][_0x460d[49]]);};if(_0xc5bex7[_0x460d[50]][_0x460d[53]]){_0xc5bex7[_0x460d[50]][_0x460d[53]][_0x460d[24]](function(_0xc5bex1b){_0xc5bex1b[_0x460d[51]]=_0xc5bex19[_0x460d[45]]});_0xc5bex1a=_0xc5bex1a[_0x460d[52]](_0xc5bex7[_0x460d[50]][_0x460d[53]]);};return BusinessCondition[_0x460d[55]](_0xc5bex1a,{transaction:_0xc5bex18})[_0x460d[41]](function(_0xc5bex1c){if(_0xc5bex7[_0x460d[50]][_0x460d[54]]){_0xc5bex7[_0x460d[50]][_0x460d[54]][_0x460d[24]](function(_0xc5bex1b){_0xc5bex1b[_0x460d[51]]=_0xc5bex19[_0x460d[45]]})};return BusinessAction[_0x460d[55]](_0xc5bex7[_0x460d[50]][_0x460d[54]],{transaction:_0xc5bex18});});})})[_0x460d[41]](function(){return _0xc5bex8[_0x460d[44]](201)})[_0x460d[31]](function(_0xc5bex12){return _0xc5bex9(_0xc5bex12)})};exports[_0x460d[57]]=function(_0xc5bex7,_0xc5bex8){if(_0xc5bex7[_0x460d[50]][_0x460d[45]]){delete _0xc5bex7[_0x460d[50]][_0x460d[45]]};FaxBusinessAutomation[_0x460d[60]]({where:{id:_0xc5bex7[_0x460d[46]][_0x460d[45]]}})[_0x460d[41]](function(_0xc5bex17){if(!_0xc5bex17){return _0xc5bex8[_0x460d[44]](404)};var _0xc5bex1d=_[_0x460d[58]](_0xc5bex17,_0xc5bex7[_0x460d[50]]);_0xc5bex1d[_0x460d[59]]()[_0x460d[41]](function(){return _0xc5bex8[_0x460d[30]](200)[_0x460d[29]](_0xc5bex17)})[_0x460d[31]](function(_0xc5bex12){return handleError(_0xc5bex8,_0xc5bex12)});})[_0x460d[31]](function(_0xc5bex12){return handleError(_0xc5bex8,_0xc5bex12)});};exports[_0x460d[61]]=function(_0xc5bex7,_0xc5bex8){FaxBusinessAutomation[_0x460d[60]]({where:{id:_0xc5bex7[_0x460d[46]][_0x460d[45]]}})[_0x460d[41]](function(_0xc5bex17){if(!_0xc5bex17){return _0xc5bex8[_0x460d[44]](404)};_0xc5bex17[_0x460d[61]]()[_0x460d[41]](function(){return _0xc5bex8[_0x460d[44]](204)})[_0x460d[31]](function(_0xc5bex12){return handleError(_0xc5bex8,_0xc5bex12)});})[_0x460d[31]](function(_0xc5bex12){return handleError(_0xc5bex8,_0xc5bex12)})};function handleError(_0xc5bex8,_0xc5bex12){return _0xc5bex8[_0x460d[30]](500)[_0x460d[29]](_0xc5bex12)}
\ No newline at end of file
-var _0x934e=["\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"];_0x934e[0];var FaxBusinessAutomation=require(_0x934e[2])[_0x934e[1]];exports[_0x934e[3]]=function(_0x7d1ax2){FaxBusinessAutomation[_0x934e[4]](function(_0x7d1ax3){onSave(_0x7d1ax2,_0x7d1ax3)});FaxBusinessAutomation[_0x934e[5]](function(_0x7d1ax3,_0x7d1ax4){onSave(_0x7d1ax2,_0x7d1ax3)});FaxBusinessAutomation[_0x934e[6]](function(_0x7d1ax3){onRemove(_0x7d1ax2,_0x7d1ax3)});};function onSave(_0x7d1ax2,_0x7d1ax3,_0x7d1ax6){_0x7d1ax2[_0x934e[8]](_0x934e[7],_0x7d1ax3)}function onRemove(_0x7d1ax2,_0x7d1ax3,_0x7d1ax6){_0x7d1ax2[_0x934e[8]](_0x934e[9],_0x7d1ax3)}
\ No newline at end of file
+var _0xe583=["\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"];_0xe583[0];var FaxBusinessAutomation=require(_0xe583[2])[_0xe583[1]];exports[_0xe583[3]]=function(_0xa840x2){FaxBusinessAutomation[_0xe583[4]](function(_0xa840x3){onSave(_0xa840x2,_0xa840x3)});FaxBusinessAutomation[_0xe583[5]](function(_0xa840x3,_0xa840x4){onSave(_0xa840x2,_0xa840x3)});FaxBusinessAutomation[_0xe583[6]](function(_0xa840x3){onRemove(_0xa840x2,_0xa840x3)});};function onSave(_0xa840x2,_0xa840x3,_0xa840x6){_0xa840x2[_0xe583[8]](_0xe583[7],_0xa840x3)}function onRemove(_0xa840x2,_0xa840x3,_0xa840x6){_0xa840x2[_0xe583[8]](_0xe583[9],_0xa840x3)}
\ No newline at end of file
-var _0x8cd1=["\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"];_0x8cd1[0];var should=require(_0x8cd1[1]);var app=require(_0x8cd1[2]);var request=require(_0x8cd1[3]);describe(_0x8cd1[4],function(){it(_0x8cd1[5],function(_0x8773x4){request(app)[_0x8cd1[13]](_0x8cd1[12])[_0x8cd1[11]](200)[_0x8cd1[11]](_0x8cd1[10],/json/)[_0x8cd1[9]](function(_0x8773x5,_0x8773x6){if(_0x8773x5){return _0x8773x4(_0x8773x5)};_0x8773x6[_0x8cd1[8]][_0x8cd1[1]][_0x8cd1[7]][_0x8cd1[6]](Array);_0x8773x4();})})});
\ No newline at end of file
+var _0xd399=["\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"];_0xd399[0];var should=require(_0xd399[1]);var app=require(_0xd399[2]);var request=require(_0xd399[3]);describe(_0xd399[4],function(){it(_0xd399[5],function(_0x944ax4){request(app)[_0xd399[13]](_0xd399[12])[_0xd399[11]](200)[_0xd399[11]](_0xd399[10],/json/)[_0xd399[9]](function(_0x944ax5,_0x944ax6){if(_0x944ax5){return _0x944ax4(_0x944ax5)};_0x944ax6[_0xd399[8]][_0xd399[1]][_0xd399[7]][_0xd399[6]](Array);_0x944ax4();})})});
\ No newline at end of file
-var _0xad1e=["\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"];_0xad1e[0];var express=require(_0xad1e[1]);var controller=require(_0xad1e[2]);var router=express.Router();router[_0xad1e[5]](_0xad1e[3],controller[_0xad1e[4]]);router[_0xad1e[5]](_0xad1e[6],controller[_0xad1e[7]]);router[_0xad1e[9]](_0xad1e[3],controller[_0xad1e[8]]);router[_0xad1e[11]](_0xad1e[6],controller[_0xad1e[10]]);router[_0xad1e[12]](_0xad1e[6],controller[_0xad1e[10]]);router[_0xad1e[14]](_0xad1e[6],controller[_0xad1e[13]]);module[_0xad1e[15]]=router;
\ No newline at end of file
+var _0x591c=["\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"];_0x591c[0];var express=require(_0x591c[1]);var controller=require(_0x591c[2]);var router=express.Router();router[_0x591c[5]](_0x591c[3],controller[_0x591c[4]]);router[_0x591c[5]](_0x591c[6],controller[_0x591c[7]]);router[_0x591c[9]](_0x591c[3],controller[_0x591c[8]]);router[_0x591c[11]](_0x591c[6],controller[_0x591c[10]]);router[_0x591c[12]](_0x591c[6],controller[_0x591c[10]]);router[_0x591c[14]](_0x591c[6],controller[_0x591c[13]]);module[_0x591c[15]]=router;
\ No newline at end of file
-var _0x27a3=["\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"];_0x27a3[0];var _=require(_0x27a3[1]);var util=require(_0x27a3[2]);var FaxMessage=require(_0x27a3[4])[_0x27a3[3]];var Trunk=require(_0x27a3[4])[_0x27a3[5]];exports[_0x27a3[6]]=function(_0x13e5x5){FaxMessage[_0x27a3[9]](function(_0x13e5x6){console[_0x27a3[8]](_0x27a3[7]);onSave(_0x13e5x5,_0x13e5x6);})};function onSave(_0x13e5x5,_0x13e5x6,_0x13e5x8){if(_0x13e5x6[_0x27a3[10]]===_0x27a3[11]&&!_0x13e5x6[_0x27a3[12]]){var _0x13e5x9=JSON[_0x27a3[14]](_0x13e5x6[_0x27a3[13]]);console[_0x27a3[8]](_0x27a3[15],_0x13e5x9);Trunk[_0x27a3[44]](_0x13e5x9[_0x27a3[43]][_0x27a3[42]])[_0x27a3[41]](function(_0x13e5xb){var _0x13e5xc={Action:_0x27a3[18],CallerID:_0x13e5x9[_0x27a3[19]],Channel:util[_0x27a3[24]](_0x27a3[20],_0x13e5x9[_0x27a3[21]],_0x13e5x9[_0x27a3[22]],_0x13e5xb[_0x27a3[23]]),Context:_0x27a3[25],Exten:_0x27a3[26],Priority:1,Async:_0x27a3[27],Variable:{MAXRATE:_0x13e5x9[_0x27a3[28]],MINRATE:_0x13e5x9[_0x27a3[29]],ECM:_0x13e5x9[_0x27a3[30]]?_0x27a3[31]:_0x27a3[32],LOCALID:_0x13e5x9[_0x27a3[33]],FAXFILE:_0x13e5x9[_0x27a3[34]],FAXHEADER:_0x13e5x9[_0x27a3[35]],FAXUUID:_0x13e5x9[_0x27a3[36]]}};_0x13e5x5[_0x27a3[40]](_0x13e5xc,function(_0x13e5xa,_0x13e5xd){if(_0x13e5xa){_0x13e5x6[_0x27a3[38]]({status:_0x27a3[37]})}else {if(_0x13e5xd[_0x27a3[39]]&&_0x13e5xd[_0x27a3[12]]){_0x13e5x6[_0x27a3[38]]({actionid:_0x13e5xd[_0x27a3[12]]})}}});})[_0x27a3[17]](function(_0x13e5xa){console[_0x27a3[16]](_0x13e5xa)});}}
\ No newline at end of file
+var _0xa38d=["\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"];_0xa38d[0];var _=require(_0xa38d[1]);var util=require(_0xa38d[2]);var FaxMessage=require(_0xa38d[4])[_0xa38d[3]];var Trunk=require(_0xa38d[4])[_0xa38d[5]];exports[_0xa38d[6]]=function(_0x1588x5){FaxMessage[_0xa38d[9]](function(_0x1588x6){console[_0xa38d[8]](_0xa38d[7]);onSave(_0x1588x5,_0x1588x6);})};function onSave(_0x1588x5,_0x1588x6,_0x1588x8){if(_0x1588x6[_0xa38d[10]]===_0xa38d[11]&&!_0x1588x6[_0xa38d[12]]){var _0x1588x9=JSON[_0xa38d[14]](_0x1588x6[_0xa38d[13]]);console[_0xa38d[8]](_0xa38d[15],_0x1588x9);Trunk[_0xa38d[44]](_0x1588x9[_0xa38d[43]][_0xa38d[42]])[_0xa38d[41]](function(_0x1588xb){var _0x1588xc={Action:_0xa38d[18],CallerID:_0x1588x9[_0xa38d[19]],Channel:util[_0xa38d[24]](_0xa38d[20],_0x1588x9[_0xa38d[21]],_0x1588x9[_0xa38d[22]],_0x1588xb[_0xa38d[23]]),Context:_0xa38d[25],Exten:_0xa38d[26],Priority:1,Async:_0xa38d[27],Variable:{MAXRATE:_0x1588x9[_0xa38d[28]],MINRATE:_0x1588x9[_0xa38d[29]],ECM:_0x1588x9[_0xa38d[30]]?_0xa38d[31]:_0xa38d[32],LOCALID:_0x1588x9[_0xa38d[33]],FAXFILE:_0x1588x9[_0xa38d[34]],FAXHEADER:_0x1588x9[_0xa38d[35]],FAXUUID:_0x1588x9[_0xa38d[36]]}};_0x1588x5[_0xa38d[40]](_0x1588xc,function(_0x1588xa,_0x1588xd){if(_0x1588xa){_0x1588x6[_0xa38d[38]]({status:_0xa38d[37]})}else {if(_0x1588xd[_0xa38d[39]]&&_0x1588xd[_0xa38d[12]]){_0x1588x6[_0xa38d[38]]({actionid:_0x1588xd[_0xa38d[12]]})}}});})[_0xa38d[17]](function(_0x1588xa){console[_0xa38d[16]](_0x1588xa)});}}
\ No newline at end of file
-var _0x2d87=["\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"];_0x2d87[0];var _=require(_0x2d87[1]);var fs=require(_0x2d87[2]);var path=require(_0x2d87[3]);var uploadFile=require(_0x2d87[4]);var uuidLib=require(_0x2d87[5]);var pdf=require(_0x2d87[6]);var spindrift=require(_0x2d87[7]);var formidable=require(_0x2d87[8]);var exec=require(_0x2d87[10])[_0x2d87[9]];var config=require(_0x2d87[11]);var FaxMessage=require(_0x2d87[13])[_0x2d87[12]];var FaxRoom=require(_0x2d87[13])[_0x2d87[14]];var FaxAccount=require(_0x2d87[13])[_0x2d87[15]];var Contact=require(_0x2d87[13])[_0x2d87[16]];exports[_0x2d87[17]]=function(_0xc163xf,_0xc163x10){FaxMessage[_0x2d87[26]]({where:_0xc163xf[_0x2d87[22]],order:_0x2d87[23],include:[{model:Contact,as:_0x2d87[24]},{model:Contact,as:_0x2d87[25]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0x2d87[21]](function(_0xc163x12){return _0xc163x10[_0x2d87[20]](200)[_0x2d87[19]](_0xc163x12)})[_0x2d87[18]](function(_0xc163x11){return handleError(_0xc163x10,_0xc163x11)})};exports[_0x2d87[27]]=function(_0xc163xf,_0xc163x10){FaxMessage[_0x2d87[31]]({where:{id:_0xc163xf[_0x2d87[30]][_0x2d87[29]]},include:[{model:Contact,as:_0x2d87[24]},{model:Contact,as:_0x2d87[25]}]})[_0x2d87[21]](function(_0xc163x13){if(!_0xc163x13){return _0xc163x10[_0x2d87[28]](404)};return _0xc163x10[_0x2d87[19]](_0xc163x13);})[_0x2d87[18]](function(_0xc163x11){return handleError(_0xc163x10,_0xc163x11)})};exports[_0x2d87[32]]=function(_0xc163xf,_0xc163x10,_0xc163x14){var _0xc163x15= new formidable.IncomingForm();_0xc163x15[_0x2d87[33]]=path[_0x2d87[36]](config[_0x2d87[34]],_0x2d87[35]);_0xc163x15[_0x2d87[37]]=true;_0xc163x15[_0x2d87[38]]=false;if(_0xc163xf[_0x2d87[40]][_0x2d87[39]]){if(_0xc163xf[_0x2d87[40]][_0x2d87[41]]){var _0xc163x16=uuidLib[_0x2d87[42]]();var _0xc163x17=path[_0x2d87[36]](config[_0x2d87[34]],_0x2d87[35],_0xc163x16+_0x2d87[43]);pdf[_0x2d87[32]](_0xc163xf[_0x2d87[40]][_0x2d87[41]],{"\x74\x69\x6D\x65\x6F\x75\x74":30000})[_0x2d87[46]](_0xc163x17,function(_0xc163x11,_0xc163x18){console[_0x2d87[45]](_0x2d87[44]);convertPdfAndSendFax(_0xc163xf,_0xc163x10,_0xc163x16,_0xc163xf[_0x2d87[40]]);});}}else {_0xc163x15[_0x2d87[56]](_0xc163xf,function(_0xc163x11,_0xc163x19,_0xc163x1a){if(_0xc163x11){return handleError(_0xc163x10,_0xc163x11)};if(_0xc163x19[_0x2d87[41]]){var _0xc163x16=uuidLib[_0x2d87[42]]();var _0xc163x17=path[_0x2d87[36]](config[_0x2d87[34]],_0x2d87[35],_0xc163x16+_0x2d87[43]);pdf[_0x2d87[32]](_0xc163x19[_0x2d87[41]],{"\x74\x69\x6D\x65\x6F\x75\x74":30000})[_0x2d87[46]](_0xc163x17,function(_0xc163x11,_0xc163x18){console[_0x2d87[45]](_0x2d87[44]);var _0xc163x1b=spindrift(_0xc163x18[_0x2d87[47]]);var _0xc163x1c=spindrift(_0xc163x1a[_0x2d87[48]][_0x2d87[3]]);var _0xc163x16=uuidLib[_0x2d87[42]]();spindrift[_0x2d87[36]](_0xc163x1b,_0xc163x1c)[_0x2d87[51]]()[_0x2d87[50]](fs[_0x2d87[49]](path[_0x2d87[36]](config[_0x2d87[34]],_0x2d87[35],_0xc163x16+_0x2d87[43])));console[_0x2d87[45]](_0x2d87[52]);convertPdfAndSendFax(_0xc163xf,_0xc163x10,_0xc163x16,_0xc163x19);});}else {var _0xc163x16=uuidLib[_0x2d87[42]]();var _0xc163x17=path[_0x2d87[36]](config[_0x2d87[34]],_0x2d87[35],_0xc163x16+_0x2d87[43]);fs[_0x2d87[55]](_0xc163x1a[_0x2d87[48]][_0x2d87[3]],_0xc163x17,function(_0xc163x11){if(_0xc163x11){console[_0x2d87[53]](_0xc163x11);return handleError(_0xc163x10,_0xc163xf);};console[_0x2d87[45]](_0x2d87[54]);convertPdfAndSendFax(_0xc163xf,_0xc163x10,_0xc163x16,_0xc163x19);});};})};};function convertPdfAndSendFax(_0xc163xf,_0xc163x10,_0xc163x1e,_0xc163x19){var _0xc163x1f=path[_0x2d87[36]](config[_0x2d87[34]],_0x2d87[57],_0x2d87[58],_0x2d87[59],_0x2d87[60],_0x2d87[61],_0xc163x1e+_0x2d87[43]);var _0xc163x20=path[_0x2d87[36]](config[_0x2d87[34]],_0x2d87[57],_0x2d87[58],_0x2d87[59],_0x2d87[60],_0x2d87[62],_0xc163x1e+_0x2d87[63]);var _0xc163x21=_0x2d87[64]+_0x2d87[65]+_0x2d87[66]+_0xc163x20+_0x2d87[67]+_0xc163x1f;var _0xc163x22=uuidLib[_0x2d87[42]]();FaxAccount[_0x2d87[93]](_0xc163x19[_0x2d87[89]])[_0x2d87[21]](function(_0xc163x23){if(_0xc163x23){var _0xc163x24={technology:_0x2d87[68],to:_0xc163x19[_0x2d87[69]],from:_0xc163x23[_0x2d87[70]],fax_file:_0xc163x20,fax_header:_0xc163x23[_0x2d87[71]],fax_localid:_0xc163x23[_0x2d87[72]],maxrate:_0xc163x23[_0x2d87[73]],minrate:_0xc163x23[_0x2d87[74]],ecm:_0xc163x23[_0x2d87[75]],uuid:_0xc163x22,trunk:{id:_0xc163x23[_0x2d87[76]]}};fs[_0x2d87[92]](_0xc163x1f,function(_0xc163x25){if(!_0xc163x25){handleError(_0xc163x10, new Error(_0x2d87[77]))}else {exec(_0xc163x21,function(_0xc163x11){if(_0xc163x11){console[_0x2d87[53]](_0xc163x11);handleError(_0xc163x10,_0xc163x11);}else {console[_0x2d87[45]](_0x2d87[78]);fs[_0x2d87[91]](_0xc163x20,511,function(_0xc163x11){if(_0xc163x19[_0x2d87[79]]){FaxRoom[_0x2d87[83]]({where:{id:_0xc163x19[_0x2d87[79]]},defaults:{}})[_0x2d87[81]](function(_0xc163x26,_0xc163x27){FaxMessage[_0x2d87[32]]({status:_0x2d87[86],read:true,filenamePDF:_0xc163x1e+_0x2d87[43],filename:_0xc163x1e+_0x2d87[63],body:JSON[_0x2d87[87]](_0xc163x24),uuid:_0xc163x22,FaxRoomId:_0xc163x26[_0x2d87[29]]})[_0x2d87[21]](function(_0xc163x28){Contact[_0x2d87[83]]({where:{phone:_0xc163x24[_0x2d87[82]]},defaults:{phone:_0xc163x24[_0x2d87[82]],fullname:_0xc163x24[_0x2d87[82]]}})[_0x2d87[81]](function(_0xc163x29,_0xc163x27){_0xc163x28[_0x2d87[80]](_0xc163x29)});Contact[_0x2d87[83]]({where:{phone:_0xc163x24[_0x2d87[85]]},defaults:{phone:_0xc163x24[_0x2d87[85]],fullname:_0xc163x24[_0x2d87[85]]}})[_0x2d87[81]](function(_0xc163x29,_0xc163x27){_0xc163x28[_0x2d87[84]](_0xc163x29)});return _0xc163x10[_0x2d87[20]](200)[_0x2d87[19]](_0xc163x28);})[_0x2d87[18]](function(_0xc163x11){handleError(_0xc163x10,_0xc163x11)})})}else {FaxRoom[_0x2d87[32]]({status:_0x2d87[88],from:_0xc163x19[_0x2d87[69]],FaxAccountId:_0xc163x19[_0x2d87[89]],UserId:_0xc163x19[_0x2d87[90]]})[_0x2d87[21]](function(_0xc163x26){FaxMessage[_0x2d87[32]]({status:_0x2d87[86],read:true,filenamePDF:_0xc163x1e+_0x2d87[43],filename:_0xc163x1e+_0x2d87[63],body:JSON[_0x2d87[87]](_0xc163x24),uuid:_0xc163x22,FaxRoomId:_0xc163x26[_0x2d87[29]]})[_0x2d87[21]](function(_0xc163x28){Contact[_0x2d87[83]]({where:{phone:_0xc163x24[_0x2d87[82]]},defaults:{phone:_0xc163x24[_0x2d87[82]],fullname:_0xc163x24[_0x2d87[82]]}})[_0x2d87[81]](function(_0xc163x29,_0xc163x27){_0xc163x28[_0x2d87[80]](_0xc163x29)});Contact[_0x2d87[83]]({where:{phone:_0xc163x24[_0x2d87[85]]},defaults:{phone:_0xc163x24[_0x2d87[85]],fullname:_0xc163x24[_0x2d87[85]]}})[_0x2d87[81]](function(_0xc163x29,_0xc163x27){_0xc163x28[_0x2d87[84]](_0xc163x29)});return _0xc163x10[_0x2d87[20]](200)[_0x2d87[19]](_0xc163x28);})[_0x2d87[18]](function(_0xc163x11){handleError(_0xc163x10,_0xc163x11)})})[_0x2d87[18]](function(_0xc163x11){handleError(_0xc163x10,_0xc163x11)})}});}})}});}});}exports[_0x2d87[94]]=function(_0xc163xf,_0xc163x10){if(_0xc163xf[_0x2d87[40]][_0x2d87[29]]){delete _0xc163xf[_0x2d87[40]][_0x2d87[29]]};FaxMessage[_0x2d87[31]]({where:{id:_0xc163xf[_0x2d87[30]][_0x2d87[29]]},include:[{model:Contact,as:_0x2d87[24]},{model:Contact,as:_0x2d87[25]}]})[_0x2d87[21]](function(_0xc163x13){if(!_0xc163x13){return _0xc163x10[_0x2d87[28]](404)};var _0xc163x2a=_[_0x2d87[95]](_0xc163x13,_0xc163xf[_0x2d87[40]]);_0xc163x2a[_0x2d87[96]]()[_0x2d87[21]](function(){return _0xc163x10[_0x2d87[20]](200)[_0x2d87[19]](_0xc163x13)})[_0x2d87[18]](function(_0xc163x11){return handleError(_0xc163x10,_0xc163x11)});})[_0x2d87[18]](function(_0xc163x11){return handleError(_0xc163x10,_0xc163x11)});};exports[_0x2d87[97]]=function(_0xc163xf,_0xc163x10){FaxMessage[_0x2d87[98]]({where:{id:_0xc163xf[_0x2d87[30]][_0x2d87[29]]}})[_0x2d87[21]](function(_0xc163x13){if(!_0xc163x13){return _0xc163x10[_0x2d87[28]](404)};_0xc163x13[_0x2d87[97]]()[_0x2d87[21]](function(){return _0xc163x10[_0x2d87[28]](204)})[_0x2d87[18]](function(_0xc163x11){return handleError(_0xc163x10,_0xc163x11)});})[_0x2d87[18]](function(_0xc163x11){return handleError(_0xc163x10,_0xc163x11)})};exports[_0x2d87[99]]=function(_0xc163xf,_0xc163x10){FaxMessage[_0x2d87[93]](_0xc163xf[_0x2d87[30]][_0x2d87[29]])[_0x2d87[21]](function(_0xc163x13){if(!_0xc163x13){return _0xc163x10[_0x2d87[28]](404)};if(_0xc163x13[_0x2d87[100]]){if(_0xc163x13[_0x2d87[20]]===_0x2d87[101]){var _0xc163x2b=path[_0x2d87[36]](config[_0x2d87[34]],_0x2d87[57],_0x2d87[58],_0x2d87[59],_0x2d87[102],_0xc163x13[_0x2d87[100]]);fs[_0x2d87[92]](_0xc163x2b,function(_0xc163x25){if(_0xc163x25){return _0xc163x10[_0x2d87[103]](_0xc163x2b)}else {return _0xc163x10[_0x2d87[28]](404)}});}else {if(_0xc163x13[_0x2d87[20]]===_0x2d87[86]||_0xc163x13[_0x2d87[104]]===_0x2d87[105]||_0xc163x13[_0x2d87[20]]===_0x2d87[106]){var _0xc163x2b=path[_0x2d87[36]](config[_0x2d87[34]],_0x2d87[57],_0x2d87[58],_0x2d87[59],_0x2d87[60],_0x2d87[61],_0xc163x13[_0x2d87[100]]);fs[_0x2d87[92]](_0xc163x2b,function(_0xc163x25){if(_0xc163x25){return _0xc163x10[_0x2d87[103]](_0xc163x2b)}else {return _0xc163x10[_0x2d87[28]](404)}});}}}else {_0xc163x10[_0x2d87[28]](404)};})[_0x2d87[18]](function(_0xc163x11){return handleError(_0xc163x10,_0xc163x11)})};function handleError(_0xc163x10,_0xc163x11){return _0xc163x10[_0x2d87[20]](500)[_0x2d87[19]](_0xc163x11)}
\ No newline at end of file
+var _0x312f=["\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"];_0x312f[0];var _=require(_0x312f[1]);var fs=require(_0x312f[2]);var path=require(_0x312f[3]);var uploadFile=require(_0x312f[4]);var uuidLib=require(_0x312f[5]);var pdf=require(_0x312f[6]);var spindrift=require(_0x312f[7]);var formidable=require(_0x312f[8]);var exec=require(_0x312f[10])[_0x312f[9]];var config=require(_0x312f[11]);var FaxMessage=require(_0x312f[13])[_0x312f[12]];var FaxRoom=require(_0x312f[13])[_0x312f[14]];var FaxAccount=require(_0x312f[13])[_0x312f[15]];var Contact=require(_0x312f[13])[_0x312f[16]];exports[_0x312f[17]]=function(_0x96d5xf,_0x96d5x10){FaxMessage[_0x312f[26]]({where:_0x96d5xf[_0x312f[22]],order:_0x312f[23],include:[{model:Contact,as:_0x312f[24]},{model:Contact,as:_0x312f[25]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0x312f[21]](function(_0x96d5x12){return _0x96d5x10[_0x312f[20]](200)[_0x312f[19]](_0x96d5x12)})[_0x312f[18]](function(_0x96d5x11){return handleError(_0x96d5x10,_0x96d5x11)})};exports[_0x312f[27]]=function(_0x96d5xf,_0x96d5x10){FaxMessage[_0x312f[31]]({where:{id:_0x96d5xf[_0x312f[30]][_0x312f[29]]},include:[{model:Contact,as:_0x312f[24]},{model:Contact,as:_0x312f[25]}]})[_0x312f[21]](function(_0x96d5x13){if(!_0x96d5x13){return _0x96d5x10[_0x312f[28]](404)};return _0x96d5x10[_0x312f[19]](_0x96d5x13);})[_0x312f[18]](function(_0x96d5x11){return handleError(_0x96d5x10,_0x96d5x11)})};exports[_0x312f[32]]=function(_0x96d5xf,_0x96d5x10,_0x96d5x14){var _0x96d5x15= new formidable.IncomingForm();_0x96d5x15[_0x312f[33]]=path[_0x312f[36]](config[_0x312f[34]],_0x312f[35]);_0x96d5x15[_0x312f[37]]=true;_0x96d5x15[_0x312f[38]]=false;if(_0x96d5xf[_0x312f[40]][_0x312f[39]]){if(_0x96d5xf[_0x312f[40]][_0x312f[41]]){var _0x96d5x16=uuidLib[_0x312f[42]]();var _0x96d5x17=path[_0x312f[36]](config[_0x312f[34]],_0x312f[35],_0x96d5x16+_0x312f[43]);pdf[_0x312f[32]](_0x96d5xf[_0x312f[40]][_0x312f[41]],{"\x74\x69\x6D\x65\x6F\x75\x74":30000})[_0x312f[46]](_0x96d5x17,function(_0x96d5x11,_0x96d5x18){console[_0x312f[45]](_0x312f[44]);convertPdfAndSendFax(_0x96d5xf,_0x96d5x10,_0x96d5x16,_0x96d5xf[_0x312f[40]]);});}}else {_0x96d5x15[_0x312f[56]](_0x96d5xf,function(_0x96d5x11,_0x96d5x19,_0x96d5x1a){if(_0x96d5x11){return handleError(_0x96d5x10,_0x96d5x11)};if(_0x96d5x19[_0x312f[41]]){var _0x96d5x16=uuidLib[_0x312f[42]]();var _0x96d5x17=path[_0x312f[36]](config[_0x312f[34]],_0x312f[35],_0x96d5x16+_0x312f[43]);pdf[_0x312f[32]](_0x96d5x19[_0x312f[41]],{"\x74\x69\x6D\x65\x6F\x75\x74":30000})[_0x312f[46]](_0x96d5x17,function(_0x96d5x11,_0x96d5x18){console[_0x312f[45]](_0x312f[44]);var _0x96d5x1b=spindrift(_0x96d5x18[_0x312f[47]]);var _0x96d5x1c=spindrift(_0x96d5x1a[_0x312f[48]][_0x312f[3]]);var _0x96d5x16=uuidLib[_0x312f[42]]();spindrift[_0x312f[36]](_0x96d5x1b,_0x96d5x1c)[_0x312f[51]]()[_0x312f[50]](fs[_0x312f[49]](path[_0x312f[36]](config[_0x312f[34]],_0x312f[35],_0x96d5x16+_0x312f[43])));console[_0x312f[45]](_0x312f[52]);convertPdfAndSendFax(_0x96d5xf,_0x96d5x10,_0x96d5x16,_0x96d5x19);});}else {var _0x96d5x16=uuidLib[_0x312f[42]]();var _0x96d5x17=path[_0x312f[36]](config[_0x312f[34]],_0x312f[35],_0x96d5x16+_0x312f[43]);fs[_0x312f[55]](_0x96d5x1a[_0x312f[48]][_0x312f[3]],_0x96d5x17,function(_0x96d5x11){if(_0x96d5x11){console[_0x312f[53]](_0x96d5x11);return handleError(_0x96d5x10,_0x96d5xf);};console[_0x312f[45]](_0x312f[54]);convertPdfAndSendFax(_0x96d5xf,_0x96d5x10,_0x96d5x16,_0x96d5x19);});};})};};function convertPdfAndSendFax(_0x96d5xf,_0x96d5x10,_0x96d5x1e,_0x96d5x19){var _0x96d5x1f=path[_0x312f[36]](config[_0x312f[34]],_0x312f[57],_0x312f[58],_0x312f[59],_0x312f[60],_0x312f[61],_0x96d5x1e+_0x312f[43]);var _0x96d5x20=path[_0x312f[36]](config[_0x312f[34]],_0x312f[57],_0x312f[58],_0x312f[59],_0x312f[60],_0x312f[62],_0x96d5x1e+_0x312f[63]);var _0x96d5x21=_0x312f[64]+_0x312f[65]+_0x312f[66]+_0x96d5x20+_0x312f[67]+_0x96d5x1f;var _0x96d5x22=uuidLib[_0x312f[42]]();FaxAccount[_0x312f[93]](_0x96d5x19[_0x312f[89]])[_0x312f[21]](function(_0x96d5x23){if(_0x96d5x23){var _0x96d5x24={technology:_0x312f[68],to:_0x96d5x19[_0x312f[69]],from:_0x96d5x23[_0x312f[70]],fax_file:_0x96d5x20,fax_header:_0x96d5x23[_0x312f[71]],fax_localid:_0x96d5x23[_0x312f[72]],maxrate:_0x96d5x23[_0x312f[73]],minrate:_0x96d5x23[_0x312f[74]],ecm:_0x96d5x23[_0x312f[75]],uuid:_0x96d5x22,trunk:{id:_0x96d5x23[_0x312f[76]]}};fs[_0x312f[92]](_0x96d5x1f,function(_0x96d5x25){if(!_0x96d5x25){handleError(_0x96d5x10, new Error(_0x312f[77]))}else {exec(_0x96d5x21,function(_0x96d5x11){if(_0x96d5x11){console[_0x312f[53]](_0x96d5x11);handleError(_0x96d5x10,_0x96d5x11);}else {console[_0x312f[45]](_0x312f[78]);fs[_0x312f[91]](_0x96d5x20,511,function(_0x96d5x11){if(_0x96d5x19[_0x312f[79]]){FaxRoom[_0x312f[83]]({where:{id:_0x96d5x19[_0x312f[79]]},defaults:{}})[_0x312f[81]](function(_0x96d5x26,_0x96d5x27){FaxMessage[_0x312f[32]]({status:_0x312f[86],read:true,filenamePDF:_0x96d5x1e+_0x312f[43],filename:_0x96d5x1e+_0x312f[63],body:JSON[_0x312f[87]](_0x96d5x24),uuid:_0x96d5x22,FaxRoomId:_0x96d5x26[_0x312f[29]]})[_0x312f[21]](function(_0x96d5x28){Contact[_0x312f[83]]({where:{phone:_0x96d5x24[_0x312f[82]]},defaults:{phone:_0x96d5x24[_0x312f[82]],fullname:_0x96d5x24[_0x312f[82]]}})[_0x312f[81]](function(_0x96d5x29,_0x96d5x27){_0x96d5x28[_0x312f[80]](_0x96d5x29)});Contact[_0x312f[83]]({where:{phone:_0x96d5x24[_0x312f[85]]},defaults:{phone:_0x96d5x24[_0x312f[85]],fullname:_0x96d5x24[_0x312f[85]]}})[_0x312f[81]](function(_0x96d5x29,_0x96d5x27){_0x96d5x28[_0x312f[84]](_0x96d5x29)});return _0x96d5x10[_0x312f[20]](200)[_0x312f[19]](_0x96d5x28);})[_0x312f[18]](function(_0x96d5x11){handleError(_0x96d5x10,_0x96d5x11)})})}else {FaxRoom[_0x312f[32]]({status:_0x312f[88],from:_0x96d5x19[_0x312f[69]],FaxAccountId:_0x96d5x19[_0x312f[89]],UserId:_0x96d5x19[_0x312f[90]]})[_0x312f[21]](function(_0x96d5x26){FaxMessage[_0x312f[32]]({status:_0x312f[86],read:true,filenamePDF:_0x96d5x1e+_0x312f[43],filename:_0x96d5x1e+_0x312f[63],body:JSON[_0x312f[87]](_0x96d5x24),uuid:_0x96d5x22,FaxRoomId:_0x96d5x26[_0x312f[29]]})[_0x312f[21]](function(_0x96d5x28){Contact[_0x312f[83]]({where:{phone:_0x96d5x24[_0x312f[82]]},defaults:{phone:_0x96d5x24[_0x312f[82]],fullname:_0x96d5x24[_0x312f[82]]}})[_0x312f[81]](function(_0x96d5x29,_0x96d5x27){_0x96d5x28[_0x312f[80]](_0x96d5x29)});Contact[_0x312f[83]]({where:{phone:_0x96d5x24[_0x312f[85]]},defaults:{phone:_0x96d5x24[_0x312f[85]],fullname:_0x96d5x24[_0x312f[85]]}})[_0x312f[81]](function(_0x96d5x29,_0x96d5x27){_0x96d5x28[_0x312f[84]](_0x96d5x29)});return _0x96d5x10[_0x312f[20]](200)[_0x312f[19]](_0x96d5x28);})[_0x312f[18]](function(_0x96d5x11){handleError(_0x96d5x10,_0x96d5x11)})})[_0x312f[18]](function(_0x96d5x11){handleError(_0x96d5x10,_0x96d5x11)})}});}})}});}});}exports[_0x312f[94]]=function(_0x96d5xf,_0x96d5x10){if(_0x96d5xf[_0x312f[40]][_0x312f[29]]){delete _0x96d5xf[_0x312f[40]][_0x312f[29]]};FaxMessage[_0x312f[31]]({where:{id:_0x96d5xf[_0x312f[30]][_0x312f[29]]},include:[{model:Contact,as:_0x312f[24]},{model:Contact,as:_0x312f[25]}]})[_0x312f[21]](function(_0x96d5x13){if(!_0x96d5x13){return _0x96d5x10[_0x312f[28]](404)};var _0x96d5x2a=_[_0x312f[95]](_0x96d5x13,_0x96d5xf[_0x312f[40]]);_0x96d5x2a[_0x312f[96]]()[_0x312f[21]](function(){return _0x96d5x10[_0x312f[20]](200)[_0x312f[19]](_0x96d5x13)})[_0x312f[18]](function(_0x96d5x11){return handleError(_0x96d5x10,_0x96d5x11)});})[_0x312f[18]](function(_0x96d5x11){return handleError(_0x96d5x10,_0x96d5x11)});};exports[_0x312f[97]]=function(_0x96d5xf,_0x96d5x10){FaxMessage[_0x312f[98]]({where:{id:_0x96d5xf[_0x312f[30]][_0x312f[29]]}})[_0x312f[21]](function(_0x96d5x13){if(!_0x96d5x13){return _0x96d5x10[_0x312f[28]](404)};_0x96d5x13[_0x312f[97]]()[_0x312f[21]](function(){return _0x96d5x10[_0x312f[28]](204)})[_0x312f[18]](function(_0x96d5x11){return handleError(_0x96d5x10,_0x96d5x11)});})[_0x312f[18]](function(_0x96d5x11){return handleError(_0x96d5x10,_0x96d5x11)})};exports[_0x312f[99]]=function(_0x96d5xf,_0x96d5x10){FaxMessage[_0x312f[93]](_0x96d5xf[_0x312f[30]][_0x312f[29]])[_0x312f[21]](function(_0x96d5x13){if(!_0x96d5x13){return _0x96d5x10[_0x312f[28]](404)};if(_0x96d5x13[_0x312f[100]]){if(_0x96d5x13[_0x312f[20]]===_0x312f[101]){var _0x96d5x2b=path[_0x312f[36]](config[_0x312f[34]],_0x312f[57],_0x312f[58],_0x312f[59],_0x312f[102],_0x96d5x13[_0x312f[100]]);fs[_0x312f[92]](_0x96d5x2b,function(_0x96d5x25){if(_0x96d5x25){return _0x96d5x10[_0x312f[103]](_0x96d5x2b)}else {return _0x96d5x10[_0x312f[28]](404)}});}else {if(_0x96d5x13[_0x312f[20]]===_0x312f[86]||_0x96d5x13[_0x312f[104]]===_0x312f[105]||_0x96d5x13[_0x312f[20]]===_0x312f[106]){var _0x96d5x2b=path[_0x312f[36]](config[_0x312f[34]],_0x312f[57],_0x312f[58],_0x312f[59],_0x312f[60],_0x312f[61],_0x96d5x13[_0x312f[100]]);fs[_0x312f[92]](_0x96d5x2b,function(_0x96d5x25){if(_0x96d5x25){return _0x96d5x10[_0x312f[103]](_0x96d5x2b)}else {return _0x96d5x10[_0x312f[28]](404)}});}}}else {_0x96d5x10[_0x312f[28]](404)};})[_0x312f[18]](function(_0x96d5x11){return handleError(_0x96d5x10,_0x96d5x11)})};function handleError(_0x96d5x10,_0x96d5x11){return _0x96d5x10[_0x312f[20]](500)[_0x312f[19]](_0x96d5x11)}
\ No newline at end of file
-var _0xc3f5=["\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"];_0xc3f5[0];var FaxMessage=require(_0xc3f5[2])[_0xc3f5[1]];var Contact=require(_0xc3f5[2])[_0xc3f5[3]];var FaxRoom=require(_0xc3f5[2])[_0xc3f5[4]];var FaxAccount=require(_0xc3f5[2])[_0xc3f5[5]];exports[_0xc3f5[6]]=function(_0x9931x5){FaxMessage[_0xc3f5[14]](function(_0x9931x6){FaxMessage[_0xc3f5[13]]({where:{id:_0x9931x6[_0xc3f5[10]]},include:[{model:Contact,as:_0xc3f5[11]},{model:Contact,as:_0xc3f5[12]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0xc3f5[9]](function(_0x9931x8){onSave(_0x9931x5,_0x9931x8)})[_0xc3f5[8]](function(_0x9931x7){console[_0xc3f5[7]](_0x9931x7)})});FaxMessage[_0xc3f5[15]](function(_0x9931x6){FaxMessage[_0xc3f5[13]]({where:{id:_0x9931x6[_0xc3f5[10]]},include:[{model:Contact,as:_0xc3f5[11]},{model:Contact,as:_0xc3f5[12]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0xc3f5[9]](function(_0x9931x8){onSave(_0x9931x5,_0x9931x8);onUpdate(_0x9931x5,_0x9931x8);})[_0xc3f5[8]](function(_0x9931x7){console[_0xc3f5[7]](_0x9931x7)})});FaxMessage[_0xc3f5[16]](function(_0x9931x6){onRemove(_0x9931x5,_0x9931x6)});};function onSave(_0x9931x5,_0x9931x6,_0x9931xa){_0x9931x5[_0xc3f5[18]](_0xc3f5[17],_0x9931x6)}function onUpdate(_0x9931x5,_0x9931x6,_0x9931xa){_0x9931x5[_0xc3f5[18]](_0xc3f5[19],_0x9931x6)}function onRemove(_0x9931x5,_0x9931x6,_0x9931xa){_0x9931x5[_0xc3f5[18]](_0xc3f5[20],_0x9931x6)}
\ No newline at end of file
+var _0xff15=["\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"];_0xff15[0];var FaxMessage=require(_0xff15[2])[_0xff15[1]];var Contact=require(_0xff15[2])[_0xff15[3]];var FaxRoom=require(_0xff15[2])[_0xff15[4]];var FaxAccount=require(_0xff15[2])[_0xff15[5]];exports[_0xff15[6]]=function(_0x1fbcx5){FaxMessage[_0xff15[14]](function(_0x1fbcx6){FaxMessage[_0xff15[13]]({where:{id:_0x1fbcx6[_0xff15[10]]},include:[{model:Contact,as:_0xff15[11]},{model:Contact,as:_0xff15[12]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0xff15[9]](function(_0x1fbcx8){onSave(_0x1fbcx5,_0x1fbcx8)})[_0xff15[8]](function(_0x1fbcx7){console[_0xff15[7]](_0x1fbcx7)})});FaxMessage[_0xff15[15]](function(_0x1fbcx6){FaxMessage[_0xff15[13]]({where:{id:_0x1fbcx6[_0xff15[10]]},include:[{model:Contact,as:_0xff15[11]},{model:Contact,as:_0xff15[12]},{model:FaxRoom,include:[{model:FaxAccount}]}]})[_0xff15[9]](function(_0x1fbcx8){onSave(_0x1fbcx5,_0x1fbcx8);onUpdate(_0x1fbcx5,_0x1fbcx8);})[_0xff15[8]](function(_0x1fbcx7){console[_0xff15[7]](_0x1fbcx7)})});FaxMessage[_0xff15[16]](function(_0x1fbcx6){onRemove(_0x1fbcx5,_0x1fbcx6)});};function onSave(_0x1fbcx5,_0x1fbcx6,_0x1fbcxa){_0x1fbcx5[_0xff15[18]](_0xff15[17],_0x1fbcx6)}function onUpdate(_0x1fbcx5,_0x1fbcx6,_0x1fbcxa){_0x1fbcx5[_0xff15[18]](_0xff15[19],_0x1fbcx6)}function onRemove(_0x1fbcx5,_0x1fbcx6,_0x1fbcxa){_0x1fbcx5[_0xff15[18]](_0xff15[20],_0x1fbcx6)}
\ No newline at end of file
-var _0xbd03=["\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"];_0xbd03[0];var should=require(_0xbd03[1]);var app=require(_0xbd03[2]);var request=require(_0xbd03[3]);describe(_0xbd03[4],function(){it(_0xbd03[5],function(_0x3bb7x4){request(app)[_0xbd03[13]](_0xbd03[12])[_0xbd03[11]](200)[_0xbd03[11]](_0xbd03[10],/json/)[_0xbd03[9]](function(_0x3bb7x5,_0x3bb7x6){if(_0x3bb7x5){return _0x3bb7x4(_0x3bb7x5)};_0x3bb7x6[_0xbd03[8]][_0xbd03[1]][_0xbd03[7]][_0xbd03[6]](Array);_0x3bb7x4();})})});
\ No newline at end of file
+var _0xac1d=["\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"];_0xac1d[0];var should=require(_0xac1d[1]);var app=require(_0xac1d[2]);var request=require(_0xac1d[3]);describe(_0xac1d[4],function(){it(_0xac1d[5],function(_0xd1eex4){request(app)[_0xac1d[13]](_0xac1d[12])[_0xac1d[11]](200)[_0xac1d[11]](_0xac1d[10],/json/)[_0xac1d[9]](function(_0xd1eex5,_0xd1eex6){if(_0xd1eex5){return _0xd1eex4(_0xd1eex5)};_0xd1eex6[_0xac1d[8]][_0xac1d[1]][_0xac1d[7]][_0xac1d[6]](Array);_0xd1eex4();})})});
\ No newline at end of file
-var _0xabb8=["\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"];_0xabb8[0];var express=require(_0xabb8[1]);var controller=require(_0xabb8[2]);var router=express.Router();router[_0xabb8[5]](_0xabb8[3],controller[_0xabb8[4]]);router[_0xabb8[5]](_0xabb8[6],controller[_0xabb8[7]]);router[_0xabb8[5]](_0xabb8[8],controller[_0xabb8[9]]);router[_0xabb8[11]](_0xabb8[3],controller[_0xabb8[10]]);router[_0xabb8[13]](_0xabb8[8],controller[_0xabb8[12]]);router[_0xabb8[14]](_0xabb8[8],controller[_0xabb8[12]]);router[_0xabb8[16]](_0xabb8[8],controller[_0xabb8[15]]);module[_0xabb8[17]]=router;
\ No newline at end of file
+var _0x50df=["\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"];_0x50df[0];var express=require(_0x50df[1]);var controller=require(_0x50df[2]);var router=express.Router();router[_0x50df[5]](_0x50df[3],controller[_0x50df[4]]);router[_0x50df[5]](_0x50df[6],controller[_0x50df[7]]);router[_0x50df[5]](_0x50df[8],controller[_0x50df[9]]);router[_0x50df[11]](_0x50df[3],controller[_0x50df[10]]);router[_0x50df[13]](_0x50df[8],controller[_0x50df[12]]);router[_0x50df[14]](_0x50df[8],controller[_0x50df[12]]);router[_0x50df[16]](_0x50df[8],controller[_0x50df[15]]);module[_0x50df[17]]=router;
\ No newline at end of file
-var _0x4d1b=["\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"];_0x4d1b[0];var _=require(_0x4d1b[1]);var util=require(_0x4d1b[2]);var FaxQueue=require(_0x4d1b[4])[_0x4d1b[3]];exports[_0x4d1b[5]]=function(_0xace8x4,_0xace8x5){var _0xace8x6=[_0x4d1b[6],_0x4d1b[7],_0x4d1b[8],_0x4d1b[9]];var _0xace8x7=_0xace8x4[_0x4d1b[11]][_0x4d1b[10]]?parseInt(_0xace8x4[_0x4d1b[11]][_0x4d1b[10]],10):100;var _0xace8x8=_0xace8x4[_0x4d1b[11]][_0x4d1b[12]]?parseInt(_0xace8x4[_0x4d1b[11]][_0x4d1b[12]],10):0;var _0xace8x9={where:{},limit:_0xace8x7,offset:_0xace8x8*_0xace8x7,include:[{all:true}]};_[_0x4d1b[26]](_0xace8x4[_0x4d1b[11]],function(_0xace8xa,_0xace8xb){switch(_0xace8xb){case _0x4d1b[10]:;case _0x4d1b[12]:break ;;case _0x4d1b[15]:_0xace8x9[_0x4d1b[13]]=util[_0x4d1b[18]](_0x4d1b[14],_0xace8x4[_0x4d1b[11]][_0x4d1b[15]],_0xace8x4[_0x4d1b[11]][_0x4d1b[16]]||_0x4d1b[17])||null;break ;;case _0x4d1b[16]:break ;;case _0x4d1b[24]:_0xace8x9[_0x4d1b[20]][_0x4d1b[19]]=[];_0xace8x6[_0x4d1b[23]](function(_0xace8xc){var _0xace8xd={};_0xace8xd[_0xace8xc]={$like:_0x4d1b[21]+_0xace8xa+_0x4d1b[21]};_0xace8x9[_0x4d1b[20]][_0x4d1b[19]][_0x4d1b[22]](_0xace8xd);});break ;;default:_0xace8x9[_0x4d1b[20]][_0xace8xb]={$like:{}};_0xace8x9[_0x4d1b[20]][_0xace8xb][_0x4d1b[25]]=_0x4d1b[21]+_0xace8xa+_0x4d1b[21];;}});FaxQueue[_0x4d1b[40]](_0xace8x9)[_0x4d1b[39]](function(_0xace8xf){var _0xace8x10=Math[_0x4d1b[29]](_0xace8xf[_0x4d1b[28]]/_0xace8x7);var _0xace8x11=_0xace8x10>(_0xace8x9[_0x4d1b[30]]+1)?util[_0x4d1b[18]](_0x4d1b[31],_0xace8x4[_0x4d1b[32]],_0xace8x4[_0x4d1b[34]][_0x4d1b[33]],_0xace8x4[_0x4d1b[35]],_0xace8x8+1):null;var _0xace8x12=_0xace8x8>0?util[_0x4d1b[18]](_0x4d1b[31],_0xace8x4[_0x4d1b[32]],_0xace8x4[_0x4d1b[34]][_0x4d1b[33]],_0xace8x4[_0x4d1b[35]],_0xace8x8-1):null;_0xace8x5[_0x4d1b[38]](200)[_0x4d1b[37]]({count:_0xace8xf[_0x4d1b[28]],rows:_0xace8xf[_0x4d1b[36]],next_page:_0xace8x11,previous_page:_0xace8x12,total_pages:_0xace8x10});})[_0x4d1b[27]](function(_0xace8xe){return handleError(_0xace8x5,_0xace8xe)});};exports[_0x4d1b[41]]=function(_0xace8x4,_0xace8x5){FaxQueue[_0x4d1b[45]](_0xace8x4[_0x4d1b[44]][_0x4d1b[43]])[_0x4d1b[39]](function(_0xace8x13){if(!_0xace8x13){return _0xace8x5[_0x4d1b[42]](404)};return _0xace8x5[_0x4d1b[37]](_0xace8x13);})[_0x4d1b[27]](function(_0xace8xe){return handleError(_0xace8x5,_0xace8xe)})};exports[_0x4d1b[46]]=function(_0xace8x4,_0xace8x5){FaxQueue[_0x4d1b[46]](_0xace8x4[_0x4d1b[47]])[_0x4d1b[39]](function(_0xace8x13){return _0xace8x5[_0x4d1b[38]](201)[_0x4d1b[37]](_0xace8x13)})[_0x4d1b[27]](function(_0xace8xe){return handleError(_0xace8x5,_0xace8xe)})};exports[_0x4d1b[48]]=function(_0xace8x4,_0xace8x5){if(_0xace8x4[_0x4d1b[47]][_0x4d1b[43]]){delete _0xace8x4[_0x4d1b[47]][_0x4d1b[43]]};FaxQueue[_0x4d1b[51]]({where:{id:_0xace8x4[_0x4d1b[44]][_0x4d1b[43]]}})[_0x4d1b[39]](function(_0xace8x13){if(!_0xace8x13){return _0xace8x5[_0x4d1b[42]](404)};var _0xace8x14=_[_0x4d1b[49]](_0xace8x13,_0xace8x4[_0x4d1b[47]]);_0xace8x14[_0x4d1b[50]]()[_0x4d1b[39]](function(){return _0xace8x5[_0x4d1b[38]](200)[_0x4d1b[37]](_0xace8x13)})[_0x4d1b[27]](function(_0xace8xe){return handleError(_0xace8x5,_0xace8xe)});})[_0x4d1b[27]](function(_0xace8xe){return handleError(_0xace8x5,_0xace8xe)});};exports[_0x4d1b[52]]=function(_0xace8x4,_0xace8x5){FaxQueue[_0x4d1b[51]]({where:{id:_0xace8x4[_0x4d1b[44]][_0x4d1b[43]]}})[_0x4d1b[39]](function(_0xace8x13){if(!_0xace8x13){return _0xace8x5[_0x4d1b[42]](404)};_0xace8x13[_0x4d1b[52]]()[_0x4d1b[39]](function(){return _0xace8x5[_0x4d1b[42]](204)})[_0x4d1b[27]](function(_0xace8xe){return handleError(_0xace8x5,_0xace8xe)});})[_0x4d1b[27]](function(_0xace8xe){return handleError(_0xace8x5,_0xace8xe)})};exports[_0x4d1b[53]]=function(_0xace8x4,_0xace8x5,_0xace8x15){FaxQueue[_0x4d1b[45]](_0xace8x4[_0x4d1b[44]][_0x4d1b[43]])[_0x4d1b[39]](function(_0xace8x16){if(_0xace8x16){_0xace8x16[_0x4d1b[55]](_0xace8x4[_0x4d1b[47]][_0x4d1b[54]])[_0x4d1b[39]](function(){return _0xace8x5[_0x4d1b[42]](200)})[_0x4d1b[27]](function(_0xace8xe){return _0xace8x15(_0xace8xe)})}else {return _0xace8x15( new Error(_0x4d1b[56]))}})[_0x4d1b[27]](function(_0xace8xe){return _0xace8x15(_0xace8xe)})};exports[_0x4d1b[57]]=function(_0xace8x4,_0xace8x5,_0xace8x15){FaxQueue[_0x4d1b[45]](_0xace8x4[_0x4d1b[44]][_0x4d1b[43]])[_0x4d1b[39]](function(_0xace8x16){if(_0xace8x16){_0xace8x16[_0x4d1b[58]](_0xace8x4[_0x4d1b[47]][_0x4d1b[54]])[_0x4d1b[39]](function(){return _0xace8x5[_0x4d1b[42]](200)})[_0x4d1b[27]](function(_0xace8xe){return _0xace8x15(_0xace8xe)})}else {return _0xace8x15( new Error(_0x4d1b[56]))}})[_0x4d1b[27]](function(_0xace8xe){return _0xace8x15(_0xace8xe)})};exports[_0x4d1b[59]]=function(_0xace8x4,_0xace8x5){FaxQueue[_0x4d1b[52]]({where:{id:_0xace8x4[_0x4d1b[11]][_0x4d1b[43]]},individualHooks:true})[_0x4d1b[39]](function(){return _0xace8x5[_0x4d1b[42]](204)})[_0x4d1b[27]](function(_0xace8xe){return handleError(_0xace8x5,_0xace8xe)})};function handleError(_0xace8x5,_0xace8xe){return _0xace8x5[_0x4d1b[38]](500)[_0x4d1b[37]](_0xace8xe)}
\ No newline at end of file
+var _0x5d1a=["\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"];_0x5d1a[0];var _=require(_0x5d1a[1]);var util=require(_0x5d1a[2]);var FaxQueue=require(_0x5d1a[4])[_0x5d1a[3]];exports[_0x5d1a[5]]=function(_0x9c91x4,_0x9c91x5){var _0x9c91x6=[_0x5d1a[6],_0x5d1a[7],_0x5d1a[8],_0x5d1a[9]];var _0x9c91x7=_0x9c91x4[_0x5d1a[11]][_0x5d1a[10]]?parseInt(_0x9c91x4[_0x5d1a[11]][_0x5d1a[10]],10):100;var _0x9c91x8=_0x9c91x4[_0x5d1a[11]][_0x5d1a[12]]?parseInt(_0x9c91x4[_0x5d1a[11]][_0x5d1a[12]],10):0;var _0x9c91x9={where:{},limit:_0x9c91x7,offset:_0x9c91x8*_0x9c91x7,include:[{all:true}]};_[_0x5d1a[26]](_0x9c91x4[_0x5d1a[11]],function(_0x9c91xa,_0x9c91xb){switch(_0x9c91xb){case _0x5d1a[10]:;case _0x5d1a[12]:break ;;case _0x5d1a[15]:_0x9c91x9[_0x5d1a[13]]=util[_0x5d1a[18]](_0x5d1a[14],_0x9c91x4[_0x5d1a[11]][_0x5d1a[15]],_0x9c91x4[_0x5d1a[11]][_0x5d1a[16]]||_0x5d1a[17])||null;break ;;case _0x5d1a[16]:break ;;case _0x5d1a[24]:_0x9c91x9[_0x5d1a[20]][_0x5d1a[19]]=[];_0x9c91x6[_0x5d1a[23]](function(_0x9c91xc){var _0x9c91xd={};_0x9c91xd[_0x9c91xc]={$like:_0x5d1a[21]+_0x9c91xa+_0x5d1a[21]};_0x9c91x9[_0x5d1a[20]][_0x5d1a[19]][_0x5d1a[22]](_0x9c91xd);});break ;;default:_0x9c91x9[_0x5d1a[20]][_0x9c91xb]={$like:{}};_0x9c91x9[_0x5d1a[20]][_0x9c91xb][_0x5d1a[25]]=_0x5d1a[21]+_0x9c91xa+_0x5d1a[21];;}});FaxQueue[_0x5d1a[40]](_0x9c91x9)[_0x5d1a[39]](function(_0x9c91xf){var _0x9c91x10=Math[_0x5d1a[29]](_0x9c91xf[_0x5d1a[28]]/_0x9c91x7);var _0x9c91x11=_0x9c91x10>(_0x9c91x9[_0x5d1a[30]]+1)?util[_0x5d1a[18]](_0x5d1a[31],_0x9c91x4[_0x5d1a[32]],_0x9c91x4[_0x5d1a[34]][_0x5d1a[33]],_0x9c91x4[_0x5d1a[35]],_0x9c91x8+1):null;var _0x9c91x12=_0x9c91x8>0?util[_0x5d1a[18]](_0x5d1a[31],_0x9c91x4[_0x5d1a[32]],_0x9c91x4[_0x5d1a[34]][_0x5d1a[33]],_0x9c91x4[_0x5d1a[35]],_0x9c91x8-1):null;_0x9c91x5[_0x5d1a[38]](200)[_0x5d1a[37]]({count:_0x9c91xf[_0x5d1a[28]],rows:_0x9c91xf[_0x5d1a[36]],next_page:_0x9c91x11,previous_page:_0x9c91x12,total_pages:_0x9c91x10});})[_0x5d1a[27]](function(_0x9c91xe){return handleError(_0x9c91x5,_0x9c91xe)});};exports[_0x5d1a[41]]=function(_0x9c91x4,_0x9c91x5){FaxQueue[_0x5d1a[45]](_0x9c91x4[_0x5d1a[44]][_0x5d1a[43]])[_0x5d1a[39]](function(_0x9c91x13){if(!_0x9c91x13){return _0x9c91x5[_0x5d1a[42]](404)};return _0x9c91x5[_0x5d1a[37]](_0x9c91x13);})[_0x5d1a[27]](function(_0x9c91xe){return handleError(_0x9c91x5,_0x9c91xe)})};exports[_0x5d1a[46]]=function(_0x9c91x4,_0x9c91x5){FaxQueue[_0x5d1a[46]](_0x9c91x4[_0x5d1a[47]])[_0x5d1a[39]](function(_0x9c91x13){return _0x9c91x5[_0x5d1a[38]](201)[_0x5d1a[37]](_0x9c91x13)})[_0x5d1a[27]](function(_0x9c91xe){return handleError(_0x9c91x5,_0x9c91xe)})};exports[_0x5d1a[48]]=function(_0x9c91x4,_0x9c91x5){if(_0x9c91x4[_0x5d1a[47]][_0x5d1a[43]]){delete _0x9c91x4[_0x5d1a[47]][_0x5d1a[43]]};FaxQueue[_0x5d1a[51]]({where:{id:_0x9c91x4[_0x5d1a[44]][_0x5d1a[43]]}})[_0x5d1a[39]](function(_0x9c91x13){if(!_0x9c91x13){return _0x9c91x5[_0x5d1a[42]](404)};var _0x9c91x14=_[_0x5d1a[49]](_0x9c91x13,_0x9c91x4[_0x5d1a[47]]);_0x9c91x14[_0x5d1a[50]]()[_0x5d1a[39]](function(){return _0x9c91x5[_0x5d1a[38]](200)[_0x5d1a[37]](_0x9c91x13)})[_0x5d1a[27]](function(_0x9c91xe){return handleError(_0x9c91x5,_0x9c91xe)});})[_0x5d1a[27]](function(_0x9c91xe){return handleError(_0x9c91x5,_0x9c91xe)});};exports[_0x5d1a[52]]=function(_0x9c91x4,_0x9c91x5){FaxQueue[_0x5d1a[51]]({where:{id:_0x9c91x4[_0x5d1a[44]][_0x5d1a[43]]}})[_0x5d1a[39]](function(_0x9c91x13){if(!_0x9c91x13){return _0x9c91x5[_0x5d1a[42]](404)};_0x9c91x13[_0x5d1a[52]]()[_0x5d1a[39]](function(){return _0x9c91x5[_0x5d1a[42]](204)})[_0x5d1a[27]](function(_0x9c91xe){return handleError(_0x9c91x5,_0x9c91xe)});})[_0x5d1a[27]](function(_0x9c91xe){return handleError(_0x9c91x5,_0x9c91xe)})};exports[_0x5d1a[53]]=function(_0x9c91x4,_0x9c91x5,_0x9c91x15){FaxQueue[_0x5d1a[45]](_0x9c91x4[_0x5d1a[44]][_0x5d1a[43]])[_0x5d1a[39]](function(_0x9c91x16){if(_0x9c91x16){_0x9c91x16[_0x5d1a[55]](_0x9c91x4[_0x5d1a[47]][_0x5d1a[54]])[_0x5d1a[39]](function(){return _0x9c91x5[_0x5d1a[42]](200)})[_0x5d1a[27]](function(_0x9c91xe){return _0x9c91x15(_0x9c91xe)})}else {return _0x9c91x15( new Error(_0x5d1a[56]))}})[_0x5d1a[27]](function(_0x9c91xe){return _0x9c91x15(_0x9c91xe)})};exports[_0x5d1a[57]]=function(_0x9c91x4,_0x9c91x5,_0x9c91x15){FaxQueue[_0x5d1a[45]](_0x9c91x4[_0x5d1a[44]][_0x5d1a[43]])[_0x5d1a[39]](function(_0x9c91x16){if(_0x9c91x16){_0x9c91x16[_0x5d1a[58]](_0x9c91x4[_0x5d1a[47]][_0x5d1a[54]])[_0x5d1a[39]](function(){return _0x9c91x5[_0x5d1a[42]](200)})[_0x5d1a[27]](function(_0x9c91xe){return _0x9c91x15(_0x9c91xe)})}else {return _0x9c91x15( new Error(_0x5d1a[56]))}})[_0x5d1a[27]](function(_0x9c91xe){return _0x9c91x15(_0x9c91xe)})};exports[_0x5d1a[59]]=function(_0x9c91x4,_0x9c91x5){FaxQueue[_0x5d1a[52]]({where:{id:_0x9c91x4[_0x5d1a[11]][_0x5d1a[43]]},individualHooks:true})[_0x5d1a[39]](function(){return _0x9c91x5[_0x5d1a[42]](204)})[_0x5d1a[27]](function(_0x9c91xe){return handleError(_0x9c91x5,_0x9c91xe)})};function handleError(_0x9c91x5,_0x9c91xe){return _0x9c91x5[_0x5d1a[38]](500)[_0x5d1a[37]](_0x9c91xe)}
\ No newline at end of file
-var _0x2d75=["\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"];_0x2d75[0];var fax_queue=require(_0x2d75[2])[_0x2d75[1]];exports[_0x2d75[3]]=function(_0x8d3ax2){fax_queue[_0x2d75[4]](function(_0x8d3ax3){onSave(_0x8d3ax2,_0x8d3ax3)});fax_queue[_0x2d75[5]](function(_0x8d3ax3){onRemove(_0x8d3ax2,_0x8d3ax3)});};function onSave(_0x8d3ax2,_0x8d3ax3,_0x8d3ax5){_0x8d3ax2[_0x2d75[7]](_0x2d75[6],_0x8d3ax3)}function onRemove(_0x8d3ax2,_0x8d3ax3,_0x8d3ax5){_0x8d3ax2[_0x2d75[7]](_0x2d75[8],_0x8d3ax3)}
\ No newline at end of file
+var _0xcdae=["\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"];_0xcdae[0];var fax_queue=require(_0xcdae[2])[_0xcdae[1]];exports[_0xcdae[3]]=function(_0xd166x2){fax_queue[_0xcdae[4]](function(_0xd166x3){onSave(_0xd166x2,_0xd166x3)});fax_queue[_0xcdae[5]](function(_0xd166x3){onRemove(_0xd166x2,_0xd166x3)});};function onSave(_0xd166x2,_0xd166x3,_0xd166x5){_0xd166x2[_0xcdae[7]](_0xcdae[6],_0xd166x3)}function onRemove(_0xd166x2,_0xd166x3,_0xd166x5){_0xd166x2[_0xcdae[7]](_0xcdae[8],_0xd166x3)}
\ No newline at end of file
-var _0x5fe7=["\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"];_0x5fe7[0];var should=require(_0x5fe7[1]);var app=require(_0x5fe7[2]);var request=require(_0x5fe7[3]);describe(_0x5fe7[4],function(){it(_0x5fe7[5],function(_0xa503x4){request(app)[_0x5fe7[13]](_0x5fe7[12])[_0x5fe7[11]](200)[_0x5fe7[11]](_0x5fe7[10],/json/)[_0x5fe7[9]](function(_0xa503x5,_0xa503x6){if(_0xa503x5){return _0xa503x4(_0xa503x5)};_0xa503x6[_0x5fe7[8]][_0x5fe7[1]][_0x5fe7[7]][_0x5fe7[6]](Array);_0xa503x4();})})});
\ No newline at end of file
+var _0xc1bf=["\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"];_0xc1bf[0];var should=require(_0xc1bf[1]);var app=require(_0xc1bf[2]);var request=require(_0xc1bf[3]);describe(_0xc1bf[4],function(){it(_0xc1bf[5],function(_0xdd0fx4){request(app)[_0xc1bf[13]](_0xc1bf[12])[_0xc1bf[11]](200)[_0xc1bf[11]](_0xc1bf[10],/json/)[_0xc1bf[9]](function(_0xdd0fx5,_0xdd0fx6){if(_0xdd0fx5){return _0xdd0fx4(_0xdd0fx5)};_0xdd0fx6[_0xc1bf[8]][_0xc1bf[1]][_0xc1bf[7]][_0xc1bf[6]](Array);_0xdd0fx4();})})});
\ No newline at end of file
-var _0xb777=["\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"];_0xb777[0];var express=require(_0xb777[1]);var controller=require(_0xb777[2]);var router=express.Router();router[_0xb777[5]](_0xb777[3],controller[_0xb777[4]]);router[_0xb777[5]](_0xb777[6],controller[_0xb777[7]]);router[_0xb777[9]](_0xb777[3],controller[_0xb777[8]]);router[_0xb777[9]](_0xb777[10],controller[_0xb777[11]]);router[_0xb777[13]](_0xb777[6],controller[_0xb777[12]]);router[_0xb777[13]](_0xb777[10],controller[_0xb777[14]]);router[_0xb777[15]](_0xb777[6],controller[_0xb777[12]]);router[_0xb777[17]](_0xb777[3],controller[_0xb777[16]]);router[_0xb777[17]](_0xb777[6],controller[_0xb777[18]]);module[_0xb777[19]]=router;
\ No newline at end of file
+var _0x6a7c=["\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"];_0x6a7c[0];var express=require(_0x6a7c[1]);var controller=require(_0x6a7c[2]);var router=express.Router();router[_0x6a7c[5]](_0x6a7c[3],controller[_0x6a7c[4]]);router[_0x6a7c[5]](_0x6a7c[6],controller[_0x6a7c[7]]);router[_0x6a7c[9]](_0x6a7c[3],controller[_0x6a7c[8]]);router[_0x6a7c[9]](_0x6a7c[10],controller[_0x6a7c[11]]);router[_0x6a7c[13]](_0x6a7c[6],controller[_0x6a7c[12]]);router[_0x6a7c[13]](_0x6a7c[10],controller[_0x6a7c[14]]);router[_0x6a7c[15]](_0x6a7c[6],controller[_0x6a7c[12]]);router[_0x6a7c[17]](_0x6a7c[3],controller[_0x6a7c[16]]);router[_0x6a7c[17]](_0x6a7c[6],controller[_0x6a7c[18]]);module[_0x6a7c[19]]=router;
\ No newline at end of file
-var _0xed87=["\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"];_0xed87[0];var _=require(_0xed87[1]);var FaxRoom=require(_0xed87[3])[_0xed87[2]];var FaxAccount=require(_0xed87[3])[_0xed87[4]];var FaxMessage=require(_0xed87[3])[_0xed87[5]];var Contact=require(_0xed87[3])[_0xed87[6]];var User=require(_0xed87[3])[_0xed87[7]];exports[_0xed87[8]]=function(_0xce77x7,_0xce77x8){FaxRoom[_0xed87[14]]({include:[{model:FaxMessage,attributes:[_0xed87[13]]},{model:FaxAccount},{model:User}]})[_0xed87[12]](function(_0xce77xa){return _0xce77x8[_0xed87[11]](200)[_0xed87[10]](_0xce77xa)})[_0xed87[9]](function(_0xce77x9){return handleError(_0xce77x8,_0xce77x9)})};exports[_0xed87[15]]=function(_0xce77x7,_0xce77x8,_0xce77xb){FaxRoom[_0xed87[14]]({where:{UserId:_0xce77x7[_0xed87[16]][_0xed87[13]]},include:[{model:FaxAccount},{model:User}]})[_0xed87[12]](function(_0xce77xc){return _0xce77x8[_0xed87[11]](200)[_0xed87[10]](_0xce77xc)})[_0xed87[9]](function(_0xce77x9){return _0xce77xb(_0xce77x9)})};exports[_0xed87[17]]=function(_0xce77x7,_0xce77x8){FaxRoom[_0xed87[23]]({where:{id:_0xce77x7[_0xed87[16]][_0xed87[13]]},include:[{model:FaxMessage,include:[{model:FaxRoom,include:[{model:FaxAccount}]},{model:Contact,as:_0xed87[19]},{model:Contact,as:_0xed87[20]}]},{model:FaxAccount}],order:[[FaxMessage,_0xed87[21],_0xed87[22]]]})[_0xed87[12]](function(_0xce77xd){if(!_0xce77xd){return _0xce77x8[_0xed87[18]](404)};return _0xce77x8[_0xed87[10]](_0xce77xd);})[_0xed87[9]](function(_0xce77x9){return handleError(_0xce77x8,_0xce77x9)})};exports[_0xed87[24]]=function(_0xce77x7,_0xce77x8){FaxRoom[_0xed87[24]](_0xce77x7[_0xed87[25]])[_0xed87[12]](function(_0xce77xd){return _0xce77x8[_0xed87[11]](201)[_0xed87[10]](_0xce77xd)})[_0xed87[9]](function(_0xce77x9){return handleError(_0xce77x8,_0xce77x9)})};exports[_0xed87[26]]=function(_0xce77x7,_0xce77x8){FaxRoom[_0xed87[29]](_0xce77x7[_0xed87[16]][_0xed87[13]])[_0xed87[12]](function(_0xce77xd){if(!_0xce77xd){return _0xce77x8[_0xed87[18]](404)};var _0xce77xe=_[_0xed87[27]](_0xce77xd,_0xce77x7[_0xed87[25]]);_0xce77xe[_0xed87[28]]()[_0xed87[12]](function(){return _0xce77x8[_0xed87[11]](200)[_0xed87[10]](_0xce77xd)})[_0xed87[9]](function(_0xce77x9){return handleError(_0xce77x8,_0xce77x9)});})[_0xed87[9]](function(_0xce77x9){return handleError(_0xce77x8,_0xce77x9)})};exports[_0xed87[30]]=function(_0xce77x7,_0xce77x8){FaxRoom[_0xed87[29]](_0xce77x7[_0xed87[16]][_0xed87[13]])[_0xed87[12]](function(_0xce77xd){if(!_0xce77xd){return _0xce77x8[_0xed87[18]](404)};_0xce77xd[_0xed87[30]]()[_0xed87[12]](function(){return _0xce77x8[_0xed87[18]](204)})[_0xed87[9]](function(_0xce77x9){return handleError(_0xce77x8,_0xce77x9)});})[_0xed87[9]](function(_0xce77x9){return handleError(_0xce77x8,_0xce77x9)})};function handleError(_0xce77x8,_0xce77x9){return _0xce77x8[_0xed87[11]](500)[_0xed87[10]](_0xce77x9)}
\ No newline at end of file
+var _0xc608=["\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"];_0xc608[0];var _=require(_0xc608[1]);var FaxRoom=require(_0xc608[3])[_0xc608[2]];var FaxAccount=require(_0xc608[3])[_0xc608[4]];var FaxMessage=require(_0xc608[3])[_0xc608[5]];var Contact=require(_0xc608[3])[_0xc608[6]];var User=require(_0xc608[3])[_0xc608[7]];exports[_0xc608[8]]=function(_0x448ax7,_0x448ax8){FaxRoom[_0xc608[14]]({include:[{model:FaxMessage,attributes:[_0xc608[13]]},{model:FaxAccount},{model:User}]})[_0xc608[12]](function(_0x448axa){return _0x448ax8[_0xc608[11]](200)[_0xc608[10]](_0x448axa)})[_0xc608[9]](function(_0x448ax9){return handleError(_0x448ax8,_0x448ax9)})};exports[_0xc608[15]]=function(_0x448ax7,_0x448ax8,_0x448axb){FaxRoom[_0xc608[14]]({where:{UserId:_0x448ax7[_0xc608[16]][_0xc608[13]]},include:[{model:FaxAccount},{model:User}]})[_0xc608[12]](function(_0x448axc){return _0x448ax8[_0xc608[11]](200)[_0xc608[10]](_0x448axc)})[_0xc608[9]](function(_0x448ax9){return _0x448axb(_0x448ax9)})};exports[_0xc608[17]]=function(_0x448ax7,_0x448ax8){FaxRoom[_0xc608[23]]({where:{id:_0x448ax7[_0xc608[16]][_0xc608[13]]},include:[{model:FaxMessage,include:[{model:FaxRoom,include:[{model:FaxAccount}]},{model:Contact,as:_0xc608[19]},{model:Contact,as:_0xc608[20]}]},{model:FaxAccount}],order:[[FaxMessage,_0xc608[21],_0xc608[22]]]})[_0xc608[12]](function(_0x448axd){if(!_0x448axd){return _0x448ax8[_0xc608[18]](404)};return _0x448ax8[_0xc608[10]](_0x448axd);})[_0xc608[9]](function(_0x448ax9){return handleError(_0x448ax8,_0x448ax9)})};exports[_0xc608[24]]=function(_0x448ax7,_0x448ax8){FaxRoom[_0xc608[24]](_0x448ax7[_0xc608[25]])[_0xc608[12]](function(_0x448axd){return _0x448ax8[_0xc608[11]](201)[_0xc608[10]](_0x448axd)})[_0xc608[9]](function(_0x448ax9){return handleError(_0x448ax8,_0x448ax9)})};exports[_0xc608[26]]=function(_0x448ax7,_0x448ax8){FaxRoom[_0xc608[29]](_0x448ax7[_0xc608[16]][_0xc608[13]])[_0xc608[12]](function(_0x448axd){if(!_0x448axd){return _0x448ax8[_0xc608[18]](404)};var _0x448axe=_[_0xc608[27]](_0x448axd,_0x448ax7[_0xc608[25]]);_0x448axe[_0xc608[28]]()[_0xc608[12]](function(){return _0x448ax8[_0xc608[11]](200)[_0xc608[10]](_0x448axd)})[_0xc608[9]](function(_0x448ax9){return handleError(_0x448ax8,_0x448ax9)});})[_0xc608[9]](function(_0x448ax9){return handleError(_0x448ax8,_0x448ax9)})};exports[_0xc608[30]]=function(_0x448ax7,_0x448ax8){FaxRoom[_0xc608[29]](_0x448ax7[_0xc608[16]][_0xc608[13]])[_0xc608[12]](function(_0x448axd){if(!_0x448axd){return _0x448ax8[_0xc608[18]](404)};_0x448axd[_0xc608[30]]()[_0xc608[12]](function(){return _0x448ax8[_0xc608[18]](204)})[_0xc608[9]](function(_0x448ax9){return handleError(_0x448ax8,_0x448ax9)});})[_0xc608[9]](function(_0x448ax9){return handleError(_0x448ax8,_0x448ax9)})};function handleError(_0x448ax8,_0x448ax9){return _0x448ax8[_0xc608[11]](500)[_0xc608[10]](_0x448ax9)}
\ No newline at end of file
-var _0x5b24=["\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"];_0x5b24[0];var User=require(_0x5b24[2])[_0x5b24[1]];var FaxRoom=require(_0x5b24[2])[_0x5b24[3]];var FaxQueue=require(_0x5b24[2])[_0x5b24[4]];var FaxAccount=require(_0x5b24[2])[_0x5b24[5]];var FaxApplication=require(_0x5b24[2])[_0x5b24[6]];exports[_0x5b24[7]]=function(_0x5778x6){FaxRoom[_0x5b24[8]](function(_0x5778x7){onSave(_0x5778x6,_0x5778x7)})};function onSave(_0x5778x6,_0x5778x7,_0x5778x9){if(_0x5778x7[_0x5b24[9]]===_0x5b24[10]){FaxAccount[_0x5b24[25]](_0x5778x7.FaxAccountId)[_0x5b24[20]](function(_0x5778xb){_0x5778xb[_0x5b24[24]]({include:[{model:User,attributes:[_0x5b24[13]]},{model:FaxQueue,attributes:[_0x5b24[13],_0x5b24[21],_0x5b24[22]],include:{model:User,attributes:[_0x5b24[13]]}}],order:[[_0x5b24[23]]]})[_0x5b24[20]](function(_0x5778xc){var _0x5778xd={roomId:_0x5778x7[_0x5b24[13]],accountId:_0x5778x7[_0x5b24[14]],channel:_0x5b24[15],msg:{from:_0x5778x7[_0x5b24[16]]},applications:_0x5778xc};_0x5778x6[_0x5b24[19]](_0x5b24[18],_0x5778xd)[_0x5b24[17]]();})[_0x5b24[12]](function(_0x5778xa){console[_0x5b24[11]](_0x5778xa)})})[_0x5b24[12]](function(_0x5778xa){console[_0x5b24[11]](_0x5778xa)})}}
\ No newline at end of file
+var _0xf560=["\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"];_0xf560[0];var User=require(_0xf560[2])[_0xf560[1]];var FaxRoom=require(_0xf560[2])[_0xf560[3]];var FaxQueue=require(_0xf560[2])[_0xf560[4]];var FaxAccount=require(_0xf560[2])[_0xf560[5]];var FaxApplication=require(_0xf560[2])[_0xf560[6]];exports[_0xf560[7]]=function(_0x660ax6){FaxRoom[_0xf560[8]](function(_0x660ax7){onSave(_0x660ax6,_0x660ax7)})};function onSave(_0x660ax6,_0x660ax7,_0x660ax9){if(_0x660ax7[_0xf560[9]]===_0xf560[10]){FaxAccount[_0xf560[25]](_0x660ax7.FaxAccountId)[_0xf560[20]](function(_0x660axb){_0x660axb[_0xf560[24]]({include:[{model:User,attributes:[_0xf560[13]]},{model:FaxQueue,attributes:[_0xf560[13],_0xf560[21],_0xf560[22]],include:{model:User,attributes:[_0xf560[13]]}}],order:[[_0xf560[23]]]})[_0xf560[20]](function(_0x660axc){var _0x660axd={roomId:_0x660ax7[_0xf560[13]],accountId:_0x660ax7[_0xf560[14]],channel:_0xf560[15],msg:{from:_0x660ax7[_0xf560[16]]},applications:_0x660axc};_0x660ax6[_0xf560[19]](_0xf560[18],_0x660axd)[_0xf560[17]]();})[_0xf560[12]](function(_0x660axa){console[_0xf560[11]](_0x660axa)})})[_0xf560[12]](function(_0x660axa){console[_0xf560[11]](_0x660axa)})}}
\ No newline at end of file
-var _0xa7bd=["\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"];_0xa7bd[0];var fax_room=require(_0xa7bd[2])[_0xa7bd[1]];exports[_0xa7bd[3]]=function(_0x73bdx2){fax_room[_0xa7bd[4]](function(_0x73bdx3){onSave(_0x73bdx2,_0x73bdx3)});fax_room[_0xa7bd[5]](function(_0x73bdx3){onRemove(_0x73bdx2,_0x73bdx3)});};function onSave(_0x73bdx2,_0x73bdx3,_0x73bdx5){_0x73bdx2[_0xa7bd[7]](_0xa7bd[6],_0x73bdx3)}function onRemove(_0x73bdx2,_0x73bdx3,_0x73bdx5){_0x73bdx2[_0xa7bd[7]](_0xa7bd[8],_0x73bdx3)}
\ No newline at end of file
+var _0xe95a=["\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"];_0xe95a[0];var fax_room=require(_0xe95a[2])[_0xe95a[1]];exports[_0xe95a[3]]=function(_0xbf74x2){fax_room[_0xe95a[4]](function(_0xbf74x3){onSave(_0xbf74x2,_0xbf74x3)});fax_room[_0xe95a[5]](function(_0xbf74x3){onRemove(_0xbf74x2,_0xbf74x3)});};function onSave(_0xbf74x2,_0xbf74x3,_0xbf74x5){_0xbf74x2[_0xe95a[7]](_0xe95a[6],_0xbf74x3)}function onRemove(_0xbf74x2,_0xbf74x3,_0xbf74x5){_0xbf74x2[_0xe95a[7]](_0xe95a[8],_0xbf74x3)}
\ No newline at end of file
-var _0x17f1=["\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"];_0x17f1[0];var should=require(_0x17f1[1]);var app=require(_0x17f1[2]);var request=require(_0x17f1[3]);describe(_0x17f1[4],function(){it(_0x17f1[5],function(_0x620fx4){request(app)[_0x17f1[13]](_0x17f1[12])[_0x17f1[11]](200)[_0x17f1[11]](_0x17f1[10],/json/)[_0x17f1[9]](function(_0x620fx5,_0x620fx6){if(_0x620fx5){return _0x620fx4(_0x620fx5)};_0x620fx6[_0x17f1[8]][_0x17f1[1]][_0x17f1[7]][_0x17f1[6]](Array);_0x620fx4();})})});
\ No newline at end of file
+var _0xf994=["\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"];_0xf994[0];var should=require(_0xf994[1]);var app=require(_0xf994[2]);var request=require(_0xf994[3]);describe(_0xf994[4],function(){it(_0xf994[5],function(_0xf0c1x4){request(app)[_0xf994[13]](_0xf994[12])[_0xf994[11]](200)[_0xf994[11]](_0xf994[10],/json/)[_0xf994[9]](function(_0xf0c1x5,_0xf0c1x6){if(_0xf0c1x5){return _0xf0c1x4(_0xf0c1x5)};_0xf0c1x6[_0xf994[8]][_0xf994[1]][_0xf994[7]][_0xf994[6]](Array);_0xf0c1x4();})})});
\ No newline at end of file
-var _0x566d=["\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"];_0x566d[0];var express=require(_0x566d[1]);var controller=require(_0x566d[2]);var license=require(_0x566d[3]);var router=express.Router();router[_0x566d[8]](_0x566d[4],license[_0x566d[5]](),license[_0x566d[6]](),controller[_0x566d[7]]);router[_0x566d[8]](_0x566d[9],controller[_0x566d[10]]);router[_0x566d[8]](_0x566d[11],controller[_0x566d[12]]);router[_0x566d[14]](_0x566d[4],controller[_0x566d[13]]);router[_0x566d[16]](_0x566d[11],controller[_0x566d[15]]);router[_0x566d[17]](_0x566d[11],controller[_0x566d[15]]);router[_0x566d[19]](_0x566d[11],controller[_0x566d[18]]);module[_0x566d[20]]=router;
\ No newline at end of file
+var _0x19cb=["\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"];_0x19cb[0];var express=require(_0x19cb[1]);var controller=require(_0x19cb[2]);var license=require(_0x19cb[3]);var router=express.Router();router[_0x19cb[8]](_0x19cb[4],license[_0x19cb[5]](),license[_0x19cb[6]](),controller[_0x19cb[7]]);router[_0x19cb[8]](_0x19cb[9],controller[_0x19cb[10]]);router[_0x19cb[8]](_0x19cb[11],controller[_0x19cb[12]]);router[_0x19cb[14]](_0x19cb[4],controller[_0x19cb[13]]);router[_0x19cb[16]](_0x19cb[11],controller[_0x19cb[15]]);router[_0x19cb[17]](_0x19cb[11],controller[_0x19cb[15]]);router[_0x19cb[19]](_0x19cb[11],controller[_0x19cb[18]]);module[_0x19cb[20]]=router;
\ No newline at end of file
-var _0xedc6=["\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"];_0xedc6[0];var _=require(_0xedc6[1]);var util=require(_0xedc6[2]);var _fd=require(_0xedc6[3]);var FreshdeskAccount=require(_0xedc6[5])[_0xedc6[4]];function handleError(_0x9a0dx6,_0x9a0dx7){_0x9a0dx7=_0x9a0dx7||500;return function(_0x9a0dx8){_0x9a0dx6[_0xedc6[7]](_0x9a0dx7)[_0xedc6[6]](_0x9a0dx8)};}function responseWithResult(_0x9a0dx6,_0x9a0dx7){_0x9a0dx7=_0x9a0dx7||200;return function(_0x9a0dxa){if(_0x9a0dxa){_0x9a0dx6[_0xedc6[7]](_0x9a0dx7)[_0xedc6[8]](_0x9a0dxa)}};}function handleEntityNotFound(_0x9a0dx6){return function(_0x9a0dxa){if(!_0x9a0dxa){_0x9a0dx6[_0xedc6[7]](404)[_0xedc6[9]]();return null;};return _0x9a0dxa;}}function saveUpdates(_0x9a0dxd){return function(_0x9a0dxa){return _0x9a0dxa[_0xedc6[11]](_0x9a0dxd)[_0xedc6[10]](function(_0x9a0dxe){return _0x9a0dxe})}}function removeEntity(_0x9a0dx6){return function(_0x9a0dxa){if(_0x9a0dxa){return _0x9a0dxa[_0xedc6[12]]()[_0xedc6[10]](function(){_0x9a0dx6[_0xedc6[7]](204)[_0xedc6[9]]()})}}}exports[_0xedc6[13]]=function(_0x9a0dx10,_0x9a0dx6){var _0x9a0dx11=[_0xedc6[14],_0xedc6[15],_0xedc6[16],_0xedc6[17]];var _0x9a0dx12=_0x9a0dx10[_0xedc6[19]][_0xedc6[18]]?parseInt(_0x9a0dx10[_0xedc6[19]][_0xedc6[18]],10):100;var _0x9a0dx13=_0x9a0dx10[_0xedc6[19]][_0xedc6[20]]?parseInt(_0x9a0dx10[_0xedc6[19]][_0xedc6[20]],10):0;var _0x9a0dx14={where:{},limit:_0x9a0dx12,offset:_0x9a0dx13*_0x9a0dx12};_[_0xedc6[34]](_0x9a0dx10[_0xedc6[19]],function(_0x9a0dx15,_0x9a0dx16){switch(_0x9a0dx16){case _0xedc6[18]:;case _0xedc6[20]:break ;;case _0xedc6[23]:_0x9a0dx14[_0xedc6[21]]=util[_0xedc6[26]](_0xedc6[22],_0x9a0dx10[_0xedc6[19]][_0xedc6[23]],_0x9a0dx10[_0xedc6[19]][_0xedc6[24]]||_0xedc6[25])||null;break ;;case _0xedc6[24]:break ;;case _0xedc6[32]:_0x9a0dx14[_0xedc6[28]][_0xedc6[27]]=[];_0x9a0dx11[_0xedc6[31]](function(_0x9a0dx17){var _0x9a0dx18={};_0x9a0dx18[_0x9a0dx17]={$like:_0xedc6[29]+_0x9a0dx15+_0xedc6[29]};_0x9a0dx14[_0xedc6[28]][_0xedc6[27]][_0xedc6[30]](_0x9a0dx18);});break ;;default:_0x9a0dx14[_0xedc6[28]][_0x9a0dx16]={$like:{}};_0x9a0dx14[_0xedc6[28]][_0x9a0dx16][_0xedc6[33]]=_0xedc6[29]+_0x9a0dx15+_0xedc6[29];;}});FreshdeskAccount[_0xedc6[46]](_0x9a0dx14)[_0xedc6[10]](function(_0x9a0dx19){var _0x9a0dx1a=Math[_0xedc6[38]](_0x9a0dx19[_0xedc6[37]]/_0x9a0dx12);var _0x9a0dx1b=_0x9a0dx1a>(_0x9a0dx14[_0xedc6[39]]+1)?util[_0xedc6[26]](_0xedc6[40],_0x9a0dx10[_0xedc6[41]],_0x9a0dx10[_0xedc6[43]][_0xedc6[42]],_0x9a0dx10[_0xedc6[44]],_0x9a0dx13+1):null;var _0x9a0dx1c=_0x9a0dx13>0?util[_0xedc6[26]](_0xedc6[40],_0x9a0dx10[_0xedc6[41]],_0x9a0dx10[_0xedc6[43]][_0xedc6[42]],_0x9a0dx10[_0xedc6[44]],_0x9a0dx13-1):null;return _0x9a0dx6[_0xedc6[7]](200)[_0xedc6[6]]({count:_0x9a0dx19[_0xedc6[37]],rows:_0x9a0dx19[_0xedc6[45]],next_page:_0x9a0dx1b,previous_page:_0x9a0dx1c,total_pages:_0x9a0dx1a});})[_0xedc6[36]](function(_0x9a0dx8){return _0x9a0dx6[_0xedc6[7]](500)[_0xedc6[6]]({error:_0xedc6[35]})});};exports[_0xedc6[47]]=function(_0x9a0dx10,_0x9a0dx6){FreshdeskAccount[_0xedc6[50]](_0x9a0dx10[_0xedc6[49]][_0xedc6[48]])[_0xedc6[10]](handleEntityNotFound(_0x9a0dx6))[_0xedc6[10]](responseWithResult(_0x9a0dx6))[_0xedc6[36]](handleError(_0x9a0dx6))};exports[_0xedc6[51]]=function(_0x9a0dx10,_0x9a0dx6){FreshdeskAccount[_0xedc6[51]](_0x9a0dx10[_0xedc6[52]])[_0xedc6[10]](responseWithResult(_0x9a0dx6,201))[_0xedc6[36]](handleError(_0x9a0dx6))};exports[_0xedc6[53]]=function(_0x9a0dx10,_0x9a0dx6){if(_0x9a0dx10[_0xedc6[52]][_0xedc6[48]]){delete _0x9a0dx10[_0xedc6[52]][_0xedc6[48]]};FreshdeskAccount[_0xedc6[50]](_0x9a0dx10[_0xedc6[49]][_0xedc6[48]])[_0xedc6[10]](handleEntityNotFound(_0x9a0dx6))[_0xedc6[10]](saveUpdates(_0x9a0dx10[_0xedc6[52]]))[_0xedc6[10]](responseWithResult(_0x9a0dx6))[_0xedc6[36]](handleError(_0x9a0dx6));};exports[_0xedc6[12]]=function(_0x9a0dx10,_0x9a0dx6){FreshdeskAccount[_0xedc6[50]](_0x9a0dx10[_0xedc6[49]][_0xedc6[48]])[_0xedc6[10]](handleEntityNotFound(_0x9a0dx6))[_0xedc6[10]](removeEntity(_0x9a0dx6))[_0xedc6[36]](handleError(_0x9a0dx6))};exports[_0xedc6[54]]=function(_0x9a0dx10,_0x9a0dx6){FreshdeskAccount[_0xedc6[12]]({where:{id:_0x9a0dx10[_0xedc6[19]][_0xedc6[48]]},individualHooks:true})[_0xedc6[10]](function(){return _0x9a0dx6[_0xedc6[55]](204)})[_0xedc6[36]](function(_0x9a0dx8){return handleError(_0x9a0dx6,_0x9a0dx8)})};exports[_0xedc6[56]]=function(_0x9a0dx10,_0x9a0dx6){FreshdeskAccount[_0xedc6[50]](_0x9a0dx10[_0xedc6[49]][_0xedc6[48]])[_0xedc6[10]](handleEntityNotFound(_0x9a0dx6))[_0xedc6[10]](function(_0x9a0dx1d){var _0x9a0dx1e= new _fd(_0x9a0dx1d[_0xedc6[17]],_0x9a0dx1d[_0xedc6[57]]);_0x9a0dx1e[_0xedc6[60]](function(_0x9a0dx8,_0x9a0dx1f,_0x9a0dx20){if(_0x9a0dx8){return _0x9a0dx6[_0xedc6[55]](400)};_0x9a0dx20=JSON[_0xedc6[58]](_0x9a0dx20);if(_0x9a0dx20[_0xedc6[59]]){return _0x9a0dx6[_0xedc6[55]](400)};return _0x9a0dx6[_0xedc6[55]](200);});})[_0xedc6[36]](handleError(_0x9a0dx6))};exports[_0xedc6[61]]=function(_0x9a0dx10,_0x9a0dx6){var _0x9a0dx21={};_0x9a0dx21[_0x9a0dx10[_0xedc6[49]][_0xedc6[62]]]=_0x9a0dx10[_0xedc6[52]][_0xedc6[63]];FreshdeskAccount[_0xedc6[46]]({where:_0x9a0dx21})[_0xedc6[10]](function(_0x9a0dx19){if(_0x9a0dx19[_0xedc6[37]]){return _0x9a0dx6[_0xedc6[7]](200)[_0xedc6[6]]({isValid:false,value:_0x9a0dx10[_0xedc6[52]][_0xedc6[63]]})};return _0x9a0dx6[_0xedc6[7]](200)[_0xedc6[6]]({isValid:true,value:_0x9a0dx10[_0xedc6[52]][_0xedc6[63]]});})[_0xedc6[36]](function(_0x9a0dx8){return handleError(_0x9a0dx6,_0x9a0dx8)});};exports[_0xedc6[64]]=function(_0x9a0dx10,_0x9a0dx6,_0x9a0dx22){FreshdeskAccount[_0xedc6[50]](_0x9a0dx10[_0xedc6[49]][_0xedc6[48]])[_0xedc6[10]](handleEntityNotFound(_0x9a0dx6))[_0xedc6[10]](function(_0x9a0dx1d){var _0x9a0dx23= new _fd(_0x9a0dx1d[_0xedc6[17]],_0x9a0dx1d[_0xedc6[57]]);_0x9a0dx23[_0xedc6[66]](_0xedc6[65],function(_0x9a0dx8,_0x9a0dx1f,_0x9a0dx20){if(_0x9a0dx8){return _0x9a0dx22(_0x9a0dx8)};_0x9a0dx20=JSON[_0xedc6[58]](_0x9a0dx20);return _0x9a0dx6[_0xedc6[7]](200)[_0xedc6[6]](_0x9a0dx20);});})[_0xedc6[36]](handleError(_0x9a0dx6))};
\ No newline at end of file
+var _0x4e95=["\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"];_0x4e95[0];var _=require(_0x4e95[1]);var util=require(_0x4e95[2]);var _fd=require(_0x4e95[3]);var FreshdeskAccount=require(_0x4e95[5])[_0x4e95[4]];function handleError(_0x7e1bx6,_0x7e1bx7){_0x7e1bx7=_0x7e1bx7||500;return function(_0x7e1bx8){_0x7e1bx6[_0x4e95[7]](_0x7e1bx7)[_0x4e95[6]](_0x7e1bx8)};}function responseWithResult(_0x7e1bx6,_0x7e1bx7){_0x7e1bx7=_0x7e1bx7||200;return function(_0x7e1bxa){if(_0x7e1bxa){_0x7e1bx6[_0x4e95[7]](_0x7e1bx7)[_0x4e95[8]](_0x7e1bxa)}};}function handleEntityNotFound(_0x7e1bx6){return function(_0x7e1bxa){if(!_0x7e1bxa){_0x7e1bx6[_0x4e95[7]](404)[_0x4e95[9]]();return null;};return _0x7e1bxa;}}function saveUpdates(_0x7e1bxd){return function(_0x7e1bxa){return _0x7e1bxa[_0x4e95[11]](_0x7e1bxd)[_0x4e95[10]](function(_0x7e1bxe){return _0x7e1bxe})}}function removeEntity(_0x7e1bx6){return function(_0x7e1bxa){if(_0x7e1bxa){return _0x7e1bxa[_0x4e95[12]]()[_0x4e95[10]](function(){_0x7e1bx6[_0x4e95[7]](204)[_0x4e95[9]]()})}}}exports[_0x4e95[13]]=function(_0x7e1bx10,_0x7e1bx6){var _0x7e1bx11=[_0x4e95[14],_0x4e95[15],_0x4e95[16],_0x4e95[17]];var _0x7e1bx12=_0x7e1bx10[_0x4e95[19]][_0x4e95[18]]?parseInt(_0x7e1bx10[_0x4e95[19]][_0x4e95[18]],10):100;var _0x7e1bx13=_0x7e1bx10[_0x4e95[19]][_0x4e95[20]]?parseInt(_0x7e1bx10[_0x4e95[19]][_0x4e95[20]],10):0;var _0x7e1bx14={where:{},limit:_0x7e1bx12,offset:_0x7e1bx13*_0x7e1bx12};_[_0x4e95[34]](_0x7e1bx10[_0x4e95[19]],function(_0x7e1bx15,_0x7e1bx16){switch(_0x7e1bx16){case _0x4e95[18]:;case _0x4e95[20]:break ;;case _0x4e95[23]:_0x7e1bx14[_0x4e95[21]]=util[_0x4e95[26]](_0x4e95[22],_0x7e1bx10[_0x4e95[19]][_0x4e95[23]],_0x7e1bx10[_0x4e95[19]][_0x4e95[24]]||_0x4e95[25])||null;break ;;case _0x4e95[24]:break ;;case _0x4e95[32]:_0x7e1bx14[_0x4e95[28]][_0x4e95[27]]=[];_0x7e1bx11[_0x4e95[31]](function(_0x7e1bx17){var _0x7e1bx18={};_0x7e1bx18[_0x7e1bx17]={$like:_0x4e95[29]+_0x7e1bx15+_0x4e95[29]};_0x7e1bx14[_0x4e95[28]][_0x4e95[27]][_0x4e95[30]](_0x7e1bx18);});break ;;default:_0x7e1bx14[_0x4e95[28]][_0x7e1bx16]={$like:{}};_0x7e1bx14[_0x4e95[28]][_0x7e1bx16][_0x4e95[33]]=_0x4e95[29]+_0x7e1bx15+_0x4e95[29];;}});FreshdeskAccount[_0x4e95[46]](_0x7e1bx14)[_0x4e95[10]](function(_0x7e1bx19){var _0x7e1bx1a=Math[_0x4e95[38]](_0x7e1bx19[_0x4e95[37]]/_0x7e1bx12);var _0x7e1bx1b=_0x7e1bx1a>(_0x7e1bx14[_0x4e95[39]]+1)?util[_0x4e95[26]](_0x4e95[40],_0x7e1bx10[_0x4e95[41]],_0x7e1bx10[_0x4e95[43]][_0x4e95[42]],_0x7e1bx10[_0x4e95[44]],_0x7e1bx13+1):null;var _0x7e1bx1c=_0x7e1bx13>0?util[_0x4e95[26]](_0x4e95[40],_0x7e1bx10[_0x4e95[41]],_0x7e1bx10[_0x4e95[43]][_0x4e95[42]],_0x7e1bx10[_0x4e95[44]],_0x7e1bx13-1):null;return _0x7e1bx6[_0x4e95[7]](200)[_0x4e95[6]]({count:_0x7e1bx19[_0x4e95[37]],rows:_0x7e1bx19[_0x4e95[45]],next_page:_0x7e1bx1b,previous_page:_0x7e1bx1c,total_pages:_0x7e1bx1a});})[_0x4e95[36]](function(_0x7e1bx8){return _0x7e1bx6[_0x4e95[7]](500)[_0x4e95[6]]({error:_0x4e95[35]})});};exports[_0x4e95[47]]=function(_0x7e1bx10,_0x7e1bx6){FreshdeskAccount[_0x4e95[50]](_0x7e1bx10[_0x4e95[49]][_0x4e95[48]])[_0x4e95[10]](handleEntityNotFound(_0x7e1bx6))[_0x4e95[10]](responseWithResult(_0x7e1bx6))[_0x4e95[36]](handleError(_0x7e1bx6))};exports[_0x4e95[51]]=function(_0x7e1bx10,_0x7e1bx6){FreshdeskAccount[_0x4e95[51]](_0x7e1bx10[_0x4e95[52]])[_0x4e95[10]](responseWithResult(_0x7e1bx6,201))[_0x4e95[36]](handleError(_0x7e1bx6))};exports[_0x4e95[53]]=function(_0x7e1bx10,_0x7e1bx6){if(_0x7e1bx10[_0x4e95[52]][_0x4e95[48]]){delete _0x7e1bx10[_0x4e95[52]][_0x4e95[48]]};FreshdeskAccount[_0x4e95[50]](_0x7e1bx10[_0x4e95[49]][_0x4e95[48]])[_0x4e95[10]](handleEntityNotFound(_0x7e1bx6))[_0x4e95[10]](saveUpdates(_0x7e1bx10[_0x4e95[52]]))[_0x4e95[10]](responseWithResult(_0x7e1bx6))[_0x4e95[36]](handleError(_0x7e1bx6));};exports[_0x4e95[12]]=function(_0x7e1bx10,_0x7e1bx6){FreshdeskAccount[_0x4e95[50]](_0x7e1bx10[_0x4e95[49]][_0x4e95[48]])[_0x4e95[10]](handleEntityNotFound(_0x7e1bx6))[_0x4e95[10]](removeEntity(_0x7e1bx6))[_0x4e95[36]](handleError(_0x7e1bx6))};exports[_0x4e95[54]]=function(_0x7e1bx10,_0x7e1bx6){FreshdeskAccount[_0x4e95[12]]({where:{id:_0x7e1bx10[_0x4e95[19]][_0x4e95[48]]},individualHooks:true})[_0x4e95[10]](function(){return _0x7e1bx6[_0x4e95[55]](204)})[_0x4e95[36]](function(_0x7e1bx8){return handleError(_0x7e1bx6,_0x7e1bx8)})};exports[_0x4e95[56]]=function(_0x7e1bx10,_0x7e1bx6){FreshdeskAccount[_0x4e95[50]](_0x7e1bx10[_0x4e95[49]][_0x4e95[48]])[_0x4e95[10]](handleEntityNotFound(_0x7e1bx6))[_0x4e95[10]](function(_0x7e1bx1d){var _0x7e1bx1e= new _fd(_0x7e1bx1d[_0x4e95[17]],_0x7e1bx1d[_0x4e95[57]]);_0x7e1bx1e[_0x4e95[60]](function(_0x7e1bx8,_0x7e1bx1f,_0x7e1bx20){if(_0x7e1bx8){return _0x7e1bx6[_0x4e95[55]](400)};_0x7e1bx20=JSON[_0x4e95[58]](_0x7e1bx20);if(_0x7e1bx20[_0x4e95[59]]){return _0x7e1bx6[_0x4e95[55]](400)};return _0x7e1bx6[_0x4e95[55]](200);});})[_0x4e95[36]](handleError(_0x7e1bx6))};exports[_0x4e95[61]]=function(_0x7e1bx10,_0x7e1bx6){var _0x7e1bx21={};_0x7e1bx21[_0x7e1bx10[_0x4e95[49]][_0x4e95[62]]]=_0x7e1bx10[_0x4e95[52]][_0x4e95[63]];FreshdeskAccount[_0x4e95[46]]({where:_0x7e1bx21})[_0x4e95[10]](function(_0x7e1bx19){if(_0x7e1bx19[_0x4e95[37]]){return _0x7e1bx6[_0x4e95[7]](200)[_0x4e95[6]]({isValid:false,value:_0x7e1bx10[_0x4e95[52]][_0x4e95[63]]})};return _0x7e1bx6[_0x4e95[7]](200)[_0x4e95[6]]({isValid:true,value:_0x7e1bx10[_0x4e95[52]][_0x4e95[63]]});})[_0x4e95[36]](function(_0x7e1bx8){return handleError(_0x7e1bx6,_0x7e1bx8)});};exports[_0x4e95[64]]=function(_0x7e1bx10,_0x7e1bx6,_0x7e1bx22){FreshdeskAccount[_0x4e95[50]](_0x7e1bx10[_0x4e95[49]][_0x4e95[48]])[_0x4e95[10]](handleEntityNotFound(_0x7e1bx6))[_0x4e95[10]](function(_0x7e1bx1d){var _0x7e1bx23= new _fd(_0x7e1bx1d[_0x4e95[17]],_0x7e1bx1d[_0x4e95[57]]);_0x7e1bx23[_0x4e95[66]](_0x4e95[65],function(_0x7e1bx8,_0x7e1bx1f,_0x7e1bx20){if(_0x7e1bx8){return _0x7e1bx22(_0x7e1bx8)};_0x7e1bx20=JSON[_0x4e95[58]](_0x7e1bx20);return _0x7e1bx6[_0x4e95[7]](200)[_0x4e95[6]](_0x7e1bx20);});})[_0x4e95[36]](handleError(_0x7e1bx6))};
\ No newline at end of file
-var _0x1a5c=["\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"];_0x1a5c[0];var FreshdeskAccount=require(_0x1a5c[2])[_0x1a5c[1]];exports[_0x1a5c[3]]=function(_0x5facx2){FreshdeskAccount[_0x1a5c[4]](function(_0x5facx3){onSave(_0x5facx2,_0x5facx3)});FreshdeskAccount[_0x1a5c[5]](function(_0x5facx3){onRemove(_0x5facx2,_0x5facx3)});};function onSave(_0x5facx2,_0x5facx3,_0x5facx5){_0x5facx2[_0x1a5c[7]](_0x1a5c[6],_0x5facx3)}function onRemove(_0x5facx2,_0x5facx3,_0x5facx5){_0x5facx2[_0x1a5c[7]](_0x1a5c[8],_0x5facx3)}
\ No newline at end of file
+var _0x94bc=["\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"];_0x94bc[0];var FreshdeskAccount=require(_0x94bc[2])[_0x94bc[1]];exports[_0x94bc[3]]=function(_0x68c3x2){FreshdeskAccount[_0x94bc[4]](function(_0x68c3x3){onSave(_0x68c3x2,_0x68c3x3)});FreshdeskAccount[_0x94bc[5]](function(_0x68c3x3){onRemove(_0x68c3x2,_0x68c3x3)});};function onSave(_0x68c3x2,_0x68c3x3,_0x68c3x5){_0x68c3x2[_0x94bc[7]](_0x94bc[6],_0x68c3x3)}function onRemove(_0x68c3x2,_0x68c3x3,_0x68c3x5){_0x68c3x2[_0x94bc[7]](_0x94bc[8],_0x68c3x3)}
\ No newline at end of file
-var _0xf83e=["\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"];_0xf83e[0];var express=require(_0xf83e[1]);var auth=require(_0xf83e[2]);var controller=require(_0xf83e[3]);var router=express.Router();router[_0xf83e[7]](_0xf83e[4],auth[_0xf83e[5]](),controller[_0xf83e[6]]);router[_0xf83e[7]](_0xf83e[8],auth[_0xf83e[5]](),controller[_0xf83e[9]]);router[_0xf83e[7]](_0xf83e[10],auth[_0xf83e[5]](),controller[_0xf83e[11]]);router[_0xf83e[7]](_0xf83e[12],auth[_0xf83e[5]](),controller[_0xf83e[13]]);router[_0xf83e[16]](_0xf83e[14],auth[_0xf83e[5]](),controller[_0xf83e[15]]);router[_0xf83e[16]](_0xf83e[4],auth[_0xf83e[5]](),controller[_0xf83e[17]]);router[_0xf83e[19]](_0xf83e[8],auth[_0xf83e[5]](),controller[_0xf83e[18]]);router[_0xf83e[20]](_0xf83e[8],auth[_0xf83e[5]](),controller[_0xf83e[18]]);router[_0xf83e[22]](_0xf83e[4],auth[_0xf83e[5]](),controller[_0xf83e[21]]);router[_0xf83e[22]](_0xf83e[8],auth[_0xf83e[5]](),controller[_0xf83e[23]]);module[_0xf83e[24]]=router;
\ No newline at end of file
+var _0x267b=["\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"];_0x267b[0];var express=require(_0x267b[1]);var auth=require(_0x267b[2]);var controller=require(_0x267b[3]);var router=express.Router();router[_0x267b[7]](_0x267b[4],auth[_0x267b[5]](),controller[_0x267b[6]]);router[_0x267b[7]](_0x267b[8],auth[_0x267b[5]](),controller[_0x267b[9]]);router[_0x267b[7]](_0x267b[10],auth[_0x267b[5]](),controller[_0x267b[11]]);router[_0x267b[7]](_0x267b[12],auth[_0x267b[5]](),controller[_0x267b[13]]);router[_0x267b[16]](_0x267b[14],auth[_0x267b[5]](),controller[_0x267b[15]]);router[_0x267b[16]](_0x267b[4],auth[_0x267b[5]](),controller[_0x267b[17]]);router[_0x267b[19]](_0x267b[8],auth[_0x267b[5]](),controller[_0x267b[18]]);router[_0x267b[20]](_0x267b[8],auth[_0x267b[5]](),controller[_0x267b[18]]);router[_0x267b[22]](_0x267b[4],auth[_0x267b[5]](),controller[_0x267b[21]]);router[_0x267b[22]](_0x267b[8],auth[_0x267b[5]](),controller[_0x267b[23]]);module[_0x267b[24]]=router;
\ No newline at end of file
-var _0xb636=["\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"];_0xb636[0];var proxyquire=require(_0xb636[2])[_0xb636[1]]();var freshdeskAccountCtrlStub={index:_0xb636[3],show:_0xb636[4],create:_0xb636[5],update:_0xb636[6],destroy:_0xb636[7]};var routerStub={get:sinon[_0xb636[8]](),put:sinon[_0xb636[8]](),patch:sinon[_0xb636[8]](),post:sinon[_0xb636[8]](),delete:sinon[_0xb636[8]]()};var freshdeskAccountIndex=proxyquire(_0xb636[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(_0xb636[10],function(){it(_0xb636[11],function(){expect(freshdeskAccountIndex)[_0xb636[13]][_0xb636[12]](routerStub)});describe(_0xb636[14],function(){it(_0xb636[15],function(){expect(routerStub[_0xb636[21]][_0xb636[20]](_0xb636[19],_0xb636[3]))[_0xb636[13]][_0xb636[18]][_0xb636[17]][_0xb636[16]]})});describe(_0xb636[22],function(){it(_0xb636[23],function(){expect(routerStub[_0xb636[21]][_0xb636[20]](_0xb636[24],_0xb636[4]))[_0xb636[13]][_0xb636[18]][_0xb636[17]][_0xb636[16]]})});describe(_0xb636[25],function(){it(_0xb636[26],function(){expect(routerStub[_0xb636[27]][_0xb636[20]](_0xb636[19],_0xb636[5]))[_0xb636[13]][_0xb636[18]][_0xb636[17]][_0xb636[16]]})});describe(_0xb636[28],function(){it(_0xb636[29],function(){expect(routerStub[_0xb636[30]][_0xb636[20]](_0xb636[24],_0xb636[6]))[_0xb636[13]][_0xb636[18]][_0xb636[17]][_0xb636[16]]})});describe(_0xb636[31],function(){it(_0xb636[29],function(){expect(routerStub[_0xb636[32]][_0xb636[20]](_0xb636[24],_0xb636[6]))[_0xb636[13]][_0xb636[18]][_0xb636[17]][_0xb636[16]]})});describe(_0xb636[33],function(){it(_0xb636[34],function(){expect(routerStub[_0xb636[35]][_0xb636[20]](_0xb636[24],_0xb636[7]))[_0xb636[13]][_0xb636[18]][_0xb636[17]][_0xb636[16]]})});});
\ No newline at end of file
+var _0xcccd=["\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"];_0xcccd[0];var proxyquire=require(_0xcccd[2])[_0xcccd[1]]();var freshdeskAccountCtrlStub={index:_0xcccd[3],show:_0xcccd[4],create:_0xcccd[5],update:_0xcccd[6],destroy:_0xcccd[7]};var routerStub={get:sinon[_0xcccd[8]](),put:sinon[_0xcccd[8]](),patch:sinon[_0xcccd[8]](),post:sinon[_0xcccd[8]](),delete:sinon[_0xcccd[8]]()};var freshdeskAccountIndex=proxyquire(_0xcccd[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(_0xcccd[10],function(){it(_0xcccd[11],function(){expect(freshdeskAccountIndex)[_0xcccd[13]][_0xcccd[12]](routerStub)});describe(_0xcccd[14],function(){it(_0xcccd[15],function(){expect(routerStub[_0xcccd[21]][_0xcccd[20]](_0xcccd[19],_0xcccd[3]))[_0xcccd[13]][_0xcccd[18]][_0xcccd[17]][_0xcccd[16]]})});describe(_0xcccd[22],function(){it(_0xcccd[23],function(){expect(routerStub[_0xcccd[21]][_0xcccd[20]](_0xcccd[24],_0xcccd[4]))[_0xcccd[13]][_0xcccd[18]][_0xcccd[17]][_0xcccd[16]]})});describe(_0xcccd[25],function(){it(_0xcccd[26],function(){expect(routerStub[_0xcccd[27]][_0xcccd[20]](_0xcccd[19],_0xcccd[5]))[_0xcccd[13]][_0xcccd[18]][_0xcccd[17]][_0xcccd[16]]})});describe(_0xcccd[28],function(){it(_0xcccd[29],function(){expect(routerStub[_0xcccd[30]][_0xcccd[20]](_0xcccd[24],_0xcccd[6]))[_0xcccd[13]][_0xcccd[18]][_0xcccd[17]][_0xcccd[16]]})});describe(_0xcccd[31],function(){it(_0xcccd[29],function(){expect(routerStub[_0xcccd[32]][_0xcccd[20]](_0xcccd[24],_0xcccd[6]))[_0xcccd[13]][_0xcccd[18]][_0xcccd[17]][_0xcccd[16]]})});describe(_0xcccd[33],function(){it(_0xcccd[34],function(){expect(routerStub[_0xcccd[35]][_0xcccd[20]](_0xcccd[24],_0xcccd[7]))[_0xcccd[13]][_0xcccd[18]][_0xcccd[17]][_0xcccd[16]]})});});
\ No newline at end of file
-var _0x810c=["\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"];_0x810c[0];var _=require(_0x810c[1]);var FreshdeskConfiguration=require(_0x810c[3])[_0x810c[2]];var FreshdeskField=require(_0x810c[3])[_0x810c[4]];function handleError(_0xdbdex5,_0xdbdex6){_0xdbdex6=_0xdbdex6||500;return function(_0xdbdex7){_0xdbdex5[_0x810c[6]](_0xdbdex6)[_0x810c[5]](_0xdbdex7)};}function responseWithResult(_0xdbdex5,_0xdbdex6){_0xdbdex6=_0xdbdex6||200;return function(_0xdbdex9){if(_0xdbdex9){_0xdbdex5[_0x810c[6]](_0xdbdex6)[_0x810c[7]](_0xdbdex9)}};}function handleEntityNotFound(_0xdbdex5){return function(_0xdbdex9){if(!_0xdbdex9){_0xdbdex5[_0x810c[6]](404)[_0x810c[8]]();return null;};return _0xdbdex9;}}function saveUpdates(_0xdbdexc){return function(_0xdbdex9){return _0xdbdex9[_0x810c[10]](_0xdbdexc)[_0x810c[9]](function(_0xdbdexd){return _0xdbdexd})}}function removeEntity(_0xdbdex5){return function(_0xdbdex9){if(_0xdbdex9){return _0xdbdex9[_0x810c[11]]()[_0x810c[9]](function(){_0xdbdex5[_0x810c[6]](204)[_0x810c[8]]()})}}}exports[_0x810c[12]]=function(_0xdbdexf,_0xdbdex5){FreshdeskConfiguration[_0x810c[15]]({where:_0xdbdexf[_0x810c[14]]})[_0x810c[9]](responseWithResult(_0xdbdex5))[_0x810c[13]](handleError(_0xdbdex5))};exports[_0x810c[16]]=function(_0xdbdexf,_0xdbdex5){FreshdeskConfiguration[_0x810c[22]]({where:{id:_0xdbdexf[_0x810c[18]][_0x810c[17]]},include:[{model:FreshdeskField,as:_0x810c[19]},{model:FreshdeskField,as:_0x810c[20]},{model:FreshdeskField,as:_0x810c[21]}]})[_0x810c[9]](handleEntityNotFound(_0xdbdex5))[_0x810c[9]](responseWithResult(_0xdbdex5))[_0x810c[13]](handleError(_0xdbdex5))};exports[_0x810c[23]]=function(_0xdbdexf,_0xdbdex5){FreshdeskConfiguration[_0x810c[23]](_0xdbdexf[_0x810c[24]])[_0x810c[9]](responseWithResult(_0xdbdex5,201))[_0x810c[13]](handleError(_0xdbdex5))};exports[_0x810c[25]]=function(_0xdbdexf,_0xdbdex5){if(_0xdbdexf[_0x810c[24]][_0x810c[17]]){delete _0xdbdexf[_0x810c[24]][_0x810c[17]]};FreshdeskConfiguration[_0x810c[26]](_0xdbdexf[_0x810c[18]][_0x810c[17]])[_0x810c[9]](handleEntityNotFound(_0xdbdex5))[_0x810c[9]](saveUpdates(_0xdbdexf[_0x810c[24]]))[_0x810c[9]](responseWithResult(_0xdbdex5))[_0x810c[13]](handleError(_0xdbdex5));};exports[_0x810c[11]]=function(_0xdbdexf,_0xdbdex5){FreshdeskConfiguration[_0x810c[26]](_0xdbdexf[_0x810c[18]][_0x810c[17]])[_0x810c[9]](handleEntityNotFound(_0xdbdex5))[_0x810c[9]](removeEntity(_0xdbdex5))[_0x810c[13]](handleError(_0xdbdex5))};exports[_0x810c[27]]=function(_0xdbdexf,_0xdbdex5,_0xdbdex10){var _0xdbdex11;FreshdeskConfiguration[_0x810c[26]](_0xdbdexf[_0x810c[18]][_0x810c[17]])[_0x810c[9]](handleEntityNotFound(_0xdbdex5))[_0x810c[9]](function(_0xdbdex14){_0xdbdex11=_0xdbdex14;return FreshdeskField[_0x810c[23]](_0xdbdexf[_0x810c[24]]);})[_0x810c[9]](function(_0xdbdex13){switch(_0xdbdexf[_0x810c[18]][_0x810c[35]]){case _0x810c[30]:return [_0xdbdex11[_0x810c[29]](_0xdbdex13),_0xdbdex13];;case _0x810c[32]:return [_0xdbdex11[_0x810c[31]](_0xdbdex13),_0xdbdex13];;case _0x810c[34]:return [_0xdbdex11[_0x810c[33]](_0xdbdex13),_0xdbdex13];;}})[_0x810c[28]](function(_0xdbdex12,_0xdbdex13){return _0xdbdex5[_0x810c[6]](201)[_0x810c[7]](_0xdbdex13)})[_0x810c[13]](handleError(_0xdbdex5));};
\ No newline at end of file
+var _0xa52d=["\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"];_0xa52d[0];var _=require(_0xa52d[1]);var FreshdeskConfiguration=require(_0xa52d[3])[_0xa52d[2]];var FreshdeskField=require(_0xa52d[3])[_0xa52d[4]];function handleError(_0xad8bx5,_0xad8bx6){_0xad8bx6=_0xad8bx6||500;return function(_0xad8bx7){_0xad8bx5[_0xa52d[6]](_0xad8bx6)[_0xa52d[5]](_0xad8bx7)};}function responseWithResult(_0xad8bx5,_0xad8bx6){_0xad8bx6=_0xad8bx6||200;return function(_0xad8bx9){if(_0xad8bx9){_0xad8bx5[_0xa52d[6]](_0xad8bx6)[_0xa52d[7]](_0xad8bx9)}};}function handleEntityNotFound(_0xad8bx5){return function(_0xad8bx9){if(!_0xad8bx9){_0xad8bx5[_0xa52d[6]](404)[_0xa52d[8]]();return null;};return _0xad8bx9;}}function saveUpdates(_0xad8bxc){return function(_0xad8bx9){return _0xad8bx9[_0xa52d[10]](_0xad8bxc)[_0xa52d[9]](function(_0xad8bxd){return _0xad8bxd})}}function removeEntity(_0xad8bx5){return function(_0xad8bx9){if(_0xad8bx9){return _0xad8bx9[_0xa52d[11]]()[_0xa52d[9]](function(){_0xad8bx5[_0xa52d[6]](204)[_0xa52d[8]]()})}}}exports[_0xa52d[12]]=function(_0xad8bxf,_0xad8bx5){FreshdeskConfiguration[_0xa52d[15]]({where:_0xad8bxf[_0xa52d[14]]})[_0xa52d[9]](responseWithResult(_0xad8bx5))[_0xa52d[13]](handleError(_0xad8bx5))};exports[_0xa52d[16]]=function(_0xad8bxf,_0xad8bx5){FreshdeskConfiguration[_0xa52d[22]]({where:{id:_0xad8bxf[_0xa52d[18]][_0xa52d[17]]},include:[{model:FreshdeskField,as:_0xa52d[19]},{model:FreshdeskField,as:_0xa52d[20]},{model:FreshdeskField,as:_0xa52d[21]}]})[_0xa52d[9]](handleEntityNotFound(_0xad8bx5))[_0xa52d[9]](responseWithResult(_0xad8bx5))[_0xa52d[13]](handleError(_0xad8bx5))};exports[_0xa52d[23]]=function(_0xad8bxf,_0xad8bx5){FreshdeskConfiguration[_0xa52d[23]](_0xad8bxf[_0xa52d[24]])[_0xa52d[9]](responseWithResult(_0xad8bx5,201))[_0xa52d[13]](handleError(_0xad8bx5))};exports[_0xa52d[25]]=function(_0xad8bxf,_0xad8bx5){if(_0xad8bxf[_0xa52d[24]][_0xa52d[17]]){delete _0xad8bxf[_0xa52d[24]][_0xa52d[17]]};FreshdeskConfiguration[_0xa52d[26]](_0xad8bxf[_0xa52d[18]][_0xa52d[17]])[_0xa52d[9]](handleEntityNotFound(_0xad8bx5))[_0xa52d[9]](saveUpdates(_0xad8bxf[_0xa52d[24]]))[_0xa52d[9]](responseWithResult(_0xad8bx5))[_0xa52d[13]](handleError(_0xad8bx5));};exports[_0xa52d[11]]=function(_0xad8bxf,_0xad8bx5){FreshdeskConfiguration[_0xa52d[26]](_0xad8bxf[_0xa52d[18]][_0xa52d[17]])[_0xa52d[9]](handleEntityNotFound(_0xad8bx5))[_0xa52d[9]](removeEntity(_0xad8bx5))[_0xa52d[13]](handleError(_0xad8bx5))};exports[_0xa52d[27]]=function(_0xad8bxf,_0xad8bx5,_0xad8bx10){var _0xad8bx11;FreshdeskConfiguration[_0xa52d[26]](_0xad8bxf[_0xa52d[18]][_0xa52d[17]])[_0xa52d[9]](handleEntityNotFound(_0xad8bx5))[_0xa52d[9]](function(_0xad8bx14){_0xad8bx11=_0xad8bx14;return FreshdeskField[_0xa52d[23]](_0xad8bxf[_0xa52d[24]]);})[_0xa52d[9]](function(_0xad8bx13){switch(_0xad8bxf[_0xa52d[18]][_0xa52d[35]]){case _0xa52d[30]:return [_0xad8bx11[_0xa52d[29]](_0xad8bx13),_0xad8bx13];;case _0xa52d[32]:return [_0xad8bx11[_0xa52d[31]](_0xad8bx13),_0xad8bx13];;case _0xa52d[34]:return [_0xad8bx11[_0xa52d[33]](_0xad8bx13),_0xad8bx13];;}})[_0xa52d[28]](function(_0xad8bx12,_0xad8bx13){return _0xad8bx5[_0xa52d[6]](201)[_0xa52d[7]](_0xad8bx13)})[_0xa52d[13]](handleError(_0xad8bx5));};
\ No newline at end of file
-var _0xc014=["\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"];_0xc014[0];var FreshdeskConfiguration=require(_0xc014[2])[_0xc014[1]];exports[_0xc014[3]]=function(_0xe1eex2){FreshdeskConfiguration[_0xc014[4]](function(_0xe1eex3){onSave(_0xe1eex2,_0xe1eex3)});FreshdeskConfiguration[_0xc014[5]](function(_0xe1eex3){onRemove(_0xe1eex2,_0xe1eex3)});};function onSave(_0xe1eex2,_0xe1eex3,_0xe1eex5){_0xe1eex2[_0xc014[7]](_0xc014[6],_0xe1eex3)}function onRemove(_0xe1eex2,_0xe1eex3,_0xe1eex5){_0xe1eex2[_0xc014[7]](_0xc014[8],_0xe1eex3)}
\ No newline at end of file
+var _0x5d7f=["\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"];_0x5d7f[0];var FreshdeskConfiguration=require(_0x5d7f[2])[_0x5d7f[1]];exports[_0x5d7f[3]]=function(_0x232bx2){FreshdeskConfiguration[_0x5d7f[4]](function(_0x232bx3){onSave(_0x232bx2,_0x232bx3)});FreshdeskConfiguration[_0x5d7f[5]](function(_0x232bx3){onRemove(_0x232bx2,_0x232bx3)});};function onSave(_0x232bx2,_0x232bx3,_0x232bx5){_0x232bx2[_0x5d7f[7]](_0x5d7f[6],_0x232bx3)}function onRemove(_0x232bx2,_0x232bx3,_0x232bx5){_0x232bx2[_0x5d7f[7]](_0x5d7f[8],_0x232bx3)}
\ No newline at end of file
-var _0xf117=["\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"];_0xf117[0];var express=require(_0xf117[1]);var auth=require(_0xf117[2]);var controller=require(_0xf117[3]);var router=express.Router();router[_0xf117[7]](_0xf117[4],auth[_0xf117[5]](),controller[_0xf117[6]]);router[_0xf117[7]](_0xf117[8],auth[_0xf117[5]](),controller[_0xf117[9]]);router[_0xf117[11]](_0xf117[4],auth[_0xf117[5]](),controller[_0xf117[10]]);router[_0xf117[13]](_0xf117[8],auth[_0xf117[5]](),controller[_0xf117[12]]);router[_0xf117[11]](_0xf117[14],auth[_0xf117[5]](),controller[_0xf117[15]]);router[_0xf117[16]](_0xf117[8],auth[_0xf117[5]](),controller[_0xf117[12]]);router[_0xf117[18]](_0xf117[8],auth[_0xf117[5]](),controller[_0xf117[17]]);module[_0xf117[19]]=router;
\ No newline at end of file
+var _0xba8c=["\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"];_0xba8c[0];var express=require(_0xba8c[1]);var auth=require(_0xba8c[2]);var controller=require(_0xba8c[3]);var router=express.Router();router[_0xba8c[7]](_0xba8c[4],auth[_0xba8c[5]](),controller[_0xba8c[6]]);router[_0xba8c[7]](_0xba8c[8],auth[_0xba8c[5]](),controller[_0xba8c[9]]);router[_0xba8c[11]](_0xba8c[4],auth[_0xba8c[5]](),controller[_0xba8c[10]]);router[_0xba8c[13]](_0xba8c[8],auth[_0xba8c[5]](),controller[_0xba8c[12]]);router[_0xba8c[11]](_0xba8c[14],auth[_0xba8c[5]](),controller[_0xba8c[15]]);router[_0xba8c[16]](_0xba8c[8],auth[_0xba8c[5]](),controller[_0xba8c[12]]);router[_0xba8c[18]](_0xba8c[8],auth[_0xba8c[5]](),controller[_0xba8c[17]]);module[_0xba8c[19]]=router;
\ No newline at end of file
-var _0x6d4e=["\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"];_0x6d4e[0];var proxyquire=require(_0x6d4e[2])[_0x6d4e[1]]();var freshdeskConfigurationCtrlStub={index:_0x6d4e[3],show:_0x6d4e[4],create:_0x6d4e[5],update:_0x6d4e[6],destroy:_0x6d4e[7]};var routerStub={get:sinon[_0x6d4e[8]](),put:sinon[_0x6d4e[8]](),patch:sinon[_0x6d4e[8]](),post:sinon[_0x6d4e[8]](),delete:sinon[_0x6d4e[8]]()};var freshdeskConfigurationIndex=proxyquire(_0x6d4e[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(_0x6d4e[10],function(){it(_0x6d4e[11],function(){expect(freshdeskConfigurationIndex)[_0x6d4e[13]][_0x6d4e[12]](routerStub)});describe(_0x6d4e[14],function(){it(_0x6d4e[15],function(){expect(routerStub[_0x6d4e[21]][_0x6d4e[20]](_0x6d4e[19],_0x6d4e[3]))[_0x6d4e[13]][_0x6d4e[18]][_0x6d4e[17]][_0x6d4e[16]]})});describe(_0x6d4e[22],function(){it(_0x6d4e[23],function(){expect(routerStub[_0x6d4e[21]][_0x6d4e[20]](_0x6d4e[24],_0x6d4e[4]))[_0x6d4e[13]][_0x6d4e[18]][_0x6d4e[17]][_0x6d4e[16]]})});describe(_0x6d4e[25],function(){it(_0x6d4e[26],function(){expect(routerStub[_0x6d4e[27]][_0x6d4e[20]](_0x6d4e[19],_0x6d4e[5]))[_0x6d4e[13]][_0x6d4e[18]][_0x6d4e[17]][_0x6d4e[16]]})});describe(_0x6d4e[28],function(){it(_0x6d4e[29],function(){expect(routerStub[_0x6d4e[30]][_0x6d4e[20]](_0x6d4e[24],_0x6d4e[6]))[_0x6d4e[13]][_0x6d4e[18]][_0x6d4e[17]][_0x6d4e[16]]})});describe(_0x6d4e[31],function(){it(_0x6d4e[29],function(){expect(routerStub[_0x6d4e[32]][_0x6d4e[20]](_0x6d4e[24],_0x6d4e[6]))[_0x6d4e[13]][_0x6d4e[18]][_0x6d4e[17]][_0x6d4e[16]]})});describe(_0x6d4e[33],function(){it(_0x6d4e[34],function(){expect(routerStub[_0x6d4e[35]][_0x6d4e[20]](_0x6d4e[24],_0x6d4e[7]))[_0x6d4e[13]][_0x6d4e[18]][_0x6d4e[17]][_0x6d4e[16]]})});});
\ No newline at end of file
+var _0xf3f4=["\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"];_0xf3f4[0];var proxyquire=require(_0xf3f4[2])[_0xf3f4[1]]();var freshdeskConfigurationCtrlStub={index:_0xf3f4[3],show:_0xf3f4[4],create:_0xf3f4[5],update:_0xf3f4[6],destroy:_0xf3f4[7]};var routerStub={get:sinon[_0xf3f4[8]](),put:sinon[_0xf3f4[8]](),patch:sinon[_0xf3f4[8]](),post:sinon[_0xf3f4[8]](),delete:sinon[_0xf3f4[8]]()};var freshdeskConfigurationIndex=proxyquire(_0xf3f4[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(_0xf3f4[10],function(){it(_0xf3f4[11],function(){expect(freshdeskConfigurationIndex)[_0xf3f4[13]][_0xf3f4[12]](routerStub)});describe(_0xf3f4[14],function(){it(_0xf3f4[15],function(){expect(routerStub[_0xf3f4[21]][_0xf3f4[20]](_0xf3f4[19],_0xf3f4[3]))[_0xf3f4[13]][_0xf3f4[18]][_0xf3f4[17]][_0xf3f4[16]]})});describe(_0xf3f4[22],function(){it(_0xf3f4[23],function(){expect(routerStub[_0xf3f4[21]][_0xf3f4[20]](_0xf3f4[24],_0xf3f4[4]))[_0xf3f4[13]][_0xf3f4[18]][_0xf3f4[17]][_0xf3f4[16]]})});describe(_0xf3f4[25],function(){it(_0xf3f4[26],function(){expect(routerStub[_0xf3f4[27]][_0xf3f4[20]](_0xf3f4[19],_0xf3f4[5]))[_0xf3f4[13]][_0xf3f4[18]][_0xf3f4[17]][_0xf3f4[16]]})});describe(_0xf3f4[28],function(){it(_0xf3f4[29],function(){expect(routerStub[_0xf3f4[30]][_0xf3f4[20]](_0xf3f4[24],_0xf3f4[6]))[_0xf3f4[13]][_0xf3f4[18]][_0xf3f4[17]][_0xf3f4[16]]})});describe(_0xf3f4[31],function(){it(_0xf3f4[29],function(){expect(routerStub[_0xf3f4[32]][_0xf3f4[20]](_0xf3f4[24],_0xf3f4[6]))[_0xf3f4[13]][_0xf3f4[18]][_0xf3f4[17]][_0xf3f4[16]]})});describe(_0xf3f4[33],function(){it(_0xf3f4[34],function(){expect(routerStub[_0xf3f4[35]][_0xf3f4[20]](_0xf3f4[24],_0xf3f4[7]))[_0xf3f4[13]][_0xf3f4[18]][_0xf3f4[17]][_0xf3f4[16]]})});});
\ No newline at end of file
-var _0xc3d7=["\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"];_0xc3d7[0];var _=require(_0xc3d7[1]);var FreshdeskField=require(_0xc3d7[3])[_0xc3d7[2]];function handleError(_0x620ax4,_0x620ax5){_0x620ax5=_0x620ax5||500;return function(_0x620ax6){_0x620ax4[_0xc3d7[5]](_0x620ax5)[_0xc3d7[4]](_0x620ax6)};}function responseWithResult(_0x620ax4,_0x620ax5){_0x620ax5=_0x620ax5||200;return function(_0x620ax8){if(_0x620ax8){_0x620ax4[_0xc3d7[5]](_0x620ax5)[_0xc3d7[6]](_0x620ax8)}};}function handleEntityNotFound(_0x620ax4){return function(_0x620ax8){if(!_0x620ax8){_0x620ax4[_0xc3d7[5]](404)[_0xc3d7[7]]();return null;};return _0x620ax8;}}function saveUpdates(_0x620axb){return function(_0x620ax8){return _0x620ax8[_0xc3d7[9]](_0x620axb)[_0xc3d7[8]](function(_0x620axc){return _0x620axc})}}function removeEntity(_0x620ax4){return function(_0x620ax8){if(_0x620ax8){return _0x620ax8[_0xc3d7[10]]()[_0xc3d7[8]](function(){_0x620ax4[_0xc3d7[5]](204)[_0xc3d7[7]]()})}}}exports[_0xc3d7[11]]=function(_0x620axe,_0x620ax4){FreshdeskField[_0xc3d7[13]]()[_0xc3d7[8]](responseWithResult(_0x620ax4))[_0xc3d7[12]](handleError(_0x620ax4))};exports[_0xc3d7[14]]=function(_0x620axe,_0x620ax4){FreshdeskField[_0xc3d7[17]](_0x620axe[_0xc3d7[16]][_0xc3d7[15]])[_0xc3d7[8]](handleEntityNotFound(_0x620ax4))[_0xc3d7[8]](responseWithResult(_0x620ax4))[_0xc3d7[12]](handleError(_0x620ax4))};exports[_0xc3d7[18]]=function(_0x620axe,_0x620ax4){FreshdeskField[_0xc3d7[18]](_0x620axe[_0xc3d7[19]])[_0xc3d7[8]](responseWithResult(_0x620ax4,201))[_0xc3d7[12]](handleError(_0x620ax4))};exports[_0xc3d7[20]]=function(_0x620axe,_0x620ax4){if(_0x620axe[_0xc3d7[19]][_0xc3d7[15]]){delete _0x620axe[_0xc3d7[19]][_0xc3d7[15]]};FreshdeskField[_0xc3d7[17]](_0x620axe[_0xc3d7[16]][_0xc3d7[15]])[_0xc3d7[8]](handleEntityNotFound(_0x620ax4))[_0xc3d7[8]](saveUpdates(_0x620axe[_0xc3d7[19]]))[_0xc3d7[8]](responseWithResult(_0x620ax4))[_0xc3d7[12]](handleError(_0x620ax4));};exports[_0xc3d7[10]]=function(_0x620axe,_0x620ax4){FreshdeskField[_0xc3d7[17]](_0x620axe[_0xc3d7[16]][_0xc3d7[15]])[_0xc3d7[8]](handleEntityNotFound(_0x620ax4))[_0xc3d7[8]](removeEntity(_0x620ax4))[_0xc3d7[12]](handleError(_0x620ax4))};
\ No newline at end of file
+var _0x9295=["\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"];_0x9295[0];var _=require(_0x9295[1]);var FreshdeskField=require(_0x9295[3])[_0x9295[2]];function handleError(_0xee62x4,_0xee62x5){_0xee62x5=_0xee62x5||500;return function(_0xee62x6){_0xee62x4[_0x9295[5]](_0xee62x5)[_0x9295[4]](_0xee62x6)};}function responseWithResult(_0xee62x4,_0xee62x5){_0xee62x5=_0xee62x5||200;return function(_0xee62x8){if(_0xee62x8){_0xee62x4[_0x9295[5]](_0xee62x5)[_0x9295[6]](_0xee62x8)}};}function handleEntityNotFound(_0xee62x4){return function(_0xee62x8){if(!_0xee62x8){_0xee62x4[_0x9295[5]](404)[_0x9295[7]]();return null;};return _0xee62x8;}}function saveUpdates(_0xee62xb){return function(_0xee62x8){return _0xee62x8[_0x9295[9]](_0xee62xb)[_0x9295[8]](function(_0xee62xc){return _0xee62xc})}}function removeEntity(_0xee62x4){return function(_0xee62x8){if(_0xee62x8){return _0xee62x8[_0x9295[10]]()[_0x9295[8]](function(){_0xee62x4[_0x9295[5]](204)[_0x9295[7]]()})}}}exports[_0x9295[11]]=function(_0xee62xe,_0xee62x4){FreshdeskField[_0x9295[13]]()[_0x9295[8]](responseWithResult(_0xee62x4))[_0x9295[12]](handleError(_0xee62x4))};exports[_0x9295[14]]=function(_0xee62xe,_0xee62x4){FreshdeskField[_0x9295[17]](_0xee62xe[_0x9295[16]][_0x9295[15]])[_0x9295[8]](handleEntityNotFound(_0xee62x4))[_0x9295[8]](responseWithResult(_0xee62x4))[_0x9295[12]](handleError(_0xee62x4))};exports[_0x9295[18]]=function(_0xee62xe,_0xee62x4){FreshdeskField[_0x9295[18]](_0xee62xe[_0x9295[19]])[_0x9295[8]](responseWithResult(_0xee62x4,201))[_0x9295[12]](handleError(_0xee62x4))};exports[_0x9295[20]]=function(_0xee62xe,_0xee62x4){if(_0xee62xe[_0x9295[19]][_0x9295[15]]){delete _0xee62xe[_0x9295[19]][_0x9295[15]]};FreshdeskField[_0x9295[17]](_0xee62xe[_0x9295[16]][_0x9295[15]])[_0x9295[8]](handleEntityNotFound(_0xee62x4))[_0x9295[8]](saveUpdates(_0xee62xe[_0x9295[19]]))[_0x9295[8]](responseWithResult(_0xee62x4))[_0x9295[12]](handleError(_0xee62x4));};exports[_0x9295[10]]=function(_0xee62xe,_0xee62x4){FreshdeskField[_0x9295[17]](_0xee62xe[_0x9295[16]][_0x9295[15]])[_0x9295[8]](handleEntityNotFound(_0xee62x4))[_0x9295[8]](removeEntity(_0xee62x4))[_0x9295[12]](handleError(_0xee62x4))};
\ No newline at end of file
-var _0x3199=["\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"];_0x3199[0];var FreshdeskField=require(_0x3199[2])[_0x3199[1]];exports[_0x3199[3]]=function(_0x740dx2){FreshdeskField[_0x3199[4]](function(_0x740dx3){onSave(_0x740dx2,_0x740dx3)});FreshdeskField[_0x3199[5]](function(_0x740dx3){onRemove(_0x740dx2,_0x740dx3)});};function onSave(_0x740dx2,_0x740dx3,_0x740dx5){_0x740dx2[_0x3199[7]](_0x3199[6],_0x740dx3)}function onRemove(_0x740dx2,_0x740dx3,_0x740dx5){_0x740dx2[_0x3199[7]](_0x3199[8],_0x740dx3)}
\ No newline at end of file
+var _0x5c80=["\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"];_0x5c80[0];var FreshdeskField=require(_0x5c80[2])[_0x5c80[1]];exports[_0x5c80[3]]=function(_0x5397x2){FreshdeskField[_0x5c80[4]](function(_0x5397x3){onSave(_0x5397x2,_0x5397x3)});FreshdeskField[_0x5c80[5]](function(_0x5397x3){onRemove(_0x5397x2,_0x5397x3)});};function onSave(_0x5397x2,_0x5397x3,_0x5397x5){_0x5397x2[_0x5c80[7]](_0x5c80[6],_0x5397x3)}function onRemove(_0x5397x2,_0x5397x3,_0x5397x5){_0x5397x2[_0x5c80[7]](_0x5c80[8],_0x5397x3)}
\ No newline at end of file
-var _0x89e1=["\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"];_0x89e1[0];var express=require(_0x89e1[1]);var auth=require(_0x89e1[2]);var controller=require(_0x89e1[3]);var router=express.Router();router[_0x89e1[7]](_0x89e1[4],auth[_0x89e1[5]](),controller[_0x89e1[6]]);router[_0x89e1[7]](_0x89e1[8],auth[_0x89e1[5]](),controller[_0x89e1[9]]);router[_0x89e1[11]](_0x89e1[4],auth[_0x89e1[5]](),controller[_0x89e1[10]]);router[_0x89e1[13]](_0x89e1[8],auth[_0x89e1[5]](),controller[_0x89e1[12]]);router[_0x89e1[14]](_0x89e1[8],auth[_0x89e1[5]](),controller[_0x89e1[12]]);router[_0x89e1[16]](_0x89e1[8],auth[_0x89e1[5]](),controller[_0x89e1[15]]);module[_0x89e1[17]]=router;
\ No newline at end of file
+var _0xeb61=["\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"];_0xeb61[0];var express=require(_0xeb61[1]);var auth=require(_0xeb61[2]);var controller=require(_0xeb61[3]);var router=express.Router();router[_0xeb61[7]](_0xeb61[4],auth[_0xeb61[5]](),controller[_0xeb61[6]]);router[_0xeb61[7]](_0xeb61[8],auth[_0xeb61[5]](),controller[_0xeb61[9]]);router[_0xeb61[11]](_0xeb61[4],auth[_0xeb61[5]](),controller[_0xeb61[10]]);router[_0xeb61[13]](_0xeb61[8],auth[_0xeb61[5]](),controller[_0xeb61[12]]);router[_0xeb61[14]](_0xeb61[8],auth[_0xeb61[5]](),controller[_0xeb61[12]]);router[_0xeb61[16]](_0xeb61[8],auth[_0xeb61[5]](),controller[_0xeb61[15]]);module[_0xeb61[17]]=router;
\ No newline at end of file
-var _0xdae9=["\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"];_0xdae9[0];var proxyquire=require(_0xdae9[2])[_0xdae9[1]]();var freshdeskFieldCtrlStub={index:_0xdae9[3],show:_0xdae9[4],create:_0xdae9[5],update:_0xdae9[6],destroy:_0xdae9[7]};var routerStub={get:sinon[_0xdae9[8]](),put:sinon[_0xdae9[8]](),patch:sinon[_0xdae9[8]](),post:sinon[_0xdae9[8]](),delete:sinon[_0xdae9[8]]()};var freshdeskFieldIndex=proxyquire(_0xdae9[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(_0xdae9[10],function(){it(_0xdae9[11],function(){expect(freshdeskFieldIndex)[_0xdae9[13]][_0xdae9[12]](routerStub)});describe(_0xdae9[14],function(){it(_0xdae9[15],function(){expect(routerStub[_0xdae9[21]][_0xdae9[20]](_0xdae9[19],_0xdae9[3]))[_0xdae9[13]][_0xdae9[18]][_0xdae9[17]][_0xdae9[16]]})});describe(_0xdae9[22],function(){it(_0xdae9[23],function(){expect(routerStub[_0xdae9[21]][_0xdae9[20]](_0xdae9[24],_0xdae9[4]))[_0xdae9[13]][_0xdae9[18]][_0xdae9[17]][_0xdae9[16]]})});describe(_0xdae9[25],function(){it(_0xdae9[26],function(){expect(routerStub[_0xdae9[27]][_0xdae9[20]](_0xdae9[19],_0xdae9[5]))[_0xdae9[13]][_0xdae9[18]][_0xdae9[17]][_0xdae9[16]]})});describe(_0xdae9[28],function(){it(_0xdae9[29],function(){expect(routerStub[_0xdae9[30]][_0xdae9[20]](_0xdae9[24],_0xdae9[6]))[_0xdae9[13]][_0xdae9[18]][_0xdae9[17]][_0xdae9[16]]})});describe(_0xdae9[31],function(){it(_0xdae9[29],function(){expect(routerStub[_0xdae9[32]][_0xdae9[20]](_0xdae9[24],_0xdae9[6]))[_0xdae9[13]][_0xdae9[18]][_0xdae9[17]][_0xdae9[16]]})});describe(_0xdae9[33],function(){it(_0xdae9[34],function(){expect(routerStub[_0xdae9[35]][_0xdae9[20]](_0xdae9[24],_0xdae9[7]))[_0xdae9[13]][_0xdae9[18]][_0xdae9[17]][_0xdae9[16]]})});});
\ No newline at end of file
+var _0xc524=["\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"];_0xc524[0];var proxyquire=require(_0xc524[2])[_0xc524[1]]();var freshdeskFieldCtrlStub={index:_0xc524[3],show:_0xc524[4],create:_0xc524[5],update:_0xc524[6],destroy:_0xc524[7]};var routerStub={get:sinon[_0xc524[8]](),put:sinon[_0xc524[8]](),patch:sinon[_0xc524[8]](),post:sinon[_0xc524[8]](),delete:sinon[_0xc524[8]]()};var freshdeskFieldIndex=proxyquire(_0xc524[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(_0xc524[10],function(){it(_0xc524[11],function(){expect(freshdeskFieldIndex)[_0xc524[13]][_0xc524[12]](routerStub)});describe(_0xc524[14],function(){it(_0xc524[15],function(){expect(routerStub[_0xc524[21]][_0xc524[20]](_0xc524[19],_0xc524[3]))[_0xc524[13]][_0xc524[18]][_0xc524[17]][_0xc524[16]]})});describe(_0xc524[22],function(){it(_0xc524[23],function(){expect(routerStub[_0xc524[21]][_0xc524[20]](_0xc524[24],_0xc524[4]))[_0xc524[13]][_0xc524[18]][_0xc524[17]][_0xc524[16]]})});describe(_0xc524[25],function(){it(_0xc524[26],function(){expect(routerStub[_0xc524[27]][_0xc524[20]](_0xc524[19],_0xc524[5]))[_0xc524[13]][_0xc524[18]][_0xc524[17]][_0xc524[16]]})});describe(_0xc524[28],function(){it(_0xc524[29],function(){expect(routerStub[_0xc524[30]][_0xc524[20]](_0xc524[24],_0xc524[6]))[_0xc524[13]][_0xc524[18]][_0xc524[17]][_0xc524[16]]})});describe(_0xc524[31],function(){it(_0xc524[29],function(){expect(routerStub[_0xc524[32]][_0xc524[20]](_0xc524[24],_0xc524[6]))[_0xc524[13]][_0xc524[18]][_0xc524[17]][_0xc524[16]]})});describe(_0xc524[33],function(){it(_0xc524[34],function(){expect(routerStub[_0xc524[35]][_0xc524[20]](_0xc524[24],_0xc524[7]))[_0xc524[13]][_0xc524[18]][_0xc524[17]][_0xc524[16]]})});});
\ No newline at end of file
-var _0xe3fc=["\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"];_0xe3fc[0];var express=require(_0xe3fc[1]);var controller=require(_0xe3fc[2]);var router=express.Router();router[_0xe3fc[5]](_0xe3fc[3],controller[_0xe3fc[4]]);router[_0xe3fc[5]](_0xe3fc[6],controller[_0xe3fc[7]]);router[_0xe3fc[9]](_0xe3fc[3],controller[_0xe3fc[8]]);router[_0xe3fc[11]](_0xe3fc[6],controller[_0xe3fc[10]]);router[_0xe3fc[12]](_0xe3fc[6],controller[_0xe3fc[10]]);router[_0xe3fc[14]](_0xe3fc[6],controller[_0xe3fc[13]]);module[_0xe3fc[15]]=router;
\ No newline at end of file
+var _0xd659=["\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"];_0xd659[0];var express=require(_0xd659[1]);var controller=require(_0xd659[2]);var router=express.Router();router[_0xd659[5]](_0xd659[3],controller[_0xd659[4]]);router[_0xd659[5]](_0xd659[6],controller[_0xd659[7]]);router[_0xd659[9]](_0xd659[3],controller[_0xd659[8]]);router[_0xd659[11]](_0xd659[6],controller[_0xd659[10]]);router[_0xd659[12]](_0xd659[6],controller[_0xd659[10]]);router[_0xd659[14]](_0xd659[6],controller[_0xd659[13]]);module[_0xd659[15]]=router;
\ No newline at end of file
-var _0x5cb2=["\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"];_0x5cb2[0];var _=require(_0x5cb2[1]);var uploadFile=require(_0x5cb2[2]);var config=require(_0x5cb2[3]);var path=require(_0x5cb2[4]);var sr=require(_0x5cb2[5]);var admZip=require(_0x5cb2[6]);var str2json=require(_0x5cb2[7]);var fs=require(_0x5cb2[8]);var Integration=require(_0x5cb2[10])[_0x5cb2[9]];exports[_0x5cb2[11]]=function(_0xb05fxa,_0xb05fxb){Integration[_0x5cb2[17]]({where:_0xb05fxa[_0x5cb2[16]]})[_0x5cb2[15]](function(_0xb05fxd){return _0xb05fxb[_0x5cb2[14]](200)[_0x5cb2[13]](_0xb05fxd)})[_0x5cb2[12]](function(_0xb05fxc){return handleError(_0xb05fxb,_0xb05fxc)})};exports[_0x5cb2[18]]=function(_0xb05fxa,_0xb05fxb){Integration[_0x5cb2[22]](_0xb05fxa[_0x5cb2[21]][_0x5cb2[20]])[_0x5cb2[15]](function(_0xb05fxe){if(!_0xb05fxe){return _0xb05fxb[_0x5cb2[19]](404)};return _0xb05fxb[_0x5cb2[13]](_0xb05fxe);})[_0x5cb2[12]](function(_0xb05fxc){return handleError(_0xb05fxb,_0xb05fxc)})};exports[_0x5cb2[23]]=function(_0xb05fxa,_0xb05fxb){var _0xb05fxf= new uploadFile({dest:path[_0x5cb2[26]](config[_0x5cb2[24]],_0x5cb2[25]),maxFileSize:5*1000000,maxNumberOfFiles:1,minNumberOfFiles:1,acceptFileTypes:/(\.|\/)(zip)$/i,messages:{maxNumberOfFiles:_0x5cb2[27],acceptFileTypes:_0x5cb2[28],maxFileSize:_0x5cb2[29],invalidRequest:_0x5cb2[30]}});_0xb05fxf[_0x5cb2[48]](_0x5cb2[31],function(_0xb05fx10,_0xb05fx11){var _0xb05fx12= new admZip(_0xb05fx11[_0x5cb2[32]][_0x5cb2[4]]);var _0xb05fx13=false;var _0xb05fx14=_0xb05fx12[_0x5cb2[33]]();_0xb05fx14[_0x5cb2[44]](function(_0xb05fx15){if(_0xb05fx15[_0x5cb2[34]]===_0x5cb2[35]){var _0xb05fx16=_0xb05fx15[_0x5cb2[37]]().toString(_0x5cb2[36]);console[_0x5cb2[39]](_0x5cb2[38],_0xb05fx16);try{_0xb05fx13=JSON[_0x5cb2[40]](_0xb05fx16);console[_0x5cb2[39]](_0x5cb2[38],_0xb05fx13);Integration[_0x5cb2[23]](_[_0x5cb2[42]](_0xb05fx11[_0x5cb2[32]],_0xb05fx13))[_0x5cb2[15]](function(_0xb05fxe){_0xb05fx12[_0x5cb2[41]](path[_0x5cb2[26]](config[_0x5cb2[24]],_0x5cb2[25]),true);return _0xb05fxb[_0x5cb2[14]](201)[_0x5cb2[13]](_0xb05fxe);})[_0x5cb2[12]](function(_0xb05fxc){return handleError(_0xb05fxb,_0xb05fxc)});}catch(e){console[_0x5cb2[39]](e);var _0xb05fxc={errors:[{type:_0x5cb2[43],message:e}]};return handleError(_0xb05fxb,_0xb05fxc);};}});fs[_0x5cb2[45]](_0xb05fx11[_0x5cb2[32]][_0x5cb2[4]]);if(!_0xb05fx13){var _0xb05fxc={errors:[{type:_0x5cb2[46],message:_0x5cb2[47]}]};return handleError(_0xb05fxb,_0xb05fxc);};});_0xb05fxf[_0x5cb2[48]](_0x5cb2[49],function(_0xb05fx17){var _0xb05fxc={errors:[{type:_0x5cb2[50],message:_0xb05fx17}]};return handleError(_0xb05fxb,_0xb05fxc);});_0xb05fxf[_0x5cb2[40]](_0xb05fxa);};exports[_0x5cb2[51]]=function(_0xb05fxa,_0xb05fxb){if(_0xb05fxa[_0x5cb2[52]][_0x5cb2[20]]){delete _0xb05fxa[_0x5cb2[52]][_0x5cb2[20]]};Integration[_0x5cb2[54]]({where:{id:_0xb05fxa[_0x5cb2[21]][_0x5cb2[20]]}})[_0x5cb2[15]](function(_0xb05fxe){if(!_0xb05fxe){return _0xb05fxb[_0x5cb2[19]](404)};var _0xb05fx18=_[_0x5cb2[42]](_0xb05fxe,_0xb05fxa[_0x5cb2[52]]);_0xb05fx18[_0x5cb2[53]]()[_0x5cb2[15]](function(){return _0xb05fxb[_0x5cb2[14]](200)[_0x5cb2[13]](_0xb05fxe)})[_0x5cb2[12]](function(_0xb05fxc){return handleError(_0xb05fxb,_0xb05fxc)});})[_0x5cb2[12]](function(_0xb05fxc){return handleError(_0xb05fxb,_0xb05fxc)});};exports[_0x5cb2[55]]=function(_0xb05fxa,_0xb05fxb){Integration[_0x5cb2[54]]({where:{id:_0xb05fxa[_0x5cb2[21]][_0x5cb2[20]]}})[_0x5cb2[15]](function(_0xb05fxe){if(!_0xb05fxe){return _0xb05fxb[_0x5cb2[19]](404)};_0xb05fxe[_0x5cb2[55]]()[_0x5cb2[15]](function(){return _0xb05fxb[_0x5cb2[19]](204)})[_0x5cb2[12]](function(_0xb05fxc){return handleError(_0xb05fxb,_0xb05fxc)});})[_0x5cb2[12]](function(_0xb05fxc){return handleError(_0xb05fxb,_0xb05fxc)})};function handleError(_0xb05fxb,_0xb05fxc){return _0xb05fxb[_0x5cb2[14]](500)[_0x5cb2[13]](_0xb05fxc)}
\ No newline at end of file
+var _0xe8dc=["\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"];_0xe8dc[0];var _=require(_0xe8dc[1]);var uploadFile=require(_0xe8dc[2]);var config=require(_0xe8dc[3]);var path=require(_0xe8dc[4]);var sr=require(_0xe8dc[5]);var admZip=require(_0xe8dc[6]);var str2json=require(_0xe8dc[7]);var fs=require(_0xe8dc[8]);var Integration=require(_0xe8dc[10])[_0xe8dc[9]];exports[_0xe8dc[11]]=function(_0xc786xa,_0xc786xb){Integration[_0xe8dc[17]]({where:_0xc786xa[_0xe8dc[16]]})[_0xe8dc[15]](function(_0xc786xd){return _0xc786xb[_0xe8dc[14]](200)[_0xe8dc[13]](_0xc786xd)})[_0xe8dc[12]](function(_0xc786xc){return handleError(_0xc786xb,_0xc786xc)})};exports[_0xe8dc[18]]=function(_0xc786xa,_0xc786xb){Integration[_0xe8dc[22]](_0xc786xa[_0xe8dc[21]][_0xe8dc[20]])[_0xe8dc[15]](function(_0xc786xe){if(!_0xc786xe){return _0xc786xb[_0xe8dc[19]](404)};return _0xc786xb[_0xe8dc[13]](_0xc786xe);})[_0xe8dc[12]](function(_0xc786xc){return handleError(_0xc786xb,_0xc786xc)})};exports[_0xe8dc[23]]=function(_0xc786xa,_0xc786xb){var _0xc786xf= new uploadFile({dest:path[_0xe8dc[26]](config[_0xe8dc[24]],_0xe8dc[25]),maxFileSize:5*1000000,maxNumberOfFiles:1,minNumberOfFiles:1,acceptFileTypes:/(\.|\/)(zip)$/i,messages:{maxNumberOfFiles:_0xe8dc[27],acceptFileTypes:_0xe8dc[28],maxFileSize:_0xe8dc[29],invalidRequest:_0xe8dc[30]}});_0xc786xf[_0xe8dc[48]](_0xe8dc[31],function(_0xc786x10,_0xc786x11){var _0xc786x12= new admZip(_0xc786x11[_0xe8dc[32]][_0xe8dc[4]]);var _0xc786x13=false;var _0xc786x14=_0xc786x12[_0xe8dc[33]]();_0xc786x14[_0xe8dc[44]](function(_0xc786x15){if(_0xc786x15[_0xe8dc[34]]===_0xe8dc[35]){var _0xc786x16=_0xc786x15[_0xe8dc[37]]().toString(_0xe8dc[36]);console[_0xe8dc[39]](_0xe8dc[38],_0xc786x16);try{_0xc786x13=JSON[_0xe8dc[40]](_0xc786x16);console[_0xe8dc[39]](_0xe8dc[38],_0xc786x13);Integration[_0xe8dc[23]](_[_0xe8dc[42]](_0xc786x11[_0xe8dc[32]],_0xc786x13))[_0xe8dc[15]](function(_0xc786xe){_0xc786x12[_0xe8dc[41]](path[_0xe8dc[26]](config[_0xe8dc[24]],_0xe8dc[25]),true);return _0xc786xb[_0xe8dc[14]](201)[_0xe8dc[13]](_0xc786xe);})[_0xe8dc[12]](function(_0xc786xc){return handleError(_0xc786xb,_0xc786xc)});}catch(e){console[_0xe8dc[39]](e);var _0xc786xc={errors:[{type:_0xe8dc[43],message:e}]};return handleError(_0xc786xb,_0xc786xc);};}});fs[_0xe8dc[45]](_0xc786x11[_0xe8dc[32]][_0xe8dc[4]]);if(!_0xc786x13){var _0xc786xc={errors:[{type:_0xe8dc[46],message:_0xe8dc[47]}]};return handleError(_0xc786xb,_0xc786xc);};});_0xc786xf[_0xe8dc[48]](_0xe8dc[49],function(_0xc786x17){var _0xc786xc={errors:[{type:_0xe8dc[50],message:_0xc786x17}]};return handleError(_0xc786xb,_0xc786xc);});_0xc786xf[_0xe8dc[40]](_0xc786xa);};exports[_0xe8dc[51]]=function(_0xc786xa,_0xc786xb){if(_0xc786xa[_0xe8dc[52]][_0xe8dc[20]]){delete _0xc786xa[_0xe8dc[52]][_0xe8dc[20]]};Integration[_0xe8dc[54]]({where:{id:_0xc786xa[_0xe8dc[21]][_0xe8dc[20]]}})[_0xe8dc[15]](function(_0xc786xe){if(!_0xc786xe){return _0xc786xb[_0xe8dc[19]](404)};var _0xc786x18=_[_0xe8dc[42]](_0xc786xe,_0xc786xa[_0xe8dc[52]]);_0xc786x18[_0xe8dc[53]]()[_0xe8dc[15]](function(){return _0xc786xb[_0xe8dc[14]](200)[_0xe8dc[13]](_0xc786xe)})[_0xe8dc[12]](function(_0xc786xc){return handleError(_0xc786xb,_0xc786xc)});})[_0xe8dc[12]](function(_0xc786xc){return handleError(_0xc786xb,_0xc786xc)});};exports[_0xe8dc[55]]=function(_0xc786xa,_0xc786xb){Integration[_0xe8dc[54]]({where:{id:_0xc786xa[_0xe8dc[21]][_0xe8dc[20]]}})[_0xe8dc[15]](function(_0xc786xe){if(!_0xc786xe){return _0xc786xb[_0xe8dc[19]](404)};_0xc786xe[_0xe8dc[55]]()[_0xe8dc[15]](function(){return _0xc786xb[_0xe8dc[19]](204)})[_0xe8dc[12]](function(_0xc786xc){return handleError(_0xc786xb,_0xc786xc)});})[_0xe8dc[12]](function(_0xc786xc){return handleError(_0xc786xb,_0xc786xc)})};function handleError(_0xc786xb,_0xc786xc){return _0xc786xb[_0xe8dc[14]](500)[_0xe8dc[13]](_0xc786xc)}
\ No newline at end of file
-var _0x3e62=["\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"];_0x3e62[0];var Integration=require(_0x3e62[2])[_0x3e62[1]];exports[_0x3e62[3]]=function(_0x6a2cx2){Integration[_0x3e62[4]](function(_0x6a2cx3){onSave(_0x6a2cx2,_0x6a2cx3)});Integration[_0x3e62[5]](function(_0x6a2cx3){onSave(_0x6a2cx2,_0x6a2cx3)});Integration[_0x3e62[6]](function(_0x6a2cx3){onRemove(_0x6a2cx2,_0x6a2cx3)});};function onSave(_0x6a2cx2,_0x6a2cx3,_0x6a2cx5){_0x6a2cx2[_0x3e62[8]](_0x3e62[7],_0x6a2cx3)}function onRemove(_0x6a2cx2,_0x6a2cx3,_0x6a2cx5){_0x6a2cx2[_0x3e62[8]](_0x3e62[9],_0x6a2cx3)}
\ No newline at end of file
+var _0x8a43=["\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"];_0x8a43[0];var Integration=require(_0x8a43[2])[_0x8a43[1]];exports[_0x8a43[3]]=function(_0xe7fax2){Integration[_0x8a43[4]](function(_0xe7fax3){onSave(_0xe7fax2,_0xe7fax3)});Integration[_0x8a43[5]](function(_0xe7fax3){onSave(_0xe7fax2,_0xe7fax3)});Integration[_0x8a43[6]](function(_0xe7fax3){onRemove(_0xe7fax2,_0xe7fax3)});};function onSave(_0xe7fax2,_0xe7fax3,_0xe7fax5){_0xe7fax2[_0x8a43[8]](_0x8a43[7],_0xe7fax3)}function onRemove(_0xe7fax2,_0xe7fax3,_0xe7fax5){_0xe7fax2[_0x8a43[8]](_0x8a43[9],_0xe7fax3)}
\ No newline at end of file
-var _0xa1a5=["\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"];_0xa1a5[0];var should=require(_0xa1a5[1]);var app=require(_0xa1a5[2]);var request=require(_0xa1a5[3]);describe(_0xa1a5[4],function(){it(_0xa1a5[5],function(_0x4b0fx4){request(app)[_0xa1a5[13]](_0xa1a5[12])[_0xa1a5[11]](200)[_0xa1a5[11]](_0xa1a5[10],/json/)[_0xa1a5[9]](function(_0x4b0fx5,_0x4b0fx6){if(_0x4b0fx5){return _0x4b0fx4(_0x4b0fx5)};_0x4b0fx6[_0xa1a5[8]][_0xa1a5[1]][_0xa1a5[7]][_0xa1a5[6]](Array);_0x4b0fx4();})})});
\ No newline at end of file
+var _0xd3ae=["\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"];_0xd3ae[0];var should=require(_0xd3ae[1]);var app=require(_0xd3ae[2]);var request=require(_0xd3ae[3]);describe(_0xd3ae[4],function(){it(_0xd3ae[5],function(_0xb43ex4){request(app)[_0xd3ae[13]](_0xd3ae[12])[_0xd3ae[11]](200)[_0xd3ae[11]](_0xd3ae[10],/json/)[_0xd3ae[9]](function(_0xb43ex5,_0xb43ex6){if(_0xb43ex5){return _0xb43ex4(_0xb43ex5)};_0xb43ex6[_0xd3ae[8]][_0xd3ae[1]][_0xd3ae[7]][_0xd3ae[6]](Array);_0xb43ex4();})})});
\ No newline at end of file
-var _0xc5f2=["\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"];_0xc5f2[0];var express=require(_0xc5f2[1]);var controller=require(_0xc5f2[2]);var auth=require(_0xc5f2[3]);var router=express.Router();router[_0xc5f2[7]](_0xc5f2[4],auth[_0xc5f2[5]](),controller[_0xc5f2[6]]);router[_0xc5f2[7]](_0xc5f2[8],auth[_0xc5f2[5]](),controller[_0xc5f2[9]]);router[_0xc5f2[7]](_0xc5f2[10],auth[_0xc5f2[5]](),controller[_0xc5f2[11]]);router[_0xc5f2[13]](_0xc5f2[4],auth[_0xc5f2[5]](),controller[_0xc5f2[12]]);router[_0xc5f2[13]](_0xc5f2[14],auth[_0xc5f2[5]](),controller[_0xc5f2[15]]);router[_0xc5f2[17]](_0xc5f2[10],auth[_0xc5f2[5]](),controller[_0xc5f2[16]]);router[_0xc5f2[19]](_0xc5f2[4],auth[_0xc5f2[5]](),controller[_0xc5f2[18]]);router[_0xc5f2[19]](_0xc5f2[10],auth[_0xc5f2[5]](),controller[_0xc5f2[20]]);module[_0xc5f2[21]]=router;
\ No newline at end of file
+var _0x4955=["\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"];_0x4955[0];var express=require(_0x4955[1]);var controller=require(_0x4955[2]);var auth=require(_0x4955[3]);var router=express.Router();router[_0x4955[7]](_0x4955[4],auth[_0x4955[5]](),controller[_0x4955[6]]);router[_0x4955[7]](_0x4955[8],auth[_0x4955[5]](),controller[_0x4955[9]]);router[_0x4955[7]](_0x4955[10],auth[_0x4955[5]](),controller[_0x4955[11]]);router[_0x4955[13]](_0x4955[4],auth[_0x4955[5]](),controller[_0x4955[12]]);router[_0x4955[13]](_0x4955[14],auth[_0x4955[5]](),controller[_0x4955[15]]);router[_0x4955[17]](_0x4955[10],auth[_0x4955[5]](),controller[_0x4955[16]]);router[_0x4955[19]](_0x4955[4],auth[_0x4955[5]](),controller[_0x4955[18]]);router[_0x4955[19]](_0x4955[10],auth[_0x4955[5]](),controller[_0x4955[20]]);module[_0x4955[21]]=router;
\ No newline at end of file
-var _0x9404=["\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"];_0x9404[0];var _=require(_0x9404[1]);var Interval=require(_0x9404[3])[_0x9404[2]];var VoiceExtension=require(_0x9404[3])[_0x9404[4]];var sequelize=require(_0x9404[3])[_0x9404[5]];var util=require(_0x9404[6]);exports[_0x9404[7]]=function(_0x9f8fx6,_0x9f8fx7){var _0x9f8fx8=[_0x9404[8]];var _0x9f8fx9=_0x9f8fx6[_0x9404[10]][_0x9404[9]]?parseInt(_0x9f8fx6[_0x9404[10]][_0x9404[9]],10):100;var _0x9f8fxa=_0x9f8fx6[_0x9404[10]][_0x9404[11]]?parseInt(_0x9f8fx6[_0x9404[10]][_0x9404[11]],10):0;var _0x9f8fxb={where:{IntervalId:null},limit:_0x9f8fx9,offset:_0x9f8fxa*_0x9f8fx9};_[_0x9404[25]](_0x9f8fx6[_0x9404[10]],function(_0x9f8fxc,_0x9f8fxd){switch(_0x9f8fxd){case _0x9404[9]:;case _0x9404[11]:break ;;case _0x9404[14]:_0x9f8fxb[_0x9404[12]]=util[_0x9404[17]](_0x9404[13],_0x9f8fx6[_0x9404[10]][_0x9404[14]],_0x9f8fx6[_0x9404[10]][_0x9404[15]]||_0x9404[16])||null;break ;;case _0x9404[15]:break ;;case _0x9404[23]:_0x9f8fxb[_0x9404[19]][_0x9404[18]]=[];_0x9f8fx8[_0x9404[22]](function(_0x9f8fxe){var _0x9f8fxf={};_0x9f8fxf[_0x9f8fxe]={$like:_0x9404[20]+_0x9f8fxc+_0x9404[20]};_0x9f8fxb[_0x9404[19]][_0x9404[18]][_0x9404[21]](_0x9f8fxf);});break ;;default:_0x9f8fxb[_0x9404[19]][_0x9f8fxd]={$like:{}};_0x9f8fxb[_0x9404[19]][_0x9f8fxd][_0x9404[24]]=_0x9404[20]+_0x9f8fxc+_0x9404[20];;}});Interval[_0x9404[30]](_0x9f8fxb)[_0x9404[29]](function(_0x9f8fx11){return _0x9f8fx7[_0x9404[28]](200)[_0x9404[27]](_0x9f8fx11)})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)});};exports[_0x9404[31]]=function(_0x9f8fx6,_0x9f8fx7){Interval[_0x9404[32]]()[_0x9404[29]](function(_0x9f8fx11){return _0x9f8fx7[_0x9404[28]](200)[_0x9404[27]](_0x9f8fx11)})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)})};exports[_0x9404[33]]=function(_0x9f8fx6,_0x9f8fx7){Interval[_0x9404[37]](_0x9f8fx6[_0x9404[36]][_0x9404[35]],{include:[{all:true}]})[_0x9404[29]](function(_0x9f8fx12){if(!_0x9f8fx12){return _0x9f8fx7[_0x9404[34]](404)};return _0x9f8fx7[_0x9404[27]](_0x9f8fx12);})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)})};exports[_0x9404[38]]=function(_0x9f8fx6,_0x9f8fx7){var _0x9f8fx13={name:_0x9f8fx6[_0x9404[39]][_0x9404[8]],IntervalId:_0x9f8fx6[_0x9404[39]][_0x9404[40]]?_0x9f8fx6[_0x9404[39]][_0x9404[40]]:null};if(_0x9f8fx6[_0x9404[39]][_0x9404[35]]){_0x9f8fx13[_0x9404[35]]={$ne:_0x9f8fx6[_0x9404[39]][_0x9404[35]]}};console[_0x9404[41]](_0x9f8fx6[_0x9404[39]]);Interval[_0x9404[32]]({where:_0x9f8fx13})[_0x9404[29]](function(_0x9f8fx11){if(!_0x9f8fx11){return _0x9f8fx7[_0x9404[34]](404)};return _0x9f8fx7[_0x9404[27]](_0x9f8fx11);})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)});};exports[_0x9404[42]]=function(_0x9f8fx6,_0x9f8fx7){Interval[_0x9404[32]]({where:{name:_0x9f8fx6[_0x9404[39]][_0x9404[8]],IntervalId:_0x9f8fx6[_0x9404[39]][_0x9404[40]]?_0x9f8fx6[_0x9404[39]][_0x9404[40]]:null}})[_0x9404[29]](function(_0x9f8fx14){console[_0x9404[41]](_0x9f8fx14);console[_0x9404[41]](_0x9404[43]);if(!_0x9f8fx14){return _0x9f8fx7[_0x9404[34]](404)};if(_0x9f8fx14[_0x9404[44]]>0){return _0x9f8fx7[_0x9404[28]](500)[_0x9404[27]]({message:_0x9f8fx6[_0x9404[39]][_0x9404[40]]?_0x9404[45]:_0x9404[46]})};Interval[_0x9404[42]](_0x9f8fx6[_0x9404[39]])[_0x9404[29]](function(_0x9f8fx12){return _0x9f8fx7[_0x9404[28]](201)[_0x9404[27]](_0x9f8fx12)})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)});})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)})};exports[_0x9404[47]]=function(_0x9f8fx6,_0x9f8fx7){Interval[_0x9404[32]]({where:{name:_0x9f8fx6[_0x9404[39]][_0x9404[8]],IntervalId:_0x9f8fx6[_0x9404[39]][_0x9404[40]]?_0x9f8fx6[_0x9404[39]][_0x9404[40]]:null,id:{$ne:_0x9f8fx6[_0x9404[39]][_0x9404[35]]}}})[_0x9404[29]](function(_0x9f8fx14){console[_0x9404[41]](_0x9f8fx14);console[_0x9404[41]](_0x9404[43]);if(!_0x9f8fx14){return _0x9f8fx7[_0x9404[34]](404)};if(_0x9f8fx14[_0x9404[44]]>0){return _0x9f8fx7[_0x9404[28]](500)[_0x9404[27]]({message:_0x9f8fx6[_0x9404[39]][_0x9404[40]]?_0x9404[45]:_0x9404[46]})};if(_0x9f8fx6[_0x9404[39]][_0x9404[35]]){delete _0x9f8fx6[_0x9404[39]][_0x9404[35]]};Interval[_0x9404[51]]({where:{id:_0x9f8fx6[_0x9404[36]][_0x9404[35]]}})[_0x9404[29]](function(_0x9f8fx12){if(!_0x9f8fx12){return _0x9f8fx7[_0x9404[34]](404)};var _0x9f8fx15=_[_0x9404[48]](_0x9f8fx12,_0x9f8fx6[_0x9404[39]]);return sequelize[_0x9404[50]](function(_0x9f8fx16){return _0x9f8fx15[_0x9404[49]]({transaction:_0x9f8fx16})[_0x9404[29]](function(_0x9f8fx12){VoiceExtension[_0x9404[47]]({interval:_0x9f8fx12[_0x9404[8]]},{where:{IntervalId:_0x9f8fx12[_0x9404[35]]}},{transaction:_0x9f8fx16})})})[_0x9404[29]](function(){return _0x9f8fx7[_0x9404[28]](200)[_0x9404[27]](_0x9f8fx12)})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)});})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)});})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)})};exports[_0x9404[52]]=function(_0x9f8fx6,_0x9f8fx7){Interval[_0x9404[37]](_0x9f8fx6[_0x9404[36]][_0x9404[35]])[_0x9404[29]](function(_0x9f8fx12){if(!_0x9f8fx12){return _0x9f8fx7[_0x9404[34]](404)};_0x9f8fx12[_0x9404[54]]({where:{isApp:true}})[_0x9404[29]](function(_0x9f8fx17){console[_0x9404[41]](_0x9f8fx17[_0x9404[44]]);if(_0x9f8fx17[_0x9404[44]]>0){return _0x9f8fx7[_0x9404[28]](500)[_0x9404[27]]({message:_0x9404[53]})};_0x9f8fx12[_0x9404[52]]()[_0x9404[29]](function(){return _0x9f8fx7[_0x9404[34]](204)})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)});})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)});})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)})};exports[_0x9404[55]]=function(_0x9f8fx6,_0x9f8fx7){var _0x9f8fx18=false;Interval[_0x9404[32]]({where:{id:_0x9f8fx6[_0x9404[10]][_0x9404[35]]},include:[{all:true}]})[_0x9404[29]](function(_0x9f8fx11){if(!_0x9f8fx11){return _0x9f8fx7[_0x9404[34]](404)};_0x9f8fx11[_0x9404[22]](function(_0x9f8fx19){if(_0x9f8fx19[_0x9404[56]][_0x9404[44]]>0){_0x9f8fx18=true}});if(_0x9f8fx18){return _0x9f8fx7[_0x9404[28]](500)[_0x9404[27]]({message:_0x9404[53]})};Interval[_0x9404[52]]({where:{id:_0x9f8fx6[_0x9404[10]][_0x9404[35]]},individualHooks:true})[_0x9404[29]](function(){return _0x9f8fx7[_0x9404[34]](204)})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)});})[_0x9404[26]](function(_0x9f8fx10){return handleError(_0x9f8fx7,_0x9f8fx10)});};function handleError(_0x9f8fx7,_0x9f8fx10){return _0x9f8fx7[_0x9404[28]](500)[_0x9404[27]](_0x9f8fx10)}
\ No newline at end of file
+var _0x946e=["\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"];_0x946e[0];var _=require(_0x946e[1]);var Interval=require(_0x946e[3])[_0x946e[2]];var VoiceExtension=require(_0x946e[3])[_0x946e[4]];var sequelize=require(_0x946e[3])[_0x946e[5]];var util=require(_0x946e[6]);exports[_0x946e[7]]=function(_0xd0dex6,_0xd0dex7){var _0xd0dex8=[_0x946e[8]];var _0xd0dex9=_0xd0dex6[_0x946e[10]][_0x946e[9]]?parseInt(_0xd0dex6[_0x946e[10]][_0x946e[9]],10):100;var _0xd0dexa=_0xd0dex6[_0x946e[10]][_0x946e[11]]?parseInt(_0xd0dex6[_0x946e[10]][_0x946e[11]],10):0;var _0xd0dexb={where:{IntervalId:null},limit:_0xd0dex9,offset:_0xd0dexa*_0xd0dex9};_[_0x946e[25]](_0xd0dex6[_0x946e[10]],function(_0xd0dexc,_0xd0dexd){switch(_0xd0dexd){case _0x946e[9]:;case _0x946e[11]:break ;;case _0x946e[14]:_0xd0dexb[_0x946e[12]]=util[_0x946e[17]](_0x946e[13],_0xd0dex6[_0x946e[10]][_0x946e[14]],_0xd0dex6[_0x946e[10]][_0x946e[15]]||_0x946e[16])||null;break ;;case _0x946e[15]:break ;;case _0x946e[23]:_0xd0dexb[_0x946e[19]][_0x946e[18]]=[];_0xd0dex8[_0x946e[22]](function(_0xd0dexe){var _0xd0dexf={};_0xd0dexf[_0xd0dexe]={$like:_0x946e[20]+_0xd0dexc+_0x946e[20]};_0xd0dexb[_0x946e[19]][_0x946e[18]][_0x946e[21]](_0xd0dexf);});break ;;default:_0xd0dexb[_0x946e[19]][_0xd0dexd]={$like:{}};_0xd0dexb[_0x946e[19]][_0xd0dexd][_0x946e[24]]=_0x946e[20]+_0xd0dexc+_0x946e[20];;}});Interval[_0x946e[30]](_0xd0dexb)[_0x946e[29]](function(_0xd0dex11){return _0xd0dex7[_0x946e[28]](200)[_0x946e[27]](_0xd0dex11)})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)});};exports[_0x946e[31]]=function(_0xd0dex6,_0xd0dex7){Interval[_0x946e[32]]()[_0x946e[29]](function(_0xd0dex11){return _0xd0dex7[_0x946e[28]](200)[_0x946e[27]](_0xd0dex11)})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)})};exports[_0x946e[33]]=function(_0xd0dex6,_0xd0dex7){Interval[_0x946e[37]](_0xd0dex6[_0x946e[36]][_0x946e[35]],{include:[{all:true}]})[_0x946e[29]](function(_0xd0dex12){if(!_0xd0dex12){return _0xd0dex7[_0x946e[34]](404)};return _0xd0dex7[_0x946e[27]](_0xd0dex12);})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)})};exports[_0x946e[38]]=function(_0xd0dex6,_0xd0dex7){var _0xd0dex13={name:_0xd0dex6[_0x946e[39]][_0x946e[8]],IntervalId:_0xd0dex6[_0x946e[39]][_0x946e[40]]?_0xd0dex6[_0x946e[39]][_0x946e[40]]:null};if(_0xd0dex6[_0x946e[39]][_0x946e[35]]){_0xd0dex13[_0x946e[35]]={$ne:_0xd0dex6[_0x946e[39]][_0x946e[35]]}};console[_0x946e[41]](_0xd0dex6[_0x946e[39]]);Interval[_0x946e[32]]({where:_0xd0dex13})[_0x946e[29]](function(_0xd0dex11){if(!_0xd0dex11){return _0xd0dex7[_0x946e[34]](404)};return _0xd0dex7[_0x946e[27]](_0xd0dex11);})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)});};exports[_0x946e[42]]=function(_0xd0dex6,_0xd0dex7){Interval[_0x946e[32]]({where:{name:_0xd0dex6[_0x946e[39]][_0x946e[8]],IntervalId:_0xd0dex6[_0x946e[39]][_0x946e[40]]?_0xd0dex6[_0x946e[39]][_0x946e[40]]:null}})[_0x946e[29]](function(_0xd0dex14){console[_0x946e[41]](_0xd0dex14);console[_0x946e[41]](_0x946e[43]);if(!_0xd0dex14){return _0xd0dex7[_0x946e[34]](404)};if(_0xd0dex14[_0x946e[44]]>0){return _0xd0dex7[_0x946e[28]](500)[_0x946e[27]]({message:_0xd0dex6[_0x946e[39]][_0x946e[40]]?_0x946e[45]:_0x946e[46]})};Interval[_0x946e[42]](_0xd0dex6[_0x946e[39]])[_0x946e[29]](function(_0xd0dex12){return _0xd0dex7[_0x946e[28]](201)[_0x946e[27]](_0xd0dex12)})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)});})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)})};exports[_0x946e[47]]=function(_0xd0dex6,_0xd0dex7){Interval[_0x946e[32]]({where:{name:_0xd0dex6[_0x946e[39]][_0x946e[8]],IntervalId:_0xd0dex6[_0x946e[39]][_0x946e[40]]?_0xd0dex6[_0x946e[39]][_0x946e[40]]:null,id:{$ne:_0xd0dex6[_0x946e[39]][_0x946e[35]]}}})[_0x946e[29]](function(_0xd0dex14){console[_0x946e[41]](_0xd0dex14);console[_0x946e[41]](_0x946e[43]);if(!_0xd0dex14){return _0xd0dex7[_0x946e[34]](404)};if(_0xd0dex14[_0x946e[44]]>0){return _0xd0dex7[_0x946e[28]](500)[_0x946e[27]]({message:_0xd0dex6[_0x946e[39]][_0x946e[40]]?_0x946e[45]:_0x946e[46]})};if(_0xd0dex6[_0x946e[39]][_0x946e[35]]){delete _0xd0dex6[_0x946e[39]][_0x946e[35]]};Interval[_0x946e[51]]({where:{id:_0xd0dex6[_0x946e[36]][_0x946e[35]]}})[_0x946e[29]](function(_0xd0dex12){if(!_0xd0dex12){return _0xd0dex7[_0x946e[34]](404)};var _0xd0dex15=_[_0x946e[48]](_0xd0dex12,_0xd0dex6[_0x946e[39]]);return sequelize[_0x946e[50]](function(_0xd0dex16){return _0xd0dex15[_0x946e[49]]({transaction:_0xd0dex16})[_0x946e[29]](function(_0xd0dex12){VoiceExtension[_0x946e[47]]({interval:_0xd0dex12[_0x946e[8]]},{where:{IntervalId:_0xd0dex12[_0x946e[35]]}},{transaction:_0xd0dex16})})})[_0x946e[29]](function(){return _0xd0dex7[_0x946e[28]](200)[_0x946e[27]](_0xd0dex12)})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)});})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)});})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)})};exports[_0x946e[52]]=function(_0xd0dex6,_0xd0dex7){Interval[_0x946e[37]](_0xd0dex6[_0x946e[36]][_0x946e[35]])[_0x946e[29]](function(_0xd0dex12){if(!_0xd0dex12){return _0xd0dex7[_0x946e[34]](404)};_0xd0dex12[_0x946e[54]]({where:{isApp:true}})[_0x946e[29]](function(_0xd0dex17){console[_0x946e[41]](_0xd0dex17[_0x946e[44]]);if(_0xd0dex17[_0x946e[44]]>0){return _0xd0dex7[_0x946e[28]](500)[_0x946e[27]]({message:_0x946e[53]})};_0xd0dex12[_0x946e[52]]()[_0x946e[29]](function(){return _0xd0dex7[_0x946e[34]](204)})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)});})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)});})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)})};exports[_0x946e[55]]=function(_0xd0dex6,_0xd0dex7){var _0xd0dex18=false;Interval[_0x946e[32]]({where:{id:_0xd0dex6[_0x946e[10]][_0x946e[35]]},include:[{all:true}]})[_0x946e[29]](function(_0xd0dex11){if(!_0xd0dex11){return _0xd0dex7[_0x946e[34]](404)};_0xd0dex11[_0x946e[22]](function(_0xd0dex19){if(_0xd0dex19[_0x946e[56]][_0x946e[44]]>0){_0xd0dex18=true}});if(_0xd0dex18){return _0xd0dex7[_0x946e[28]](500)[_0x946e[27]]({message:_0x946e[53]})};Interval[_0x946e[52]]({where:{id:_0xd0dex6[_0x946e[10]][_0x946e[35]]},individualHooks:true})[_0x946e[29]](function(){return _0xd0dex7[_0x946e[34]](204)})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)});})[_0x946e[26]](function(_0xd0dex10){return handleError(_0xd0dex7,_0xd0dex10)});};function handleError(_0xd0dex7,_0xd0dex10){return _0xd0dex7[_0x946e[28]](500)[_0x946e[27]](_0xd0dex10)}
\ No newline at end of file
-var _0xb2d4=["\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"];_0xb2d4[0];var Interval=require(_0xb2d4[2])[_0xb2d4[1]];exports[_0xb2d4[3]]=function(_0x3284x2){Interval[_0xb2d4[4]](function(_0x3284x3){onSave(_0x3284x2,_0x3284x3)});Interval[_0xb2d4[5]](function(_0x3284x3){onRemove(_0x3284x2,_0x3284x3)});Interval[_0xb2d4[6]](function(_0x3284x3){onUpdate(_0x3284x2,_0x3284x3)});};function onSave(_0x3284x2,_0x3284x3,_0x3284x5){_0x3284x2[_0xb2d4[8]](_0xb2d4[7],_0x3284x3)}function onRemove(_0x3284x2,_0x3284x3,_0x3284x5){_0x3284x2[_0xb2d4[8]](_0xb2d4[9],_0x3284x3)}function onUpdate(_0x3284x2,_0x3284x3,_0x3284x5){_0x3284x2[_0xb2d4[8]](_0xb2d4[10],_0x3284x3)}
\ No newline at end of file
+var _0x62df=["\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"];_0x62df[0];var Interval=require(_0x62df[2])[_0x62df[1]];exports[_0x62df[3]]=function(_0xfe36x2){Interval[_0x62df[4]](function(_0xfe36x3){onSave(_0xfe36x2,_0xfe36x3)});Interval[_0x62df[5]](function(_0xfe36x3){onRemove(_0xfe36x2,_0xfe36x3)});Interval[_0x62df[6]](function(_0xfe36x3){onUpdate(_0xfe36x2,_0xfe36x3)});};function onSave(_0xfe36x2,_0xfe36x3,_0xfe36x5){_0xfe36x2[_0x62df[8]](_0x62df[7],_0xfe36x3)}function onRemove(_0xfe36x2,_0xfe36x3,_0xfe36x5){_0xfe36x2[_0x62df[8]](_0x62df[9],_0xfe36x3)}function onUpdate(_0xfe36x2,_0xfe36x3,_0xfe36x5){_0xfe36x2[_0x62df[8]](_0x62df[10],_0xfe36x3)}
\ No newline at end of file
-var _0x39f3=["\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"];_0x39f3[0];var should=require(_0x39f3[1]);var app=require(_0x39f3[2]);var request=require(_0x39f3[3]);describe(_0x39f3[4],function(){it(_0x39f3[5],function(_0xbf36x4){request(app)[_0x39f3[13]](_0x39f3[12])[_0x39f3[11]](200)[_0x39f3[11]](_0x39f3[10],/json/)[_0x39f3[9]](function(_0xbf36x5,_0xbf36x6){if(_0xbf36x5){return _0xbf36x4(_0xbf36x5)};_0xbf36x6[_0x39f3[8]][_0x39f3[1]][_0x39f3[7]][_0x39f3[6]](Array);_0xbf36x4();})})});
\ No newline at end of file
+var _0xeb56=["\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"];_0xeb56[0];var should=require(_0xeb56[1]);var app=require(_0xeb56[2]);var request=require(_0xeb56[3]);describe(_0xeb56[4],function(){it(_0xeb56[5],function(_0x37bcx4){request(app)[_0xeb56[13]](_0xeb56[12])[_0xeb56[11]](200)[_0xeb56[11]](_0xeb56[10],/json/)[_0xeb56[9]](function(_0x37bcx5,_0x37bcx6){if(_0x37bcx5){return _0x37bcx4(_0x37bcx5)};_0x37bcx6[_0xeb56[8]][_0xeb56[1]][_0xeb56[7]][_0xeb56[6]](Array);_0x37bcx4();})})});
\ No newline at end of file
-var _0x1cf9=["\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"];_0x1cf9[0];var express=require(_0x1cf9[1]);var auth=require(_0x1cf9[2]);var controller=require(_0x1cf9[3]);var router=express.Router();router[_0x1cf9[7]](_0x1cf9[4],auth[_0x1cf9[5]](),controller[_0x1cf9[6]]);router[_0x1cf9[10]](_0x1cf9[8],auth[_0x1cf9[5]](),controller[_0x1cf9[9]]);module[_0x1cf9[11]]=router;
\ No newline at end of file
+var _0x511a=["\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"];_0x511a[0];var express=require(_0x511a[1]);var auth=require(_0x511a[2]);var controller=require(_0x511a[3]);var router=express.Router();router[_0x511a[7]](_0x511a[4],auth[_0x511a[5]](),controller[_0x511a[6]]);router[_0x511a[10]](_0x511a[8],auth[_0x511a[5]](),controller[_0x511a[9]]);module[_0x511a[11]]=router;
\ No newline at end of file
-var _0xe625=["\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"];_0xe625[0];var _=require(_0xe625[1]);var rp=require(_0xe625[2]);var config=require(_0xe625[3]);var license=require(_0xe625[4]);var Settings=require(_0xe625[6])[_0xe625[5]];function handleError(_0xc1a3x7,_0xc1a3x8){_0xc1a3x8=_0xc1a3x8||500;return function(_0xc1a3x9){_0xc1a3x7[_0xe625[8]](_0xc1a3x8)[_0xe625[7]](_0xc1a3x9)};}function responseWithResult(_0xc1a3x7,_0xc1a3x8){_0xc1a3x8=_0xc1a3x8||200;return function(_0xc1a3xb){if(_0xc1a3xb){if(_0xc1a3xb[_0xe625[9]]){_0xc1a3xb[_0xe625[10]][_0xe625[9]]=license[_0xe625[11]](_0xc1a3xb[_0xe625[10]][_0xe625[9]]);_0xc1a3xb[_0xe625[10]][_0xe625[9]]=JSON[_0xe625[12]](_0xc1a3xb[_0xe625[10]][_0xe625[9]]);};console[_0xe625[14]](_0xe625[13],_0xc1a3xb[_0xe625[10]]);_0xc1a3x7[_0xe625[8]](_0xc1a3x8)[_0xe625[15]](_0xc1a3xb);}};}function handleEntityNotFound(_0xc1a3x7){return function(_0xc1a3xb){if(!_0xc1a3xb){_0xc1a3x7[_0xe625[8]](404)[_0xe625[16]]();return null;};return _0xc1a3xb;}}function saveUpdates(_0xc1a3xe){return function(_0xc1a3xb){return _0xc1a3xb[_0xe625[18]](_0xc1a3xe)[_0xe625[17]](function(_0xc1a3xf){return _0xc1a3xf})}}function removeEntity(_0xc1a3x7){return function(_0xc1a3xb){if(_0xc1a3xb){return _0xc1a3xb[_0xe625[19]]()[_0xe625[17]](function(){_0xc1a3x7[_0xe625[8]](204)[_0xe625[16]]()})}}}exports[_0xe625[20]]=function(_0xc1a3x11,_0xc1a3x7){Settings[_0xe625[22]](1)[_0xe625[17]](handleEntityNotFound(_0xc1a3x7))[_0xe625[17]](responseWithResult(_0xc1a3x7))[_0xe625[21]](handleError(_0xc1a3x7))};exports[_0xe625[23]]=function(_0xc1a3x11,_0xc1a3x7){};exports[_0xe625[24]]=function(_0xc1a3x11,_0xc1a3x7){};exports[_0xe625[25]]=function(_0xc1a3x11,_0xc1a3x7){return rp({method:_0xe625[27],uri:config[_0xe625[28]]+_0xe625[29]+config[_0xe625[30]]+_0xe625[31],body:_0xc1a3x11[_0xe625[32]],json:true})[_0xe625[17]](function(_0xc1a3x12){console[_0xe625[14]](_0xc1a3x12);_0xc1a3x7[_0xe625[8]](201)[_0xe625[7]](_0xc1a3x12);})[_0xe625[21]](function(_0xc1a3x9){console[_0xe625[14]](_0xc1a3x9);return _0xc1a3x7[_0xe625[8]](_0xc1a3x9[_0xe625[26]]||500)[_0xe625[7]](_0xc1a3x9);})};exports[_0xe625[33]]=function(_0xc1a3x11,_0xc1a3x7){};exports[_0xe625[19]]=function(_0xc1a3x11,_0xc1a3x7){};
\ No newline at end of file
+var _0xdb5c=["\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"];_0xdb5c[0];var _=require(_0xdb5c[1]);var rp=require(_0xdb5c[2]);var config=require(_0xdb5c[3]);var license=require(_0xdb5c[4]);var Settings=require(_0xdb5c[6])[_0xdb5c[5]];function handleError(_0xe8f2x7,_0xe8f2x8){_0xe8f2x8=_0xe8f2x8||500;return function(_0xe8f2x9){_0xe8f2x7[_0xdb5c[8]](_0xe8f2x8)[_0xdb5c[7]](_0xe8f2x9)};}function responseWithResult(_0xe8f2x7,_0xe8f2x8){_0xe8f2x8=_0xe8f2x8||200;return function(_0xe8f2xb){if(_0xe8f2xb){if(_0xe8f2xb[_0xdb5c[9]]){_0xe8f2xb[_0xdb5c[10]][_0xdb5c[9]]=license[_0xdb5c[11]](_0xe8f2xb[_0xdb5c[10]][_0xdb5c[9]]);_0xe8f2xb[_0xdb5c[10]][_0xdb5c[9]]=JSON[_0xdb5c[12]](_0xe8f2xb[_0xdb5c[10]][_0xdb5c[9]]);};console[_0xdb5c[14]](_0xdb5c[13],_0xe8f2xb[_0xdb5c[10]]);_0xe8f2x7[_0xdb5c[8]](_0xe8f2x8)[_0xdb5c[15]](_0xe8f2xb);}};}function handleEntityNotFound(_0xe8f2x7){return function(_0xe8f2xb){if(!_0xe8f2xb){_0xe8f2x7[_0xdb5c[8]](404)[_0xdb5c[16]]();return null;};return _0xe8f2xb;}}function saveUpdates(_0xe8f2xe){return function(_0xe8f2xb){return _0xe8f2xb[_0xdb5c[18]](_0xe8f2xe)[_0xdb5c[17]](function(_0xe8f2xf){return _0xe8f2xf})}}function removeEntity(_0xe8f2x7){return function(_0xe8f2xb){if(_0xe8f2xb){return _0xe8f2xb[_0xdb5c[19]]()[_0xdb5c[17]](function(){_0xe8f2x7[_0xdb5c[8]](204)[_0xdb5c[16]]()})}}}exports[_0xdb5c[20]]=function(_0xe8f2x11,_0xe8f2x7){Settings[_0xdb5c[22]](1)[_0xdb5c[17]](handleEntityNotFound(_0xe8f2x7))[_0xdb5c[17]](responseWithResult(_0xe8f2x7))[_0xdb5c[21]](handleError(_0xe8f2x7))};exports[_0xdb5c[23]]=function(_0xe8f2x11,_0xe8f2x7){};exports[_0xdb5c[24]]=function(_0xe8f2x11,_0xe8f2x7){};exports[_0xdb5c[25]]=function(_0xe8f2x11,_0xe8f2x7){return rp({method:_0xdb5c[27],uri:config[_0xdb5c[28]]+_0xdb5c[29]+config[_0xdb5c[30]]+_0xdb5c[31],body:_0xe8f2x11[_0xdb5c[32]],json:true})[_0xdb5c[17]](function(_0xe8f2x12){console[_0xdb5c[14]](_0xe8f2x12);_0xe8f2x7[_0xdb5c[8]](201)[_0xdb5c[7]](_0xe8f2x12);})[_0xdb5c[21]](function(_0xe8f2x9){console[_0xdb5c[14]](_0xe8f2x9);return _0xe8f2x7[_0xdb5c[8]](_0xe8f2x9[_0xdb5c[26]]||500)[_0xdb5c[7]](_0xe8f2x9);})};exports[_0xdb5c[33]]=function(_0xe8f2x11,_0xe8f2x7){};exports[_0xdb5c[19]]=function(_0xe8f2x11,_0xe8f2x7){};
\ No newline at end of file
-var _0xfeea=["\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"];_0xfeea[0];exports[_0xfeea[1]]=function(_0x41dbx1){};function onSave(_0x41dbx1,_0x41dbx3,_0x41dbx4){_0x41dbx1[_0xfeea[3]](_0xfeea[2],_0x41dbx3)}function onRemove(_0x41dbx1,_0x41dbx3,_0x41dbx4){_0x41dbx1[_0xfeea[3]](_0xfeea[4],_0x41dbx3)}
\ No newline at end of file
+var _0x5719=["\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"];_0x5719[0];exports[_0x5719[1]]=function(_0xb75fx1){};function onSave(_0xb75fx1,_0xb75fx3,_0xb75fx4){_0xb75fx1[_0x5719[3]](_0x5719[2],_0xb75fx3)}function onRemove(_0xb75fx1,_0xb75fx3,_0xb75fx4){_0xb75fx1[_0x5719[3]](_0x5719[4],_0xb75fx3)}
\ No newline at end of file
-var _0x86e5=["\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"];_0x86e5[0];var express=require(_0x86e5[1]);var controller=require(_0x86e5[2]);var router=express.Router();router[_0x86e5[5]](_0x86e5[3],controller[_0x86e5[4]]);router[_0x86e5[5]](_0x86e5[6],controller[_0x86e5[7]]);router[_0x86e5[9]](_0x86e5[3],controller[_0x86e5[8]]);router[_0x86e5[9]](_0x86e5[10],controller[_0x86e5[11]]);router[_0x86e5[13]](_0x86e5[6],controller[_0x86e5[12]]);router[_0x86e5[14]](_0x86e5[6],controller[_0x86e5[12]]);router[_0x86e5[16]](_0x86e5[3],controller[_0x86e5[15]]);router[_0x86e5[16]](_0x86e5[6],controller[_0x86e5[17]]);module[_0x86e5[18]]=router;
\ No newline at end of file
+var _0xa96e=["\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"];_0xa96e[0];var express=require(_0xa96e[1]);var controller=require(_0xa96e[2]);var router=express.Router();router[_0xa96e[5]](_0xa96e[3],controller[_0xa96e[4]]);router[_0xa96e[5]](_0xa96e[6],controller[_0xa96e[7]]);router[_0xa96e[9]](_0xa96e[3],controller[_0xa96e[8]]);router[_0xa96e[9]](_0xa96e[10],controller[_0xa96e[11]]);router[_0xa96e[13]](_0xa96e[6],controller[_0xa96e[12]]);router[_0xa96e[14]](_0xa96e[6],controller[_0xa96e[12]]);router[_0xa96e[16]](_0xa96e[3],controller[_0xa96e[15]]);router[_0xa96e[16]](_0xa96e[6],controller[_0xa96e[17]]);module[_0xa96e[18]]=router;
\ No newline at end of file
-var _0xd326=["\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"];_0xd326[0];var _=require(_0xd326[1]);var util=require(_0xd326[2]);var async=require(_0xd326[3]);var sequelize=require(_0xd326[5])[_0xd326[4]];var MailAccount=require(_0xd326[5])[_0xd326[6]];var MailApplication=require(_0xd326[5])[_0xd326[7]];var MailServerIn=require(_0xd326[5])[_0xd326[8]];var MailServerOut=require(_0xd326[5])[_0xd326[9]];exports[_0xd326[10]]=function(_0x74d5x9,_0x74d5xa){var _0x74d5xb=[_0xd326[11],_0xd326[12],_0xd326[13]];var _0x74d5xc=_0x74d5x9[_0xd326[15]][_0xd326[14]]?parseInt(_0x74d5x9[_0xd326[15]][_0xd326[14]],10):100;var _0x74d5xd=_0x74d5x9[_0xd326[15]][_0xd326[16]]?parseInt(_0x74d5x9[_0xd326[15]][_0xd326[16]],10):0;var _0x74d5xe={where:{},limit:_0x74d5xc,offset:_0x74d5xd*_0x74d5xc,include:[{all:true}]};_[_0xd326[30]](_0x74d5x9[_0xd326[15]],function(_0x74d5xf,_0x74d5x10){switch(_0x74d5x10){case _0xd326[14]:;case _0xd326[16]:break ;;case _0xd326[19]:_0x74d5xe[_0xd326[17]]=util[_0xd326[22]](_0xd326[18],_0x74d5x9[_0xd326[15]][_0xd326[19]],_0x74d5x9[_0xd326[15]][_0xd326[20]]||_0xd326[21])||null;break ;;case _0xd326[20]:break ;;case _0xd326[28]:_0x74d5xe[_0xd326[24]][_0xd326[23]]=[];_0x74d5xb[_0xd326[27]](function(_0x74d5x11){var _0x74d5x12={};_0x74d5x12[_0x74d5x11]={$like:_0xd326[25]+_0x74d5xf+_0xd326[25]};_0x74d5xe[_0xd326[24]][_0xd326[23]][_0xd326[26]](_0x74d5x12);});break ;;default:_0x74d5xe[_0xd326[24]][_0x74d5x10]={$like:{}};_0x74d5xe[_0xd326[24]][_0x74d5x10][_0xd326[29]]=_0xd326[25]+_0x74d5xf+_0xd326[25];;}});MailAccount[_0xd326[44]](_0x74d5xe)[_0xd326[43]](function(_0x74d5x14){var _0x74d5x15=Math[_0xd326[33]](_0x74d5x14[_0xd326[32]]/_0x74d5xc);var _0x74d5x16=_0x74d5x15>(_0x74d5xe[_0xd326[34]]+1)?util[_0xd326[22]](_0xd326[35],_0x74d5x9[_0xd326[36]],_0x74d5x9[_0xd326[38]][_0xd326[37]],_0x74d5x9[_0xd326[39]],_0x74d5xd+1):null;var _0x74d5x17=_0x74d5xd>0?util[_0xd326[22]](_0xd326[35],_0x74d5x9[_0xd326[36]],_0x74d5x9[_0xd326[38]][_0xd326[37]],_0x74d5x9[_0xd326[39]],_0x74d5xd-1):null;_0x74d5xa[_0xd326[42]](200)[_0xd326[41]]({count:_0x74d5x14[_0xd326[32]],rows:_0x74d5x14[_0xd326[40]],next_page:_0x74d5x16,previous_page:_0x74d5x17,total_pages:_0x74d5x15});})[_0xd326[31]](function(_0x74d5x13){return handleError(_0x74d5xa,_0x74d5x13)});};exports[_0xd326[45]]=function(_0x74d5x9,_0x74d5xa,_0x74d5x18){MailAccount[_0xd326[49]](_0x74d5x9[_0xd326[48]][_0xd326[47]],{include:[{all:true}]})[_0xd326[43]](function(_0x74d5x19){if(!_0x74d5x19){return _0x74d5xa[_0xd326[46]](404)};return _0x74d5xa[_0xd326[41]](_0x74d5x19);})[_0xd326[31]](function(_0x74d5x13){return _0x74d5x18(_0x74d5x13)})};exports[_0xd326[50]]=function(_0x74d5x9,_0x74d5xa,_0x74d5x18){return sequelize[_0xd326[55]](function(_0x74d5x1a){return MailAccount[_0xd326[50]]({name:_0x74d5x9[_0xd326[53]][_0xd326[12]],address:_0x74d5x9[_0xd326[53]][_0xd326[13]],description:_0x74d5x9[_0xd326[53]][_0xd326[11]]},{transaction:_0x74d5x1a})[_0xd326[43]](function(_0x74d5x19){_0x74d5x9[_0xd326[53]][_0xd326[52]][_0xd326[51]]=_0x74d5x19[_0xd326[47]];return MailServerIn[_0xd326[50]](_0x74d5x9[_0xd326[53]][_0xd326[52]],{transaction:_0x74d5x1a})[_0xd326[43]](function(_0x74d5x1b){_0x74d5x9[_0xd326[53]][_0xd326[54]][_0xd326[51]]=_0x74d5x19[_0xd326[47]];return MailServerOut[_0xd326[50]](_0x74d5x9[_0xd326[53]][_0xd326[54]],{transaction:_0x74d5x1a});});})})[_0xd326[43]](function(_0x74d5x14){return _0x74d5xa[_0xd326[42]](201)[_0xd326[41]](_0x74d5x14)})[_0xd326[31]](function(_0x74d5x13){return _0x74d5x18(_0x74d5x13)})};exports[_0xd326[56]]=function(_0x74d5x9,_0x74d5xa){if(_0x74d5x9[_0xd326[53]][_0xd326[47]]){delete _0x74d5x9[_0xd326[53]][_0xd326[47]]};MailAccount[_0xd326[49]](_0x74d5x9[_0xd326[48]][_0xd326[47]])[_0xd326[43]](function(_0x74d5x19){if(!_0x74d5x19){return _0x74d5xa[_0xd326[46]](404)};var _0x74d5x1c=_[_0xd326[57]](_0x74d5x19,_0x74d5x9[_0xd326[53]]);_0x74d5x1c[_0xd326[58]]()[_0xd326[43]](function(){return _0x74d5xa[_0xd326[42]](200)[_0xd326[41]](_0x74d5x19)})[_0xd326[31]](function(_0x74d5x13){return handleError(_0x74d5xa,_0x74d5x13)});})[_0xd326[31]](function(_0x74d5x13){return handleError(_0x74d5xa,_0x74d5x13)});};exports[_0xd326[59]]=function(_0x74d5x9,_0x74d5xa,_0x74d5x18){MailApplication[_0xd326[68]]({where:{id:_0x74d5x9[_0xd326[53]][_0xd326[62]]}})[_0xd326[43]](function(_0x74d5x1d){var _0x74d5x1e=_0x74d5x1d;async[_0xd326[69]]([function(_0x74d5x1f){MailApplication[_0xd326[60]]({where:{id:_0x74d5x9[_0xd326[53]][_0xd326[62]]}})[_0xd326[43]](function(){console[_0xd326[61]](_0xd326[60]);_0x74d5x1f();})[_0xd326[31]](function(_0x74d5x13){_0x74d5x1f(_0x74d5x13)})},function(_0x74d5x1f){var _0x74d5x20=[];for(var _0x74d5x21=0;_0x74d5x21<_0x74d5x9[_0xd326[53]][_0xd326[62]][_0xd326[63]];_0x74d5x21++){var _0x74d5x22=_[_0xd326[64]](_0x74d5x1e,{"\x69\x64":_0x74d5x9[_0xd326[53]][_0xd326[62]][_0x74d5x21]});if(_0x74d5x22){_0x74d5x22[_0xd326[65]]=_0x74d5x21+1;_0x74d5x20[_0xd326[26]](_0x74d5x22[_0xd326[66]]);};};MailApplication[_0xd326[67]](_0x74d5x20)[_0xd326[43]](function(){console[_0xd326[61]](_0xd326[67]);_0x74d5x1f();})[_0xd326[31]](function(_0x74d5x13){_0x74d5x1f(_0x74d5x13)});},function(_0x74d5x1f){MailApplication[_0xd326[68]]({where:{id:_0x74d5x9[_0xd326[53]][_0xd326[62]]},order:_0xd326[65],include:[{all:true}]})[_0xd326[43]](function(_0x74d5x1d){console[_0xd326[61]](_0x74d5x1d);_0x74d5x1f(null,_0x74d5x1d);})[_0xd326[31]](function(_0x74d5x13){_0x74d5x1f(_0x74d5x13)})}],function(_0x74d5x13,_0x74d5x14){if(_0x74d5x13){return handleError(_0x74d5xa,_0x74d5x13)}else {return _0x74d5xa[_0xd326[42]](201)[_0xd326[41]](_0x74d5x14)}});})[_0xd326[31]](function(_0x74d5x13){return handleError(_0x74d5xa,_0x74d5x13)})};exports[_0xd326[60]]=function(_0x74d5x9,_0x74d5xa,_0x74d5x18){MailAccount[_0xd326[49]](_0x74d5x9[_0xd326[48]][_0xd326[47]])[_0xd326[43]](function(_0x74d5x19){if(!_0x74d5x19){return _0x74d5xa[_0xd326[46]](404)};_0x74d5x19[_0xd326[60]]()[_0xd326[43]](function(){return _0x74d5xa[_0xd326[46]](204)})[_0xd326[31]](function(_0x74d5x13){return _0x74d5x18(_0x74d5x13)});})[_0xd326[31]](function(_0x74d5x13){return _0x74d5x18(_0x74d5x13)})};exports[_0xd326[70]]=function(_0x74d5x9,_0x74d5xa){MailAccount[_0xd326[60]]({where:{id:_0x74d5x9[_0xd326[15]][_0xd326[47]]},individualHooks:true})[_0xd326[43]](function(){return _0x74d5xa[_0xd326[46]](204)})[_0xd326[31]](function(_0x74d5x13){return handleError(_0x74d5xa,_0x74d5x13)})};function handleError(_0x74d5xa,_0x74d5x13){return _0x74d5xa[_0xd326[42]](500)[_0xd326[41]](_0x74d5x13)}
\ No newline at end of file
+var _0xf5b1=["\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"];_0xf5b1[0];var _=require(_0xf5b1[1]);var util=require(_0xf5b1[2]);var async=require(_0xf5b1[3]);var sequelize=require(_0xf5b1[5])[_0xf5b1[4]];var MailAccount=require(_0xf5b1[5])[_0xf5b1[6]];var MailApplication=require(_0xf5b1[5])[_0xf5b1[7]];var MailServerIn=require(_0xf5b1[5])[_0xf5b1[8]];var MailServerOut=require(_0xf5b1[5])[_0xf5b1[9]];exports[_0xf5b1[10]]=function(_0x668ax9,_0x668axa){var _0x668axb=[_0xf5b1[11],_0xf5b1[12],_0xf5b1[13]];var _0x668axc=_0x668ax9[_0xf5b1[15]][_0xf5b1[14]]?parseInt(_0x668ax9[_0xf5b1[15]][_0xf5b1[14]],10):100;var _0x668axd=_0x668ax9[_0xf5b1[15]][_0xf5b1[16]]?parseInt(_0x668ax9[_0xf5b1[15]][_0xf5b1[16]],10):0;var _0x668axe={where:{},limit:_0x668axc,offset:_0x668axd*_0x668axc,include:[{all:true}]};_[_0xf5b1[30]](_0x668ax9[_0xf5b1[15]],function(_0x668axf,_0x668ax10){switch(_0x668ax10){case _0xf5b1[14]:;case _0xf5b1[16]:break ;;case _0xf5b1[19]:_0x668axe[_0xf5b1[17]]=util[_0xf5b1[22]](_0xf5b1[18],_0x668ax9[_0xf5b1[15]][_0xf5b1[19]],_0x668ax9[_0xf5b1[15]][_0xf5b1[20]]||_0xf5b1[21])||null;break ;;case _0xf5b1[20]:break ;;case _0xf5b1[28]:_0x668axe[_0xf5b1[24]][_0xf5b1[23]]=[];_0x668axb[_0xf5b1[27]](function(_0x668ax11){var _0x668ax12={};_0x668ax12[_0x668ax11]={$like:_0xf5b1[25]+_0x668axf+_0xf5b1[25]};_0x668axe[_0xf5b1[24]][_0xf5b1[23]][_0xf5b1[26]](_0x668ax12);});break ;;default:_0x668axe[_0xf5b1[24]][_0x668ax10]={$like:{}};_0x668axe[_0xf5b1[24]][_0x668ax10][_0xf5b1[29]]=_0xf5b1[25]+_0x668axf+_0xf5b1[25];;}});MailAccount[_0xf5b1[44]](_0x668axe)[_0xf5b1[43]](function(_0x668ax14){var _0x668ax15=Math[_0xf5b1[33]](_0x668ax14[_0xf5b1[32]]/_0x668axc);var _0x668ax16=_0x668ax15>(_0x668axe[_0xf5b1[34]]+1)?util[_0xf5b1[22]](_0xf5b1[35],_0x668ax9[_0xf5b1[36]],_0x668ax9[_0xf5b1[38]][_0xf5b1[37]],_0x668ax9[_0xf5b1[39]],_0x668axd+1):null;var _0x668ax17=_0x668axd>0?util[_0xf5b1[22]](_0xf5b1[35],_0x668ax9[_0xf5b1[36]],_0x668ax9[_0xf5b1[38]][_0xf5b1[37]],_0x668ax9[_0xf5b1[39]],_0x668axd-1):null;_0x668axa[_0xf5b1[42]](200)[_0xf5b1[41]]({count:_0x668ax14[_0xf5b1[32]],rows:_0x668ax14[_0xf5b1[40]],next_page:_0x668ax16,previous_page:_0x668ax17,total_pages:_0x668ax15});})[_0xf5b1[31]](function(_0x668ax13){return handleError(_0x668axa,_0x668ax13)});};exports[_0xf5b1[45]]=function(_0x668ax9,_0x668axa,_0x668ax18){MailAccount[_0xf5b1[49]](_0x668ax9[_0xf5b1[48]][_0xf5b1[47]],{include:[{all:true}]})[_0xf5b1[43]](function(_0x668ax19){if(!_0x668ax19){return _0x668axa[_0xf5b1[46]](404)};return _0x668axa[_0xf5b1[41]](_0x668ax19);})[_0xf5b1[31]](function(_0x668ax13){return _0x668ax18(_0x668ax13)})};exports[_0xf5b1[50]]=function(_0x668ax9,_0x668axa,_0x668ax18){return sequelize[_0xf5b1[55]](function(_0x668ax1a){return MailAccount[_0xf5b1[50]]({name:_0x668ax9[_0xf5b1[53]][_0xf5b1[12]],address:_0x668ax9[_0xf5b1[53]][_0xf5b1[13]],description:_0x668ax9[_0xf5b1[53]][_0xf5b1[11]]},{transaction:_0x668ax1a})[_0xf5b1[43]](function(_0x668ax19){_0x668ax9[_0xf5b1[53]][_0xf5b1[52]][_0xf5b1[51]]=_0x668ax19[_0xf5b1[47]];return MailServerIn[_0xf5b1[50]](_0x668ax9[_0xf5b1[53]][_0xf5b1[52]],{transaction:_0x668ax1a})[_0xf5b1[43]](function(_0x668ax1b){_0x668ax9[_0xf5b1[53]][_0xf5b1[54]][_0xf5b1[51]]=_0x668ax19[_0xf5b1[47]];return MailServerOut[_0xf5b1[50]](_0x668ax9[_0xf5b1[53]][_0xf5b1[54]],{transaction:_0x668ax1a});});})})[_0xf5b1[43]](function(_0x668ax14){return _0x668axa[_0xf5b1[42]](201)[_0xf5b1[41]](_0x668ax14)})[_0xf5b1[31]](function(_0x668ax13){return _0x668ax18(_0x668ax13)})};exports[_0xf5b1[56]]=function(_0x668ax9,_0x668axa){if(_0x668ax9[_0xf5b1[53]][_0xf5b1[47]]){delete _0x668ax9[_0xf5b1[53]][_0xf5b1[47]]};MailAccount[_0xf5b1[49]](_0x668ax9[_0xf5b1[48]][_0xf5b1[47]])[_0xf5b1[43]](function(_0x668ax19){if(!_0x668ax19){return _0x668axa[_0xf5b1[46]](404)};var _0x668ax1c=_[_0xf5b1[57]](_0x668ax19,_0x668ax9[_0xf5b1[53]]);_0x668ax1c[_0xf5b1[58]]()[_0xf5b1[43]](function(){return _0x668axa[_0xf5b1[42]](200)[_0xf5b1[41]](_0x668ax19)})[_0xf5b1[31]](function(_0x668ax13){return handleError(_0x668axa,_0x668ax13)});})[_0xf5b1[31]](function(_0x668ax13){return handleError(_0x668axa,_0x668ax13)});};exports[_0xf5b1[59]]=function(_0x668ax9,_0x668axa,_0x668ax18){MailApplication[_0xf5b1[68]]({where:{id:_0x668ax9[_0xf5b1[53]][_0xf5b1[62]]}})[_0xf5b1[43]](function(_0x668ax1d){var _0x668ax1e=_0x668ax1d;async[_0xf5b1[69]]([function(_0x668ax1f){MailApplication[_0xf5b1[60]]({where:{id:_0x668ax9[_0xf5b1[53]][_0xf5b1[62]]}})[_0xf5b1[43]](function(){console[_0xf5b1[61]](_0xf5b1[60]);_0x668ax1f();})[_0xf5b1[31]](function(_0x668ax13){_0x668ax1f(_0x668ax13)})},function(_0x668ax1f){var _0x668ax20=[];for(var _0x668ax21=0;_0x668ax21<_0x668ax9[_0xf5b1[53]][_0xf5b1[62]][_0xf5b1[63]];_0x668ax21++){var _0x668ax22=_[_0xf5b1[64]](_0x668ax1e,{"\x69\x64":_0x668ax9[_0xf5b1[53]][_0xf5b1[62]][_0x668ax21]});if(_0x668ax22){_0x668ax22[_0xf5b1[65]]=_0x668ax21+1;_0x668ax20[_0xf5b1[26]](_0x668ax22[_0xf5b1[66]]);};};MailApplication[_0xf5b1[67]](_0x668ax20)[_0xf5b1[43]](function(){console[_0xf5b1[61]](_0xf5b1[67]);_0x668ax1f();})[_0xf5b1[31]](function(_0x668ax13){_0x668ax1f(_0x668ax13)});},function(_0x668ax1f){MailApplication[_0xf5b1[68]]({where:{id:_0x668ax9[_0xf5b1[53]][_0xf5b1[62]]},order:_0xf5b1[65],include:[{all:true}]})[_0xf5b1[43]](function(_0x668ax1d){console[_0xf5b1[61]](_0x668ax1d);_0x668ax1f(null,_0x668ax1d);})[_0xf5b1[31]](function(_0x668ax13){_0x668ax1f(_0x668ax13)})}],function(_0x668ax13,_0x668ax14){if(_0x668ax13){return handleError(_0x668axa,_0x668ax13)}else {return _0x668axa[_0xf5b1[42]](201)[_0xf5b1[41]](_0x668ax14)}});})[_0xf5b1[31]](function(_0x668ax13){return handleError(_0x668axa,_0x668ax13)})};exports[_0xf5b1[60]]=function(_0x668ax9,_0x668axa,_0x668ax18){MailAccount[_0xf5b1[49]](_0x668ax9[_0xf5b1[48]][_0xf5b1[47]])[_0xf5b1[43]](function(_0x668ax19){if(!_0x668ax19){return _0x668axa[_0xf5b1[46]](404)};_0x668ax19[_0xf5b1[60]]()[_0xf5b1[43]](function(){return _0x668axa[_0xf5b1[46]](204)})[_0xf5b1[31]](function(_0x668ax13){return _0x668ax18(_0x668ax13)});})[_0xf5b1[31]](function(_0x668ax13){return _0x668ax18(_0x668ax13)})};exports[_0xf5b1[70]]=function(_0x668ax9,_0x668axa){MailAccount[_0xf5b1[60]]({where:{id:_0x668ax9[_0xf5b1[15]][_0xf5b1[47]]},individualHooks:true})[_0xf5b1[43]](function(){return _0x668axa[_0xf5b1[46]](204)})[_0xf5b1[31]](function(_0x668ax13){return handleError(_0x668axa,_0x668ax13)})};function handleError(_0x668axa,_0x668ax13){return _0x668axa[_0xf5b1[42]](500)[_0xf5b1[41]](_0x668ax13)}
\ No newline at end of file
-var _0x5ae2=["\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"];_0x5ae2[0];var MailAccount=require(_0x5ae2[2])[_0x5ae2[1]];exports[_0x5ae2[3]]=function(_0x9b90x2){MailAccount[_0x5ae2[4]](function(_0x9b90x3){onSave(_0x9b90x2,_0x9b90x3)});MailAccount[_0x5ae2[5]](function(_0x9b90x3){onSave(_0x9b90x2,_0x9b90x3)});MailAccount[_0x5ae2[6]](function(_0x9b90x3){onRemove(_0x9b90x2,_0x9b90x3)});};function onSave(_0x9b90x2,_0x9b90x3,_0x9b90x5){_0x9b90x2[_0x5ae2[8]](_0x5ae2[7],_0x9b90x3)}function onRemove(_0x9b90x2,_0x9b90x3,_0x9b90x5){_0x9b90x2[_0x5ae2[8]](_0x5ae2[9],_0x9b90x3)}
\ No newline at end of file
+var _0x2b3a=["\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"];_0x2b3a[0];var MailAccount=require(_0x2b3a[2])[_0x2b3a[1]];exports[_0x2b3a[3]]=function(_0x4bebx2){MailAccount[_0x2b3a[4]](function(_0x4bebx3){onSave(_0x4bebx2,_0x4bebx3)});MailAccount[_0x2b3a[5]](function(_0x4bebx3){onSave(_0x4bebx2,_0x4bebx3)});MailAccount[_0x2b3a[6]](function(_0x4bebx3){onRemove(_0x4bebx2,_0x4bebx3)});};function onSave(_0x4bebx2,_0x4bebx3,_0x4bebx5){_0x4bebx2[_0x2b3a[8]](_0x2b3a[7],_0x4bebx3)}function onRemove(_0x4bebx2,_0x4bebx3,_0x4bebx5){_0x4bebx2[_0x2b3a[8]](_0x2b3a[9],_0x4bebx3)}
\ No newline at end of file
-var _0x5ee0=["\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"];_0x5ee0[0];var should=require(_0x5ee0[1]);var app=require(_0x5ee0[2]);var request=require(_0x5ee0[3]);describe(_0x5ee0[4],function(){it(_0x5ee0[5],function(_0x96b7x4){request(app)[_0x5ee0[13]](_0x5ee0[12])[_0x5ee0[11]](200)[_0x5ee0[11]](_0x5ee0[10],/json/)[_0x5ee0[9]](function(_0x96b7x5,_0x96b7x6){if(_0x96b7x5){return _0x96b7x4(_0x96b7x5)};_0x96b7x6[_0x5ee0[8]][_0x5ee0[1]][_0x5ee0[7]][_0x5ee0[6]](Array);_0x96b7x4();})})});
\ No newline at end of file
+var _0xda99=["\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"];_0xda99[0];var should=require(_0xda99[1]);var app=require(_0xda99[2]);var request=require(_0xda99[3]);describe(_0xda99[4],function(){it(_0xda99[5],function(_0x364dx4){request(app)[_0xda99[13]](_0xda99[12])[_0xda99[11]](200)[_0xda99[11]](_0xda99[10],/json/)[_0xda99[9]](function(_0x364dx5,_0x364dx6){if(_0x364dx5){return _0x364dx4(_0x364dx5)};_0x364dx6[_0xda99[8]][_0xda99[1]][_0xda99[7]][_0xda99[6]](Array);_0x364dx4();})})});
\ No newline at end of file
-var _0xadeb=["\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"];_0xadeb[0];var express=require(_0xadeb[1]);var controller=require(_0xadeb[2]);var router=express.Router();router[_0xadeb[5]](_0xadeb[3],controller[_0xadeb[4]]);router[_0xadeb[5]](_0xadeb[6],controller[_0xadeb[7]]);router[_0xadeb[9]](_0xadeb[3],controller[_0xadeb[8]]);router[_0xadeb[11]](_0xadeb[6],controller[_0xadeb[10]]);router[_0xadeb[12]](_0xadeb[6],controller[_0xadeb[10]]);router[_0xadeb[14]](_0xadeb[6],controller[_0xadeb[13]]);module[_0xadeb[15]]=router;
\ No newline at end of file
+var _0x300d=["\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"];_0x300d[0];var express=require(_0x300d[1]);var controller=require(_0x300d[2]);var router=express.Router();router[_0x300d[5]](_0x300d[3],controller[_0x300d[4]]);router[_0x300d[5]](_0x300d[6],controller[_0x300d[7]]);router[_0x300d[9]](_0x300d[3],controller[_0x300d[8]]);router[_0x300d[11]](_0x300d[6],controller[_0x300d[10]]);router[_0x300d[12]](_0x300d[6],controller[_0x300d[10]]);router[_0x300d[14]](_0x300d[6],controller[_0x300d[13]]);module[_0x300d[15]]=router;
\ No newline at end of file
-var _0x75bf=["\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"];_0x75bf[0];var _=require(_0x75bf[1]);var MailApplication=require(_0x75bf[3])[_0x75bf[2]];exports[_0x75bf[4]]=function(_0xd4f8x3,_0xd4f8x4,_0xd4f8x5){MailApplication[_0x75bf[11]]({where:_0xd4f8x3[_0x75bf[9]],order:_0x75bf[10],include:[{all:true}]})[_0x75bf[8]](function(_0xd4f8x7){return _0xd4f8x4[_0x75bf[7]](200)[_0x75bf[6]](_0xd4f8x7)})[_0x75bf[5]](function(_0xd4f8x6){return handleError(_0xd4f8x4,_0xd4f8x6)})};exports[_0x75bf[12]]=function(_0xd4f8x3,_0xd4f8x4,_0xd4f8x5){MailApplication[_0x75bf[16]](_0xd4f8x3[_0x75bf[15]][_0x75bf[14]],{include:[{all:true}]})[_0x75bf[8]](function(_0xd4f8x8){if(!_0xd4f8x8){return _0xd4f8x4[_0x75bf[13]](404)};return _0xd4f8x4[_0x75bf[6]](_0xd4f8x8);})[_0x75bf[5]](function(_0xd4f8x6){return handleError(_0xd4f8x4,_0xd4f8x6)})};exports[_0x75bf[17]]=function(_0xd4f8x3,_0xd4f8x4,_0xd4f8x5){MailApplication[_0x75bf[20]](_0x75bf[10],{where:{MailAccountId:_0xd4f8x3[_0x75bf[18]][_0x75bf[19]]}})[_0x75bf[8]](function(_0xd4f8x9){_0xd4f8x3[_0x75bf[18]][_0x75bf[10]]=_0xd4f8x9?++_0xd4f8x9:1;MailApplication[_0x75bf[17]](_0xd4f8x3[_0x75bf[18]])[_0x75bf[8]](function(_0xd4f8x8){return _0xd4f8x4[_0x75bf[7]](201)[_0x75bf[6]](_0xd4f8x8)})[_0x75bf[5]](function(_0xd4f8x6){return handleError(_0xd4f8x4,_0xd4f8x6)});})[_0x75bf[5]](function(_0xd4f8x6){return handleError(_0xd4f8x4,_0xd4f8x6)})};exports[_0x75bf[21]]=function(_0xd4f8x3,_0xd4f8x4,_0xd4f8x5){if(_0xd4f8x3[_0x75bf[18]][_0x75bf[14]]){delete _0xd4f8x3[_0x75bf[18]][_0x75bf[14]]};MailApplication[_0x75bf[16]](_0xd4f8x3[_0x75bf[15]][_0x75bf[14]])[_0x75bf[8]](function(_0xd4f8x8){if(!_0xd4f8x8){return _0xd4f8x4[_0x75bf[13]](404)};var _0xd4f8xa=_[_0x75bf[22]](_0xd4f8x8,_0xd4f8x3[_0x75bf[18]]);_0xd4f8xa[_0x75bf[23]]()[_0x75bf[8]](function(){return _0xd4f8x4[_0x75bf[7]](200)[_0x75bf[6]](_0xd4f8x8)})[_0x75bf[5]](function(_0xd4f8x6){return handleError(_0xd4f8x4,_0xd4f8x6)});})[_0x75bf[5]](function(_0xd4f8x6){return handleError(_0xd4f8x4,_0xd4f8x6)});};exports[_0x75bf[24]]=function(_0xd4f8x3,_0xd4f8x4,_0xd4f8x5){MailApplication[_0x75bf[16]](_0xd4f8x3[_0x75bf[15]][_0x75bf[14]])[_0x75bf[8]](function(_0xd4f8x8){if(!_0xd4f8x8){return _0xd4f8x4[_0x75bf[13]](404)};_0xd4f8x8[_0x75bf[24]]()[_0x75bf[8]](function(){return _0xd4f8x4[_0x75bf[13]](204)})[_0x75bf[5]](function(_0xd4f8x6){return handleError(_0xd4f8x4,_0xd4f8x6)});})[_0x75bf[5]](function(_0xd4f8x6){return handleError(_0xd4f8x4,_0xd4f8x6)})};function handleError(_0xd4f8x4,_0xd4f8x6){return _0xd4f8x4[_0x75bf[7]](500)[_0x75bf[6]](_0xd4f8x6)}
\ No newline at end of file
+var _0x5189=["\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"];_0x5189[0];var _=require(_0x5189[1]);var MailApplication=require(_0x5189[3])[_0x5189[2]];exports[_0x5189[4]]=function(_0x79bax3,_0x79bax4,_0x79bax5){MailApplication[_0x5189[11]]({where:_0x79bax3[_0x5189[9]],order:_0x5189[10],include:[{all:true}]})[_0x5189[8]](function(_0x79bax7){return _0x79bax4[_0x5189[7]](200)[_0x5189[6]](_0x79bax7)})[_0x5189[5]](function(_0x79bax6){return handleError(_0x79bax4,_0x79bax6)})};exports[_0x5189[12]]=function(_0x79bax3,_0x79bax4,_0x79bax5){MailApplication[_0x5189[16]](_0x79bax3[_0x5189[15]][_0x5189[14]],{include:[{all:true}]})[_0x5189[8]](function(_0x79bax8){if(!_0x79bax8){return _0x79bax4[_0x5189[13]](404)};return _0x79bax4[_0x5189[6]](_0x79bax8);})[_0x5189[5]](function(_0x79bax6){return handleError(_0x79bax4,_0x79bax6)})};exports[_0x5189[17]]=function(_0x79bax3,_0x79bax4,_0x79bax5){MailApplication[_0x5189[20]](_0x5189[10],{where:{MailAccountId:_0x79bax3[_0x5189[18]][_0x5189[19]]}})[_0x5189[8]](function(_0x79bax9){_0x79bax3[_0x5189[18]][_0x5189[10]]=_0x79bax9?++_0x79bax9:1;MailApplication[_0x5189[17]](_0x79bax3[_0x5189[18]])[_0x5189[8]](function(_0x79bax8){return _0x79bax4[_0x5189[7]](201)[_0x5189[6]](_0x79bax8)})[_0x5189[5]](function(_0x79bax6){return handleError(_0x79bax4,_0x79bax6)});})[_0x5189[5]](function(_0x79bax6){return handleError(_0x79bax4,_0x79bax6)})};exports[_0x5189[21]]=function(_0x79bax3,_0x79bax4,_0x79bax5){if(_0x79bax3[_0x5189[18]][_0x5189[14]]){delete _0x79bax3[_0x5189[18]][_0x5189[14]]};MailApplication[_0x5189[16]](_0x79bax3[_0x5189[15]][_0x5189[14]])[_0x5189[8]](function(_0x79bax8){if(!_0x79bax8){return _0x79bax4[_0x5189[13]](404)};var _0x79baxa=_[_0x5189[22]](_0x79bax8,_0x79bax3[_0x5189[18]]);_0x79baxa[_0x5189[23]]()[_0x5189[8]](function(){return _0x79bax4[_0x5189[7]](200)[_0x5189[6]](_0x79bax8)})[_0x5189[5]](function(_0x79bax6){return handleError(_0x79bax4,_0x79bax6)});})[_0x5189[5]](function(_0x79bax6){return handleError(_0x79bax4,_0x79bax6)});};exports[_0x5189[24]]=function(_0x79bax3,_0x79bax4,_0x79bax5){MailApplication[_0x5189[16]](_0x79bax3[_0x5189[15]][_0x5189[14]])[_0x5189[8]](function(_0x79bax8){if(!_0x79bax8){return _0x79bax4[_0x5189[13]](404)};_0x79bax8[_0x5189[24]]()[_0x5189[8]](function(){return _0x79bax4[_0x5189[13]](204)})[_0x5189[5]](function(_0x79bax6){return handleError(_0x79bax4,_0x79bax6)});})[_0x5189[5]](function(_0x79bax6){return handleError(_0x79bax4,_0x79bax6)})};function handleError(_0x79bax4,_0x79bax6){return _0x79bax4[_0x5189[7]](500)[_0x5189[6]](_0x79bax6)}
\ No newline at end of file
-var _0xdab7=["\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"];_0xdab7[0];var mailApplication=require(_0xdab7[2])[_0xdab7[1]];exports[_0xdab7[3]]=function(_0xbe3ax2){mailApplication[_0xdab7[4]](function(_0xbe3ax3){onSave(_0xbe3ax2,_0xbe3ax3)});mailApplication[_0xdab7[5]](function(_0xbe3ax3){onRemove(_0xbe3ax2,_0xbe3ax3)});};function onSave(_0xbe3ax2,_0xbe3ax3,_0xbe3ax5){_0xbe3ax2[_0xdab7[7]](_0xdab7[6],_0xbe3ax3)}function onRemove(_0xbe3ax2,_0xbe3ax3,_0xbe3ax5){_0xbe3ax2[_0xdab7[7]](_0xdab7[8],_0xbe3ax3)}
\ No newline at end of file
+var _0xa2e4=["\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"];_0xa2e4[0];var mailApplication=require(_0xa2e4[2])[_0xa2e4[1]];exports[_0xa2e4[3]]=function(_0x4885x2){mailApplication[_0xa2e4[4]](function(_0x4885x3){onSave(_0x4885x2,_0x4885x3)});mailApplication[_0xa2e4[5]](function(_0x4885x3){onRemove(_0x4885x2,_0x4885x3)});};function onSave(_0x4885x2,_0x4885x3,_0x4885x5){_0x4885x2[_0xa2e4[7]](_0xa2e4[6],_0x4885x3)}function onRemove(_0x4885x2,_0x4885x3,_0x4885x5){_0x4885x2[_0xa2e4[7]](_0xa2e4[8],_0x4885x3)}
\ No newline at end of file
-var _0x30be=["\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"];_0x30be[0];var should=require(_0x30be[1]);var app=require(_0x30be[2]);var request=require(_0x30be[3]);describe(_0x30be[4],function(){it(_0x30be[5],function(_0xc20cx4){request(app)[_0x30be[13]](_0x30be[12])[_0x30be[11]](200)[_0x30be[11]](_0x30be[10],/json/)[_0x30be[9]](function(_0xc20cx5,_0xc20cx6){if(_0xc20cx5){return _0xc20cx4(_0xc20cx5)};_0xc20cx6[_0x30be[8]][_0x30be[1]][_0x30be[7]][_0x30be[6]](Array);_0xc20cx4();})})});
\ No newline at end of file
+var _0xa680=["\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"];_0xa680[0];var should=require(_0xa680[1]);var app=require(_0xa680[2]);var request=require(_0xa680[3]);describe(_0xa680[4],function(){it(_0xa680[5],function(_0x38f9x4){request(app)[_0xa680[13]](_0xa680[12])[_0xa680[11]](200)[_0xa680[11]](_0xa680[10],/json/)[_0xa680[9]](function(_0x38f9x5,_0x38f9x6){if(_0x38f9x5){return _0x38f9x4(_0x38f9x5)};_0x38f9x6[_0xa680[8]][_0xa680[1]][_0xa680[7]][_0xa680[6]](Array);_0x38f9x4();})})});
\ No newline at end of file
-var _0x2d23=["\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"];_0x2d23[0];var express=require(_0x2d23[1]);var controller=require(_0x2d23[2]);var router=express.Router();router[_0x2d23[5]](_0x2d23[3],controller[_0x2d23[4]]);router[_0x2d23[5]](_0x2d23[6],controller[_0x2d23[7]]);router[_0x2d23[9]](_0x2d23[3],controller[_0x2d23[8]]);router[_0x2d23[11]](_0x2d23[6],controller[_0x2d23[10]]);router[_0x2d23[12]](_0x2d23[6],controller[_0x2d23[10]]);router[_0x2d23[14]](_0x2d23[6],controller[_0x2d23[13]]);module[_0x2d23[15]]=router;
\ No newline at end of file
+var _0x60fd=["\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"];_0x60fd[0];var express=require(_0x60fd[1]);var controller=require(_0x60fd[2]);var router=express.Router();router[_0x60fd[5]](_0x60fd[3],controller[_0x60fd[4]]);router[_0x60fd[5]](_0x60fd[6],controller[_0x60fd[7]]);router[_0x60fd[9]](_0x60fd[3],controller[_0x60fd[8]]);router[_0x60fd[11]](_0x60fd[6],controller[_0x60fd[10]]);router[_0x60fd[12]](_0x60fd[6],controller[_0x60fd[10]]);router[_0x60fd[14]](_0x60fd[6],controller[_0x60fd[13]]);module[_0x60fd[15]]=router;
\ No newline at end of file
-var _0xbdb0=["\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"];_0xbdb0[0];var _=require(_0xbdb0[1]);var fs=require(_0xbdb0[2]);var MailAttachment=require(_0xbdb0[4])[_0xbdb0[3]];exports[_0xbdb0[5]]=function(_0xe3c1x4,_0xe3c1x5,_0xe3c1x6){MailAttachment[_0xbdb0[10]]()[_0xbdb0[9]](function(_0xe3c1x8){return _0xe3c1x5[_0xbdb0[8]](200)[_0xbdb0[7]](_0xe3c1x8)})[_0xbdb0[6]](function(_0xe3c1x7){return _0xe3c1x6(_0xe3c1x7)})};exports[_0xbdb0[11]]=function(_0xe3c1x4,_0xe3c1x5,_0xe3c1x6){MailAttachment[_0xbdb0[17]](_0xe3c1x4[_0xbdb0[16]][_0xbdb0[15]])[_0xbdb0[9]](function(_0xe3c1x9){_0xe3c1x5[_0xbdb0[14]](_0xe3c1x9[_0xbdb0[12]],_0xe3c1x9[_0xbdb0[13]])})[_0xbdb0[6]](function(_0xe3c1x7){return _0xe3c1x6(_0xe3c1x7)})};exports[_0xbdb0[18]]=function(_0xe3c1x4,_0xe3c1x5,_0xe3c1x6){MailAttachment[_0xbdb0[18]](_0xe3c1x4[_0xbdb0[19]])[_0xbdb0[9]](function(_0xe3c1x9){return _0xe3c1x5[_0xbdb0[8]](201)[_0xbdb0[7]](_0xe3c1x9)})[_0xbdb0[6]](function(_0xe3c1x7){return _0xe3c1x6(_0xe3c1x7)})};exports[_0xbdb0[20]]=function(_0xe3c1x4,_0xe3c1x5,_0xe3c1x6){if(_0xe3c1x4[_0xbdb0[19]][_0xbdb0[15]]){delete _0xe3c1x4[_0xbdb0[19]][_0xbdb0[15]]};MailAttachment[_0xbdb0[17]](_0xe3c1x4[_0xbdb0[16]][_0xbdb0[15]])[_0xbdb0[9]](function(_0xe3c1x9){if(!_0xe3c1x9){return _0xe3c1x5[_0xbdb0[21]](404)};var _0xe3c1xa=_[_0xbdb0[22]](_0xe3c1x9,_0xe3c1x4[_0xbdb0[19]]);_0xe3c1xa[_0xbdb0[23]]()[_0xbdb0[9]](function(){return _0xe3c1x5[_0xbdb0[8]](200)[_0xbdb0[7]](_0xe3c1x9)})[_0xbdb0[6]](function(_0xe3c1x7){return _0xe3c1x6(_0xe3c1x7)});})[_0xbdb0[6]](function(_0xe3c1x7){return _0xe3c1x6(_0xe3c1x7)});};exports[_0xbdb0[24]]=function(_0xe3c1x4,_0xe3c1x5,_0xe3c1x6){MailAttachment[_0xbdb0[17]](_0xe3c1x4[_0xbdb0[16]][_0xbdb0[15]])[_0xbdb0[9]](function(_0xe3c1x9){if(!_0xe3c1x9){return _0xe3c1x5[_0xbdb0[21]](404)};_0xe3c1x9[_0xbdb0[24]]()[_0xbdb0[9]](function(){return _0xe3c1x5[_0xbdb0[21]](204)})[_0xbdb0[6]](function(_0xe3c1x7){return _0xe3c1x6(_0xe3c1x7)});})[_0xbdb0[6]](function(_0xe3c1x7){return _0xe3c1x6(_0xe3c1x7)})};
\ No newline at end of file
+var _0xbda7=["\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"];_0xbda7[0];var _=require(_0xbda7[1]);var fs=require(_0xbda7[2]);var MailAttachment=require(_0xbda7[4])[_0xbda7[3]];exports[_0xbda7[5]]=function(_0x744dx4,_0x744dx5,_0x744dx6){MailAttachment[_0xbda7[10]]()[_0xbda7[9]](function(_0x744dx8){return _0x744dx5[_0xbda7[8]](200)[_0xbda7[7]](_0x744dx8)})[_0xbda7[6]](function(_0x744dx7){return _0x744dx6(_0x744dx7)})};exports[_0xbda7[11]]=function(_0x744dx4,_0x744dx5,_0x744dx6){MailAttachment[_0xbda7[17]](_0x744dx4[_0xbda7[16]][_0xbda7[15]])[_0xbda7[9]](function(_0x744dx9){_0x744dx5[_0xbda7[14]](_0x744dx9[_0xbda7[12]],_0x744dx9[_0xbda7[13]])})[_0xbda7[6]](function(_0x744dx7){return _0x744dx6(_0x744dx7)})};exports[_0xbda7[18]]=function(_0x744dx4,_0x744dx5,_0x744dx6){MailAttachment[_0xbda7[18]](_0x744dx4[_0xbda7[19]])[_0xbda7[9]](function(_0x744dx9){return _0x744dx5[_0xbda7[8]](201)[_0xbda7[7]](_0x744dx9)})[_0xbda7[6]](function(_0x744dx7){return _0x744dx6(_0x744dx7)})};exports[_0xbda7[20]]=function(_0x744dx4,_0x744dx5,_0x744dx6){if(_0x744dx4[_0xbda7[19]][_0xbda7[15]]){delete _0x744dx4[_0xbda7[19]][_0xbda7[15]]};MailAttachment[_0xbda7[17]](_0x744dx4[_0xbda7[16]][_0xbda7[15]])[_0xbda7[9]](function(_0x744dx9){if(!_0x744dx9){return _0x744dx5[_0xbda7[21]](404)};var _0x744dxa=_[_0xbda7[22]](_0x744dx9,_0x744dx4[_0xbda7[19]]);_0x744dxa[_0xbda7[23]]()[_0xbda7[9]](function(){return _0x744dx5[_0xbda7[8]](200)[_0xbda7[7]](_0x744dx9)})[_0xbda7[6]](function(_0x744dx7){return _0x744dx6(_0x744dx7)});})[_0xbda7[6]](function(_0x744dx7){return _0x744dx6(_0x744dx7)});};exports[_0xbda7[24]]=function(_0x744dx4,_0x744dx5,_0x744dx6){MailAttachment[_0xbda7[17]](_0x744dx4[_0xbda7[16]][_0xbda7[15]])[_0xbda7[9]](function(_0x744dx9){if(!_0x744dx9){return _0x744dx5[_0xbda7[21]](404)};_0x744dx9[_0xbda7[24]]()[_0xbda7[9]](function(){return _0x744dx5[_0xbda7[21]](204)})[_0xbda7[6]](function(_0x744dx7){return _0x744dx6(_0x744dx7)});})[_0xbda7[6]](function(_0x744dx7){return _0x744dx6(_0x744dx7)})};
\ No newline at end of file
-var _0x2d6c=["\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"];_0x2d6c[0];var mail_attachment=require(_0x2d6c[2])[_0x2d6c[1]];exports[_0x2d6c[3]]=function(_0x94d9x2){mail_attachment[_0x2d6c[4]](function(_0x94d9x3){onSave(_0x94d9x2,_0x94d9x3)});mail_attachment[_0x2d6c[5]](function(_0x94d9x3){onRemove(_0x94d9x2,_0x94d9x3)});};function onSave(_0x94d9x2,_0x94d9x3,_0x94d9x5){_0x94d9x2[_0x2d6c[7]](_0x2d6c[6],_0x94d9x3)}function onRemove(_0x94d9x2,_0x94d9x3,_0x94d9x5){_0x94d9x2[_0x2d6c[7]](_0x2d6c[8],_0x94d9x3)}
\ No newline at end of file
+var _0xd1a2=["\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"];_0xd1a2[0];var mail_attachment=require(_0xd1a2[2])[_0xd1a2[1]];exports[_0xd1a2[3]]=function(_0x20afx2){mail_attachment[_0xd1a2[4]](function(_0x20afx3){onSave(_0x20afx2,_0x20afx3)});mail_attachment[_0xd1a2[5]](function(_0x20afx3){onRemove(_0x20afx2,_0x20afx3)});};function onSave(_0x20afx2,_0x20afx3,_0x20afx5){_0x20afx2[_0xd1a2[7]](_0xd1a2[6],_0x20afx3)}function onRemove(_0x20afx2,_0x20afx3,_0x20afx5){_0x20afx2[_0xd1a2[7]](_0xd1a2[8],_0x20afx3)}
\ No newline at end of file
-var _0x4bc6=["\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"];_0x4bc6[0];var should=require(_0x4bc6[1]);var app=require(_0x4bc6[2]);var request=require(_0x4bc6[3]);describe(_0x4bc6[4],function(){it(_0x4bc6[5],function(_0xbfcdx4){request(app)[_0x4bc6[13]](_0x4bc6[12])[_0x4bc6[11]](200)[_0x4bc6[11]](_0x4bc6[10],/json/)[_0x4bc6[9]](function(_0xbfcdx5,_0xbfcdx6){if(_0xbfcdx5){return _0xbfcdx4(_0xbfcdx5)};_0xbfcdx6[_0x4bc6[8]][_0x4bc6[1]][_0x4bc6[7]][_0x4bc6[6]](Array);_0xbfcdx4();})})});
\ No newline at end of file
+var _0x8990=["\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"];_0x8990[0];var should=require(_0x8990[1]);var app=require(_0x8990[2]);var request=require(_0x8990[3]);describe(_0x8990[4],function(){it(_0x8990[5],function(_0xb94ex4){request(app)[_0x8990[13]](_0x8990[12])[_0x8990[11]](200)[_0x8990[11]](_0x8990[10],/json/)[_0x8990[9]](function(_0xb94ex5,_0xb94ex6){if(_0xb94ex5){return _0xb94ex4(_0xb94ex5)};_0xb94ex6[_0x8990[8]][_0x8990[1]][_0x8990[7]][_0x8990[6]](Array);_0xb94ex4();})})});
\ No newline at end of file
-var _0xa7d2=["\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"];_0xa7d2[0];var express=require(_0xa7d2[1]);var controller=require(_0xa7d2[2]);var router=express.Router();router[_0xa7d2[5]](_0xa7d2[3],controller[_0xa7d2[4]]);router[_0xa7d2[5]](_0xa7d2[6],controller[_0xa7d2[7]]);router[_0xa7d2[9]](_0xa7d2[3],controller[_0xa7d2[8]]);router[_0xa7d2[11]](_0xa7d2[6],controller[_0xa7d2[10]]);router[_0xa7d2[12]](_0xa7d2[6],controller[_0xa7d2[10]]);router[_0xa7d2[14]](_0xa7d2[3],controller[_0xa7d2[13]]);router[_0xa7d2[14]](_0xa7d2[6],controller[_0xa7d2[15]]);module[_0xa7d2[16]]=router;
\ No newline at end of file
+var _0x6810=["\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"];_0x6810[0];var express=require(_0x6810[1]);var controller=require(_0x6810[2]);var router=express.Router();router[_0x6810[5]](_0x6810[3],controller[_0x6810[4]]);router[_0x6810[5]](_0x6810[6],controller[_0x6810[7]]);router[_0x6810[9]](_0x6810[3],controller[_0x6810[8]]);router[_0x6810[11]](_0x6810[6],controller[_0x6810[10]]);router[_0x6810[12]](_0x6810[6],controller[_0x6810[10]]);router[_0x6810[14]](_0x6810[3],controller[_0x6810[13]]);router[_0x6810[14]](_0x6810[6],controller[_0x6810[15]]);module[_0x6810[16]]=router;
\ No newline at end of file
-var _0x92b9=["\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"];_0x92b9[0];var _=require(_0x92b9[1]);var util=require(_0x92b9[2]);var MailBusinessAutomation=require(_0x92b9[4])[_0x92b9[3]];var BusinessCondition=require(_0x92b9[4])[_0x92b9[5]];var BusinessAction=require(_0x92b9[4])[_0x92b9[6]];var sequelize=require(_0x92b9[4])[_0x92b9[7]];exports[_0x92b9[8]]=function(_0x269dx7,_0x269dx8,_0x269dx9){var _0x269dxa=[_0x92b9[9],_0x92b9[10]];var _0x269dxb=_0x269dx7[_0x92b9[12]][_0x92b9[11]]?parseInt(_0x269dx7[_0x92b9[12]][_0x92b9[11]],10):100;var _0x269dxc=_0x269dx7[_0x92b9[12]][_0x92b9[13]]?parseInt(_0x269dx7[_0x92b9[12]][_0x92b9[13]],10):0;var _0x269dxd={where:{},limit:_0x269dxb,offset:_0x269dxc*_0x269dxb};_[_0x92b9[27]](_0x269dx7[_0x92b9[12]],function(_0x269dxe,_0x269dxf){switch(_0x269dxf){case _0x92b9[11]:;case _0x92b9[13]:break ;;case _0x92b9[16]:_0x269dxd[_0x92b9[14]]=util[_0x92b9[19]](_0x92b9[15],_0x269dx7[_0x92b9[12]][_0x92b9[16]],_0x269dx7[_0x92b9[12]][_0x92b9[17]]||_0x92b9[18])||null;break ;;case _0x92b9[17]:break ;;case _0x92b9[25]:_0x269dxd[_0x92b9[21]][_0x92b9[20]]=[];_0x269dxa[_0x92b9[24]](function(_0x269dx10){var _0x269dx11={};_0x269dx11[_0x269dx10]={$like:_0x92b9[22]+_0x269dxe+_0x92b9[22]};_0x269dxd[_0x92b9[21]][_0x92b9[20]][_0x92b9[23]](_0x269dx11);});break ;;default:_0x269dxd[_0x92b9[21]][_0x269dxf]={$like:{}};_0x269dxd[_0x92b9[21]][_0x269dxf][_0x92b9[26]]=_0x92b9[22]+_0x269dxe+_0x92b9[22];;}});MailBusinessAutomation[_0x92b9[42]](_0x269dxd)[_0x92b9[41]](function(_0x269dx13){var _0x269dx14=Math[_0x92b9[33]](_0x269dx13[_0x92b9[32]]/_0x269dxb);var _0x269dx15=_0x269dx14>(_0x269dxd[_0x92b9[34]]+1)?util[_0x92b9[19]](_0x92b9[35],_0x269dx7[_0x92b9[36]],_0x269dx7[_0x92b9[38]][_0x92b9[37]],_0x269dx7[_0x92b9[39]],_0x269dxc+1):null;var _0x269dx16=_0x269dxc>0?util[_0x92b9[19]](_0x92b9[35],_0x269dx7[_0x92b9[36]],_0x269dx7[_0x92b9[38]][_0x92b9[37]],_0x269dx7[_0x92b9[39]],_0x269dxc-1):null;_0x269dx8[_0x92b9[30]](200)[_0x92b9[29]]({count:_0x269dx13[_0x92b9[32]],mailAutomations:_0x269dx13[_0x92b9[40]],next_page:_0x269dx15,previous_page:_0x269dx16,total_pages:_0x269dx14});})[_0x92b9[31]](function(_0x269dx12){_0x269dx8[_0x92b9[30]](500)[_0x92b9[29]]({error:_0x92b9[28]})});};exports[_0x92b9[43]]=function(_0x269dx7,_0x269dx8){MailBusinessAutomation[_0x92b9[47]](_0x269dx7[_0x92b9[46]][_0x92b9[45]],{include:[{all:true}]})[_0x92b9[41]](function(_0x269dx17){if(!_0x269dx17){return _0x269dx8[_0x92b9[44]](404)};return _0x269dx8[_0x92b9[29]](_0x269dx17);})[_0x92b9[31]](function(_0x269dx12){return handleError(_0x269dx8,_0x269dx12)})};exports[_0x92b9[48]]=function(_0x269dx7,_0x269dx8,_0x269dx9){return sequelize[_0x92b9[56]](function(_0x269dx18){return MailBusinessAutomation[_0x92b9[48]](_0x269dx7[_0x92b9[50]],{transaction:_0x269dx18})[_0x92b9[41]](function(_0x269dx17){var _0x269dx19=[];if(_0x269dx7[_0x92b9[50]][_0x92b9[49]]){_0x269dx7[_0x92b9[50]][_0x92b9[49]][_0x92b9[24]](function(_0x269dx1a){_0x269dx1a[_0x92b9[51]]=_0x269dx17[_0x92b9[45]]});_0x269dx19=_0x269dx19[_0x92b9[52]](_0x269dx7[_0x92b9[50]][_0x92b9[49]]);};if(_0x269dx7[_0x92b9[50]][_0x92b9[53]]){_0x269dx7[_0x92b9[50]][_0x92b9[53]][_0x92b9[24]](function(_0x269dx1a){_0x269dx1a[_0x92b9[51]]=_0x269dx17[_0x92b9[45]]});_0x269dx19=_0x269dx19[_0x92b9[52]](_0x269dx7[_0x92b9[50]][_0x92b9[53]]);};return BusinessCondition[_0x92b9[55]](_0x269dx19,{transaction:_0x269dx18})[_0x92b9[41]](function(_0x269dx1b){if(_0x269dx7[_0x92b9[50]][_0x92b9[54]]){_0x269dx7[_0x92b9[50]][_0x92b9[54]][_0x92b9[24]](function(_0x269dx1a){_0x269dx1a[_0x92b9[51]]=_0x269dx17[_0x92b9[45]]})};return BusinessAction[_0x92b9[55]](_0x269dx7[_0x92b9[50]][_0x92b9[54]],{transaction:_0x269dx18});});})})[_0x92b9[41]](function(){return _0x269dx8[_0x92b9[44]](201)})[_0x92b9[31]](function(_0x269dx12){return _0x269dx9(_0x269dx12)})};exports[_0x92b9[57]]=function(_0x269dx7,_0x269dx8){if(_0x269dx7[_0x92b9[50]][_0x92b9[45]]){delete _0x269dx7[_0x92b9[50]][_0x92b9[45]]};MailBusinessAutomation[_0x92b9[60]]({where:{id:_0x269dx7[_0x92b9[46]][_0x92b9[45]]}})[_0x92b9[41]](function(_0x269dx17){if(!_0x269dx17){return _0x269dx8[_0x92b9[44]](404)};var _0x269dx1c=_[_0x92b9[58]](_0x269dx17,_0x269dx7[_0x92b9[50]]);_0x269dx1c[_0x92b9[59]]()[_0x92b9[41]](function(){return _0x269dx8[_0x92b9[30]](200)[_0x92b9[29]](_0x269dx17)})[_0x92b9[31]](function(_0x269dx12){return handleError(_0x269dx8,_0x269dx12)});})[_0x92b9[31]](function(_0x269dx12){return handleError(_0x269dx8,_0x269dx12)});};exports[_0x92b9[61]]=function(_0x269dx7,_0x269dx8){MailBusinessAutomation[_0x92b9[47]](_0x269dx7[_0x92b9[46]][_0x92b9[45]])[_0x92b9[41]](function(_0x269dx17){if(!_0x269dx17){return _0x269dx8[_0x92b9[44]](404)};_0x269dx17[_0x92b9[61]]()[_0x92b9[41]](function(){return _0x269dx8[_0x92b9[44]](204)})[_0x92b9[31]](function(_0x269dx12){return handleError(_0x269dx8,_0x269dx12)});})[_0x92b9[31]](function(_0x269dx12){return handleError(_0x269dx8,_0x269dx12)})};exports[_0x92b9[62]]=function(_0x269dx7,_0x269dx8){MailBusinessAutomation[_0x92b9[61]]({where:{id:_0x269dx7[_0x92b9[12]][_0x92b9[45]]},individualHooks:true})[_0x92b9[41]](function(){return _0x269dx8[_0x92b9[44]](204)})[_0x92b9[31]](function(_0x269dx12){return handleError(_0x269dx8,_0x269dx12)})};function handleError(_0x269dx8,_0x269dx12){return _0x269dx8[_0x92b9[30]](500)[_0x92b9[29]](_0x269dx12)}
\ No newline at end of file
+var _0xb69c=["\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"];_0xb69c[0];var _=require(_0xb69c[1]);var util=require(_0xb69c[2]);var MailBusinessAutomation=require(_0xb69c[4])[_0xb69c[3]];var BusinessCondition=require(_0xb69c[4])[_0xb69c[5]];var BusinessAction=require(_0xb69c[4])[_0xb69c[6]];var sequelize=require(_0xb69c[4])[_0xb69c[7]];exports[_0xb69c[8]]=function(_0xac77x7,_0xac77x8,_0xac77x9){var _0xac77xa=[_0xb69c[9],_0xb69c[10]];var _0xac77xb=_0xac77x7[_0xb69c[12]][_0xb69c[11]]?parseInt(_0xac77x7[_0xb69c[12]][_0xb69c[11]],10):100;var _0xac77xc=_0xac77x7[_0xb69c[12]][_0xb69c[13]]?parseInt(_0xac77x7[_0xb69c[12]][_0xb69c[13]],10):0;var _0xac77xd={where:{},limit:_0xac77xb,offset:_0xac77xc*_0xac77xb};_[_0xb69c[27]](_0xac77x7[_0xb69c[12]],function(_0xac77xe,_0xac77xf){switch(_0xac77xf){case _0xb69c[11]:;case _0xb69c[13]:break ;;case _0xb69c[16]:_0xac77xd[_0xb69c[14]]=util[_0xb69c[19]](_0xb69c[15],_0xac77x7[_0xb69c[12]][_0xb69c[16]],_0xac77x7[_0xb69c[12]][_0xb69c[17]]||_0xb69c[18])||null;break ;;case _0xb69c[17]:break ;;case _0xb69c[25]:_0xac77xd[_0xb69c[21]][_0xb69c[20]]=[];_0xac77xa[_0xb69c[24]](function(_0xac77x10){var _0xac77x11={};_0xac77x11[_0xac77x10]={$like:_0xb69c[22]+_0xac77xe+_0xb69c[22]};_0xac77xd[_0xb69c[21]][_0xb69c[20]][_0xb69c[23]](_0xac77x11);});break ;;default:_0xac77xd[_0xb69c[21]][_0xac77xf]={$like:{}};_0xac77xd[_0xb69c[21]][_0xac77xf][_0xb69c[26]]=_0xb69c[22]+_0xac77xe+_0xb69c[22];;}});MailBusinessAutomation[_0xb69c[42]](_0xac77xd)[_0xb69c[41]](function(_0xac77x13){var _0xac77x14=Math[_0xb69c[33]](_0xac77x13[_0xb69c[32]]/_0xac77xb);var _0xac77x15=_0xac77x14>(_0xac77xd[_0xb69c[34]]+1)?util[_0xb69c[19]](_0xb69c[35],_0xac77x7[_0xb69c[36]],_0xac77x7[_0xb69c[38]][_0xb69c[37]],_0xac77x7[_0xb69c[39]],_0xac77xc+1):null;var _0xac77x16=_0xac77xc>0?util[_0xb69c[19]](_0xb69c[35],_0xac77x7[_0xb69c[36]],_0xac77x7[_0xb69c[38]][_0xb69c[37]],_0xac77x7[_0xb69c[39]],_0xac77xc-1):null;_0xac77x8[_0xb69c[30]](200)[_0xb69c[29]]({count:_0xac77x13[_0xb69c[32]],mailAutomations:_0xac77x13[_0xb69c[40]],next_page:_0xac77x15,previous_page:_0xac77x16,total_pages:_0xac77x14});})[_0xb69c[31]](function(_0xac77x12){_0xac77x8[_0xb69c[30]](500)[_0xb69c[29]]({error:_0xb69c[28]})});};exports[_0xb69c[43]]=function(_0xac77x7,_0xac77x8){MailBusinessAutomation[_0xb69c[47]](_0xac77x7[_0xb69c[46]][_0xb69c[45]],{include:[{all:true}]})[_0xb69c[41]](function(_0xac77x17){if(!_0xac77x17){return _0xac77x8[_0xb69c[44]](404)};return _0xac77x8[_0xb69c[29]](_0xac77x17);})[_0xb69c[31]](function(_0xac77x12){return handleError(_0xac77x8,_0xac77x12)})};exports[_0xb69c[48]]=function(_0xac77x7,_0xac77x8,_0xac77x9){return sequelize[_0xb69c[56]](function(_0xac77x18){return MailBusinessAutomation[_0xb69c[48]](_0xac77x7[_0xb69c[50]],{transaction:_0xac77x18})[_0xb69c[41]](function(_0xac77x17){var _0xac77x19=[];if(_0xac77x7[_0xb69c[50]][_0xb69c[49]]){_0xac77x7[_0xb69c[50]][_0xb69c[49]][_0xb69c[24]](function(_0xac77x1a){_0xac77x1a[_0xb69c[51]]=_0xac77x17[_0xb69c[45]]});_0xac77x19=_0xac77x19[_0xb69c[52]](_0xac77x7[_0xb69c[50]][_0xb69c[49]]);};if(_0xac77x7[_0xb69c[50]][_0xb69c[53]]){_0xac77x7[_0xb69c[50]][_0xb69c[53]][_0xb69c[24]](function(_0xac77x1a){_0xac77x1a[_0xb69c[51]]=_0xac77x17[_0xb69c[45]]});_0xac77x19=_0xac77x19[_0xb69c[52]](_0xac77x7[_0xb69c[50]][_0xb69c[53]]);};return BusinessCondition[_0xb69c[55]](_0xac77x19,{transaction:_0xac77x18})[_0xb69c[41]](function(_0xac77x1b){if(_0xac77x7[_0xb69c[50]][_0xb69c[54]]){_0xac77x7[_0xb69c[50]][_0xb69c[54]][_0xb69c[24]](function(_0xac77x1a){_0xac77x1a[_0xb69c[51]]=_0xac77x17[_0xb69c[45]]})};return BusinessAction[_0xb69c[55]](_0xac77x7[_0xb69c[50]][_0xb69c[54]],{transaction:_0xac77x18});});})})[_0xb69c[41]](function(){return _0xac77x8[_0xb69c[44]](201)})[_0xb69c[31]](function(_0xac77x12){return _0xac77x9(_0xac77x12)})};exports[_0xb69c[57]]=function(_0xac77x7,_0xac77x8){if(_0xac77x7[_0xb69c[50]][_0xb69c[45]]){delete _0xac77x7[_0xb69c[50]][_0xb69c[45]]};MailBusinessAutomation[_0xb69c[60]]({where:{id:_0xac77x7[_0xb69c[46]][_0xb69c[45]]}})[_0xb69c[41]](function(_0xac77x17){if(!_0xac77x17){return _0xac77x8[_0xb69c[44]](404)};var _0xac77x1c=_[_0xb69c[58]](_0xac77x17,_0xac77x7[_0xb69c[50]]);_0xac77x1c[_0xb69c[59]]()[_0xb69c[41]](function(){return _0xac77x8[_0xb69c[30]](200)[_0xb69c[29]](_0xac77x17)})[_0xb69c[31]](function(_0xac77x12){return handleError(_0xac77x8,_0xac77x12)});})[_0xb69c[31]](function(_0xac77x12){return handleError(_0xac77x8,_0xac77x12)});};exports[_0xb69c[61]]=function(_0xac77x7,_0xac77x8){MailBusinessAutomation[_0xb69c[47]](_0xac77x7[_0xb69c[46]][_0xb69c[45]])[_0xb69c[41]](function(_0xac77x17){if(!_0xac77x17){return _0xac77x8[_0xb69c[44]](404)};_0xac77x17[_0xb69c[61]]()[_0xb69c[41]](function(){return _0xac77x8[_0xb69c[44]](204)})[_0xb69c[31]](function(_0xac77x12){return handleError(_0xac77x8,_0xac77x12)});})[_0xb69c[31]](function(_0xac77x12){return handleError(_0xac77x8,_0xac77x12)})};exports[_0xb69c[62]]=function(_0xac77x7,_0xac77x8){MailBusinessAutomation[_0xb69c[61]]({where:{id:_0xac77x7[_0xb69c[12]][_0xb69c[45]]},individualHooks:true})[_0xb69c[41]](function(){return _0xac77x8[_0xb69c[44]](204)})[_0xb69c[31]](function(_0xac77x12){return handleError(_0xac77x8,_0xac77x12)})};function handleError(_0xac77x8,_0xac77x12){return _0xac77x8[_0xb69c[30]](500)[_0xb69c[29]](_0xac77x12)}
\ No newline at end of file
-var _0xbaab=["\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"];_0xbaab[0];var MailBusinessAutomation=require(_0xbaab[2])[_0xbaab[1]];exports[_0xbaab[3]]=function(_0xb6a1x2){MailBusinessAutomation[_0xbaab[4]](function(_0xb6a1x3,_0xb6a1x4){onSave(_0xb6a1x2,_0xb6a1x3)});MailBusinessAutomation[_0xbaab[5]](function(_0xb6a1x3,_0xb6a1x4){onSave(_0xb6a1x2,_0xb6a1x3)});MailBusinessAutomation[_0xbaab[6]](function(_0xb6a1x3){onRemove(_0xb6a1x2,_0xb6a1x3)});};function onSave(_0xb6a1x2,_0xb6a1x3,_0xb6a1x6){_0xb6a1x2[_0xbaab[8]](_0xbaab[7],_0xb6a1x3)}function onRemove(_0xb6a1x2,_0xb6a1x3,_0xb6a1x6){_0xb6a1x2[_0xbaab[8]](_0xbaab[9],_0xb6a1x3)}
\ No newline at end of file
+var _0x6e8e=["\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"];_0x6e8e[0];var MailBusinessAutomation=require(_0x6e8e[2])[_0x6e8e[1]];exports[_0x6e8e[3]]=function(_0x6189x2){MailBusinessAutomation[_0x6e8e[4]](function(_0x6189x3,_0x6189x4){onSave(_0x6189x2,_0x6189x3)});MailBusinessAutomation[_0x6e8e[5]](function(_0x6189x3,_0x6189x4){onSave(_0x6189x2,_0x6189x3)});MailBusinessAutomation[_0x6e8e[6]](function(_0x6189x3){onRemove(_0x6189x2,_0x6189x3)});};function onSave(_0x6189x2,_0x6189x3,_0x6189x6){_0x6189x2[_0x6e8e[8]](_0x6e8e[7],_0x6189x3)}function onRemove(_0x6189x2,_0x6189x3,_0x6189x6){_0x6189x2[_0x6e8e[8]](_0x6e8e[9],_0x6189x3)}
\ No newline at end of file
-var _0x1a4d=["\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"];_0x1a4d[0];var should=require(_0x1a4d[1]);var app=require(_0x1a4d[2]);var request=require(_0x1a4d[3]);describe(_0x1a4d[4],function(){it(_0x1a4d[5],function(_0x7737x4){request(app)[_0x1a4d[13]](_0x1a4d[12])[_0x1a4d[11]](200)[_0x1a4d[11]](_0x1a4d[10],/json/)[_0x1a4d[9]](function(_0x7737x5,_0x7737x6){if(_0x7737x5){return _0x7737x4(_0x7737x5)};_0x7737x6[_0x1a4d[8]][_0x1a4d[1]][_0x1a4d[7]][_0x1a4d[6]](Array);_0x7737x4();})})});
\ No newline at end of file
+var _0xc02c=["\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"];_0xc02c[0];var should=require(_0xc02c[1]);var app=require(_0xc02c[2]);var request=require(_0xc02c[3]);describe(_0xc02c[4],function(){it(_0xc02c[5],function(_0x39d9x4){request(app)[_0xc02c[13]](_0xc02c[12])[_0xc02c[11]](200)[_0xc02c[11]](_0xc02c[10],/json/)[_0xc02c[9]](function(_0x39d9x5,_0x39d9x6){if(_0x39d9x5){return _0x39d9x4(_0x39d9x5)};_0x39d9x6[_0xc02c[8]][_0xc02c[1]][_0xc02c[7]][_0xc02c[6]](Array);_0x39d9x4();})})});
\ No newline at end of file
-var _0xfd05=["\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"];_0xfd05[0];var express=require(_0xfd05[1]);var controller=require(_0xfd05[2]);var auth=require(_0xfd05[3]);var router=express.Router();router[_0xfd05[7]](_0xfd05[4],auth[_0xfd05[5]](),controller[_0xfd05[6]]);router[_0xfd05[7]](_0xfd05[8],auth[_0xfd05[5]](),controller[_0xfd05[9]]);router[_0xfd05[11]](_0xfd05[4],auth[_0xfd05[5]](),controller[_0xfd05[10]]);router[_0xfd05[13]](_0xfd05[4],auth[_0xfd05[5]](),controller[_0xfd05[12]]);router[_0xfd05[13]](_0xfd05[14],controller[_0xfd05[15]]);router[_0xfd05[13]](_0xfd05[16],controller[_0xfd05[12]]);router[_0xfd05[13]](_0xfd05[8],controller[_0xfd05[12]]);router[_0xfd05[17]](_0xfd05[8],controller[_0xfd05[12]]);router[_0xfd05[19]](_0xfd05[8],controller[_0xfd05[18]]);module[_0xfd05[20]]=router;
\ No newline at end of file
+var _0x350b=["\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"];_0x350b[0];var express=require(_0x350b[1]);var controller=require(_0x350b[2]);var auth=require(_0x350b[3]);var router=express.Router();router[_0x350b[7]](_0x350b[4],auth[_0x350b[5]](),controller[_0x350b[6]]);router[_0x350b[7]](_0x350b[8],auth[_0x350b[5]](),controller[_0x350b[9]]);router[_0x350b[11]](_0x350b[4],auth[_0x350b[5]](),controller[_0x350b[10]]);router[_0x350b[13]](_0x350b[4],auth[_0x350b[5]](),controller[_0x350b[12]]);router[_0x350b[13]](_0x350b[14],controller[_0x350b[15]]);router[_0x350b[13]](_0x350b[16],controller[_0x350b[12]]);router[_0x350b[13]](_0x350b[8],controller[_0x350b[12]]);router[_0x350b[17]](_0x350b[8],controller[_0x350b[12]]);router[_0x350b[19]](_0x350b[8],controller[_0x350b[18]]);module[_0x350b[20]]=router;
\ No newline at end of file
-var _0x3d9b=["\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"];_0x3d9b[0];var _=require(_0x3d9b[1]);var async=require(_0x3d9b[2]);var htmlToText=require(_0x3d9b[3]);var formidable=require(_0x3d9b[4]);var path=require(_0x3d9b[5]);var config=require(_0x3d9b[6]);var sequelize=require(_0x3d9b[8])[_0x3d9b[7]];var MailMessage=require(_0x3d9b[8])[_0x3d9b[9]];var MailAttachment=require(_0x3d9b[8])[_0x3d9b[10]];var MailRoom=require(_0x3d9b[8])[_0x3d9b[11]];var MailAccount=require(_0x3d9b[8])[_0x3d9b[12]];var Contact=require(_0x3d9b[8])[_0x3d9b[13]];exports[_0x3d9b[14]]=function(_0xf5edxd,_0xf5edxe,_0xf5edxf){var _0xf5edx10={order:_0x3d9b[15],include:[{all:true,include:[{all:true}]}]};switch(_0xf5edxd[_0x3d9b[21]][_0x3d9b[20]]){case _0x3d9b[18]:_0xf5edx10[_0x3d9b[16]]=_0xf5edxd[_0x3d9b[17]];break ;;case _0x3d9b[19]:break ;;default:;};MailMessage[_0x3d9b[26]](_0xf5edx10)[_0x3d9b[25]](function(_0xf5edx12){return _0xf5edxe[_0x3d9b[24]](200)[_0x3d9b[23]](_0xf5edx12)})[_0x3d9b[22]](function(_0xf5edx11){return handleError(_0xf5edxe,_0xf5edx11,_0xf5edxf)});};exports[_0x3d9b[27]]=function(_0xf5edxd,_0xf5edxe,_0xf5edxf){MailMessage[_0x3d9b[31]](_0xf5edxd[_0x3d9b[30]][_0x3d9b[29]],{include:[{all:true,include:[{all:true}]}]})[_0x3d9b[25]](function(_0xf5edx13){if(!_0xf5edx13){return _0xf5edxe[_0x3d9b[28]](404)};return _0xf5edxe[_0x3d9b[23]](_0xf5edx13);})[_0x3d9b[22]](function(_0xf5edx11){return handleError(_0xf5edxe,_0xf5edx11,_0xf5edxf)})};exports[_0x3d9b[32]]=function(_0xf5edxd,_0xf5edxe,_0xf5edxf){var _0xf5edx14= new formidable.IncomingForm();_0xf5edx14[_0x3d9b[33]]=path[_0x3d9b[38]](config[_0x3d9b[34]],_0x3d9b[35],_0x3d9b[36],_0x3d9b[37]);_0xf5edx14[_0x3d9b[39]]=true;_0xf5edx14[_0x3d9b[40]]=true;if(_[_0x3d9b[42]](_0xf5edxd[_0x3d9b[41]])){_0xf5edx14[_0x3d9b[51]](_0xf5edxd,function(_0xf5edx11,_0xf5edx14,_0xf5edx15){if(_0xf5edx11){return _0xf5edxe[_0x3d9b[24]](400)[_0x3d9b[23]](_0xf5edx11)};var _0xf5edx16=_0xf5edx15[_0x3d9b[43]];_0xf5edx14[_0x3d9b[44]]=[{path:_0xf5edx16[_0x3d9b[5]],fileName:_0xf5edx16[_0x3d9b[45]],length:_0xf5edx16[_0x3d9b[46]],contentType:_0xf5edx16[_0x3d9b[47]]}];return sequelize[_0x3d9b[50]]()[_0x3d9b[25]](function(_0xf5edx17){return MailMessage[_0x3d9b[32]](_0xf5edx14,{include:[{all:true}],transaction:_0xf5edx17})[_0x3d9b[25]](function(_0xf5edx13){_0xf5edx17[_0x3d9b[49]]();return _0xf5edxe[_0x3d9b[24]](201)[_0x3d9b[23]](_0xf5edx13);})[_0x3d9b[22]](function(_0xf5edx11){_0xf5edx17[_0x3d9b[48]]();return handleError(_0xf5edxe,_0xf5edx11);})});})}else {console[_0x3d9b[53]](_0x3d9b[52]);_0xf5edxd[_0x3d9b[41]][_0x3d9b[24]]=_0x3d9b[54];return sequelize[_0x3d9b[50]]()[_0x3d9b[25]](function(_0xf5edx17){return MailMessage[_0x3d9b[32]](_0xf5edxd[_0x3d9b[41]],{transaction:_0xf5edx17})[_0x3d9b[25]](function(_0xf5edx13){_0xf5edx17[_0x3d9b[49]]();return _0xf5edxe[_0x3d9b[24]](201)[_0x3d9b[23]](_0xf5edx13);})[_0x3d9b[22]](function(_0xf5edx11){_0xf5edx17[_0x3d9b[48]]();return handleError(_0xf5edxe,_0xf5edx11);})});};};exports[_0x3d9b[55]]=function(_0xf5edxd,_0xf5edxe,_0xf5edxf){MailMessage[_0x3d9b[31]](_0xf5edxd[_0x3d9b[30]][_0x3d9b[29]],{include:[{all:true}]})[_0x3d9b[25]](function(_0xf5edx13){if(!_0xf5edx13){return _0xf5edxe[_0x3d9b[28]](404)};var _0xf5edx18=_[_0x3d9b[56]](_0xf5edx13,_0xf5edxd[_0x3d9b[41]]);_0xf5edx18[_0x3d9b[57]]()[_0x3d9b[25]](function(){return _0xf5edxe[_0x3d9b[24]](200)[_0x3d9b[23]](_0xf5edx18)})[_0x3d9b[22]](function(_0xf5edx11){return handleError(_0xf5edxe,_0xf5edx11,_0xf5edxf)});})[_0x3d9b[22]](function(_0xf5edx11){return handleError(_0xf5edxe,_0xf5edx11,_0xf5edxf)})};exports[_0x3d9b[58]]=function(_0xf5edxd,_0xf5edxe,_0xf5edxf){MailMessage[_0x3d9b[31]](_0xf5edxd[_0x3d9b[30]][_0x3d9b[29]])[_0x3d9b[25]](function(_0xf5edx13){if(!_0xf5edx13){return _0xf5edxe[_0x3d9b[28]](404)};_0xf5edx13[_0x3d9b[58]]()[_0x3d9b[25]](function(){return _0xf5edxe[_0x3d9b[28]](204)})[_0x3d9b[22]](function(_0xf5edx11){return handleError(_0xf5edxe,_0xf5edx11,_0xf5edxf)});})[_0x3d9b[22]](function(_0xf5edx11){return handleError(_0xf5edxe,_0xf5edx11,_0xf5edxf)})};exports[_0x3d9b[59]]=function(_0xf5edxd,_0xf5edxe,_0xf5edxf){MailMessage[_0x3d9b[61]]({where:{id:{$in:_0xf5edxd[_0x3d9b[41]][_0x3d9b[29]]}},attributes:{directory:_0x3d9b[60]}})[_0x3d9b[25]](function(_0xf5edx13){if(!_0xf5edx13){return _0xf5edxe[_0x3d9b[28]](404)};_0xf5edx13[_0x3d9b[58]]()[_0x3d9b[25]](function(){return _0xf5edxe[_0x3d9b[28]](204)})[_0x3d9b[22]](function(_0xf5edx11){return handleError(_0xf5edxe,_0xf5edx11,_0xf5edxf)});})[_0x3d9b[22]](function(_0xf5edx11){return handleError(_0xf5edxe,_0xf5edx11,_0xf5edxf)})};function handleError(_0xf5edxe,_0xf5edx11,_0xf5edxf){return _0xf5edxe[_0x3d9b[24]](500)[_0x3d9b[23]](_0xf5edx11)}
\ No newline at end of file
+var _0x3731=["\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"];_0x3731[0];var _=require(_0x3731[1]);var async=require(_0x3731[2]);var htmlToText=require(_0x3731[3]);var formidable=require(_0x3731[4]);var path=require(_0x3731[5]);var config=require(_0x3731[6]);var sequelize=require(_0x3731[8])[_0x3731[7]];var MailMessage=require(_0x3731[8])[_0x3731[9]];var MailAttachment=require(_0x3731[8])[_0x3731[10]];var MailRoom=require(_0x3731[8])[_0x3731[11]];var MailAccount=require(_0x3731[8])[_0x3731[12]];var Contact=require(_0x3731[8])[_0x3731[13]];exports[_0x3731[14]]=function(_0x53faxd,_0x53faxe,_0x53faxf){var _0x53fax10={order:_0x3731[15],include:[{all:true,include:[{all:true}]}]};switch(_0x53faxd[_0x3731[21]][_0x3731[20]]){case _0x3731[18]:_0x53fax10[_0x3731[16]]=_0x53faxd[_0x3731[17]];break ;;case _0x3731[19]:break ;;default:;};MailMessage[_0x3731[26]](_0x53fax10)[_0x3731[25]](function(_0x53fax12){return _0x53faxe[_0x3731[24]](200)[_0x3731[23]](_0x53fax12)})[_0x3731[22]](function(_0x53fax11){return handleError(_0x53faxe,_0x53fax11,_0x53faxf)});};exports[_0x3731[27]]=function(_0x53faxd,_0x53faxe,_0x53faxf){MailMessage[_0x3731[31]](_0x53faxd[_0x3731[30]][_0x3731[29]],{include:[{all:true,include:[{all:true}]}]})[_0x3731[25]](function(_0x53fax13){if(!_0x53fax13){return _0x53faxe[_0x3731[28]](404)};return _0x53faxe[_0x3731[23]](_0x53fax13);})[_0x3731[22]](function(_0x53fax11){return handleError(_0x53faxe,_0x53fax11,_0x53faxf)})};exports[_0x3731[32]]=function(_0x53faxd,_0x53faxe,_0x53faxf){var _0x53fax14= new formidable.IncomingForm();_0x53fax14[_0x3731[33]]=path[_0x3731[38]](config[_0x3731[34]],_0x3731[35],_0x3731[36],_0x3731[37]);_0x53fax14[_0x3731[39]]=true;_0x53fax14[_0x3731[40]]=true;if(_[_0x3731[42]](_0x53faxd[_0x3731[41]])){_0x53fax14[_0x3731[51]](_0x53faxd,function(_0x53fax11,_0x53fax14,_0x53fax15){if(_0x53fax11){return _0x53faxe[_0x3731[24]](400)[_0x3731[23]](_0x53fax11)};var _0x53fax16=_0x53fax15[_0x3731[43]];_0x53fax14[_0x3731[44]]=[{path:_0x53fax16[_0x3731[5]],fileName:_0x53fax16[_0x3731[45]],length:_0x53fax16[_0x3731[46]],contentType:_0x53fax16[_0x3731[47]]}];return sequelize[_0x3731[50]]()[_0x3731[25]](function(_0x53fax17){return MailMessage[_0x3731[32]](_0x53fax14,{include:[{all:true}],transaction:_0x53fax17})[_0x3731[25]](function(_0x53fax13){_0x53fax17[_0x3731[49]]();return _0x53faxe[_0x3731[24]](201)[_0x3731[23]](_0x53fax13);})[_0x3731[22]](function(_0x53fax11){_0x53fax17[_0x3731[48]]();return handleError(_0x53faxe,_0x53fax11);})});})}else {console[_0x3731[53]](_0x3731[52]);_0x53faxd[_0x3731[41]][_0x3731[24]]=_0x3731[54];return sequelize[_0x3731[50]]()[_0x3731[25]](function(_0x53fax17){return MailMessage[_0x3731[32]](_0x53faxd[_0x3731[41]],{transaction:_0x53fax17})[_0x3731[25]](function(_0x53fax13){_0x53fax17[_0x3731[49]]();return _0x53faxe[_0x3731[24]](201)[_0x3731[23]](_0x53fax13);})[_0x3731[22]](function(_0x53fax11){_0x53fax17[_0x3731[48]]();return handleError(_0x53faxe,_0x53fax11);})});};};exports[_0x3731[55]]=function(_0x53faxd,_0x53faxe,_0x53faxf){MailMessage[_0x3731[31]](_0x53faxd[_0x3731[30]][_0x3731[29]],{include:[{all:true}]})[_0x3731[25]](function(_0x53fax13){if(!_0x53fax13){return _0x53faxe[_0x3731[28]](404)};var _0x53fax18=_[_0x3731[56]](_0x53fax13,_0x53faxd[_0x3731[41]]);_0x53fax18[_0x3731[57]]()[_0x3731[25]](function(){return _0x53faxe[_0x3731[24]](200)[_0x3731[23]](_0x53fax18)})[_0x3731[22]](function(_0x53fax11){return handleError(_0x53faxe,_0x53fax11,_0x53faxf)});})[_0x3731[22]](function(_0x53fax11){return handleError(_0x53faxe,_0x53fax11,_0x53faxf)})};exports[_0x3731[58]]=function(_0x53faxd,_0x53faxe,_0x53faxf){MailMessage[_0x3731[31]](_0x53faxd[_0x3731[30]][_0x3731[29]])[_0x3731[25]](function(_0x53fax13){if(!_0x53fax13){return _0x53faxe[_0x3731[28]](404)};_0x53fax13[_0x3731[58]]()[_0x3731[25]](function(){return _0x53faxe[_0x3731[28]](204)})[_0x3731[22]](function(_0x53fax11){return handleError(_0x53faxe,_0x53fax11,_0x53faxf)});})[_0x3731[22]](function(_0x53fax11){return handleError(_0x53faxe,_0x53fax11,_0x53faxf)})};exports[_0x3731[59]]=function(_0x53faxd,_0x53faxe,_0x53faxf){MailMessage[_0x3731[61]]({where:{id:{$in:_0x53faxd[_0x3731[41]][_0x3731[29]]}},attributes:{directory:_0x3731[60]}})[_0x3731[25]](function(_0x53fax13){if(!_0x53fax13){return _0x53faxe[_0x3731[28]](404)};_0x53fax13[_0x3731[58]]()[_0x3731[25]](function(){return _0x53faxe[_0x3731[28]](204)})[_0x3731[22]](function(_0x53fax11){return handleError(_0x53faxe,_0x53fax11,_0x53faxf)});})[_0x3731[22]](function(_0x53fax11){return handleError(_0x53faxe,_0x53fax11,_0x53faxf)})};function handleError(_0x53faxe,_0x53fax11,_0x53faxf){return _0x53faxe[_0x3731[24]](500)[_0x3731[23]](_0x53fax11)}
\ No newline at end of file
-var _0x23d9=["\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"];_0x23d9[0];var MailMessage=require(_0x23d9[2])[_0x23d9[1]];exports[_0x23d9[3]]=function(_0xaec7x2){MailMessage[_0x23d9[4]](function(_0xaec7x3){onSave(_0xaec7x2,_0xaec7x3)});MailMessage[_0x23d9[5]](function(_0xaec7x3){onSave(_0xaec7x2,_0xaec7x3)});MailMessage[_0x23d9[6]](function(_0xaec7x3){onRemove(_0xaec7x2,_0xaec7x3)});};function onSave(_0xaec7x2,_0xaec7x3,_0xaec7x5){_0xaec7x2[_0x23d9[8]](_0x23d9[7],_0xaec7x3)}function onRemove(_0xaec7x2,_0xaec7x3,_0xaec7x5){_0xaec7x2[_0x23d9[8]](_0x23d9[9],_0xaec7x3)}
\ No newline at end of file
+var _0x6226=["\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"];_0x6226[0];var MailMessage=require(_0x6226[2])[_0x6226[1]];exports[_0x6226[3]]=function(_0xcf32x2){MailMessage[_0x6226[4]](function(_0xcf32x3){onSave(_0xcf32x2,_0xcf32x3)});MailMessage[_0x6226[5]](function(_0xcf32x3){onSave(_0xcf32x2,_0xcf32x3)});MailMessage[_0x6226[6]](function(_0xcf32x3){onRemove(_0xcf32x2,_0xcf32x3)});};function onSave(_0xcf32x2,_0xcf32x3,_0xcf32x5){_0xcf32x2[_0x6226[8]](_0x6226[7],_0xcf32x3)}function onRemove(_0xcf32x2,_0xcf32x3,_0xcf32x5){_0xcf32x2[_0x6226[8]](_0x6226[9],_0xcf32x3)}
\ No newline at end of file
-var _0xf4ae=["\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"];_0xf4ae[0];var express=require(_0xf4ae[1]);var controller=require(_0xf4ae[2]);var router=express.Router();router[_0xf4ae[5]](_0xf4ae[3],controller[_0xf4ae[4]]);router[_0xf4ae[5]](_0xf4ae[6],controller[_0xf4ae[7]]);router[_0xf4ae[9]](_0xf4ae[3],controller[_0xf4ae[8]]);router[_0xf4ae[9]](_0xf4ae[10],controller[_0xf4ae[11]]);router[_0xf4ae[13]](_0xf4ae[6],controller[_0xf4ae[12]]);router[_0xf4ae[13]](_0xf4ae[10],controller[_0xf4ae[14]]);router[_0xf4ae[15]](_0xf4ae[6],controller[_0xf4ae[12]]);router[_0xf4ae[17]](_0xf4ae[3],controller[_0xf4ae[16]]);router[_0xf4ae[17]](_0xf4ae[6],controller[_0xf4ae[18]]);module[_0xf4ae[19]]=router;
\ No newline at end of file
+var _0x9446=["\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"];_0x9446[0];var express=require(_0x9446[1]);var controller=require(_0x9446[2]);var router=express.Router();router[_0x9446[5]](_0x9446[3],controller[_0x9446[4]]);router[_0x9446[5]](_0x9446[6],controller[_0x9446[7]]);router[_0x9446[9]](_0x9446[3],controller[_0x9446[8]]);router[_0x9446[9]](_0x9446[10],controller[_0x9446[11]]);router[_0x9446[13]](_0x9446[6],controller[_0x9446[12]]);router[_0x9446[13]](_0x9446[10],controller[_0x9446[14]]);router[_0x9446[15]](_0x9446[6],controller[_0x9446[12]]);router[_0x9446[17]](_0x9446[3],controller[_0x9446[16]]);router[_0x9446[17]](_0x9446[6],controller[_0x9446[18]]);module[_0x9446[19]]=router;
\ No newline at end of file
-var _0xd50c=["\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"];_0xd50c[0];var _=require(_0xd50c[1]);var util=require(_0xd50c[2]);var MailQueue=require(_0xd50c[4])[_0xd50c[3]];exports[_0xd50c[5]]=function(_0xfa64x4,_0xfa64x5){var _0xfa64x6=[_0xd50c[6],_0xd50c[7],_0xd50c[8],_0xd50c[9]];var _0xfa64x7=_0xfa64x4[_0xd50c[11]][_0xd50c[10]]?parseInt(_0xfa64x4[_0xd50c[11]][_0xd50c[10]],10):100;var _0xfa64x8=_0xfa64x4[_0xd50c[11]][_0xd50c[12]]?parseInt(_0xfa64x4[_0xd50c[11]][_0xd50c[12]],10):0;var _0xfa64x9={where:{},limit:_0xfa64x7,offset:_0xfa64x8*_0xfa64x7,include:[{all:true}]};_[_0xd50c[26]](_0xfa64x4[_0xd50c[11]],function(_0xfa64xa,_0xfa64xb){switch(_0xfa64xb){case _0xd50c[10]:;case _0xd50c[12]:break ;;case _0xd50c[15]:_0xfa64x9[_0xd50c[13]]=util[_0xd50c[18]](_0xd50c[14],_0xfa64x4[_0xd50c[11]][_0xd50c[15]],_0xfa64x4[_0xd50c[11]][_0xd50c[16]]||_0xd50c[17])||null;break ;;case _0xd50c[16]:break ;;case _0xd50c[24]:_0xfa64x9[_0xd50c[20]][_0xd50c[19]]=[];_0xfa64x6[_0xd50c[23]](function(_0xfa64xc){var _0xfa64xd={};_0xfa64xd[_0xfa64xc]={$like:_0xd50c[21]+_0xfa64xa+_0xd50c[21]};_0xfa64x9[_0xd50c[20]][_0xd50c[19]][_0xd50c[22]](_0xfa64xd);});break ;;default:_0xfa64x9[_0xd50c[20]][_0xfa64xb]={$like:{}};_0xfa64x9[_0xd50c[20]][_0xfa64xb][_0xd50c[25]]=_0xd50c[21]+_0xfa64xa+_0xd50c[21];;}});MailQueue[_0xd50c[40]](_0xfa64x9)[_0xd50c[39]](function(_0xfa64xf){var _0xfa64x10=Math[_0xd50c[29]](_0xfa64xf[_0xd50c[28]]/_0xfa64x7);var _0xfa64x11=_0xfa64x10>(_0xfa64x9[_0xd50c[30]]+1)?util[_0xd50c[18]](_0xd50c[31],_0xfa64x4[_0xd50c[32]],_0xfa64x4[_0xd50c[34]][_0xd50c[33]],_0xfa64x4[_0xd50c[35]],_0xfa64x8+1):null;var _0xfa64x12=_0xfa64x8>0?util[_0xd50c[18]](_0xd50c[31],_0xfa64x4[_0xd50c[32]],_0xfa64x4[_0xd50c[34]][_0xd50c[33]],_0xfa64x4[_0xd50c[35]],_0xfa64x8-1):null;_0xfa64x5[_0xd50c[38]](200)[_0xd50c[37]]({count:_0xfa64xf[_0xd50c[28]],rows:_0xfa64xf[_0xd50c[36]],next_page:_0xfa64x11,previous_page:_0xfa64x12,total_pages:_0xfa64x10});})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)});};exports[_0xd50c[41]]=function(_0xfa64x4,_0xfa64x5){MailQueue[_0xd50c[45]](_0xfa64x4[_0xd50c[44]][_0xd50c[43]])[_0xd50c[39]](function(_0xfa64x13){if(!_0xfa64x13){return _0xfa64x5[_0xd50c[42]](404)};return _0xfa64x5[_0xd50c[37]](_0xfa64x13);})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)})};exports[_0xd50c[46]]=function(_0xfa64x4,_0xfa64x5){MailQueue[_0xd50c[46]](_0xfa64x4[_0xd50c[47]])[_0xd50c[39]](function(_0xfa64x13){return _0xfa64x5[_0xd50c[38]](201)[_0xd50c[37]](_0xfa64x13)})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)})};exports[_0xd50c[48]]=function(_0xfa64x4,_0xfa64x5){if(_0xfa64x4[_0xd50c[47]][_0xd50c[43]]){delete _0xfa64x4[_0xd50c[47]][_0xd50c[43]]};MailQueue[_0xd50c[45]](_0xfa64x4[_0xd50c[44]][_0xd50c[43]])[_0xd50c[39]](function(_0xfa64x13){if(!_0xfa64x13){return _0xfa64x5[_0xd50c[42]](404)};var _0xfa64x14=_[_0xd50c[49]](_0xfa64x13,_0xfa64x4[_0xd50c[47]]);_0xfa64x14[_0xd50c[50]]()[_0xd50c[39]](function(){return _0xfa64x5[_0xd50c[38]](200)[_0xd50c[37]](_0xfa64x13)})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)});})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)});};exports[_0xd50c[51]]=function(_0xfa64x4,_0xfa64x5,_0xfa64x15){return MailQueue[_0xd50c[45]](_0xfa64x4[_0xd50c[44]][_0xd50c[43]])[_0xd50c[39]](function(_0xfa64x13){if(_0xfa64x13){return _0xfa64x13[_0xd50c[53]](_0xfa64x4[_0xd50c[47]][_0xd50c[52]],{individualHooks:true})}else {throw new Error(_0xd50c[54])}})[_0xd50c[39]](function(){return _0xfa64x5[_0xd50c[42]](200)})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)})};exports[_0xd50c[55]]=function(_0xfa64x4,_0xfa64x5){return MailQueue[_0xd50c[45]](_0xfa64x4[_0xd50c[44]][_0xd50c[43]])[_0xd50c[39]](function(_0xfa64x13){if(_0xfa64x13){return _0xfa64x13[_0xd50c[56]](_0xfa64x4[_0xd50c[47]][_0xd50c[52]],{individualHooks:true})}else {throw new Error(_0xd50c[54])}})[_0xd50c[39]](function(){return _0xfa64x5[_0xd50c[42]](200)})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)})};exports[_0xd50c[57]]=function(_0xfa64x4,_0xfa64x5){MailQueue[_0xd50c[45]](_0xfa64x4[_0xd50c[44]][_0xd50c[43]])[_0xd50c[39]](function(_0xfa64x13){if(!_0xfa64x13){return _0xfa64x5[_0xd50c[42]](404)};_0xfa64x13[_0xd50c[57]]()[_0xd50c[39]](function(){return _0xfa64x5[_0xd50c[42]](204)})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)});})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)})};exports[_0xd50c[58]]=function(_0xfa64x4,_0xfa64x5){MailQueue[_0xd50c[57]]({where:{id:_0xfa64x4[_0xd50c[11]][_0xd50c[43]]},individualHooks:true})[_0xd50c[39]](function(){return _0xfa64x5[_0xd50c[42]](204)})[_0xd50c[27]](function(_0xfa64xe){return handleError(_0xfa64x5,_0xfa64xe)})};function handleError(_0xfa64x5,_0xfa64xe){return _0xfa64x5[_0xd50c[38]](500)[_0xd50c[37]](_0xfa64xe)}
\ No newline at end of file
+var _0x229d=["\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"];_0x229d[0];var _=require(_0x229d[1]);var util=require(_0x229d[2]);var MailQueue=require(_0x229d[4])[_0x229d[3]];exports[_0x229d[5]]=function(_0x574dx4,_0x574dx5){var _0x574dx6=[_0x229d[6],_0x229d[7],_0x229d[8],_0x229d[9]];var _0x574dx7=_0x574dx4[_0x229d[11]][_0x229d[10]]?parseInt(_0x574dx4[_0x229d[11]][_0x229d[10]],10):100;var _0x574dx8=_0x574dx4[_0x229d[11]][_0x229d[12]]?parseInt(_0x574dx4[_0x229d[11]][_0x229d[12]],10):0;var _0x574dx9={where:{},limit:_0x574dx7,offset:_0x574dx8*_0x574dx7,include:[{all:true}]};_[_0x229d[26]](_0x574dx4[_0x229d[11]],function(_0x574dxa,_0x574dxb){switch(_0x574dxb){case _0x229d[10]:;case _0x229d[12]:break ;;case _0x229d[15]:_0x574dx9[_0x229d[13]]=util[_0x229d[18]](_0x229d[14],_0x574dx4[_0x229d[11]][_0x229d[15]],_0x574dx4[_0x229d[11]][_0x229d[16]]||_0x229d[17])||null;break ;;case _0x229d[16]:break ;;case _0x229d[24]:_0x574dx9[_0x229d[20]][_0x229d[19]]=[];_0x574dx6[_0x229d[23]](function(_0x574dxc){var _0x574dxd={};_0x574dxd[_0x574dxc]={$like:_0x229d[21]+_0x574dxa+_0x229d[21]};_0x574dx9[_0x229d[20]][_0x229d[19]][_0x229d[22]](_0x574dxd);});break ;;default:_0x574dx9[_0x229d[20]][_0x574dxb]={$like:{}};_0x574dx9[_0x229d[20]][_0x574dxb][_0x229d[25]]=_0x229d[21]+_0x574dxa+_0x229d[21];;}});MailQueue[_0x229d[40]](_0x574dx9)[_0x229d[39]](function(_0x574dxf){var _0x574dx10=Math[_0x229d[29]](_0x574dxf[_0x229d[28]]/_0x574dx7);var _0x574dx11=_0x574dx10>(_0x574dx9[_0x229d[30]]+1)?util[_0x229d[18]](_0x229d[31],_0x574dx4[_0x229d[32]],_0x574dx4[_0x229d[34]][_0x229d[33]],_0x574dx4[_0x229d[35]],_0x574dx8+1):null;var _0x574dx12=_0x574dx8>0?util[_0x229d[18]](_0x229d[31],_0x574dx4[_0x229d[32]],_0x574dx4[_0x229d[34]][_0x229d[33]],_0x574dx4[_0x229d[35]],_0x574dx8-1):null;_0x574dx5[_0x229d[38]](200)[_0x229d[37]]({count:_0x574dxf[_0x229d[28]],rows:_0x574dxf[_0x229d[36]],next_page:_0x574dx11,previous_page:_0x574dx12,total_pages:_0x574dx10});})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)});};exports[_0x229d[41]]=function(_0x574dx4,_0x574dx5){MailQueue[_0x229d[45]](_0x574dx4[_0x229d[44]][_0x229d[43]])[_0x229d[39]](function(_0x574dx13){if(!_0x574dx13){return _0x574dx5[_0x229d[42]](404)};return _0x574dx5[_0x229d[37]](_0x574dx13);})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)})};exports[_0x229d[46]]=function(_0x574dx4,_0x574dx5){MailQueue[_0x229d[46]](_0x574dx4[_0x229d[47]])[_0x229d[39]](function(_0x574dx13){return _0x574dx5[_0x229d[38]](201)[_0x229d[37]](_0x574dx13)})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)})};exports[_0x229d[48]]=function(_0x574dx4,_0x574dx5){if(_0x574dx4[_0x229d[47]][_0x229d[43]]){delete _0x574dx4[_0x229d[47]][_0x229d[43]]};MailQueue[_0x229d[45]](_0x574dx4[_0x229d[44]][_0x229d[43]])[_0x229d[39]](function(_0x574dx13){if(!_0x574dx13){return _0x574dx5[_0x229d[42]](404)};var _0x574dx14=_[_0x229d[49]](_0x574dx13,_0x574dx4[_0x229d[47]]);_0x574dx14[_0x229d[50]]()[_0x229d[39]](function(){return _0x574dx5[_0x229d[38]](200)[_0x229d[37]](_0x574dx13)})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)});})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)});};exports[_0x229d[51]]=function(_0x574dx4,_0x574dx5,_0x574dx15){return MailQueue[_0x229d[45]](_0x574dx4[_0x229d[44]][_0x229d[43]])[_0x229d[39]](function(_0x574dx13){if(_0x574dx13){return _0x574dx13[_0x229d[53]](_0x574dx4[_0x229d[47]][_0x229d[52]],{individualHooks:true})}else {throw new Error(_0x229d[54])}})[_0x229d[39]](function(){return _0x574dx5[_0x229d[42]](200)})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)})};exports[_0x229d[55]]=function(_0x574dx4,_0x574dx5){return MailQueue[_0x229d[45]](_0x574dx4[_0x229d[44]][_0x229d[43]])[_0x229d[39]](function(_0x574dx13){if(_0x574dx13){return _0x574dx13[_0x229d[56]](_0x574dx4[_0x229d[47]][_0x229d[52]],{individualHooks:true})}else {throw new Error(_0x229d[54])}})[_0x229d[39]](function(){return _0x574dx5[_0x229d[42]](200)})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)})};exports[_0x229d[57]]=function(_0x574dx4,_0x574dx5){MailQueue[_0x229d[45]](_0x574dx4[_0x229d[44]][_0x229d[43]])[_0x229d[39]](function(_0x574dx13){if(!_0x574dx13){return _0x574dx5[_0x229d[42]](404)};_0x574dx13[_0x229d[57]]()[_0x229d[39]](function(){return _0x574dx5[_0x229d[42]](204)})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)});})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)})};exports[_0x229d[58]]=function(_0x574dx4,_0x574dx5){MailQueue[_0x229d[57]]({where:{id:_0x574dx4[_0x229d[11]][_0x229d[43]]},individualHooks:true})[_0x229d[39]](function(){return _0x574dx5[_0x229d[42]](204)})[_0x229d[27]](function(_0x574dxe){return handleError(_0x574dx5,_0x574dxe)})};function handleError(_0x574dx5,_0x574dxe){return _0x574dx5[_0x229d[38]](500)[_0x229d[37]](_0x574dxe)}
\ No newline at end of file
-var _0x3b6a=["\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"];_0x3b6a[0];var MailQueue=require(_0x3b6a[2])[_0x3b6a[1]];exports[_0x3b6a[3]]=function(_0x8b11x2){MailQueue[_0x3b6a[4]](function(_0x8b11x3){onSave(_0x8b11x2,_0x8b11x3)});MailQueue[_0x3b6a[5]](function(_0x8b11x3){onRemove(_0x8b11x2,_0x8b11x3)});};function onSave(_0x8b11x2,_0x8b11x3,_0x8b11x5){_0x8b11x2[_0x3b6a[7]](_0x3b6a[6],_0x8b11x3)}function onRemove(_0x8b11x2,_0x8b11x3,_0x8b11x5){_0x8b11x2[_0x3b6a[7]](_0x3b6a[8],_0x8b11x3)}
\ No newline at end of file
+var _0x961d=["\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"];_0x961d[0];var MailQueue=require(_0x961d[2])[_0x961d[1]];exports[_0x961d[3]]=function(_0xd74ax2){MailQueue[_0x961d[4]](function(_0xd74ax3){onSave(_0xd74ax2,_0xd74ax3)});MailQueue[_0x961d[5]](function(_0xd74ax3){onRemove(_0xd74ax2,_0xd74ax3)});};function onSave(_0xd74ax2,_0xd74ax3,_0xd74ax5){_0xd74ax2[_0x961d[7]](_0x961d[6],_0xd74ax3)}function onRemove(_0xd74ax2,_0xd74ax3,_0xd74ax5){_0xd74ax2[_0x961d[7]](_0x961d[8],_0xd74ax3)}
\ No newline at end of file
-var _0x9d06=["\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"];_0x9d06[0];var should=require(_0x9d06[1]);var app=require(_0x9d06[2]);var request=require(_0x9d06[3]);describe(_0x9d06[4],function(){it(_0x9d06[5],function(_0x7605x4){request(app)[_0x9d06[13]](_0x9d06[12])[_0x9d06[11]](200)[_0x9d06[11]](_0x9d06[10],/json/)[_0x9d06[9]](function(_0x7605x5,_0x7605x6){if(_0x7605x5){return _0x7605x4(_0x7605x5)};_0x7605x6[_0x9d06[8]][_0x9d06[1]][_0x9d06[7]][_0x9d06[6]](Array);_0x7605x4();})})});
\ No newline at end of file
+var _0xf963=["\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"];_0xf963[0];var should=require(_0xf963[1]);var app=require(_0xf963[2]);var request=require(_0xf963[3]);describe(_0xf963[4],function(){it(_0xf963[5],function(_0xdb90x4){request(app)[_0xf963[13]](_0xf963[12])[_0xf963[11]](200)[_0xf963[11]](_0xf963[10],/json/)[_0xf963[9]](function(_0xdb90x5,_0xdb90x6){if(_0xdb90x5){return _0xdb90x4(_0xdb90x5)};_0xdb90x6[_0xf963[8]][_0xf963[1]][_0xf963[7]][_0xf963[6]](Array);_0xdb90x4();})})});
\ No newline at end of file
-var _0xf667=["\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"];_0xf667[0];var express=require(_0xf667[1]);var controller=require(_0xf667[2]);var router=express.Router();router[_0xf667[5]](_0xf667[3],controller[_0xf667[4]]);router[_0xf667[5]](_0xf667[6],controller[_0xf667[7]]);router[_0xf667[5]](_0xf667[8],controller[_0xf667[9]]);router[_0xf667[11]](_0xf667[3],controller[_0xf667[10]]);router[_0xf667[13]](_0xf667[8],controller[_0xf667[12]]);router[_0xf667[14]](_0xf667[8],controller[_0xf667[12]]);router[_0xf667[16]](_0xf667[3],controller[_0xf667[15]]);router[_0xf667[16]](_0xf667[8],controller[_0xf667[17]]);module[_0xf667[18]]=router;
\ No newline at end of file
+var _0x88a7=["\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"];_0x88a7[0];var express=require(_0x88a7[1]);var controller=require(_0x88a7[2]);var router=express.Router();router[_0x88a7[5]](_0x88a7[3],controller[_0x88a7[4]]);router[_0x88a7[5]](_0x88a7[6],controller[_0x88a7[7]]);router[_0x88a7[5]](_0x88a7[8],controller[_0x88a7[9]]);router[_0x88a7[11]](_0x88a7[3],controller[_0x88a7[10]]);router[_0x88a7[13]](_0x88a7[8],controller[_0x88a7[12]]);router[_0x88a7[14]](_0x88a7[8],controller[_0x88a7[12]]);router[_0x88a7[16]](_0x88a7[3],controller[_0x88a7[15]]);router[_0x88a7[16]](_0x88a7[8],controller[_0x88a7[17]]);module[_0x88a7[18]]=router;
\ No newline at end of file
-var _0x8165=["\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"];_0x8165[0];var _=require(_0x8165[1]);var util=require(_0x8165[2]);var User=require(_0x8165[4])[_0x8165[3]];var Contact=require(_0x8165[4])[_0x8165[5]];var MailRoom=require(_0x8165[4])[_0x8165[6]];var MailMessage=require(_0x8165[4])[_0x8165[7]];var MailAccount=require(_0x8165[4])[_0x8165[8]];var MailAttachment=require(_0x8165[4])[_0x8165[9]];exports[_0x8165[10]]=function(_0xe76fx9,_0xe76fxa,_0xe76fxb){var _0xe76fxc=[_0x8165[11],_0x8165[12],_0x8165[13]];var _0xe76fxd=_0xe76fx9[_0x8165[15]][_0x8165[14]]?parseInt(_0xe76fx9[_0x8165[15]][_0x8165[14]],10):100;var _0xe76fxe=_0xe76fx9[_0x8165[15]][_0x8165[16]]?parseInt(_0xe76fx9[_0x8165[15]][_0x8165[16]],10):0;var _0xe76fxf={where:{status:{$or:[_0x8165[17],_0x8165[18]]}},limit:_0xe76fxd,offset:_0xe76fxe*_0xe76fxd,include:[{all:true}]};_[_0x8165[32]](_0xe76fx9[_0x8165[15]],function(_0xe76fx10,_0xe76fx11){switch(_0xe76fx11){case _0x8165[14]:;case _0x8165[16]:break ;;case _0x8165[21]:_0xe76fxf[_0x8165[19]]=util[_0x8165[24]](_0x8165[20],_0xe76fx9[_0x8165[15]][_0x8165[21]],_0xe76fx9[_0x8165[15]][_0x8165[22]]||_0x8165[23])||null;break ;;case _0x8165[22]:break ;;case _0x8165[30]:_0xe76fxf[_0x8165[26]][_0x8165[25]]=[];_0xe76fxc[_0x8165[29]](function(_0xe76fx12){var _0xe76fx13={};_0xe76fx13[_0xe76fx12]={$like:_0x8165[27]+_0xe76fx10+_0x8165[27]};_0xe76fxf[_0x8165[26]][_0x8165[25]][_0x8165[28]](_0xe76fx13);});break ;;default:_0xe76fxf[_0x8165[26]][_0xe76fx11]={$like:{}};_0xe76fxf[_0x8165[26]][_0xe76fx11][_0x8165[31]]=_0x8165[27]+_0xe76fx10+_0x8165[27];;}});MailRoom[_0x8165[45]](_0xe76fxf)[_0x8165[44]](function(_0xe76fx15){var _0xe76fx16=Math[_0x8165[35]](_0xe76fx15[_0x8165[34]]/_0xe76fxd);var _0xe76fx17=_0xe76fx16>(_0xe76fxf[_0x8165[36]]+1)?util[_0x8165[24]](_0x8165[37],_0xe76fx9[_0x8165[38]],_0xe76fx9[_0x8165[40]][_0x8165[39]],_0xe76fx9[_0x8165[41]],_0xe76fxe+1):null;var _0xe76fx18=_0xe76fxe>0?util[_0x8165[24]](_0x8165[37],_0xe76fx9[_0x8165[38]],_0xe76fx9[_0x8165[40]][_0x8165[39]],_0xe76fx9[_0x8165[41]],_0xe76fxe-1):null;_0xe76fxa[_0x8165[13]](200)[_0x8165[43]]({count:_0xe76fx15[_0x8165[34]],mailRooms:_0xe76fx15[_0x8165[42]],next_page:_0xe76fx17,previous_page:_0xe76fx18,total_pages:_0xe76fx16});})[_0x8165[33]](function(_0xe76fx14){return _0xe76fxb(_0xe76fx14)});};exports[_0x8165[46]]=function(_0xe76fx9,_0xe76fxa,_0xe76fxb){MailRoom[_0x8165[49]]({where:{UserId:_0xe76fx9[_0x8165[48]][_0x8165[47]]},include:[{all:true}]})[_0x8165[44]](function(_0xe76fx19){return _0xe76fxa[_0x8165[13]](200)[_0x8165[43]](_0xe76fx19)})[_0x8165[33]](function(_0xe76fx14){return _0xe76fxb(_0xe76fx14)})};exports[_0x8165[50]]=function(_0xe76fx9,_0xe76fxa,_0xe76fxb){return MailRoom[_0x8165[52]](_0xe76fx9[_0x8165[48]][_0x8165[47]],{include:[{model:MailMessage,include:[{model:MailRoom,include:[{model:MailAccount}]},{model:MailAttachment}]}]})[_0x8165[44]](function(_0xe76fx1a){if(!_0xe76fx1a){return _0xe76fxa[_0x8165[51]](404)};return _0xe76fxa[_0x8165[43]](_0xe76fx1a);})[_0x8165[33]](function(_0xe76fx14){return _0xe76fxb(_0xe76fx14)})};exports[_0x8165[53]]=function(_0xe76fx9,_0xe76fxa,_0xe76fxb){return MailRoom[_0x8165[53]](_0xe76fx9[_0x8165[54]])[_0x8165[44]](function(_0xe76fx1a){return _0xe76fxa[_0x8165[13]](201)[_0x8165[43]](_0xe76fx1a)})[_0x8165[33]](function(_0xe76fx14){return handleError(_0xe76fxa,_0xe76fx14)})};exports[_0x8165[55]]=function(_0xe76fx9,_0xe76fxa,_0xe76fxb){return MailRoom[_0x8165[52]](_0xe76fx9[_0x8165[48]][_0x8165[47]])[_0x8165[44]](function(_0xe76fx1a){if(!_0xe76fx1a){return _0xe76fxa[_0x8165[51]](404)};if(_0xe76fx1a[_0x8165[56]]){throw new Error(_0x8165[57])};var _0xe76fx1b=_[_0x8165[58]](_0xe76fx1a,_0xe76fx9[_0x8165[54]]);return _0xe76fx1b[_0x8165[59]]();})[_0x8165[44]](function(_0xe76fx1a){return _0xe76fxa[_0x8165[13]](200)[_0x8165[43]](_0xe76fx1a)})[_0x8165[33]](function(_0xe76fx14){return handleError(_0xe76fxa,_0xe76fx14)})};exports[_0x8165[60]]=function(_0xe76fx9,_0xe76fxa,_0xe76fxb){return MailRoom[_0x8165[52]](_0xe76fx9[_0x8165[48]][_0x8165[47]])[_0x8165[44]](function(_0xe76fx1a){if(!_0xe76fx1a){return _0xe76fxa[_0x8165[51]](404)};return _0xe76fx1a[_0x8165[60]]();})[_0x8165[44]](function(){return _0xe76fxa[_0x8165[51]](204)})[_0x8165[33]](function(_0xe76fx14){return handleError(_0xe76fxa,_0xe76fx14)})};exports[_0x8165[61]]=function(_0xe76fx9,_0xe76fxa){return MailRoom[_0x8165[60]]({where:{id:_0xe76fx9[_0x8165[15]][_0x8165[47]]},individualHooks:true})[_0x8165[44]](function(){return _0xe76fxa[_0x8165[51]](200)})[_0x8165[33]](function(_0xe76fx14){return handleError(_0xe76fxa,_0xe76fx14)})};function handleError(_0xe76fxa,_0xe76fx14){return _0xe76fxa[_0x8165[13]](500)[_0x8165[43]](_0xe76fx14)}
\ No newline at end of file
+var _0xc42c=["\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"];_0xc42c[0];var _=require(_0xc42c[1]);var util=require(_0xc42c[2]);var User=require(_0xc42c[4])[_0xc42c[3]];var Contact=require(_0xc42c[4])[_0xc42c[5]];var MailRoom=require(_0xc42c[4])[_0xc42c[6]];var MailMessage=require(_0xc42c[4])[_0xc42c[7]];var MailAccount=require(_0xc42c[4])[_0xc42c[8]];var MailAttachment=require(_0xc42c[4])[_0xc42c[9]];exports[_0xc42c[10]]=function(_0x8339x9,_0x8339xa,_0x8339xb){var _0x8339xc=[_0xc42c[11],_0xc42c[12],_0xc42c[13]];var _0x8339xd=_0x8339x9[_0xc42c[15]][_0xc42c[14]]?parseInt(_0x8339x9[_0xc42c[15]][_0xc42c[14]],10):100;var _0x8339xe=_0x8339x9[_0xc42c[15]][_0xc42c[16]]?parseInt(_0x8339x9[_0xc42c[15]][_0xc42c[16]],10):0;var _0x8339xf={where:{status:{$or:[_0xc42c[17],_0xc42c[18]]}},limit:_0x8339xd,offset:_0x8339xe*_0x8339xd,include:[{all:true}]};_[_0xc42c[32]](_0x8339x9[_0xc42c[15]],function(_0x8339x10,_0x8339x11){switch(_0x8339x11){case _0xc42c[14]:;case _0xc42c[16]:break ;;case _0xc42c[21]:_0x8339xf[_0xc42c[19]]=util[_0xc42c[24]](_0xc42c[20],_0x8339x9[_0xc42c[15]][_0xc42c[21]],_0x8339x9[_0xc42c[15]][_0xc42c[22]]||_0xc42c[23])||null;break ;;case _0xc42c[22]:break ;;case _0xc42c[30]:_0x8339xf[_0xc42c[26]][_0xc42c[25]]=[];_0x8339xc[_0xc42c[29]](function(_0x8339x12){var _0x8339x13={};_0x8339x13[_0x8339x12]={$like:_0xc42c[27]+_0x8339x10+_0xc42c[27]};_0x8339xf[_0xc42c[26]][_0xc42c[25]][_0xc42c[28]](_0x8339x13);});break ;;default:_0x8339xf[_0xc42c[26]][_0x8339x11]={$like:{}};_0x8339xf[_0xc42c[26]][_0x8339x11][_0xc42c[31]]=_0xc42c[27]+_0x8339x10+_0xc42c[27];;}});MailRoom[_0xc42c[45]](_0x8339xf)[_0xc42c[44]](function(_0x8339x15){var _0x8339x16=Math[_0xc42c[35]](_0x8339x15[_0xc42c[34]]/_0x8339xd);var _0x8339x17=_0x8339x16>(_0x8339xf[_0xc42c[36]]+1)?util[_0xc42c[24]](_0xc42c[37],_0x8339x9[_0xc42c[38]],_0x8339x9[_0xc42c[40]][_0xc42c[39]],_0x8339x9[_0xc42c[41]],_0x8339xe+1):null;var _0x8339x18=_0x8339xe>0?util[_0xc42c[24]](_0xc42c[37],_0x8339x9[_0xc42c[38]],_0x8339x9[_0xc42c[40]][_0xc42c[39]],_0x8339x9[_0xc42c[41]],_0x8339xe-1):null;_0x8339xa[_0xc42c[13]](200)[_0xc42c[43]]({count:_0x8339x15[_0xc42c[34]],mailRooms:_0x8339x15[_0xc42c[42]],next_page:_0x8339x17,previous_page:_0x8339x18,total_pages:_0x8339x16});})[_0xc42c[33]](function(_0x8339x14){return _0x8339xb(_0x8339x14)});};exports[_0xc42c[46]]=function(_0x8339x9,_0x8339xa,_0x8339xb){MailRoom[_0xc42c[49]]({where:{UserId:_0x8339x9[_0xc42c[48]][_0xc42c[47]]},include:[{all:true}]})[_0xc42c[44]](function(_0x8339x19){return _0x8339xa[_0xc42c[13]](200)[_0xc42c[43]](_0x8339x19)})[_0xc42c[33]](function(_0x8339x14){return _0x8339xb(_0x8339x14)})};exports[_0xc42c[50]]=function(_0x8339x9,_0x8339xa,_0x8339xb){return MailRoom[_0xc42c[52]](_0x8339x9[_0xc42c[48]][_0xc42c[47]],{include:[{model:MailMessage,include:[{model:MailRoom,include:[{model:MailAccount}]},{model:MailAttachment}]}]})[_0xc42c[44]](function(_0x8339x1a){if(!_0x8339x1a){return _0x8339xa[_0xc42c[51]](404)};return _0x8339xa[_0xc42c[43]](_0x8339x1a);})[_0xc42c[33]](function(_0x8339x14){return _0x8339xb(_0x8339x14)})};exports[_0xc42c[53]]=function(_0x8339x9,_0x8339xa,_0x8339xb){return MailRoom[_0xc42c[53]](_0x8339x9[_0xc42c[54]])[_0xc42c[44]](function(_0x8339x1a){return _0x8339xa[_0xc42c[13]](201)[_0xc42c[43]](_0x8339x1a)})[_0xc42c[33]](function(_0x8339x14){return handleError(_0x8339xa,_0x8339x14)})};exports[_0xc42c[55]]=function(_0x8339x9,_0x8339xa,_0x8339xb){return MailRoom[_0xc42c[52]](_0x8339x9[_0xc42c[48]][_0xc42c[47]])[_0xc42c[44]](function(_0x8339x1a){if(!_0x8339x1a){return _0x8339xa[_0xc42c[51]](404)};if(_0x8339x1a[_0xc42c[56]]){throw new Error(_0xc42c[57])};var _0x8339x1b=_[_0xc42c[58]](_0x8339x1a,_0x8339x9[_0xc42c[54]]);return _0x8339x1b[_0xc42c[59]]();})[_0xc42c[44]](function(_0x8339x1a){return _0x8339xa[_0xc42c[13]](200)[_0xc42c[43]](_0x8339x1a)})[_0xc42c[33]](function(_0x8339x14){return handleError(_0x8339xa,_0x8339x14)})};exports[_0xc42c[60]]=function(_0x8339x9,_0x8339xa,_0x8339xb){return MailRoom[_0xc42c[52]](_0x8339x9[_0xc42c[48]][_0xc42c[47]])[_0xc42c[44]](function(_0x8339x1a){if(!_0x8339x1a){return _0x8339xa[_0xc42c[51]](404)};return _0x8339x1a[_0xc42c[60]]();})[_0xc42c[44]](function(){return _0x8339xa[_0xc42c[51]](204)})[_0xc42c[33]](function(_0x8339x14){return handleError(_0x8339xa,_0x8339x14)})};exports[_0xc42c[61]]=function(_0x8339x9,_0x8339xa){return MailRoom[_0xc42c[60]]({where:{id:_0x8339x9[_0xc42c[15]][_0xc42c[47]]},individualHooks:true})[_0xc42c[44]](function(){return _0x8339xa[_0xc42c[51]](200)})[_0xc42c[33]](function(_0x8339x14){return handleError(_0x8339xa,_0x8339x14)})};function handleError(_0x8339xa,_0x8339x14){return _0x8339xa[_0xc42c[13]](500)[_0xc42c[43]](_0x8339x14)}
\ No newline at end of file
-var _0x3d66=["\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"];_0x3d66[0];var MailMessage=require(_0x3d66[2])[_0x3d66[1]];var MailRoom=require(_0x3d66[2])[_0x3d66[3]];var User=require(_0x3d66[2])[_0x3d66[4]];exports[_0x3d66[5]]=function(_0x5a97x4){MailRoom[_0x3d66[6]](function(_0x5a97x5){onSave(_0x5a97x4,_0x5a97x5)});MailRoom[_0x3d66[7]](function(_0x5a97x5){onRemove(_0x5a97x4,_0x5a97x5)});MailRoom[_0x3d66[13]](function(_0x5a97x5){MailRoom[_0x3d66[12]](_0x5a97x5[_0x3d66[11]],{include:[{all:true}]})[_0x3d66[10]](function(_0x5a97x7){onSave(_0x5a97x4,_0x5a97x7)})[_0x3d66[9]](function(_0x5a97x6){console[_0x3d66[8]](_0x5a97x6)})});MailRoom[_0x3d66[7]](function(_0x5a97x5){onRemove(_0x5a97x4,_0x5a97x5)});};function onSave(_0x5a97x4,_0x5a97x5,_0x5a97x9){_0x5a97x4[_0x3d66[15]](_0x3d66[14],_0x5a97x5)}function onRemove(_0x5a97x4,_0x5a97x5,_0x5a97x9){_0x5a97x4[_0x3d66[15]](_0x3d66[16],_0x5a97x5)}
\ No newline at end of file
+var _0xa594=["\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"];_0xa594[0];var MailMessage=require(_0xa594[2])[_0xa594[1]];var MailRoom=require(_0xa594[2])[_0xa594[3]];var User=require(_0xa594[2])[_0xa594[4]];exports[_0xa594[5]]=function(_0xfe64x4){MailRoom[_0xa594[6]](function(_0xfe64x5){onSave(_0xfe64x4,_0xfe64x5)});MailRoom[_0xa594[7]](function(_0xfe64x5){onRemove(_0xfe64x4,_0xfe64x5)});MailRoom[_0xa594[13]](function(_0xfe64x5){MailRoom[_0xa594[12]](_0xfe64x5[_0xa594[11]],{include:[{all:true}]})[_0xa594[10]](function(_0xfe64x7){onSave(_0xfe64x4,_0xfe64x7)})[_0xa594[9]](function(_0xfe64x6){console[_0xa594[8]](_0xfe64x6)})});MailRoom[_0xa594[7]](function(_0xfe64x5){onRemove(_0xfe64x4,_0xfe64x5)});};function onSave(_0xfe64x4,_0xfe64x5,_0xfe64x9){_0xfe64x4[_0xa594[15]](_0xa594[14],_0xfe64x5)}function onRemove(_0xfe64x4,_0xfe64x5,_0xfe64x9){_0xfe64x4[_0xa594[15]](_0xa594[16],_0xfe64x5)}
\ No newline at end of file
-var _0x2951=["\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"];_0x2951[0];var express=require(_0x2951[1]);var controller=require(_0x2951[2]);var router=express.Router();router[_0x2951[5]](_0x2951[3],controller[_0x2951[4]]);router[_0x2951[5]](_0x2951[6],controller[_0x2951[7]]);router[_0x2951[9]](_0x2951[3],controller[_0x2951[8]]);router[_0x2951[11]](_0x2951[6],controller[_0x2951[10]]);router[_0x2951[12]](_0x2951[6],controller[_0x2951[10]]);router[_0x2951[14]](_0x2951[6],controller[_0x2951[13]]);module[_0x2951[15]]=router;
\ No newline at end of file
+var _0x57f0=["\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"];_0x57f0[0];var express=require(_0x57f0[1]);var controller=require(_0x57f0[2]);var router=express.Router();router[_0x57f0[5]](_0x57f0[3],controller[_0x57f0[4]]);router[_0x57f0[5]](_0x57f0[6],controller[_0x57f0[7]]);router[_0x57f0[9]](_0x57f0[3],controller[_0x57f0[8]]);router[_0x57f0[11]](_0x57f0[6],controller[_0x57f0[10]]);router[_0x57f0[12]](_0x57f0[6],controller[_0x57f0[10]]);router[_0x57f0[14]](_0x57f0[6],controller[_0x57f0[13]]);module[_0x57f0[15]]=router;
\ No newline at end of file
-var _0xad46=["\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"];_0xad46[0];var _=require(_0xad46[1]);var MailServerIn=require(_0xad46[3])[_0xad46[2]];exports[_0xad46[4]]=function(_0x6360x3,_0x6360x4){MailServerIn[_0xad46[9]]()[_0xad46[8]](function(_0x6360x6){return _0x6360x4[_0xad46[7]](200)[_0xad46[6]](_0x6360x6)})[_0xad46[5]](function(_0x6360x5){return handleError(_0x6360x4,_0x6360x5)})};exports[_0xad46[10]]=function(_0x6360x3,_0x6360x4){MailServerIn[_0xad46[14]](_0x6360x3[_0xad46[13]][_0xad46[12]])[_0xad46[8]](function(_0x6360x7){if(!_0x6360x7){return _0x6360x4[_0xad46[11]](404)};return _0x6360x4[_0xad46[6]](_0x6360x7);})[_0xad46[5]](function(_0x6360x5){return handleError(_0x6360x4,_0x6360x5)})};exports[_0xad46[15]]=function(_0x6360x3,_0x6360x4){MailServerIn[_0xad46[15]](_0x6360x3[_0xad46[16]])[_0xad46[8]](function(_0x6360x7){return _0x6360x4[_0xad46[7]](201)[_0xad46[6]](_0x6360x7)})[_0xad46[5]](function(_0x6360x5){return handleError(_0x6360x4,_0x6360x5)})};exports[_0xad46[17]]=function(_0x6360x3,_0x6360x4){if(_0x6360x3[_0xad46[16]][_0xad46[12]]){delete _0x6360x3[_0xad46[16]][_0xad46[12]]};return MailServerIn[_0xad46[14]](_0x6360x3[_0xad46[13]][_0xad46[12]])[_0xad46[8]](function(_0x6360x7){if(!_0x6360x7){return _0x6360x4[_0xad46[11]](404)};var _0x6360x8=_[_0xad46[19]](_0x6360x7,_0x6360x3[_0xad46[16]]);_0x6360x8[_0xad46[20]]()[_0xad46[8]](function(){return _0x6360x4[_0xad46[7]](200)[_0xad46[6]](_0x6360x7)})[_0xad46[5]](function(_0x6360x5){console[_0xad46[18]](_0x6360x5);return handleError(_0x6360x4,_0x6360x5);});})[_0xad46[5]](function(_0x6360x5){console[_0xad46[18]](_0x6360x5);return handleError(_0x6360x4,_0x6360x5);});};exports[_0xad46[21]]=function(_0x6360x3,_0x6360x4){MailServerIn[_0xad46[14]](_0x6360x3[_0xad46[13]][_0xad46[12]])[_0xad46[8]](function(_0x6360x7){if(!_0x6360x7){return _0x6360x4[_0xad46[11]](404)};_0x6360x7[_0xad46[21]]()[_0xad46[8]](function(){return _0x6360x4[_0xad46[11]](204)})[_0xad46[5]](function(_0x6360x5){return handleError(_0x6360x4,_0x6360x5)});})[_0xad46[5]](function(_0x6360x5){return handleError(_0x6360x4,_0x6360x5)})};function handleError(_0x6360x4,_0x6360x5){return _0x6360x4[_0xad46[7]](500)[_0xad46[6]](_0x6360x5)}
\ No newline at end of file
+var _0xe2cb=["\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"];_0xe2cb[0];var _=require(_0xe2cb[1]);var MailServerIn=require(_0xe2cb[3])[_0xe2cb[2]];exports[_0xe2cb[4]]=function(_0x8357x3,_0x8357x4){MailServerIn[_0xe2cb[9]]()[_0xe2cb[8]](function(_0x8357x6){return _0x8357x4[_0xe2cb[7]](200)[_0xe2cb[6]](_0x8357x6)})[_0xe2cb[5]](function(_0x8357x5){return handleError(_0x8357x4,_0x8357x5)})};exports[_0xe2cb[10]]=function(_0x8357x3,_0x8357x4){MailServerIn[_0xe2cb[14]](_0x8357x3[_0xe2cb[13]][_0xe2cb[12]])[_0xe2cb[8]](function(_0x8357x7){if(!_0x8357x7){return _0x8357x4[_0xe2cb[11]](404)};return _0x8357x4[_0xe2cb[6]](_0x8357x7);})[_0xe2cb[5]](function(_0x8357x5){return handleError(_0x8357x4,_0x8357x5)})};exports[_0xe2cb[15]]=function(_0x8357x3,_0x8357x4){MailServerIn[_0xe2cb[15]](_0x8357x3[_0xe2cb[16]])[_0xe2cb[8]](function(_0x8357x7){return _0x8357x4[_0xe2cb[7]](201)[_0xe2cb[6]](_0x8357x7)})[_0xe2cb[5]](function(_0x8357x5){return handleError(_0x8357x4,_0x8357x5)})};exports[_0xe2cb[17]]=function(_0x8357x3,_0x8357x4){if(_0x8357x3[_0xe2cb[16]][_0xe2cb[12]]){delete _0x8357x3[_0xe2cb[16]][_0xe2cb[12]]};return MailServerIn[_0xe2cb[14]](_0x8357x3[_0xe2cb[13]][_0xe2cb[12]])[_0xe2cb[8]](function(_0x8357x7){if(!_0x8357x7){return _0x8357x4[_0xe2cb[11]](404)};var _0x8357x8=_[_0xe2cb[19]](_0x8357x7,_0x8357x3[_0xe2cb[16]]);_0x8357x8[_0xe2cb[20]]()[_0xe2cb[8]](function(){return _0x8357x4[_0xe2cb[7]](200)[_0xe2cb[6]](_0x8357x7)})[_0xe2cb[5]](function(_0x8357x5){console[_0xe2cb[18]](_0x8357x5);return handleError(_0x8357x4,_0x8357x5);});})[_0xe2cb[5]](function(_0x8357x5){console[_0xe2cb[18]](_0x8357x5);return handleError(_0x8357x4,_0x8357x5);});};exports[_0xe2cb[21]]=function(_0x8357x3,_0x8357x4){MailServerIn[_0xe2cb[14]](_0x8357x3[_0xe2cb[13]][_0xe2cb[12]])[_0xe2cb[8]](function(_0x8357x7){if(!_0x8357x7){return _0x8357x4[_0xe2cb[11]](404)};_0x8357x7[_0xe2cb[21]]()[_0xe2cb[8]](function(){return _0x8357x4[_0xe2cb[11]](204)})[_0xe2cb[5]](function(_0x8357x5){return handleError(_0x8357x4,_0x8357x5)});})[_0xe2cb[5]](function(_0x8357x5){return handleError(_0x8357x4,_0x8357x5)})};function handleError(_0x8357x4,_0x8357x5){return _0x8357x4[_0xe2cb[7]](500)[_0xe2cb[6]](_0x8357x5)}
\ No newline at end of file
-var _0xd87e=["\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"];_0xd87e[0];var MailServerIn=require(_0xd87e[2])[_0xd87e[1]];exports[_0xd87e[3]]=function(_0x9d90x2){MailServerIn[_0xd87e[4]](function(_0x9d90x3){onSave(_0x9d90x2,_0x9d90x3)});MailServerIn[_0xd87e[5]](function(_0x9d90x3){onSave(_0x9d90x2,_0x9d90x3)});MailServerIn[_0xd87e[6]](function(_0x9d90x3){onRemove(_0x9d90x2,_0x9d90x3)});};function onSave(_0x9d90x2,_0x9d90x3,_0x9d90x5){_0x9d90x2[_0xd87e[8]](_0xd87e[7],_0x9d90x3)}function onRemove(_0x9d90x2,_0x9d90x3,_0x9d90x5){_0x9d90x2[_0xd87e[8]](_0xd87e[9],_0x9d90x3)}
\ No newline at end of file
+var _0xd154=["\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"];_0xd154[0];var MailServerIn=require(_0xd154[2])[_0xd154[1]];exports[_0xd154[3]]=function(_0xcb87x2){MailServerIn[_0xd154[4]](function(_0xcb87x3){onSave(_0xcb87x2,_0xcb87x3)});MailServerIn[_0xd154[5]](function(_0xcb87x3){onSave(_0xcb87x2,_0xcb87x3)});MailServerIn[_0xd154[6]](function(_0xcb87x3){onRemove(_0xcb87x2,_0xcb87x3)});};function onSave(_0xcb87x2,_0xcb87x3,_0xcb87x5){_0xcb87x2[_0xd154[8]](_0xd154[7],_0xcb87x3)}function onRemove(_0xcb87x2,_0xcb87x3,_0xcb87x5){_0xcb87x2[_0xd154[8]](_0xd154[9],_0xcb87x3)}
\ No newline at end of file
-var _0xcb5b=["\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"];_0xcb5b[0];var express=require(_0xcb5b[1]);var controller=require(_0xcb5b[2]);var router=express.Router();router[_0xcb5b[5]](_0xcb5b[3],controller[_0xcb5b[4]]);router[_0xcb5b[5]](_0xcb5b[6],controller[_0xcb5b[7]]);router[_0xcb5b[5]](_0xcb5b[8],controller[_0xcb5b[9]]);router[_0xcb5b[5]](_0xcb5b[10],controller[_0xcb5b[11]]);router[_0xcb5b[13]](_0xcb5b[3],controller[_0xcb5b[12]]);router[_0xcb5b[13]](_0xcb5b[14],controller[_0xcb5b[11]]);router[_0xcb5b[16]](_0xcb5b[8],controller[_0xcb5b[15]]);router[_0xcb5b[17]](_0xcb5b[8],controller[_0xcb5b[15]]);router[_0xcb5b[19]](_0xcb5b[8],controller[_0xcb5b[18]]);module[_0xcb5b[20]]=router;
\ No newline at end of file
+var _0x2eb2=["\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"];_0x2eb2[0];var express=require(_0x2eb2[1]);var controller=require(_0x2eb2[2]);var router=express.Router();router[_0x2eb2[5]](_0x2eb2[3],controller[_0x2eb2[4]]);router[_0x2eb2[5]](_0x2eb2[6],controller[_0x2eb2[7]]);router[_0x2eb2[5]](_0x2eb2[8],controller[_0x2eb2[9]]);router[_0x2eb2[5]](_0x2eb2[10],controller[_0x2eb2[11]]);router[_0x2eb2[13]](_0x2eb2[3],controller[_0x2eb2[12]]);router[_0x2eb2[13]](_0x2eb2[14],controller[_0x2eb2[11]]);router[_0x2eb2[16]](_0x2eb2[8],controller[_0x2eb2[15]]);router[_0x2eb2[17]](_0x2eb2[8],controller[_0x2eb2[15]]);router[_0x2eb2[19]](_0x2eb2[8],controller[_0x2eb2[18]]);module[_0x2eb2[20]]=router;
\ No newline at end of file
-var _0x61dc=["\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"];_0x61dc[0];var _=require(_0x61dc[1]);var MailServerOut=require(_0x61dc[3])[_0x61dc[2]];var MailMessage=require(_0x61dc[3])[_0x61dc[4]];var sequelize=require(_0x61dc[3])[_0x61dc[5]];exports[_0x61dc[6]]=function(_0x44bcx5,_0x44bcx6){MailServerOut[_0x61dc[11]]()[_0x61dc[10]](function(_0x44bcx8){return _0x44bcx6[_0x61dc[9]](200)[_0x61dc[8]](_0x44bcx8)})[_0x61dc[7]](function(_0x44bcx7){return handleError(_0x44bcx6,_0x44bcx7)})};exports[_0x61dc[12]]=function(_0x44bcx5,_0x44bcx6){MailServerOut[_0x61dc[13]]({where:{service:true}})[_0x61dc[10]](function(_0x44bcx9){return _0x44bcx6[_0x61dc[9]](200)[_0x61dc[8]](_0x44bcx9)})[_0x61dc[7]](function(_0x44bcx7){return handleError(_0x44bcx6,_0x44bcx7)})};exports[_0x61dc[14]]=function(_0x44bcx5,_0x44bcx6){MailServerOut[_0x61dc[18]](_0x44bcx5[_0x61dc[17]][_0x61dc[16]])[_0x61dc[10]](function(_0x44bcx9){if(!_0x44bcx9){return _0x44bcx6[_0x61dc[15]](404)};return _0x44bcx6[_0x61dc[8]](_0x44bcx9);})[_0x61dc[7]](function(_0x44bcx7){return handleError(_0x44bcx6,_0x44bcx7)})};exports[_0x61dc[19]]=function(_0x44bcx5,_0x44bcx6){MailServerOut[_0x61dc[19]](_0x44bcx5[_0x61dc[20]])[_0x61dc[10]](function(_0x44bcx9){return _0x44bcx6[_0x61dc[9]](201)[_0x61dc[8]](_0x44bcx9)})[_0x61dc[7]](function(_0x44bcx7){return handleError(_0x44bcx6,_0x44bcx7)})};exports[_0x61dc[21]]=function(_0x44bcx5,_0x44bcx6){if(_0x44bcx5[_0x61dc[20]][_0x61dc[16]]){delete _0x44bcx5[_0x61dc[20]][_0x61dc[16]]};MailServerOut[_0x61dc[18]](_0x44bcx5[_0x61dc[17]][_0x61dc[16]])[_0x61dc[10]](function(_0x44bcx9){if(!_0x44bcx9){return _0x44bcx6[_0x61dc[15]](404)};var _0x44bcxa=_[_0x61dc[22]](_0x44bcx9,_0x44bcx5[_0x61dc[20]]);_0x44bcxa[_0x61dc[23]]()[_0x61dc[10]](function(){return _0x44bcx6[_0x61dc[9]](200)[_0x61dc[8]](_0x44bcx9)})[_0x61dc[7]](function(_0x44bcx7){return handleError(_0x44bcx6,_0x44bcx7)});})[_0x61dc[7]](function(_0x44bcx7){return handleError(_0x44bcx6,_0x44bcx7)});};exports[_0x61dc[24]]=function(_0x44bcx5,_0x44bcx6){MailServerOut[_0x61dc[18]](_0x44bcx5[_0x61dc[17]][_0x61dc[16]])[_0x61dc[10]](function(_0x44bcx9){if(!_0x44bcx9){return _0x44bcx6[_0x61dc[15]](404)};_0x44bcx9[_0x61dc[24]]()[_0x61dc[10]](function(){return _0x44bcx6[_0x61dc[15]](204)})[_0x61dc[7]](function(_0x44bcx7){return handleError(_0x44bcx6,_0x44bcx7)});})[_0x61dc[7]](function(_0x44bcx7){return handleError(_0x44bcx6,_0x44bcx7)})};exports[_0x61dc[25]]=function(_0x44bcx5,_0x44bcx6){return sequelize[_0x61dc[34]]()[_0x61dc[10]](function(_0x44bcxb){var _0x44bcxc;var _0x44bcxd;return MailServerOut[_0x61dc[18]](_0x44bcx5[_0x61dc[17]][_0x61dc[16]])[_0x61dc[10]](function(_0x44bcx9){if(!_0x44bcx9){_0x44bcxb[_0x61dc[26]]();return _0x44bcx6[_0x61dc[15]](404);}else {return _0x44bcx9}})[_0x61dc[10]](function(_0x44bcx9){_0x44bcxc=_0x44bcx9;return MailMessage[_0x61dc[19]]({subject:_0x61dc[30]+_0x44bcx9[_0x61dc[31]]+_0x61dc[32],text:_0x61dc[30]+_0x44bcx9[_0x61dc[31]]+_0x61dc[32],from:_0x44bcx9[_0x61dc[31]],to:_0x44bcx9[_0x61dc[31]],status:_0x61dc[33]},{transaction:_0x44bcxb});})[_0x61dc[10]](function(_0x44bcxe){_0x44bcxd=_0x44bcxe;return _0x44bcxc[_0x61dc[21]]({state:_0x61dc[29]});})[_0x61dc[10]](function(){_0x44bcxb[_0x61dc[28]]();return _0x44bcx6[_0x61dc[9]](201)[_0x61dc[8]](_0x44bcxd);})[_0x61dc[7]](function(_0x44bcx7){_0x44bcxc[_0x61dc[21]]({state:_0x61dc[27]})[_0x61dc[10]](function(){_0x44bcxb[_0x61dc[26]]();return handleError(_0x44bcx6,_0x44bcx7);})});})};function handleError(_0x44bcx6,_0x44bcx7){return _0x44bcx6[_0x61dc[9]](500)[_0x61dc[8]](_0x44bcx7)}
\ No newline at end of file
+var _0x9a58=["\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"];_0x9a58[0];var _=require(_0x9a58[1]);var MailServerOut=require(_0x9a58[3])[_0x9a58[2]];var MailMessage=require(_0x9a58[3])[_0x9a58[4]];var sequelize=require(_0x9a58[3])[_0x9a58[5]];exports[_0x9a58[6]]=function(_0x904dx5,_0x904dx6){MailServerOut[_0x9a58[11]]()[_0x9a58[10]](function(_0x904dx8){return _0x904dx6[_0x9a58[9]](200)[_0x9a58[8]](_0x904dx8)})[_0x9a58[7]](function(_0x904dx7){return handleError(_0x904dx6,_0x904dx7)})};exports[_0x9a58[12]]=function(_0x904dx5,_0x904dx6){MailServerOut[_0x9a58[13]]({where:{service:true}})[_0x9a58[10]](function(_0x904dx9){return _0x904dx6[_0x9a58[9]](200)[_0x9a58[8]](_0x904dx9)})[_0x9a58[7]](function(_0x904dx7){return handleError(_0x904dx6,_0x904dx7)})};exports[_0x9a58[14]]=function(_0x904dx5,_0x904dx6){MailServerOut[_0x9a58[18]](_0x904dx5[_0x9a58[17]][_0x9a58[16]])[_0x9a58[10]](function(_0x904dx9){if(!_0x904dx9){return _0x904dx6[_0x9a58[15]](404)};return _0x904dx6[_0x9a58[8]](_0x904dx9);})[_0x9a58[7]](function(_0x904dx7){return handleError(_0x904dx6,_0x904dx7)})};exports[_0x9a58[19]]=function(_0x904dx5,_0x904dx6){MailServerOut[_0x9a58[19]](_0x904dx5[_0x9a58[20]])[_0x9a58[10]](function(_0x904dx9){return _0x904dx6[_0x9a58[9]](201)[_0x9a58[8]](_0x904dx9)})[_0x9a58[7]](function(_0x904dx7){return handleError(_0x904dx6,_0x904dx7)})};exports[_0x9a58[21]]=function(_0x904dx5,_0x904dx6){if(_0x904dx5[_0x9a58[20]][_0x9a58[16]]){delete _0x904dx5[_0x9a58[20]][_0x9a58[16]]};MailServerOut[_0x9a58[18]](_0x904dx5[_0x9a58[17]][_0x9a58[16]])[_0x9a58[10]](function(_0x904dx9){if(!_0x904dx9){return _0x904dx6[_0x9a58[15]](404)};var _0x904dxa=_[_0x9a58[22]](_0x904dx9,_0x904dx5[_0x9a58[20]]);_0x904dxa[_0x9a58[23]]()[_0x9a58[10]](function(){return _0x904dx6[_0x9a58[9]](200)[_0x9a58[8]](_0x904dx9)})[_0x9a58[7]](function(_0x904dx7){return handleError(_0x904dx6,_0x904dx7)});})[_0x9a58[7]](function(_0x904dx7){return handleError(_0x904dx6,_0x904dx7)});};exports[_0x9a58[24]]=function(_0x904dx5,_0x904dx6){MailServerOut[_0x9a58[18]](_0x904dx5[_0x9a58[17]][_0x9a58[16]])[_0x9a58[10]](function(_0x904dx9){if(!_0x904dx9){return _0x904dx6[_0x9a58[15]](404)};_0x904dx9[_0x9a58[24]]()[_0x9a58[10]](function(){return _0x904dx6[_0x9a58[15]](204)})[_0x9a58[7]](function(_0x904dx7){return handleError(_0x904dx6,_0x904dx7)});})[_0x9a58[7]](function(_0x904dx7){return handleError(_0x904dx6,_0x904dx7)})};exports[_0x9a58[25]]=function(_0x904dx5,_0x904dx6){return sequelize[_0x9a58[34]]()[_0x9a58[10]](function(_0x904dxb){var _0x904dxc;var _0x904dxd;return MailServerOut[_0x9a58[18]](_0x904dx5[_0x9a58[17]][_0x9a58[16]])[_0x9a58[10]](function(_0x904dx9){if(!_0x904dx9){_0x904dxb[_0x9a58[26]]();return _0x904dx6[_0x9a58[15]](404);}else {return _0x904dx9}})[_0x9a58[10]](function(_0x904dx9){_0x904dxc=_0x904dx9;return MailMessage[_0x9a58[19]]({subject:_0x9a58[30]+_0x904dx9[_0x9a58[31]]+_0x9a58[32],text:_0x9a58[30]+_0x904dx9[_0x9a58[31]]+_0x9a58[32],from:_0x904dx9[_0x9a58[31]],to:_0x904dx9[_0x9a58[31]],status:_0x9a58[33]},{transaction:_0x904dxb});})[_0x9a58[10]](function(_0x904dxe){_0x904dxd=_0x904dxe;return _0x904dxc[_0x9a58[21]]({state:_0x9a58[29]});})[_0x9a58[10]](function(){_0x904dxb[_0x9a58[28]]();return _0x904dx6[_0x9a58[9]](201)[_0x9a58[8]](_0x904dxd);})[_0x9a58[7]](function(_0x904dx7){_0x904dxc[_0x9a58[21]]({state:_0x9a58[27]})[_0x9a58[10]](function(){_0x904dxb[_0x9a58[26]]();return handleError(_0x904dx6,_0x904dx7);})});})};function handleError(_0x904dx6,_0x904dx7){return _0x904dx6[_0x9a58[9]](500)[_0x9a58[8]](_0x904dx7)}
\ No newline at end of file
-var _0xbd12=["\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"];_0xbd12[0];var MailServerOut=require(_0xbd12[2])[_0xbd12[1]];exports[_0xbd12[3]]=function(_0x76dbx2){MailServerOut[_0xbd12[6]](function(_0x76dbx3){console[_0xbd12[5]](_0xbd12[4]);onSave(_0x76dbx2,_0x76dbx3);});MailServerOut[_0xbd12[8]](function(_0x76dbx3){console[_0xbd12[5]](_0xbd12[7]);onRemove(_0x76dbx2,_0x76dbx3);});};function onSave(_0x76dbx2,_0x76dbx3,_0x76dbx5){_0x76dbx2[_0xbd12[10]](_0xbd12[9],_0x76dbx3)}function onRemove(_0x76dbx2,_0x76dbx3,_0x76dbx5){_0x76dbx2[_0xbd12[10]](_0xbd12[11],_0x76dbx3)}
\ No newline at end of file
+var _0x8a7d=["\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"];_0x8a7d[0];var MailServerOut=require(_0x8a7d[2])[_0x8a7d[1]];exports[_0x8a7d[3]]=function(_0xd4b8x2){MailServerOut[_0x8a7d[6]](function(_0xd4b8x3){console[_0x8a7d[5]](_0x8a7d[4]);onSave(_0xd4b8x2,_0xd4b8x3);});MailServerOut[_0x8a7d[8]](function(_0xd4b8x3){console[_0x8a7d[5]](_0x8a7d[7]);onRemove(_0xd4b8x2,_0xd4b8x3);});};function onSave(_0xd4b8x2,_0xd4b8x3,_0xd4b8x5){_0xd4b8x2[_0x8a7d[10]](_0x8a7d[9],_0xd4b8x3)}function onRemove(_0xd4b8x2,_0xd4b8x3,_0xd4b8x5){_0xd4b8x2[_0x8a7d[10]](_0x8a7d[11],_0xd4b8x3)}
\ No newline at end of file
-var _0x4560=["\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"];_0x4560[0];var express=require(_0x4560[1]);var controller=require(_0x4560[2]);var router=express.Router();router[_0x4560[5]](_0x4560[3],controller[_0x4560[4]]);router[_0x4560[5]](_0x4560[6],controller[_0x4560[7]]);router[_0x4560[9]](_0x4560[3],controller[_0x4560[8]]);router[_0x4560[11]](_0x4560[6],controller[_0x4560[10]]);router[_0x4560[12]](_0x4560[6],controller[_0x4560[10]]);router[_0x4560[14]](_0x4560[6],controller[_0x4560[13]]);module[_0x4560[15]]=router;
\ No newline at end of file
+var _0x13d1=["\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"];_0x13d1[0];var express=require(_0x13d1[1]);var controller=require(_0x13d1[2]);var router=express.Router();router[_0x13d1[5]](_0x13d1[3],controller[_0x13d1[4]]);router[_0x13d1[5]](_0x13d1[6],controller[_0x13d1[7]]);router[_0x13d1[9]](_0x13d1[3],controller[_0x13d1[8]]);router[_0x13d1[11]](_0x13d1[6],controller[_0x13d1[10]]);router[_0x13d1[12]](_0x13d1[6],controller[_0x13d1[10]]);router[_0x13d1[14]](_0x13d1[6],controller[_0x13d1[13]]);module[_0x13d1[15]]=router;
\ No newline at end of file
-var _0x9bb8=["\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"];_0x9bb8[0];var _=require(_0x9bb8[1]);var util=require(_0x9bb8[2]);var MailTemplate=require(_0x9bb8[4])[_0x9bb8[3]];exports[_0x9bb8[5]]=function(_0xcdadx4,_0xcdadx5){var _0xcdadx6=[_0x9bb8[6],_0x9bb8[7],_0x9bb8[8],_0x9bb8[9]];var _0xcdadx7=_0xcdadx4[_0x9bb8[11]][_0x9bb8[10]]?parseInt(_0xcdadx4[_0x9bb8[11]][_0x9bb8[10]],10):100;var _0xcdadx8=_0xcdadx4[_0x9bb8[11]][_0x9bb8[12]]?parseInt(_0xcdadx4[_0x9bb8[11]][_0x9bb8[12]],10):0;var _0xcdadx9={where:{},limit:_0xcdadx7,offset:_0xcdadx8*_0xcdadx7,include:[{all:true}]};_[_0x9bb8[26]](_0xcdadx4[_0x9bb8[11]],function(_0xcdadxa,_0xcdadxb){switch(_0xcdadxb){case _0x9bb8[10]:;case _0x9bb8[12]:break ;;case _0x9bb8[15]:_0xcdadx9[_0x9bb8[13]]=util[_0x9bb8[18]](_0x9bb8[14],_0xcdadx4[_0x9bb8[11]][_0x9bb8[15]],_0xcdadx4[_0x9bb8[11]][_0x9bb8[16]]||_0x9bb8[17])||null;break ;;case _0x9bb8[16]:break ;;case _0x9bb8[24]:_0xcdadx9[_0x9bb8[20]][_0x9bb8[19]]=[];_0xcdadx6[_0x9bb8[23]](function(_0xcdadxc){var _0xcdadxd={};_0xcdadxd[_0xcdadxc]={$like:_0x9bb8[21]+_0xcdadxa+_0x9bb8[21]};_0xcdadx9[_0x9bb8[20]][_0x9bb8[19]][_0x9bb8[22]](_0xcdadxd);});break ;;default:_0xcdadx9[_0x9bb8[20]][_0xcdadxb]={$like:{}};_0xcdadx9[_0x9bb8[20]][_0xcdadxb][_0x9bb8[25]]=_0x9bb8[21]+_0xcdadxa+_0x9bb8[21];;}});MailTemplate[_0x9bb8[40]](_0xcdadx9)[_0x9bb8[39]](function(_0xcdadxf){var _0xcdadx10=Math[_0x9bb8[29]](_0xcdadxf[_0x9bb8[28]]/_0xcdadx7);var _0xcdadx11=_0xcdadx10>(_0xcdadx9[_0x9bb8[30]]+1)?util[_0x9bb8[18]](_0x9bb8[31],_0xcdadx4[_0x9bb8[32]],_0xcdadx4[_0x9bb8[34]][_0x9bb8[33]],_0xcdadx4[_0x9bb8[35]],_0xcdadx8+1):null;var _0xcdadx12=_0xcdadx8>0?util[_0x9bb8[18]](_0x9bb8[31],_0xcdadx4[_0x9bb8[32]],_0xcdadx4[_0x9bb8[34]][_0x9bb8[33]],_0xcdadx4[_0x9bb8[35]],_0xcdadx8-1):null;_0xcdadx5[_0x9bb8[38]](200)[_0x9bb8[37]]({count:_0xcdadxf[_0x9bb8[28]],rows:_0xcdadxf[_0x9bb8[36]],next_page:_0xcdadx11,previous_page:_0xcdadx12,total_pages:_0xcdadx10});})[_0x9bb8[27]](function(_0xcdadxe){return handleError(_0xcdadx5,_0xcdadxe)});};exports[_0x9bb8[41]]=function(_0xcdadx4,_0xcdadx5){MailTemplate[_0x9bb8[45]](_0xcdadx4[_0x9bb8[44]][_0x9bb8[43]])[_0x9bb8[39]](function(_0xcdadx13){if(!_0xcdadx13){return _0xcdadx5[_0x9bb8[42]](404)};return _0xcdadx5[_0x9bb8[37]](_0xcdadx13);})[_0x9bb8[27]](function(_0xcdadxe){return handleError(_0xcdadx5,_0xcdadxe)})};exports[_0x9bb8[46]]=function(_0xcdadx4,_0xcdadx5){MailTemplate[_0x9bb8[46]](_0xcdadx4[_0x9bb8[47]])[_0x9bb8[39]](function(_0xcdadx13){return _0xcdadx5[_0x9bb8[38]](201)[_0x9bb8[37]](_0xcdadx13)})[_0x9bb8[27]](function(_0xcdadxe){return handleError(_0xcdadx5,_0xcdadxe)})};exports[_0x9bb8[48]]=function(_0xcdadx4,_0xcdadx5){if(_0xcdadx4[_0x9bb8[47]][_0x9bb8[43]]){delete _0xcdadx4[_0x9bb8[47]][_0x9bb8[43]]};MailTemplate[_0x9bb8[45]](_0xcdadx4[_0x9bb8[44]][_0x9bb8[43]])[_0x9bb8[39]](function(_0xcdadx13){if(!_0xcdadx13){return _0xcdadx5[_0x9bb8[42]](404)};var _0xcdadx14=_[_0x9bb8[49]](_0xcdadx13,_0xcdadx4[_0x9bb8[47]]);_0xcdadx14[_0x9bb8[50]]()[_0x9bb8[39]](function(){return _0xcdadx5[_0x9bb8[38]](200)[_0x9bb8[37]](_0xcdadx13)})[_0x9bb8[27]](function(_0xcdadxe){return handleError(_0xcdadx5,_0xcdadxe)});})[_0x9bb8[27]](function(_0xcdadxe){return handleError(_0xcdadx5,_0xcdadxe)});};exports[_0x9bb8[51]]=function(_0xcdadx4,_0xcdadx5){MailTemplate[_0x9bb8[45]](_0xcdadx4[_0x9bb8[44]][_0x9bb8[43]])[_0x9bb8[39]](function(_0xcdadx13){if(!_0xcdadx13){return _0xcdadx5[_0x9bb8[42]](404)};_0xcdadx13[_0x9bb8[51]]()[_0x9bb8[39]](function(){return _0xcdadx5[_0x9bb8[42]](204)})[_0x9bb8[27]](function(_0xcdadxe){return handleError(_0xcdadx5,_0xcdadxe)});})[_0x9bb8[27]](function(_0xcdadxe){return handleError(_0xcdadx5,_0xcdadxe)})};function handleError(_0xcdadx5,_0xcdadxe){return _0xcdadx5[_0x9bb8[38]](500)[_0x9bb8[37]](_0xcdadxe)}
\ 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","\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"];_0x8029[0];var _=require(_0x8029[1]);var util=require(_0x8029[2]);var MailTemplate=require(_0x8029[4])[_0x8029[3]];exports[_0x8029[5]]=function(_0x11c6x4,_0x11c6x5){var _0x11c6x6=[_0x8029[6],_0x8029[7],_0x8029[8],_0x8029[9]];var _0x11c6x7=_0x11c6x4[_0x8029[11]][_0x8029[10]]?parseInt(_0x11c6x4[_0x8029[11]][_0x8029[10]],10):100;var _0x11c6x8=_0x11c6x4[_0x8029[11]][_0x8029[12]]?parseInt(_0x11c6x4[_0x8029[11]][_0x8029[12]],10):0;var _0x11c6x9={where:{},limit:_0x11c6x7,offset:_0x11c6x8*_0x11c6x7,include:[{all:true}]};_[_0x8029[26]](_0x11c6x4[_0x8029[11]],function(_0x11c6xa,_0x11c6xb){switch(_0x11c6xb){case _0x8029[10]:;case _0x8029[12]:break ;;case _0x8029[15]:_0x11c6x9[_0x8029[13]]=util[_0x8029[18]](_0x8029[14],_0x11c6x4[_0x8029[11]][_0x8029[15]],_0x11c6x4[_0x8029[11]][_0x8029[16]]||_0x8029[17])||null;break ;;case _0x8029[16]:break ;;case _0x8029[24]:_0x11c6x9[_0x8029[20]][_0x8029[19]]=[];_0x11c6x6[_0x8029[23]](function(_0x11c6xc){var _0x11c6xd={};_0x11c6xd[_0x11c6xc]={$like:_0x8029[21]+_0x11c6xa+_0x8029[21]};_0x11c6x9[_0x8029[20]][_0x8029[19]][_0x8029[22]](_0x11c6xd);});break ;;default:_0x11c6x9[_0x8029[20]][_0x11c6xb]={$like:{}};_0x11c6x9[_0x8029[20]][_0x11c6xb][_0x8029[25]]=_0x8029[21]+_0x11c6xa+_0x8029[21];;}});MailTemplate[_0x8029[40]](_0x11c6x9)[_0x8029[39]](function(_0x11c6xf){var _0x11c6x10=Math[_0x8029[29]](_0x11c6xf[_0x8029[28]]/_0x11c6x7);var _0x11c6x11=_0x11c6x10>(_0x11c6x9[_0x8029[30]]+1)?util[_0x8029[18]](_0x8029[31],_0x11c6x4[_0x8029[32]],_0x11c6x4[_0x8029[34]][_0x8029[33]],_0x11c6x4[_0x8029[35]],_0x11c6x8+1):null;var _0x11c6x12=_0x11c6x8>0?util[_0x8029[18]](_0x8029[31],_0x11c6x4[_0x8029[32]],_0x11c6x4[_0x8029[34]][_0x8029[33]],_0x11c6x4[_0x8029[35]],_0x11c6x8-1):null;_0x11c6x5[_0x8029[38]](200)[_0x8029[37]]({count:_0x11c6xf[_0x8029[28]],rows:_0x11c6xf[_0x8029[36]],next_page:_0x11c6x11,previous_page:_0x11c6x12,total_pages:_0x11c6x10});})[_0x8029[27]](function(_0x11c6xe){return handleError(_0x11c6x5,_0x11c6xe)});};exports[_0x8029[41]]=function(_0x11c6x4,_0x11c6x5){MailTemplate[_0x8029[45]](_0x11c6x4[_0x8029[44]][_0x8029[43]])[_0x8029[39]](function(_0x11c6x13){if(!_0x11c6x13){return _0x11c6x5[_0x8029[42]](404)};return _0x11c6x5[_0x8029[37]](_0x11c6x13);})[_0x8029[27]](function(_0x11c6xe){return handleError(_0x11c6x5,_0x11c6xe)})};exports[_0x8029[46]]=function(_0x11c6x4,_0x11c6x5){MailTemplate[_0x8029[46]](_0x11c6x4[_0x8029[47]])[_0x8029[39]](function(_0x11c6x13){return _0x11c6x5[_0x8029[38]](201)[_0x8029[37]](_0x11c6x13)})[_0x8029[27]](function(_0x11c6xe){return handleError(_0x11c6x5,_0x11c6xe)})};exports[_0x8029[48]]=function(_0x11c6x4,_0x11c6x5){if(_0x11c6x4[_0x8029[47]][_0x8029[43]]){delete _0x11c6x4[_0x8029[47]][_0x8029[43]]};MailTemplate[_0x8029[45]](_0x11c6x4[_0x8029[44]][_0x8029[43]])[_0x8029[39]](function(_0x11c6x13){if(!_0x11c6x13){return _0x11c6x5[_0x8029[42]](404)};var _0x11c6x14=_[_0x8029[49]](_0x11c6x13,_0x11c6x4[_0x8029[47]]);_0x11c6x14[_0x8029[50]]()[_0x8029[39]](function(){return _0x11c6x5[_0x8029[38]](200)[_0x8029[37]](_0x11c6x13)})[_0x8029[27]](function(_0x11c6xe){return handleError(_0x11c6x5,_0x11c6xe)});})[_0x8029[27]](function(_0x11c6xe){return handleError(_0x11c6x5,_0x11c6xe)});};exports[_0x8029[51]]=function(_0x11c6x4,_0x11c6x5){MailTemplate[_0x8029[45]](_0x11c6x4[_0x8029[44]][_0x8029[43]])[_0x8029[39]](function(_0x11c6x13){if(!_0x11c6x13){return _0x11c6x5[_0x8029[42]](404)};_0x11c6x13[_0x8029[51]]()[_0x8029[39]](function(){return _0x11c6x5[_0x8029[42]](204)})[_0x8029[27]](function(_0x11c6xe){return handleError(_0x11c6x5,_0x11c6xe)});})[_0x8029[27]](function(_0x11c6xe){return handleError(_0x11c6x5,_0x11c6xe)})};function handleError(_0x11c6x5,_0x11c6xe){return _0x11c6x5[_0x8029[38]](500)[_0x8029[37]](_0x11c6xe)}
\ No newline at end of file
-var _0x1c87=["\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"];_0x1c87[0];var MailTemplate=require(_0x1c87[2])[_0x1c87[1]];exports[_0x1c87[3]]=function(_0xc655x2){MailTemplate[_0x1c87[4]](function(_0xc655x3){onSave(_0xc655x2,_0xc655x3)});MailTemplate[_0x1c87[5]](function(_0xc655x3){onRemove(_0xc655x2,_0xc655x3)});};function onSave(_0xc655x2,_0xc655x3,_0xc655x5){_0xc655x2[_0x1c87[7]](_0x1c87[6],_0xc655x3)}function onRemove(_0xc655x2,_0xc655x3,_0xc655x5){_0xc655x2[_0x1c87[7]](_0x1c87[8],_0xc655x3)}
\ No newline at end of file
+var _0xb529=["\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"];_0xb529[0];var MailTemplate=require(_0xb529[2])[_0xb529[1]];exports[_0xb529[3]]=function(_0x219fx2){MailTemplate[_0xb529[4]](function(_0x219fx3){onSave(_0x219fx2,_0x219fx3)});MailTemplate[_0xb529[5]](function(_0x219fx3){onRemove(_0x219fx2,_0x219fx3)});};function onSave(_0x219fx2,_0x219fx3,_0x219fx5){_0x219fx2[_0xb529[7]](_0xb529[6],_0x219fx3)}function onRemove(_0x219fx2,_0x219fx3,_0x219fx5){_0x219fx2[_0xb529[7]](_0xb529[8],_0x219fx3)}
\ No newline at end of file
-var _0xb9a6=["\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"];_0xb9a6[0];var express=require(_0xb9a6[1]);var controller=require(_0xb9a6[2]);var auth=require(_0xb9a6[3]);var router=express.Router();router[_0xb9a6[7]](_0xb9a6[4],auth[_0xb9a6[5]](),controller[_0xb9a6[6]]);router[_0xb9a6[7]](_0xb9a6[8],auth[_0xb9a6[5]](),controller[_0xb9a6[9]]);router[_0xb9a6[7]](_0xb9a6[10],auth[_0xb9a6[5]](),controller[_0xb9a6[11]]);router[_0xb9a6[13]](_0xb9a6[4],auth[_0xb9a6[5]](),controller[_0xb9a6[12]]);router[_0xb9a6[13]](_0xb9a6[14],auth[_0xb9a6[5]](),controller[_0xb9a6[15]]);router[_0xb9a6[17]](_0xb9a6[10],auth[_0xb9a6[5]](),controller[_0xb9a6[16]]);router[_0xb9a6[18]](_0xb9a6[10],auth[_0xb9a6[5]](),controller[_0xb9a6[16]]);router[_0xb9a6[20]](_0xb9a6[4],auth[_0xb9a6[5]](),controller[_0xb9a6[19]]);router[_0xb9a6[20]](_0xb9a6[10],auth[_0xb9a6[5]](),controller[_0xb9a6[21]]);module[_0xb9a6[22]]=router;
\ No newline at end of file
+var _0xd099=["\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"];_0xd099[0];var express=require(_0xd099[1]);var controller=require(_0xd099[2]);var auth=require(_0xd099[3]);var router=express.Router();router[_0xd099[7]](_0xd099[4],auth[_0xd099[5]](),controller[_0xd099[6]]);router[_0xd099[7]](_0xd099[8],auth[_0xd099[5]](),controller[_0xd099[9]]);router[_0xd099[7]](_0xd099[10],auth[_0xd099[5]](),controller[_0xd099[11]]);router[_0xd099[13]](_0xd099[4],auth[_0xd099[5]](),controller[_0xd099[12]]);router[_0xd099[13]](_0xd099[14],auth[_0xd099[5]](),controller[_0xd099[15]]);router[_0xd099[17]](_0xd099[10],auth[_0xd099[5]](),controller[_0xd099[16]]);router[_0xd099[18]](_0xd099[10],auth[_0xd099[5]](),controller[_0xd099[16]]);router[_0xd099[20]](_0xd099[4],auth[_0xd099[5]](),controller[_0xd099[19]]);router[_0xd099[20]](_0xd099[10],auth[_0xd099[5]](),controller[_0xd099[21]]);module[_0xd099[22]]=router;
\ No newline at end of file
-var _0x8fe6=["\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"];_0x8fe6[0];var _=require(_0x8fe6[1]);var Metric=require(_0x8fe6[3])[_0x8fe6[2]];var util=require(_0x8fe6[4]);exports[_0x8fe6[5]]=function(_0xc87cx4,_0xc87cx5){var _0xc87cx6=[_0x8fe6[6],_0x8fe6[7]];var _0xc87cx7=_0xc87cx4[_0x8fe6[9]][_0x8fe6[8]]?parseInt(_0xc87cx4[_0x8fe6[9]][_0x8fe6[8]],10):100;var _0xc87cx8=_0xc87cx4[_0x8fe6[9]][_0x8fe6[10]]?parseInt(_0xc87cx4[_0x8fe6[9]][_0x8fe6[10]],10):0;var _0xc87cx9={where:{},limit:_0xc87cx7,offset:_0xc87cx8*_0xc87cx7};_[_0x8fe6[24]](_0xc87cx4[_0x8fe6[9]],function(_0xc87cxa,_0xc87cxb){switch(_0xc87cxb){case _0x8fe6[8]:;case _0x8fe6[10]:break ;;case _0x8fe6[13]:_0xc87cx9[_0x8fe6[11]]=util[_0x8fe6[16]](_0x8fe6[12],_0xc87cx4[_0x8fe6[9]][_0x8fe6[13]],_0xc87cx4[_0x8fe6[9]][_0x8fe6[14]]||_0x8fe6[15])||null;break ;;case _0x8fe6[14]:break ;;case _0x8fe6[22]:_0xc87cx9[_0x8fe6[18]][_0x8fe6[17]]=[];_0xc87cx6[_0x8fe6[21]](function(_0xc87cxc){var _0xc87cxd={};_0xc87cxd[_0xc87cxc]={$like:_0x8fe6[19]+_0xc87cxa+_0x8fe6[19]};_0xc87cx9[_0x8fe6[18]][_0x8fe6[17]][_0x8fe6[20]](_0xc87cxd);});break ;;default:_0xc87cx9[_0x8fe6[18]][_0xc87cxb]={$like:{}};_0xc87cx9[_0x8fe6[18]][_0xc87cxb][_0x8fe6[23]]=_0x8fe6[19]+_0xc87cxa+_0x8fe6[19];;}});Metric[_0x8fe6[39]](_0xc87cx9)[_0x8fe6[38]](function(_0xc87cxf){var _0xc87cx10=Math[_0x8fe6[30]](_0xc87cxf[_0x8fe6[29]]/_0xc87cx7);var _0xc87cx11=_0xc87cx10>(_0xc87cx9[_0x8fe6[31]]+1)?util[_0x8fe6[16]](_0x8fe6[32],_0xc87cx4[_0x8fe6[33]],_0xc87cx4[_0x8fe6[35]][_0x8fe6[34]],_0xc87cx4[_0x8fe6[36]],_0xc87cx8+1):null;var _0xc87cx12=_0xc87cx8>0?util[_0x8fe6[16]](_0x8fe6[32],_0xc87cx4[_0x8fe6[33]],_0xc87cx4[_0x8fe6[35]][_0x8fe6[34]],_0xc87cx4[_0x8fe6[36]],_0xc87cx8-1):null;_0xc87cx5[_0x8fe6[27]](200)[_0x8fe6[26]]({count:_0xc87cxf[_0x8fe6[29]],rows:_0xc87cxf[_0x8fe6[37]],next_page:_0xc87cx11,previous_page:_0xc87cx12,total_pages:_0xc87cx10});})[_0x8fe6[28]](function(_0xc87cxe){_0xc87cx5[_0x8fe6[27]](500)[_0x8fe6[26]]({error:_0x8fe6[25]})});};exports[_0x8fe6[40]]=function(_0xc87cx4,_0xc87cx5){console[_0x8fe6[42]](_0xc87cx4[_0x8fe6[41]]);Metric[_0x8fe6[44]]({where:{name:_0xc87cx4[_0x8fe6[41]][_0x8fe6[6]]}})[_0x8fe6[38]](function(_0xc87cx13){if(!_0xc87cx13){return _0xc87cx5[_0x8fe6[43]](404)};return _0xc87cx5[_0x8fe6[26]](_0xc87cx13);})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)});};exports[_0x8fe6[45]]=function(_0xc87cx4,_0xc87cx5){console[_0x8fe6[42]](_0xc87cx4[_0x8fe6[9]]);Metric[_0x8fe6[44]]({where:{table:_0xc87cx4[_0x8fe6[9]][_0x8fe6[46]]}})[_0x8fe6[38]](function(_0xc87cx13){console[_0x8fe6[42]](_0xc87cx13);if(!_0xc87cx13){return _0xc87cx5[_0x8fe6[43]](404)};return _0xc87cx5[_0x8fe6[27]](200)[_0x8fe6[26]](_0xc87cx13);})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)});};exports[_0x8fe6[47]]=function(_0xc87cx4,_0xc87cx5){Metric[_0x8fe6[50]](_0xc87cx4[_0x8fe6[49]][_0x8fe6[48]])[_0x8fe6[38]](function(_0xc87cx14){if(!_0xc87cx14){return _0xc87cx5[_0x8fe6[43]](404)};return _0xc87cx5[_0x8fe6[26]](_0xc87cx14);})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)})};exports[_0x8fe6[51]]=function(_0xc87cx4,_0xc87cx5){Metric[_0x8fe6[51]](_0xc87cx4[_0x8fe6[41]])[_0x8fe6[38]](function(_0xc87cx14){return _0xc87cx5[_0x8fe6[27]](201)[_0x8fe6[26]](_0xc87cx14)})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)})};exports[_0x8fe6[52]]=function(_0xc87cx4,_0xc87cx5){Metric[_0x8fe6[44]]({where:{name:_0xc87cx4[_0x8fe6[41]][_0x8fe6[6]],id:{$ne:_0xc87cx4[_0x8fe6[41]][_0x8fe6[48]]}}})[_0x8fe6[38]](function(_0xc87cx13){if(!_0xc87cx13){return _0xc87cx5[_0x8fe6[43]](404)};if(_0xc87cx13[_0x8fe6[53]]>0){return _0xc87cx5[_0x8fe6[27]](500)[_0x8fe6[26]]({message:_0x8fe6[54]})};if(_0xc87cx4[_0x8fe6[41]][_0x8fe6[48]]){delete _0xc87cx4[_0x8fe6[41]][_0x8fe6[48]]};Metric[_0x8fe6[57]]({where:{id:_0xc87cx4[_0x8fe6[49]][_0x8fe6[48]]}})[_0x8fe6[38]](function(_0xc87cx14){if(!_0xc87cx14){return _0xc87cx5[_0x8fe6[43]](404)};var _0xc87cx15=_[_0x8fe6[55]](_0xc87cx14,_0xc87cx4[_0x8fe6[41]]);_0xc87cx15[_0x8fe6[56]]()[_0x8fe6[38]](function(){return _0xc87cx5[_0x8fe6[27]](200)[_0x8fe6[26]](_0xc87cx14)})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)});})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)});})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)})};exports[_0x8fe6[58]]=function(_0xc87cx4,_0xc87cx5){Metric[_0x8fe6[50]](_0xc87cx4[_0x8fe6[49]][_0x8fe6[48]])[_0x8fe6[38]](function(_0xc87cx14){if(!_0xc87cx14){return _0xc87cx5[_0x8fe6[43]](404)};_0xc87cx14[_0x8fe6[60]]()[_0x8fe6[38]](function(_0xc87cx16){if(_0xc87cx16[_0x8fe6[53]]>0){return _0xc87cx5[_0x8fe6[27]](500)[_0x8fe6[26]]({message:_0x8fe6[59]})};_0xc87cx14[_0x8fe6[58]]()[_0x8fe6[38]](function(){return _0xc87cx5[_0x8fe6[43]](204)})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)});})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)});})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)})};exports[_0x8fe6[61]]=function(_0xc87cx4,_0xc87cx5){Metric[_0x8fe6[58]]({where:{id:_0xc87cx4[_0x8fe6[9]][_0x8fe6[48]]},individualHooks:true})[_0x8fe6[38]](function(){return _0xc87cx5[_0x8fe6[43]](204)})[_0x8fe6[28]](function(_0xc87cxe){return handleError(_0xc87cx5,_0xc87cxe)})};function handleError(_0xc87cx5,_0xc87cxe){return _0xc87cx5[_0x8fe6[27]](500)[_0x8fe6[26]](_0xc87cxe)}
\ No newline at end of file
+var _0xeeea=["\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"];_0xeeea[0];var _=require(_0xeeea[1]);var Metric=require(_0xeeea[3])[_0xeeea[2]];var util=require(_0xeeea[4]);exports[_0xeeea[5]]=function(_0x7879x4,_0x7879x5){var _0x7879x6=[_0xeeea[6],_0xeeea[7]];var _0x7879x7=_0x7879x4[_0xeeea[9]][_0xeeea[8]]?parseInt(_0x7879x4[_0xeeea[9]][_0xeeea[8]],10):100;var _0x7879x8=_0x7879x4[_0xeeea[9]][_0xeeea[10]]?parseInt(_0x7879x4[_0xeeea[9]][_0xeeea[10]],10):0;var _0x7879x9={where:{},limit:_0x7879x7,offset:_0x7879x8*_0x7879x7};_[_0xeeea[24]](_0x7879x4[_0xeeea[9]],function(_0x7879xa,_0x7879xb){switch(_0x7879xb){case _0xeeea[8]:;case _0xeeea[10]:break ;;case _0xeeea[13]:_0x7879x9[_0xeeea[11]]=util[_0xeeea[16]](_0xeeea[12],_0x7879x4[_0xeeea[9]][_0xeeea[13]],_0x7879x4[_0xeeea[9]][_0xeeea[14]]||_0xeeea[15])||null;break ;;case _0xeeea[14]:break ;;case _0xeeea[22]:_0x7879x9[_0xeeea[18]][_0xeeea[17]]=[];_0x7879x6[_0xeeea[21]](function(_0x7879xc){var _0x7879xd={};_0x7879xd[_0x7879xc]={$like:_0xeeea[19]+_0x7879xa+_0xeeea[19]};_0x7879x9[_0xeeea[18]][_0xeeea[17]][_0xeeea[20]](_0x7879xd);});break ;;default:_0x7879x9[_0xeeea[18]][_0x7879xb]={$like:{}};_0x7879x9[_0xeeea[18]][_0x7879xb][_0xeeea[23]]=_0xeeea[19]+_0x7879xa+_0xeeea[19];;}});Metric[_0xeeea[39]](_0x7879x9)[_0xeeea[38]](function(_0x7879xf){var _0x7879x10=Math[_0xeeea[30]](_0x7879xf[_0xeeea[29]]/_0x7879x7);var _0x7879x11=_0x7879x10>(_0x7879x9[_0xeeea[31]]+1)?util[_0xeeea[16]](_0xeeea[32],_0x7879x4[_0xeeea[33]],_0x7879x4[_0xeeea[35]][_0xeeea[34]],_0x7879x4[_0xeeea[36]],_0x7879x8+1):null;var _0x7879x12=_0x7879x8>0?util[_0xeeea[16]](_0xeeea[32],_0x7879x4[_0xeeea[33]],_0x7879x4[_0xeeea[35]][_0xeeea[34]],_0x7879x4[_0xeeea[36]],_0x7879x8-1):null;_0x7879x5[_0xeeea[27]](200)[_0xeeea[26]]({count:_0x7879xf[_0xeeea[29]],rows:_0x7879xf[_0xeeea[37]],next_page:_0x7879x11,previous_page:_0x7879x12,total_pages:_0x7879x10});})[_0xeeea[28]](function(_0x7879xe){_0x7879x5[_0xeeea[27]](500)[_0xeeea[26]]({error:_0xeeea[25]})});};exports[_0xeeea[40]]=function(_0x7879x4,_0x7879x5){console[_0xeeea[42]](_0x7879x4[_0xeeea[41]]);Metric[_0xeeea[44]]({where:{name:_0x7879x4[_0xeeea[41]][_0xeeea[6]]}})[_0xeeea[38]](function(_0x7879x13){if(!_0x7879x13){return _0x7879x5[_0xeeea[43]](404)};return _0x7879x5[_0xeeea[26]](_0x7879x13);})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)});};exports[_0xeeea[45]]=function(_0x7879x4,_0x7879x5){console[_0xeeea[42]](_0x7879x4[_0xeeea[9]]);Metric[_0xeeea[44]]({where:{table:_0x7879x4[_0xeeea[9]][_0xeeea[46]]}})[_0xeeea[38]](function(_0x7879x13){console[_0xeeea[42]](_0x7879x13);if(!_0x7879x13){return _0x7879x5[_0xeeea[43]](404)};return _0x7879x5[_0xeeea[27]](200)[_0xeeea[26]](_0x7879x13);})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)});};exports[_0xeeea[47]]=function(_0x7879x4,_0x7879x5){Metric[_0xeeea[50]](_0x7879x4[_0xeeea[49]][_0xeeea[48]])[_0xeeea[38]](function(_0x7879x14){if(!_0x7879x14){return _0x7879x5[_0xeeea[43]](404)};return _0x7879x5[_0xeeea[26]](_0x7879x14);})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)})};exports[_0xeeea[51]]=function(_0x7879x4,_0x7879x5){Metric[_0xeeea[51]](_0x7879x4[_0xeeea[41]])[_0xeeea[38]](function(_0x7879x14){return _0x7879x5[_0xeeea[27]](201)[_0xeeea[26]](_0x7879x14)})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)})};exports[_0xeeea[52]]=function(_0x7879x4,_0x7879x5){Metric[_0xeeea[44]]({where:{name:_0x7879x4[_0xeeea[41]][_0xeeea[6]],id:{$ne:_0x7879x4[_0xeeea[41]][_0xeeea[48]]}}})[_0xeeea[38]](function(_0x7879x13){if(!_0x7879x13){return _0x7879x5[_0xeeea[43]](404)};if(_0x7879x13[_0xeeea[53]]>0){return _0x7879x5[_0xeeea[27]](500)[_0xeeea[26]]({message:_0xeeea[54]})};if(_0x7879x4[_0xeeea[41]][_0xeeea[48]]){delete _0x7879x4[_0xeeea[41]][_0xeeea[48]]};Metric[_0xeeea[57]]({where:{id:_0x7879x4[_0xeeea[49]][_0xeeea[48]]}})[_0xeeea[38]](function(_0x7879x14){if(!_0x7879x14){return _0x7879x5[_0xeeea[43]](404)};var _0x7879x15=_[_0xeeea[55]](_0x7879x14,_0x7879x4[_0xeeea[41]]);_0x7879x15[_0xeeea[56]]()[_0xeeea[38]](function(){return _0x7879x5[_0xeeea[27]](200)[_0xeeea[26]](_0x7879x14)})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)});})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)});})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)})};exports[_0xeeea[58]]=function(_0x7879x4,_0x7879x5){Metric[_0xeeea[50]](_0x7879x4[_0xeeea[49]][_0xeeea[48]])[_0xeeea[38]](function(_0x7879x14){if(!_0x7879x14){return _0x7879x5[_0xeeea[43]](404)};_0x7879x14[_0xeeea[60]]()[_0xeeea[38]](function(_0x7879x16){if(_0x7879x16[_0xeeea[53]]>0){return _0x7879x5[_0xeeea[27]](500)[_0xeeea[26]]({message:_0xeeea[59]})};_0x7879x14[_0xeeea[58]]()[_0xeeea[38]](function(){return _0x7879x5[_0xeeea[43]](204)})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)});})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)});})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)})};exports[_0xeeea[61]]=function(_0x7879x4,_0x7879x5){Metric[_0xeeea[58]]({where:{id:_0x7879x4[_0xeeea[9]][_0xeeea[48]]},individualHooks:true})[_0xeeea[38]](function(){return _0x7879x5[_0xeeea[43]](204)})[_0xeeea[28]](function(_0x7879xe){return handleError(_0x7879x5,_0x7879xe)})};function handleError(_0x7879x5,_0x7879xe){return _0x7879x5[_0xeeea[27]](500)[_0xeeea[26]](_0x7879xe)}
\ No newline at end of file
-var _0x70ab=["\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"];_0x70ab[0];var Metric=require(_0x70ab[2])[_0x70ab[1]];exports[_0x70ab[3]]=function(_0xb167x2){Metric[_0x70ab[4]](function(_0xb167x3){onSave(_0xb167x2,_0xb167x3)});Metric[_0x70ab[5]](function(_0xb167x3){onRemove(_0xb167x2,_0xb167x3)});};function onSave(_0xb167x2,_0xb167x3,_0xb167x5){_0xb167x2[_0x70ab[7]](_0x70ab[6],_0xb167x3)}function onRemove(_0xb167x2,_0xb167x3,_0xb167x5){_0xb167x2[_0x70ab[7]](_0x70ab[8],_0xb167x3)}
\ No newline at end of file
+var _0x58db=["\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"];_0x58db[0];var Metric=require(_0x58db[2])[_0x58db[1]];exports[_0x58db[3]]=function(_0x7934x2){Metric[_0x58db[4]](function(_0x7934x3){onSave(_0x7934x2,_0x7934x3)});Metric[_0x58db[5]](function(_0x7934x3){onRemove(_0x7934x2,_0x7934x3)});};function onSave(_0x7934x2,_0x7934x3,_0x7934x5){_0x7934x2[_0x58db[7]](_0x58db[6],_0x7934x3)}function onRemove(_0x7934x2,_0x7934x3,_0x7934x5){_0x7934x2[_0x58db[7]](_0x58db[8],_0x7934x3)}
\ No newline at end of file
-var _0xe1da=["\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"];_0xe1da[0];var should=require(_0xe1da[1]);var app=require(_0xe1da[2]);var request=require(_0xe1da[3]);describe(_0xe1da[4],function(){it(_0xe1da[5],function(_0x6c05x4){request(app)[_0xe1da[13]](_0xe1da[12])[_0xe1da[11]](200)[_0xe1da[11]](_0xe1da[10],/json/)[_0xe1da[9]](function(_0x6c05x5,_0x6c05x6){if(_0x6c05x5){return _0x6c05x4(_0x6c05x5)};_0x6c05x6[_0xe1da[8]][_0xe1da[1]][_0xe1da[7]][_0xe1da[6]](Array);_0x6c05x4();})})});
\ No newline at end of file
+var _0x7df2=["\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"];_0x7df2[0];var should=require(_0x7df2[1]);var app=require(_0x7df2[2]);var request=require(_0x7df2[3]);describe(_0x7df2[4],function(){it(_0x7df2[5],function(_0xb6c3x4){request(app)[_0x7df2[13]](_0x7df2[12])[_0x7df2[11]](200)[_0x7df2[11]](_0x7df2[10],/json/)[_0x7df2[9]](function(_0xb6c3x5,_0xb6c3x6){if(_0xb6c3x5){return _0xb6c3x4(_0xb6c3x5)};_0xb6c3x6[_0x7df2[8]][_0x7df2[1]][_0x7df2[7]][_0x7df2[6]](Array);_0xb6c3x4();})})});
\ No newline at end of file
-var _0xc62a=["\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"];_0xc62a[0];var express=require(_0xc62a[1]);var controller=require(_0xc62a[2]);var router=express.Router();router[_0xc62a[5]](_0xc62a[3],controller[_0xc62a[4]]);router[_0xc62a[5]](_0xc62a[6],controller[_0xc62a[7]]);router[_0xc62a[9]](_0xc62a[3],controller[_0xc62a[8]]);router[_0xc62a[11]](_0xc62a[6],controller[_0xc62a[10]]);router[_0xc62a[12]](_0xc62a[6],controller[_0xc62a[10]]);router[_0xc62a[14]](_0xc62a[6],controller[_0xc62a[13]]);module[_0xc62a[15]]=router;
\ No newline at end of file
+var _0x7066=["\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"];_0x7066[0];var express=require(_0x7066[1]);var controller=require(_0x7066[2]);var router=express.Router();router[_0x7066[5]](_0x7066[3],controller[_0x7066[4]]);router[_0x7066[5]](_0x7066[6],controller[_0x7066[7]]);router[_0x7066[9]](_0x7066[3],controller[_0x7066[8]]);router[_0x7066[11]](_0x7066[6],controller[_0x7066[10]]);router[_0x7066[12]](_0x7066[6],controller[_0x7066[10]]);router[_0x7066[14]](_0x7066[6],controller[_0x7066[13]]);module[_0x7066[15]]=router;
\ No newline at end of file
-var _0x385e=["\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"];_0x385e[0];var _=require(_0x385e[1]);var Module=require(_0x385e[3])[_0x385e[2]];exports[_0x385e[4]]=function(_0xd1a2x3,_0xd1a2x4){Module[_0x385e[9]]()[_0x385e[8]](function(_0xd1a2x6){return _0xd1a2x4[_0x385e[7]](200)[_0x385e[6]](_0xd1a2x6)})[_0x385e[5]](function(_0xd1a2x5){return handleError(_0xd1a2x4,_0xd1a2x5)})};exports[_0x385e[10]]=function(_0xd1a2x3,_0xd1a2x4){var _0xd1a2x7=_0xd1a2x3[_0x385e[12]][_0x385e[11]];Module[_0x385e[14]](_0xd1a2x7)[_0x385e[8]](function(_0xd1a2x8){if(!_0xd1a2x8){return _0xd1a2x4[_0x385e[13]](404)};return _0xd1a2x4[_0x385e[6]](_0xd1a2x8);})[_0x385e[5]](function(_0xd1a2x5){return handleError(_0xd1a2x4,_0xd1a2x5)});};exports[_0x385e[15]]=function(_0xd1a2x3,_0xd1a2x4){Module[_0x385e[15]](_0xd1a2x3[_0x385e[16]])[_0x385e[8]](function(_0xd1a2x8){return _0xd1a2x4[_0x385e[7]](201)[_0x385e[6]](_0xd1a2x8)})[_0x385e[5]](function(_0xd1a2x5){return handleError(_0xd1a2x4,_0xd1a2x5)})};exports[_0x385e[17]]=function(_0xd1a2x3,_0xd1a2x4){var _0xd1a2x7=_0xd1a2x3[_0x385e[16]][_0x385e[11]];if(_0xd1a2x3[_0x385e[16]][_0x385e[11]]){delete _0xd1a2x3[_0x385e[16]][_0x385e[11]]};Module[_0x385e[14]](_0xd1a2x7)[_0x385e[8]](function(_0xd1a2x8){if(!_0xd1a2x8){return _0xd1a2x4[_0x385e[13]](404)};var _0xd1a2x9=_[_0x385e[18]](_0xd1a2x8,_0xd1a2x3[_0x385e[16]]);_0xd1a2x9[_0x385e[19]]()[_0x385e[8]](function(){return _0xd1a2x4[_0x385e[7]](200)[_0x385e[6]](_0xd1a2x8)})[_0x385e[5]](function(_0xd1a2x5){return handleError(_0xd1a2x4,_0xd1a2x5)});})[_0x385e[5]](function(_0xd1a2x5){return handleError(_0xd1a2x4,_0xd1a2x5)});};exports[_0x385e[20]]=function(_0xd1a2x3,_0xd1a2x4){var _0xd1a2x7=_0xd1a2x3[_0x385e[12]][_0x385e[11]];Module[_0x385e[14]](_0xd1a2x7)[_0x385e[8]](function(_0xd1a2x8){if(!_0xd1a2x8){return _0xd1a2x4[_0x385e[13]](404)};_0xd1a2x8[_0x385e[20]]()[_0x385e[8]](function(){return _0xd1a2x4[_0x385e[13]](204)})[_0x385e[5]](function(_0xd1a2x5){return handleError(_0xd1a2x4,_0xd1a2x5)});})[_0x385e[5]](function(_0xd1a2x5){return handleError(_0xd1a2x4,_0xd1a2x5)});};function handleError(_0xd1a2x4,_0xd1a2x5){return _0xd1a2x4[_0x385e[7]](500)[_0x385e[6]](_0xd1a2x5)}
\ No newline at end of file
+var _0x5444=["\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"];_0x5444[0];var _=require(_0x5444[1]);var Module=require(_0x5444[3])[_0x5444[2]];exports[_0x5444[4]]=function(_0xedc1x3,_0xedc1x4){Module[_0x5444[9]]()[_0x5444[8]](function(_0xedc1x6){return _0xedc1x4[_0x5444[7]](200)[_0x5444[6]](_0xedc1x6)})[_0x5444[5]](function(_0xedc1x5){return handleError(_0xedc1x4,_0xedc1x5)})};exports[_0x5444[10]]=function(_0xedc1x3,_0xedc1x4){var _0xedc1x7=_0xedc1x3[_0x5444[12]][_0x5444[11]];Module[_0x5444[14]](_0xedc1x7)[_0x5444[8]](function(_0xedc1x8){if(!_0xedc1x8){return _0xedc1x4[_0x5444[13]](404)};return _0xedc1x4[_0x5444[6]](_0xedc1x8);})[_0x5444[5]](function(_0xedc1x5){return handleError(_0xedc1x4,_0xedc1x5)});};exports[_0x5444[15]]=function(_0xedc1x3,_0xedc1x4){Module[_0x5444[15]](_0xedc1x3[_0x5444[16]])[_0x5444[8]](function(_0xedc1x8){return _0xedc1x4[_0x5444[7]](201)[_0x5444[6]](_0xedc1x8)})[_0x5444[5]](function(_0xedc1x5){return handleError(_0xedc1x4,_0xedc1x5)})};exports[_0x5444[17]]=function(_0xedc1x3,_0xedc1x4){var _0xedc1x7=_0xedc1x3[_0x5444[16]][_0x5444[11]];if(_0xedc1x3[_0x5444[16]][_0x5444[11]]){delete _0xedc1x3[_0x5444[16]][_0x5444[11]]};Module[_0x5444[14]](_0xedc1x7)[_0x5444[8]](function(_0xedc1x8){if(!_0xedc1x8){return _0xedc1x4[_0x5444[13]](404)};var _0xedc1x9=_[_0x5444[18]](_0xedc1x8,_0xedc1x3[_0x5444[16]]);_0xedc1x9[_0x5444[19]]()[_0x5444[8]](function(){return _0xedc1x4[_0x5444[7]](200)[_0x5444[6]](_0xedc1x8)})[_0x5444[5]](function(_0xedc1x5){return handleError(_0xedc1x4,_0xedc1x5)});})[_0x5444[5]](function(_0xedc1x5){return handleError(_0xedc1x4,_0xedc1x5)});};exports[_0x5444[20]]=function(_0xedc1x3,_0xedc1x4){var _0xedc1x7=_0xedc1x3[_0x5444[12]][_0x5444[11]];Module[_0x5444[14]](_0xedc1x7)[_0x5444[8]](function(_0xedc1x8){if(!_0xedc1x8){return _0xedc1x4[_0x5444[13]](404)};_0xedc1x8[_0x5444[20]]()[_0x5444[8]](function(){return _0xedc1x4[_0x5444[13]](204)})[_0x5444[5]](function(_0xedc1x5){return handleError(_0xedc1x4,_0xedc1x5)});})[_0x5444[5]](function(_0xedc1x5){return handleError(_0xedc1x4,_0xedc1x5)});};function handleError(_0xedc1x4,_0xedc1x5){return _0xedc1x4[_0x5444[7]](500)[_0x5444[6]](_0xedc1x5)}
\ No newline at end of file
-var _0xb358=["\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"];_0xb358[0];var module=require(_0xb358[2])[_0xb358[1]];exports[_0xb358[3]]=function(_0x7a3dx2){module[_0xb358[4]](function(_0x7a3dx3){onSave(_0x7a3dx2,_0x7a3dx3)});module[_0xb358[5]](function(_0x7a3dx3){onRemove(_0x7a3dx2,_0x7a3dx3)});};function onSave(_0x7a3dx2,_0x7a3dx3,_0x7a3dx5){_0x7a3dx2[_0xb358[7]](_0xb358[6],_0x7a3dx3)}function onRemove(_0x7a3dx2,_0x7a3dx3,_0x7a3dx5){_0x7a3dx2[_0xb358[7]](_0xb358[8],_0x7a3dx3)}
\ No newline at end of file
+var _0xf81a=["\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"];_0xf81a[0];var module=require(_0xf81a[2])[_0xf81a[1]];exports[_0xf81a[3]]=function(_0xfb10x2){module[_0xf81a[4]](function(_0xfb10x3){onSave(_0xfb10x2,_0xfb10x3)});module[_0xf81a[5]](function(_0xfb10x3){onRemove(_0xfb10x2,_0xfb10x3)});};function onSave(_0xfb10x2,_0xfb10x3,_0xfb10x5){_0xfb10x2[_0xf81a[7]](_0xf81a[6],_0xfb10x3)}function onRemove(_0xfb10x2,_0xfb10x3,_0xfb10x5){_0xfb10x2[_0xf81a[7]](_0xf81a[8],_0xfb10x3)}
\ No newline at end of file
-var _0x2e0e=["\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"];_0x2e0e[0];var should=require(_0x2e0e[1]);var app=require(_0x2e0e[2]);var request=require(_0x2e0e[3]);describe(_0x2e0e[4],function(){it(_0x2e0e[5],function(_0x40fdx4){request(app)[_0x2e0e[13]](_0x2e0e[12])[_0x2e0e[11]](200)[_0x2e0e[11]](_0x2e0e[10],/json/)[_0x2e0e[9]](function(_0x40fdx5,_0x40fdx6){if(_0x40fdx5){return _0x40fdx4(_0x40fdx5)};_0x40fdx6[_0x2e0e[8]][_0x2e0e[1]][_0x2e0e[7]][_0x2e0e[6]](Array);_0x40fdx4();})})});
\ No newline at end of file
+var _0xc96e=["\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"];_0xc96e[0];var should=require(_0xc96e[1]);var app=require(_0xc96e[2]);var request=require(_0xc96e[3]);describe(_0xc96e[4],function(){it(_0xc96e[5],function(_0xee6bx4){request(app)[_0xc96e[13]](_0xc96e[12])[_0xc96e[11]](200)[_0xc96e[11]](_0xc96e[10],/json/)[_0xc96e[9]](function(_0xee6bx5,_0xee6bx6){if(_0xee6bx5){return _0xee6bx4(_0xee6bx5)};_0xee6bx6[_0xc96e[8]][_0xc96e[1]][_0xc96e[7]][_0xc96e[6]](Array);_0xee6bx4();})})});
\ No newline at end of file
-var _0xcfc8=["\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"];_0xcfc8[0];var express=require(_0xcfc8[1]);var controller=require(_0xcfc8[2]);var router=express.Router();router[_0xcfc8[5]](_0xcfc8[3],controller[_0xcfc8[4]]);router[_0xcfc8[8]](_0xcfc8[6],controller[_0xcfc8[7]]);router[_0xcfc8[10]](_0xcfc8[3],controller[_0xcfc8[9]]);router[_0xcfc8[11]](_0xcfc8[3],controller[_0xcfc8[9]]);router[_0xcfc8[13]](_0xcfc8[3],controller[_0xcfc8[12]]);module[_0xcfc8[14]]=router;
\ No newline at end of file
+var _0x573e=["\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"];_0x573e[0];var express=require(_0x573e[1]);var controller=require(_0x573e[2]);var router=express.Router();router[_0x573e[5]](_0x573e[3],controller[_0x573e[4]]);router[_0x573e[8]](_0x573e[6],controller[_0x573e[7]]);router[_0x573e[10]](_0x573e[3],controller[_0x573e[9]]);router[_0x573e[11]](_0x573e[3],controller[_0x573e[9]]);router[_0x573e[13]](_0x573e[3],controller[_0x573e[12]]);module[_0x573e[14]]=router;
\ No newline at end of file
-var _0x6894=["\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"];_0x6894[0];var _=require(_0x6894[1]);var util=require(_0x6894[2]);var crypto=require(_0x6894[3]);var Setting=require(_0x6894[5])[_0x6894[4]];exports[_0x6894[6]]=function(_0x4b8cx5,_0x4b8cx6){Setting[_0x6894[11]]()[_0x6894[10]](function(_0x4b8cx8){return _0x4b8cx6[_0x6894[9]](200)[_0x6894[8]](_0x4b8cx8)})[_0x6894[7]](function(_0x4b8cx7){return handleError(_0x4b8cx6,_0x4b8cx7)})};exports[_0x6894[12]]=function(_0x4b8cx5,_0x4b8cx6){Setting[_0x6894[24]](_0x4b8cx5[_0x6894[23]][_0x6894[22]])[_0x6894[10]](function(_0x4b8cx9){if(!_0x4b8cx9){return _0x4b8cx6[_0x6894[13]](404)};if(_0x4b8cx9[_0x6894[14]]){_0x4b8cx9[_0x6894[14]]=decrypt(_0x6894[15],util[_0x6894[20]](_0x6894[16],_0x4b8cx9[_0x6894[17]],_0x4b8cx9[_0x6894[18]],_0x4b8cx9[_0x6894[19]]),_0x4b8cx9[_0x6894[14]]);_0x4b8cx9[_0x6894[14]]=JSON[_0x6894[21]](_0x4b8cx9[_0x6894[14]]);};return _0x4b8cx6[_0x6894[8]](_0x4b8cx9);})[_0x6894[7]](function(_0x4b8cx7){return handleError(_0x4b8cx6,_0x4b8cx7)})};exports[_0x6894[25]]=function(_0x4b8cx5,_0x4b8cx6){Setting[_0x6894[25]](_0x4b8cx5[_0x6894[26]])[_0x6894[10]](function(_0x4b8cx9){return _0x4b8cx6[_0x6894[9]](201)[_0x6894[8]](_0x4b8cx9)})[_0x6894[7]](function(_0x4b8cx7){return handleError(_0x4b8cx6,_0x4b8cx7)})};exports[_0x6894[27]]=function(_0x4b8cx5,_0x4b8cx6){if(_0x4b8cx5[_0x6894[26]][_0x6894[22]]){delete _0x4b8cx5[_0x6894[26]][_0x6894[22]]};Setting[_0x6894[24]](_0x4b8cx5[_0x6894[23]][_0x6894[22]])[_0x6894[10]](function(_0x4b8cx9){if(!_0x4b8cx9){return _0x4b8cx6[_0x6894[13]](404)};var _0x4b8cxa=_[_0x6894[28]](_0x4b8cx9,_0x4b8cx5[_0x6894[26]]);_0x4b8cxa[_0x6894[29]]()[_0x6894[10]](function(){return _0x4b8cx6[_0x6894[9]](200)[_0x6894[8]](_0x4b8cx9)})[_0x6894[7]](function(_0x4b8cx7){return handleError(_0x4b8cx6,_0x4b8cx7)});})[_0x6894[7]](function(_0x4b8cx7){return handleError(_0x4b8cx6,_0x4b8cx7)});};exports[_0x6894[30]]=function(_0x4b8cx5,_0x4b8cx6){Setting[_0x6894[24]](_0x4b8cx5[_0x6894[23]][_0x6894[22]])[_0x6894[10]](function(_0x4b8cx9){if(!_0x4b8cx9){return _0x4b8cx6[_0x6894[13]](404)};_0x4b8cx9[_0x6894[30]]()[_0x6894[10]](function(){return _0x4b8cx6[_0x6894[13]](204)})[_0x6894[7]](function(_0x4b8cx7){return handleError(_0x4b8cx6,_0x4b8cx7)});})[_0x6894[7]](function(_0x4b8cx7){return handleError(_0x4b8cx6,_0x4b8cx7)})};function handleError(_0x4b8cx6,_0x4b8cx7){return _0x4b8cx6[_0x6894[9]](500)[_0x6894[8]](_0x4b8cx7)}function decrypt(_0x4b8cxd,_0x4b8cxe,_0x4b8cxf){var _0x4b8cx10=crypto[_0x6894[31]](_0x4b8cxd,_0x4b8cxe);var _0x4b8cx11=_0x4b8cx10[_0x6894[27]](_0x4b8cxf,_0x6894[32],_0x6894[33]);_0x4b8cx11+=_0x4b8cx10[_0x6894[34]](_0x6894[33]);return _0x4b8cx11;}
\ No newline at end of file
+var _0xf871=["\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"];_0xf871[0];var _=require(_0xf871[1]);var util=require(_0xf871[2]);var crypto=require(_0xf871[3]);var Setting=require(_0xf871[5])[_0xf871[4]];exports[_0xf871[6]]=function(_0x4510x5,_0x4510x6){Setting[_0xf871[11]]()[_0xf871[10]](function(_0x4510x8){return _0x4510x6[_0xf871[9]](200)[_0xf871[8]](_0x4510x8)})[_0xf871[7]](function(_0x4510x7){return handleError(_0x4510x6,_0x4510x7)})};exports[_0xf871[12]]=function(_0x4510x5,_0x4510x6){Setting[_0xf871[24]](_0x4510x5[_0xf871[23]][_0xf871[22]])[_0xf871[10]](function(_0x4510x9){if(!_0x4510x9){return _0x4510x6[_0xf871[13]](404)};if(_0x4510x9[_0xf871[14]]){_0x4510x9[_0xf871[14]]=decrypt(_0xf871[15],util[_0xf871[20]](_0xf871[16],_0x4510x9[_0xf871[17]],_0x4510x9[_0xf871[18]],_0x4510x9[_0xf871[19]]),_0x4510x9[_0xf871[14]]);_0x4510x9[_0xf871[14]]=JSON[_0xf871[21]](_0x4510x9[_0xf871[14]]);};return _0x4510x6[_0xf871[8]](_0x4510x9);})[_0xf871[7]](function(_0x4510x7){return handleError(_0x4510x6,_0x4510x7)})};exports[_0xf871[25]]=function(_0x4510x5,_0x4510x6){Setting[_0xf871[25]](_0x4510x5[_0xf871[26]])[_0xf871[10]](function(_0x4510x9){return _0x4510x6[_0xf871[9]](201)[_0xf871[8]](_0x4510x9)})[_0xf871[7]](function(_0x4510x7){return handleError(_0x4510x6,_0x4510x7)})};exports[_0xf871[27]]=function(_0x4510x5,_0x4510x6){if(_0x4510x5[_0xf871[26]][_0xf871[22]]){delete _0x4510x5[_0xf871[26]][_0xf871[22]]};Setting[_0xf871[24]](_0x4510x5[_0xf871[23]][_0xf871[22]])[_0xf871[10]](function(_0x4510x9){if(!_0x4510x9){return _0x4510x6[_0xf871[13]](404)};var _0x4510xa=_[_0xf871[28]](_0x4510x9,_0x4510x5[_0xf871[26]]);_0x4510xa[_0xf871[29]]()[_0xf871[10]](function(){return _0x4510x6[_0xf871[9]](200)[_0xf871[8]](_0x4510x9)})[_0xf871[7]](function(_0x4510x7){return handleError(_0x4510x6,_0x4510x7)});})[_0xf871[7]](function(_0x4510x7){return handleError(_0x4510x6,_0x4510x7)});};exports[_0xf871[30]]=function(_0x4510x5,_0x4510x6){Setting[_0xf871[24]](_0x4510x5[_0xf871[23]][_0xf871[22]])[_0xf871[10]](function(_0x4510x9){if(!_0x4510x9){return _0x4510x6[_0xf871[13]](404)};_0x4510x9[_0xf871[30]]()[_0xf871[10]](function(){return _0x4510x6[_0xf871[13]](204)})[_0xf871[7]](function(_0x4510x7){return handleError(_0x4510x6,_0x4510x7)});})[_0xf871[7]](function(_0x4510x7){return handleError(_0x4510x6,_0x4510x7)})};function handleError(_0x4510x6,_0x4510x7){return _0x4510x6[_0xf871[9]](500)[_0xf871[8]](_0x4510x7)}function decrypt(_0x4510xd,_0x4510xe,_0x4510xf){var _0x4510x10=crypto[_0xf871[31]](_0x4510xd,_0x4510xe);var _0x4510x11=_0x4510x10[_0xf871[27]](_0x4510xf,_0xf871[32],_0xf871[33]);_0x4510x11+=_0x4510x10[_0xf871[34]](_0xf871[33]);return _0x4510x11;}
\ No newline at end of file
-var _0xf345=["\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"];_0xf345[0];var Setting=require(_0xf345[2])[_0xf345[1]];exports[_0xf345[3]]=function(_0x5fb9x2){Setting[_0xf345[4]](function(_0x5fb9x3){onSave(_0x5fb9x2,_0x5fb9x3)});Setting[_0xf345[5]](function(_0x5fb9x3){onRemove(_0x5fb9x2,_0x5fb9x3)});};function onSave(_0x5fb9x2,_0x5fb9x3,_0x5fb9x5){_0x5fb9x2[_0xf345[7]](_0xf345[6],_0x5fb9x3)}function onRemove(_0x5fb9x2,_0x5fb9x3,_0x5fb9x5){_0x5fb9x2[_0xf345[7]](_0xf345[8],_0x5fb9x3)}
\ No newline at end of file
+var _0xfd79=["\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"];_0xfd79[0];var Setting=require(_0xfd79[2])[_0xfd79[1]];exports[_0xfd79[3]]=function(_0x1957x2){Setting[_0xfd79[4]](function(_0x1957x3){onSave(_0x1957x2,_0x1957x3)});Setting[_0xfd79[5]](function(_0x1957x3){onRemove(_0x1957x2,_0x1957x3)});};function onSave(_0x1957x2,_0x1957x3,_0x1957x5){_0x1957x2[_0xfd79[7]](_0xfd79[6],_0x1957x3)}function onRemove(_0x1957x2,_0x1957x3,_0x1957x5){_0x1957x2[_0xfd79[7]](_0xfd79[8],_0x1957x3)}
\ No newline at end of file
-var _0x98ef=["\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"];_0x98ef[0];var should=require(_0x98ef[1]);var app=require(_0x98ef[2]);var request=require(_0x98ef[3]);describe(_0x98ef[4],function(){it(_0x98ef[5],function(_0xca70x4){request(app)[_0x98ef[13]](_0x98ef[12])[_0x98ef[11]](200)[_0x98ef[11]](_0x98ef[10],/json/)[_0x98ef[9]](function(_0xca70x5,_0xca70x6){if(_0xca70x5){return _0xca70x4(_0xca70x5)};_0xca70x6[_0x98ef[8]][_0x98ef[1]][_0x98ef[7]][_0x98ef[6]](Array);_0xca70x4();})})});
\ No newline at end of file
+var _0x8d77=["\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"];_0x8d77[0];var should=require(_0x8d77[1]);var app=require(_0x8d77[2]);var request=require(_0x8d77[3]);describe(_0x8d77[4],function(){it(_0x8d77[5],function(_0x193dx4){request(app)[_0x8d77[13]](_0x8d77[12])[_0x8d77[11]](200)[_0x8d77[11]](_0x8d77[10],/json/)[_0x8d77[9]](function(_0x193dx5,_0x193dx6){if(_0x193dx5){return _0x193dx4(_0x193dx5)};_0x193dx6[_0x8d77[8]][_0x8d77[1]][_0x8d77[7]][_0x8d77[6]](Array);_0x193dx4();})})});
\ No newline at end of file
-var _0x7792=["\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"];_0x7792[0];var express=require(_0x7792[1]);var controller=require(_0x7792[2]);var auth=require(_0x7792[3]);var router=express.Router();router[_0x7792[7]](_0x7792[4],auth[_0x7792[5]](),controller[_0x7792[6]]);module[_0x7792[8]]=router;
\ No newline at end of file
+var _0x1258=["\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"];_0x1258[0];var express=require(_0x1258[1]);var controller=require(_0x1258[2]);var auth=require(_0x1258[3]);var router=express.Router();router[_0x1258[7]](_0x1258[4],auth[_0x1258[5]](),controller[_0x1258[6]]);module[_0x1258[8]]=router;
\ No newline at end of file
-var _0x40f9=["\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"];_0x40f9[0];var _=require(_0x40f9[1]);var Motionbar=require(_0x40f9[3])[_0x40f9[2]];exports[_0x40f9[4]]=function(_0x5eb7x3,_0x5eb7x4){if(!_0x5eb7x3[_0x40f9[6]][_0x40f9[5]]){return handleError(_0x5eb7x4,{message:_0x40f9[7]})};_0x5eb7x3[_0x40f9[9]][_0x40f9[8]]=parseInt(_0x5eb7x3[_0x40f9[6]][_0x40f9[5]],10);_0x5eb7x3[_0x40f9[9]][_0x40f9[4]]=_0x5eb7x3[_0x40f9[10]][_0x40f9[4]];_0x5eb7x3[_0x40f9[9]][_0x40f9[11]]=_0x5eb7x3[_0x40f9[10]][_0x40f9[11]];_0x5eb7x3[_0x40f9[9]][_0x40f9[12]]=_0x5eb7x3[_0x40f9[14]][_0x40f9[13]];Motionbar[_0x40f9[19]](_0x5eb7x3[_0x40f9[9]])[_0x40f9[18]](function(_0x5eb7x6){return _0x5eb7x4[_0x40f9[17]](201)[_0x40f9[16]](_0x5eb7x6)})[_0x40f9[15]](function(_0x5eb7x5){return handleError(_0x5eb7x4,_0x5eb7x5)});};function handleError(_0x5eb7x4,_0x5eb7x5){return _0x5eb7x4[_0x40f9[17]](500)[_0x40f9[16]](_0x5eb7x5)}
\ No newline at end of file
+var _0xdaf7=["\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"];_0xdaf7[0];var _=require(_0xdaf7[1]);var Motionbar=require(_0xdaf7[3])[_0xdaf7[2]];exports[_0xdaf7[4]]=function(_0xed75x3,_0xed75x4){if(!_0xed75x3[_0xdaf7[6]][_0xdaf7[5]]){return handleError(_0xed75x4,{message:_0xdaf7[7]})};_0xed75x3[_0xdaf7[9]][_0xdaf7[8]]=parseInt(_0xed75x3[_0xdaf7[6]][_0xdaf7[5]],10);_0xed75x3[_0xdaf7[9]][_0xdaf7[4]]=_0xed75x3[_0xdaf7[10]][_0xdaf7[4]];_0xed75x3[_0xdaf7[9]][_0xdaf7[11]]=_0xed75x3[_0xdaf7[10]][_0xdaf7[11]];_0xed75x3[_0xdaf7[9]][_0xdaf7[12]]=_0xed75x3[_0xdaf7[14]][_0xdaf7[13]];Motionbar[_0xdaf7[19]](_0xed75x3[_0xdaf7[9]])[_0xdaf7[18]](function(_0xed75x6){return _0xed75x4[_0xdaf7[17]](201)[_0xdaf7[16]](_0xed75x6)})[_0xdaf7[15]](function(_0xed75x5){return handleError(_0xed75x4,_0xed75x5)});};function handleError(_0xed75x4,_0xed75x5){return _0xed75x4[_0xdaf7[17]](500)[_0xdaf7[16]](_0xed75x5)}
\ No newline at end of file
-var _0x60a0=["\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"];_0x60a0[0];var Motionbar=require(_0x60a0[2])[_0x60a0[1]];exports[_0x60a0[3]]=function(_0x6f98x2){Motionbar[_0x60a0[4]](function(_0x6f98x3){onSave(_0x6f98x2,_0x6f98x3)});Motionbar[_0x60a0[5]](function(_0x6f98x3){onRemove(_0x6f98x2,_0x6f98x3)});};function onSave(_0x6f98x2,_0x6f98x3,_0x6f98x5){if(_0x6f98x2[_0x60a0[6]]==_0x6f98x3[_0x60a0[7]]){_0x6f98x2[_0x60a0[9]](_0x60a0[8],_0x6f98x3)}}function onRemove(_0x6f98x2,_0x6f98x3,_0x6f98x5){_0x6f98x2[_0x60a0[9]](_0x60a0[10],_0x6f98x3)}
\ No newline at end of file
+var _0xb901=["\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"];_0xb901[0];var Motionbar=require(_0xb901[2])[_0xb901[1]];exports[_0xb901[3]]=function(_0x2314x2){Motionbar[_0xb901[4]](function(_0x2314x3){onSave(_0x2314x2,_0x2314x3)});Motionbar[_0xb901[5]](function(_0x2314x3){onRemove(_0x2314x2,_0x2314x3)});};function onSave(_0x2314x2,_0x2314x3,_0x2314x5){if(_0x2314x2[_0xb901[6]]==_0x2314x3[_0xb901[7]]){_0x2314x2[_0xb901[9]](_0xb901[8],_0x2314x3)}}function onRemove(_0x2314x2,_0x2314x3,_0x2314x5){_0x2314x2[_0xb901[9]](_0xb901[10],_0x2314x3)}
\ No newline at end of file
-var _0x4e2e=["\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"];_0x4e2e[0];var should=require(_0x4e2e[1]);var app=require(_0x4e2e[2]);var request=require(_0x4e2e[3]);describe(_0x4e2e[4],function(){it(_0x4e2e[5],function(_0x4361x4){request(app)[_0x4e2e[13]](_0x4e2e[12])[_0x4e2e[11]](200)[_0x4e2e[11]](_0x4e2e[10],/json/)[_0x4e2e[9]](function(_0x4361x5,_0x4361x6){if(_0x4361x5){return _0x4361x4(_0x4361x5)};_0x4361x6[_0x4e2e[8]][_0x4e2e[1]][_0x4e2e[7]][_0x4e2e[6]](Array);_0x4361x4();})})});
\ No newline at end of file
+var _0x81d9=["\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"];_0x81d9[0];var should=require(_0x81d9[1]);var app=require(_0x81d9[2]);var request=require(_0x81d9[3]);describe(_0x81d9[4],function(){it(_0x81d9[5],function(_0xd48ax4){request(app)[_0x81d9[13]](_0x81d9[12])[_0x81d9[11]](200)[_0x81d9[11]](_0x81d9[10],/json/)[_0x81d9[9]](function(_0xd48ax5,_0xd48ax6){if(_0xd48ax5){return _0xd48ax4(_0xd48ax5)};_0xd48ax6[_0x81d9[8]][_0x81d9[1]][_0x81d9[7]][_0x81d9[6]](Array);_0xd48ax4();})})});
\ No newline at end of file
-var _0xcb00=["\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"];_0xcb00[0];var express=require(_0xcb00[1]);var controller=require(_0xcb00[2]);var router=express.Router();router[_0xcb00[5]](_0xcb00[3],controller[_0xcb00[4]]);router[_0xcb00[5]](_0xcb00[6],controller[_0xcb00[7]]);router[_0xcb00[5]](_0xcb00[8],controller[_0xcb00[9]]);router[_0xcb00[11]](_0xcb00[3],controller[_0xcb00[10]]);router[_0xcb00[13]](_0xcb00[8],controller[_0xcb00[12]]);router[_0xcb00[14]](_0xcb00[8],controller[_0xcb00[12]]);router[_0xcb00[16]](_0xcb00[8],controller[_0xcb00[15]]);module[_0xcb00[17]]=router;
\ No newline at end of file
+var _0x9caf=["\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"];_0x9caf[0];var express=require(_0x9caf[1]);var controller=require(_0x9caf[2]);var router=express.Router();router[_0x9caf[5]](_0x9caf[3],controller[_0x9caf[4]]);router[_0x9caf[5]](_0x9caf[6],controller[_0x9caf[7]]);router[_0x9caf[5]](_0x9caf[8],controller[_0x9caf[9]]);router[_0x9caf[11]](_0x9caf[3],controller[_0x9caf[10]]);router[_0x9caf[13]](_0x9caf[8],controller[_0x9caf[12]]);router[_0x9caf[14]](_0x9caf[8],controller[_0x9caf[12]]);router[_0x9caf[16]](_0x9caf[8],controller[_0x9caf[15]]);module[_0x9caf[17]]=router;
\ No newline at end of file
-var _0x8a1b=["\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"];_0x8a1b[0];var _=require(_0x8a1b[1]);var ReportAgent=require(_0x8a1b[3])[_0x8a1b[2]];exports[_0x8a1b[4]]=function(_0x758cx3,_0x758cx4){ReportAgent[_0x8a1b[9]]()[_0x8a1b[8]](function(_0x758cx6){return _0x758cx4[_0x8a1b[7]](200)[_0x8a1b[6]](_0x758cx6)})[_0x8a1b[5]](function(_0x758cx5){return handleError(_0x758cx4,_0x758cx5)})};exports[_0x8a1b[10]]=function(_0x758cx3,_0x758cx4){ReportAgent[_0x8a1b[10]]()[_0x8a1b[8]](function(_0x758cx7){return _0x758cx4[_0x8a1b[7]](200)[_0x8a1b[6]](_0x758cx7)})[_0x8a1b[5]](function(_0x758cx5){return handleError(_0x758cx4,_0x758cx5)})};exports[_0x8a1b[11]]=function(_0x758cx3,_0x758cx4){ReportAgent[_0x8a1b[15]](_0x758cx3[_0x8a1b[14]][_0x8a1b[13]])[_0x8a1b[8]](function(_0x758cx8){if(!_0x758cx8){return _0x758cx4[_0x8a1b[12]](404)};return _0x758cx4[_0x8a1b[6]](_0x758cx8);})[_0x8a1b[5]](function(_0x758cx5){return handleError(_0x758cx4,_0x758cx5)})};exports[_0x8a1b[16]]=function(_0x758cx3,_0x758cx4){ReportAgent[_0x8a1b[16]](_0x758cx3[_0x8a1b[17]])[_0x8a1b[8]](function(_0x758cx8){return _0x758cx4[_0x8a1b[7]](201)[_0x8a1b[6]](_0x758cx8)})[_0x8a1b[5]](function(_0x758cx5){return handleError(_0x758cx4,_0x758cx5)})};exports[_0x8a1b[18]]=function(_0x758cx3,_0x758cx4){if(_0x758cx3[_0x8a1b[17]][_0x8a1b[13]]){delete _0x758cx3[_0x8a1b[17]][_0x8a1b[13]]};ReportAgent[_0x8a1b[15]](_0x758cx3[_0x8a1b[14]][_0x8a1b[13]])[_0x8a1b[8]](function(_0x758cx8){if(!_0x758cx8){return _0x758cx4[_0x8a1b[12]](404)};var _0x758cx9=_[_0x8a1b[19]](_0x758cx8,_0x758cx3[_0x8a1b[17]]);_0x758cx9[_0x8a1b[20]]()[_0x8a1b[8]](function(){return _0x758cx4[_0x8a1b[7]](200)[_0x8a1b[6]](_0x758cx8)})[_0x8a1b[5]](function(_0x758cx5){return handleError(_0x758cx4,_0x758cx5)});})[_0x8a1b[5]](function(_0x758cx5){return handleError(_0x758cx4,_0x758cx5)});};exports[_0x8a1b[21]]=function(_0x758cx3,_0x758cx4){ReportAgent[_0x8a1b[15]](_0x758cx3[_0x8a1b[14]][_0x8a1b[13]])[_0x8a1b[8]](function(_0x758cx8){if(!_0x758cx8){return _0x758cx4[_0x8a1b[12]](404)};_0x758cx8[_0x8a1b[21]]()[_0x8a1b[8]](function(){return _0x758cx4[_0x8a1b[12]](204)})[_0x8a1b[5]](function(_0x758cx5){return handleError(_0x758cx4,_0x758cx5)});})[_0x8a1b[5]](function(_0x758cx5){return handleError(_0x758cx4,_0x758cx5)})};function handleError(_0x758cx4,_0x758cx5){return _0x758cx4[_0x8a1b[7]](500)[_0x8a1b[6]](_0x758cx5)}
\ No newline at end of file
+var _0x7fb3=["\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"];_0x7fb3[0];var _=require(_0x7fb3[1]);var ReportAgent=require(_0x7fb3[3])[_0x7fb3[2]];exports[_0x7fb3[4]]=function(_0x4118x3,_0x4118x4){ReportAgent[_0x7fb3[9]]()[_0x7fb3[8]](function(_0x4118x6){return _0x4118x4[_0x7fb3[7]](200)[_0x7fb3[6]](_0x4118x6)})[_0x7fb3[5]](function(_0x4118x5){return handleError(_0x4118x4,_0x4118x5)})};exports[_0x7fb3[10]]=function(_0x4118x3,_0x4118x4){ReportAgent[_0x7fb3[10]]()[_0x7fb3[8]](function(_0x4118x7){return _0x4118x4[_0x7fb3[7]](200)[_0x7fb3[6]](_0x4118x7)})[_0x7fb3[5]](function(_0x4118x5){return handleError(_0x4118x4,_0x4118x5)})};exports[_0x7fb3[11]]=function(_0x4118x3,_0x4118x4){ReportAgent[_0x7fb3[15]](_0x4118x3[_0x7fb3[14]][_0x7fb3[13]])[_0x7fb3[8]](function(_0x4118x8){if(!_0x4118x8){return _0x4118x4[_0x7fb3[12]](404)};return _0x4118x4[_0x7fb3[6]](_0x4118x8);})[_0x7fb3[5]](function(_0x4118x5){return handleError(_0x4118x4,_0x4118x5)})};exports[_0x7fb3[16]]=function(_0x4118x3,_0x4118x4){ReportAgent[_0x7fb3[16]](_0x4118x3[_0x7fb3[17]])[_0x7fb3[8]](function(_0x4118x8){return _0x4118x4[_0x7fb3[7]](201)[_0x7fb3[6]](_0x4118x8)})[_0x7fb3[5]](function(_0x4118x5){return handleError(_0x4118x4,_0x4118x5)})};exports[_0x7fb3[18]]=function(_0x4118x3,_0x4118x4){if(_0x4118x3[_0x7fb3[17]][_0x7fb3[13]]){delete _0x4118x3[_0x7fb3[17]][_0x7fb3[13]]};ReportAgent[_0x7fb3[15]](_0x4118x3[_0x7fb3[14]][_0x7fb3[13]])[_0x7fb3[8]](function(_0x4118x8){if(!_0x4118x8){return _0x4118x4[_0x7fb3[12]](404)};var _0x4118x9=_[_0x7fb3[19]](_0x4118x8,_0x4118x3[_0x7fb3[17]]);_0x4118x9[_0x7fb3[20]]()[_0x7fb3[8]](function(){return _0x4118x4[_0x7fb3[7]](200)[_0x7fb3[6]](_0x4118x8)})[_0x7fb3[5]](function(_0x4118x5){return handleError(_0x4118x4,_0x4118x5)});})[_0x7fb3[5]](function(_0x4118x5){return handleError(_0x4118x4,_0x4118x5)});};exports[_0x7fb3[21]]=function(_0x4118x3,_0x4118x4){ReportAgent[_0x7fb3[15]](_0x4118x3[_0x7fb3[14]][_0x7fb3[13]])[_0x7fb3[8]](function(_0x4118x8){if(!_0x4118x8){return _0x4118x4[_0x7fb3[12]](404)};_0x4118x8[_0x7fb3[21]]()[_0x7fb3[8]](function(){return _0x4118x4[_0x7fb3[12]](204)})[_0x7fb3[5]](function(_0x4118x5){return handleError(_0x4118x4,_0x4118x5)});})[_0x7fb3[5]](function(_0x4118x5){return handleError(_0x4118x4,_0x4118x5)})};function handleError(_0x4118x4,_0x4118x5){return _0x4118x4[_0x7fb3[7]](500)[_0x7fb3[6]](_0x4118x5)}
\ No newline at end of file
-var _0x825f=["\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"];_0x825f[0];var ReportAgent=require(_0x825f[2])[_0x825f[1]];exports[_0x825f[3]]=function(_0xaff8x2){ReportAgent[_0x825f[4]](function(_0xaff8x3){onSave(_0xaff8x2,_0xaff8x3)});ReportAgent[_0x825f[5]](function(_0xaff8x3){onSave(_0xaff8x2,_0xaff8x3)});ReportAgent[_0x825f[6]](function(_0xaff8x3){onRemove(_0xaff8x2,_0xaff8x3)});};function onSave(_0xaff8x2,_0xaff8x3,_0xaff8x5){if(_0xaff8x2[_0x825f[7]]===_0xaff8x3[_0x825f[8]]||_0xaff8x2[_0x825f[9]]===_0x825f[10]){_0xaff8x2[_0x825f[12]](_0x825f[11],_0xaff8x3)}}function onRemove(_0xaff8x2,_0xaff8x3,_0xaff8x5){_0xaff8x2[_0x825f[12]](_0x825f[13],_0xaff8x3)}
\ No newline at end of file
+var _0x15ee=["\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"];_0x15ee[0];var ReportAgent=require(_0x15ee[2])[_0x15ee[1]];exports[_0x15ee[3]]=function(_0x48a7x2){ReportAgent[_0x15ee[4]](function(_0x48a7x3){onSave(_0x48a7x2,_0x48a7x3)});ReportAgent[_0x15ee[5]](function(_0x48a7x3){onSave(_0x48a7x2,_0x48a7x3)});ReportAgent[_0x15ee[6]](function(_0x48a7x3){onRemove(_0x48a7x2,_0x48a7x3)});};function onSave(_0x48a7x2,_0x48a7x3,_0x48a7x5){if(_0x48a7x2[_0x15ee[7]]===_0x48a7x3[_0x15ee[8]]||_0x48a7x2[_0x15ee[9]]===_0x15ee[10]){_0x48a7x2[_0x15ee[12]](_0x15ee[11],_0x48a7x3)}}function onRemove(_0x48a7x2,_0x48a7x3,_0x48a7x5){_0x48a7x2[_0x15ee[12]](_0x15ee[13],_0x48a7x3)}
\ No newline at end of file
-var _0x9c24=["\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"];_0x9c24[0];var express=require(_0x9c24[1]);var controller=require(_0x9c24[2]);var router=express.Router();router[_0x9c24[5]](_0x9c24[3],controller[_0x9c24[4]]);router[_0x9c24[5]](_0x9c24[6],controller[_0x9c24[7]]);router[_0x9c24[9]](_0x9c24[3],controller[_0x9c24[8]]);router[_0x9c24[11]](_0x9c24[6],controller[_0x9c24[10]]);router[_0x9c24[12]](_0x9c24[6],controller[_0x9c24[10]]);router[_0x9c24[14]](_0x9c24[6],controller[_0x9c24[13]]);module[_0x9c24[15]]=router;
\ No newline at end of file
+var _0xb903=["\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"];_0xb903[0];var express=require(_0xb903[1]);var controller=require(_0xb903[2]);var router=express.Router();router[_0xb903[5]](_0xb903[3],controller[_0xb903[4]]);router[_0xb903[5]](_0xb903[6],controller[_0xb903[7]]);router[_0xb903[9]](_0xb903[3],controller[_0xb903[8]]);router[_0xb903[11]](_0xb903[6],controller[_0xb903[10]]);router[_0xb903[12]](_0xb903[6],controller[_0xb903[10]]);router[_0xb903[14]](_0xb903[6],controller[_0xb903[13]]);module[_0xb903[15]]=router;
\ No newline at end of file
-var _0x7445=["\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"];_0x7445[0];var _=require(_0x7445[1]);var ReportChat=require(_0x7445[3])[_0x7445[2]];var sequelize=require(_0x7445[3])[_0x7445[4]];exports[_0x7445[5]]=function(_0x7c14x4,_0x7c14x5){ReportChat[_0x7445[10]]()[_0x7445[9]](function(_0x7c14x7){return _0x7c14x5[_0x7445[8]](200)[_0x7445[7]](_0x7c14x7)})[_0x7445[6]](function(_0x7c14x6){return handleError(_0x7c14x5,_0x7c14x6)})};exports[_0x7445[11]]=function(_0x7c14x4,_0x7c14x5){ReportChat[_0x7445[15]](_0x7c14x4[_0x7445[14]][_0x7445[13]])[_0x7445[9]](function(_0x7c14x8){if(!_0x7c14x8){return _0x7c14x5[_0x7445[12]](404)};return _0x7c14x5[_0x7445[7]](_0x7c14x8);})[_0x7445[6]](function(_0x7c14x6){return handleError(_0x7c14x5,_0x7c14x6)})};exports[_0x7445[16]]=function(_0x7c14x4,_0x7c14x5){ReportChat[_0x7445[16]](_0x7c14x4[_0x7445[17]])[_0x7445[9]](function(_0x7c14x8){return _0x7c14x5[_0x7445[8]](201)[_0x7445[7]](_0x7c14x8)})[_0x7445[6]](function(_0x7c14x6){return handleError(_0x7c14x5,_0x7c14x6)})};exports[_0x7445[18]]=function(_0x7c14x4,_0x7c14x5,_0x7c14x9){if(_0x7c14x4[_0x7445[17]][_0x7445[13]]){delete _0x7c14x4[_0x7445[17]][_0x7445[13]]};return ReportChat[_0x7445[15]](_0x7c14x4[_0x7445[14]][_0x7445[13]])[_0x7445[9]](function(_0x7c14x8){if(!_0x7c14x8){return _0x7c14x5[_0x7445[12]](404)};var _0x7c14xa=_[_0x7445[19]](_0x7c14x8,_0x7c14x4[_0x7445[17]]);return _0x7c14xa[_0x7445[20]]()[_0x7445[9]](function(){return _0x7c14x5[_0x7445[8]](200)[_0x7445[7]](_0x7c14x8)});})[_0x7445[6]](sequelize.ValidationError,function(_0x7c14x6){return handleError(_0x7c14x5,_0x7c14x6)})[_0x7445[6]](function(_0x7c14x6){return handleError(_0x7c14x5,_0x7c14x6)});};exports[_0x7445[21]]=function(_0x7c14x4,_0x7c14x5){ReportChat[_0x7445[15]](_0x7c14x4[_0x7445[14]][_0x7445[13]])[_0x7445[9]](function(_0x7c14x8){if(!_0x7c14x8){return _0x7c14x5[_0x7445[12]](404)};_0x7c14x8[_0x7445[21]]()[_0x7445[9]](function(){return _0x7c14x5[_0x7445[12]](204)})[_0x7445[6]](function(_0x7c14x6){return handleError(_0x7c14x5,_0x7c14x6)});})[_0x7445[6]](function(_0x7c14x6){return handleError(_0x7c14x5,_0x7c14x6)})};function handleError(_0x7c14x5,_0x7c14x6){return _0x7c14x5[_0x7445[8]](500)[_0x7445[7]](_0x7c14x6)}
\ No newline at end of file
+var _0x7aff=["\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"];_0x7aff[0];var _=require(_0x7aff[1]);var ReportChat=require(_0x7aff[3])[_0x7aff[2]];var sequelize=require(_0x7aff[3])[_0x7aff[4]];exports[_0x7aff[5]]=function(_0xef23x4,_0xef23x5){ReportChat[_0x7aff[10]]()[_0x7aff[9]](function(_0xef23x7){return _0xef23x5[_0x7aff[8]](200)[_0x7aff[7]](_0xef23x7)})[_0x7aff[6]](function(_0xef23x6){return handleError(_0xef23x5,_0xef23x6)})};exports[_0x7aff[11]]=function(_0xef23x4,_0xef23x5){ReportChat[_0x7aff[15]](_0xef23x4[_0x7aff[14]][_0x7aff[13]])[_0x7aff[9]](function(_0xef23x8){if(!_0xef23x8){return _0xef23x5[_0x7aff[12]](404)};return _0xef23x5[_0x7aff[7]](_0xef23x8);})[_0x7aff[6]](function(_0xef23x6){return handleError(_0xef23x5,_0xef23x6)})};exports[_0x7aff[16]]=function(_0xef23x4,_0xef23x5){ReportChat[_0x7aff[16]](_0xef23x4[_0x7aff[17]])[_0x7aff[9]](function(_0xef23x8){return _0xef23x5[_0x7aff[8]](201)[_0x7aff[7]](_0xef23x8)})[_0x7aff[6]](function(_0xef23x6){return handleError(_0xef23x5,_0xef23x6)})};exports[_0x7aff[18]]=function(_0xef23x4,_0xef23x5,_0xef23x9){if(_0xef23x4[_0x7aff[17]][_0x7aff[13]]){delete _0xef23x4[_0x7aff[17]][_0x7aff[13]]};return ReportChat[_0x7aff[15]](_0xef23x4[_0x7aff[14]][_0x7aff[13]])[_0x7aff[9]](function(_0xef23x8){if(!_0xef23x8){return _0xef23x5[_0x7aff[12]](404)};var _0xef23xa=_[_0x7aff[19]](_0xef23x8,_0xef23x4[_0x7aff[17]]);return _0xef23xa[_0x7aff[20]]()[_0x7aff[9]](function(){return _0xef23x5[_0x7aff[8]](200)[_0x7aff[7]](_0xef23x8)});})[_0x7aff[6]](sequelize.ValidationError,function(_0xef23x6){return handleError(_0xef23x5,_0xef23x6)})[_0x7aff[6]](function(_0xef23x6){return handleError(_0xef23x5,_0xef23x6)});};exports[_0x7aff[21]]=function(_0xef23x4,_0xef23x5){ReportChat[_0x7aff[15]](_0xef23x4[_0x7aff[14]][_0x7aff[13]])[_0x7aff[9]](function(_0xef23x8){if(!_0xef23x8){return _0xef23x5[_0x7aff[12]](404)};_0xef23x8[_0x7aff[21]]()[_0x7aff[9]](function(){return _0xef23x5[_0x7aff[12]](204)})[_0x7aff[6]](function(_0xef23x6){return handleError(_0xef23x5,_0xef23x6)});})[_0x7aff[6]](function(_0xef23x6){return handleError(_0xef23x5,_0xef23x6)})};function handleError(_0xef23x5,_0xef23x6){return _0xef23x5[_0x7aff[8]](500)[_0x7aff[7]](_0xef23x6)}
\ No newline at end of file
-var _0xd444=["\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"];_0xd444[0];var ReportChat=require(_0xd444[2])[_0xd444[1]];exports[_0xd444[3]]=function(_0x18bbx2){ReportChat[_0xd444[4]](function(_0x18bbx3){onSave(_0x18bbx2,_0x18bbx3)});ReportChat[_0xd444[5]](function(_0x18bbx3){onUpdate(_0x18bbx2,_0x18bbx3)});ReportChat[_0xd444[6]](function(_0x18bbx3){onRemove(_0x18bbx2,_0x18bbx3)});};function onSave(_0x18bbx2,_0x18bbx3,_0x18bbx5){if(_0x18bbx2[_0xd444[7]]===_0x18bbx3[_0xd444[8]]||_0x18bbx2[_0xd444[9]]===_0xd444[10]){_0x18bbx2[_0xd444[12]](_0xd444[11],_0x18bbx3)}}function onUpdate(_0x18bbx2,_0x18bbx3,_0x18bbx5){if(_0x18bbx2[_0xd444[7]]===_0x18bbx3[_0xd444[8]]||_0x18bbx2[_0xd444[9]]===_0xd444[10]){if(_0x18bbx3[_0xd444[14]](_0xd444[13])){_0x18bbx2[_0xd444[12]](_0xd444[15],_0x18bbx3)}else {_0x18bbx2[_0xd444[12]](_0xd444[16],_0x18bbx3)}}}function onRemove(_0x18bbx2,_0x18bbx3,_0x18bbx5){_0x18bbx2[_0xd444[12]](_0xd444[17],_0x18bbx3)}
\ No newline at end of file
+var _0xcc51=["\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"];_0xcc51[0];var ReportChat=require(_0xcc51[2])[_0xcc51[1]];exports[_0xcc51[3]]=function(_0x2b7fx2){ReportChat[_0xcc51[4]](function(_0x2b7fx3){onSave(_0x2b7fx2,_0x2b7fx3)});ReportChat[_0xcc51[5]](function(_0x2b7fx3){onUpdate(_0x2b7fx2,_0x2b7fx3)});ReportChat[_0xcc51[6]](function(_0x2b7fx3){onRemove(_0x2b7fx2,_0x2b7fx3)});};function onSave(_0x2b7fx2,_0x2b7fx3,_0x2b7fx5){if(_0x2b7fx2[_0xcc51[7]]===_0x2b7fx3[_0xcc51[8]]||_0x2b7fx2[_0xcc51[9]]===_0xcc51[10]){_0x2b7fx2[_0xcc51[12]](_0xcc51[11],_0x2b7fx3)}}function onUpdate(_0x2b7fx2,_0x2b7fx3,_0x2b7fx5){if(_0x2b7fx2[_0xcc51[7]]===_0x2b7fx3[_0xcc51[8]]||_0x2b7fx2[_0xcc51[9]]===_0xcc51[10]){if(_0x2b7fx3[_0xcc51[14]](_0xcc51[13])){_0x2b7fx2[_0xcc51[12]](_0xcc51[15],_0x2b7fx3)}else {_0x2b7fx2[_0xcc51[12]](_0xcc51[16],_0x2b7fx3)}}}function onRemove(_0x2b7fx2,_0x2b7fx3,_0x2b7fx5){_0x2b7fx2[_0xcc51[12]](_0xcc51[17],_0x2b7fx3)}
\ No newline at end of file
-var _0x8e13=["\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"];_0x8e13[0];var should=require(_0x8e13[1]);var app=require(_0x8e13[2]);var request=require(_0x8e13[3]);describe(_0x8e13[4],function(){it(_0x8e13[5],function(_0xb826x4){request(app)[_0x8e13[13]](_0x8e13[12])[_0x8e13[11]](200)[_0x8e13[11]](_0x8e13[10],/json/)[_0x8e13[9]](function(_0xb826x5,_0xb826x6){if(_0xb826x5){return _0xb826x4(_0xb826x5)};_0xb826x6[_0x8e13[8]][_0x8e13[1]][_0x8e13[7]][_0x8e13[6]](Array);_0xb826x4();})})});
\ No newline at end of file
+var _0xe92b=["\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"];_0xe92b[0];var should=require(_0xe92b[1]);var app=require(_0xe92b[2]);var request=require(_0xe92b[3]);describe(_0xe92b[4],function(){it(_0xe92b[5],function(_0x36afx4){request(app)[_0xe92b[13]](_0xe92b[12])[_0xe92b[11]](200)[_0xe92b[11]](_0xe92b[10],/json/)[_0xe92b[9]](function(_0x36afx5,_0x36afx6){if(_0x36afx5){return _0x36afx4(_0x36afx5)};_0x36afx6[_0xe92b[8]][_0xe92b[1]][_0xe92b[7]][_0xe92b[6]](Array);_0x36afx4();})})});
\ No newline at end of file
-var _0x1b79=["\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"];_0x1b79[0];var express=require(_0x1b79[1]);var controller=require(_0x1b79[2]);var router=express.Router();router[_0x1b79[5]](_0x1b79[3],controller[_0x1b79[4]]);router[_0x1b79[5]](_0x1b79[6],controller[_0x1b79[7]]);router[_0x1b79[5]](_0x1b79[8],controller[_0x1b79[9]]);router[_0x1b79[11]](_0x1b79[3],controller[_0x1b79[10]]);router[_0x1b79[13]](_0x1b79[8],controller[_0x1b79[12]]);router[_0x1b79[14]](_0x1b79[8],controller[_0x1b79[12]]);router[_0x1b79[16]](_0x1b79[8],controller[_0x1b79[15]]);module[_0x1b79[17]]=router;
\ No newline at end of file
+var _0xefb3=["\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"];_0xefb3[0];var express=require(_0xefb3[1]);var controller=require(_0xefb3[2]);var router=express.Router();router[_0xefb3[5]](_0xefb3[3],controller[_0xefb3[4]]);router[_0xefb3[5]](_0xefb3[6],controller[_0xefb3[7]]);router[_0xefb3[5]](_0xefb3[8],controller[_0xefb3[9]]);router[_0xefb3[11]](_0xefb3[3],controller[_0xefb3[10]]);router[_0xefb3[13]](_0xefb3[8],controller[_0xefb3[12]]);router[_0xefb3[14]](_0xefb3[8],controller[_0xefb3[12]]);router[_0xefb3[16]](_0xefb3[8],controller[_0xefb3[15]]);module[_0xefb3[17]]=router;
\ No newline at end of file
-var _0x9d47=["\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"];_0x9d47[0];var _=require(_0x9d47[1]);var ReportChatSession=require(_0x9d47[3])[_0x9d47[2]];exports[_0x9d47[4]]=function(_0x6736x3,_0x6736x4){ReportChatSession[_0x9d47[9]]()[_0x9d47[8]](function(_0x6736x6){return _0x6736x4[_0x9d47[7]](200)[_0x9d47[6]](_0x6736x6)})[_0x9d47[5]](function(_0x6736x5){return handleError(_0x6736x4,_0x6736x5)})};exports[_0x9d47[10]]=function(_0x6736x3,_0x6736x4){ReportChatSession[_0x9d47[10]]()[_0x9d47[8]](function(_0x6736x7){return _0x6736x4[_0x9d47[7]](200)[_0x9d47[6]](_0x6736x7)})[_0x9d47[5]](function(_0x6736x5){return handleError(_0x6736x4,_0x6736x5)})};exports[_0x9d47[11]]=function(_0x6736x3,_0x6736x4){ReportChatSession[_0x9d47[15]](_0x6736x3[_0x9d47[14]][_0x9d47[13]])[_0x9d47[8]](function(_0x6736x8){if(!_0x6736x8){return _0x6736x4[_0x9d47[12]](404)};return _0x6736x4[_0x9d47[6]](_0x6736x8);})[_0x9d47[5]](function(_0x6736x5){return handleError(_0x6736x4,_0x6736x5)})};exports[_0x9d47[16]]=function(_0x6736x3,_0x6736x4){ReportChatSession[_0x9d47[16]](_0x6736x3[_0x9d47[17]])[_0x9d47[8]](function(_0x6736x8){return _0x6736x4[_0x9d47[7]](201)[_0x9d47[6]](_0x6736x8)})[_0x9d47[5]](function(_0x6736x5){return handleError(_0x6736x4,_0x6736x5)})};exports[_0x9d47[18]]=function(_0x6736x3,_0x6736x4){if(_0x6736x3[_0x9d47[17]][_0x9d47[13]]){delete _0x6736x3[_0x9d47[17]][_0x9d47[13]]};ReportChatSession[_0x9d47[21]]({where:{id:_0x6736x3[_0x9d47[14]][_0x9d47[13]]}})[_0x9d47[8]](function(_0x6736x8){if(!_0x6736x8){return _0x6736x4[_0x9d47[12]](404)};var _0x6736x9=_[_0x9d47[19]](_0x6736x8,_0x6736x3[_0x9d47[17]]);_0x6736x9[_0x9d47[20]]()[_0x9d47[8]](function(){return _0x6736x4[_0x9d47[7]](200)[_0x9d47[6]](_0x6736x8)})[_0x9d47[5]](function(_0x6736x5){return handleError(_0x6736x4,_0x6736x5)});})[_0x9d47[5]](function(_0x6736x5){return handleError(_0x6736x4,_0x6736x5)});};exports[_0x9d47[22]]=function(_0x6736x3,_0x6736x4){ReportChatSession[_0x9d47[21]]({where:{id:_0x6736x3[_0x9d47[14]][_0x9d47[13]]}})[_0x9d47[8]](function(_0x6736x8){if(!_0x6736x8){return _0x6736x4[_0x9d47[12]](404)};_0x6736x8[_0x9d47[22]]()[_0x9d47[8]](function(){return _0x6736x4[_0x9d47[12]](204)})[_0x9d47[5]](function(_0x6736x5){return handleError(_0x6736x4,_0x6736x5)});})[_0x9d47[5]](function(_0x6736x5){return handleError(_0x6736x4,_0x6736x5)})};function handleError(_0x6736x4,_0x6736x5){return _0x6736x4[_0x9d47[7]](500)[_0x9d47[6]](_0x6736x5)}
\ No newline at end of file
+var _0x5727=["\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"];_0x5727[0];var _=require(_0x5727[1]);var ReportChatSession=require(_0x5727[3])[_0x5727[2]];exports[_0x5727[4]]=function(_0x6f5dx3,_0x6f5dx4){ReportChatSession[_0x5727[9]]()[_0x5727[8]](function(_0x6f5dx6){return _0x6f5dx4[_0x5727[7]](200)[_0x5727[6]](_0x6f5dx6)})[_0x5727[5]](function(_0x6f5dx5){return handleError(_0x6f5dx4,_0x6f5dx5)})};exports[_0x5727[10]]=function(_0x6f5dx3,_0x6f5dx4){ReportChatSession[_0x5727[10]]()[_0x5727[8]](function(_0x6f5dx7){return _0x6f5dx4[_0x5727[7]](200)[_0x5727[6]](_0x6f5dx7)})[_0x5727[5]](function(_0x6f5dx5){return handleError(_0x6f5dx4,_0x6f5dx5)})};exports[_0x5727[11]]=function(_0x6f5dx3,_0x6f5dx4){ReportChatSession[_0x5727[15]](_0x6f5dx3[_0x5727[14]][_0x5727[13]])[_0x5727[8]](function(_0x6f5dx8){if(!_0x6f5dx8){return _0x6f5dx4[_0x5727[12]](404)};return _0x6f5dx4[_0x5727[6]](_0x6f5dx8);})[_0x5727[5]](function(_0x6f5dx5){return handleError(_0x6f5dx4,_0x6f5dx5)})};exports[_0x5727[16]]=function(_0x6f5dx3,_0x6f5dx4){ReportChatSession[_0x5727[16]](_0x6f5dx3[_0x5727[17]])[_0x5727[8]](function(_0x6f5dx8){return _0x6f5dx4[_0x5727[7]](201)[_0x5727[6]](_0x6f5dx8)})[_0x5727[5]](function(_0x6f5dx5){return handleError(_0x6f5dx4,_0x6f5dx5)})};exports[_0x5727[18]]=function(_0x6f5dx3,_0x6f5dx4){if(_0x6f5dx3[_0x5727[17]][_0x5727[13]]){delete _0x6f5dx3[_0x5727[17]][_0x5727[13]]};ReportChatSession[_0x5727[21]]({where:{id:_0x6f5dx3[_0x5727[14]][_0x5727[13]]}})[_0x5727[8]](function(_0x6f5dx8){if(!_0x6f5dx8){return _0x6f5dx4[_0x5727[12]](404)};var _0x6f5dx9=_[_0x5727[19]](_0x6f5dx8,_0x6f5dx3[_0x5727[17]]);_0x6f5dx9[_0x5727[20]]()[_0x5727[8]](function(){return _0x6f5dx4[_0x5727[7]](200)[_0x5727[6]](_0x6f5dx8)})[_0x5727[5]](function(_0x6f5dx5){return handleError(_0x6f5dx4,_0x6f5dx5)});})[_0x5727[5]](function(_0x6f5dx5){return handleError(_0x6f5dx4,_0x6f5dx5)});};exports[_0x5727[22]]=function(_0x6f5dx3,_0x6f5dx4){ReportChatSession[_0x5727[21]]({where:{id:_0x6f5dx3[_0x5727[14]][_0x5727[13]]}})[_0x5727[8]](function(_0x6f5dx8){if(!_0x6f5dx8){return _0x6f5dx4[_0x5727[12]](404)};_0x6f5dx8[_0x5727[22]]()[_0x5727[8]](function(){return _0x6f5dx4[_0x5727[12]](204)})[_0x5727[5]](function(_0x6f5dx5){return handleError(_0x6f5dx4,_0x6f5dx5)});})[_0x5727[5]](function(_0x6f5dx5){return handleError(_0x6f5dx4,_0x6f5dx5)})};function handleError(_0x6f5dx4,_0x6f5dx5){return _0x6f5dx4[_0x5727[7]](500)[_0x5727[6]](_0x6f5dx5)}
\ No newline at end of file
-var _0xefa4=["\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"];_0xefa4[0];var ReportChatSession=require(_0xefa4[2])[_0xefa4[1]];exports[_0xefa4[3]]=function(_0x4daax2){ReportChatSession[_0xefa4[4]](function(_0x4daax3){onSave(_0x4daax2,_0x4daax3)});ReportChatSession[_0xefa4[5]](function(_0x4daax3){onSave(_0x4daax2,_0x4daax3)});ReportChatSession[_0xefa4[6]](function(_0x4daax3){onRemove(_0x4daax2,_0x4daax3)});};function onSave(_0x4daax2,_0x4daax3,_0x4daax5){_0x4daax2[_0xefa4[8]](_0xefa4[7],_0x4daax3)}function onRemove(_0x4daax2,_0x4daax3,_0x4daax5){_0x4daax2[_0xefa4[8]](_0xefa4[9],_0x4daax3)}
\ No newline at end of file
+var _0x53a0=["\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"];_0x53a0[0];var ReportChatSession=require(_0x53a0[2])[_0x53a0[1]];exports[_0x53a0[3]]=function(_0x89ebx2){ReportChatSession[_0x53a0[4]](function(_0x89ebx3){onSave(_0x89ebx2,_0x89ebx3)});ReportChatSession[_0x53a0[5]](function(_0x89ebx3){onSave(_0x89ebx2,_0x89ebx3)});ReportChatSession[_0x53a0[6]](function(_0x89ebx3){onRemove(_0x89ebx2,_0x89ebx3)});};function onSave(_0x89ebx2,_0x89ebx3,_0x89ebx5){_0x89ebx2[_0x53a0[8]](_0x53a0[7],_0x89ebx3)}function onRemove(_0x89ebx2,_0x89ebx3,_0x89ebx5){_0x89ebx2[_0x53a0[8]](_0x53a0[9],_0x89ebx3)}
\ No newline at end of file
-var _0x6526=["\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"];_0x6526[0];var should=require(_0x6526[1]);var app=require(_0x6526[2]);var request=require(_0x6526[3]);describe(_0x6526[4],function(){it(_0x6526[5],function(_0xe033x4){request(app)[_0x6526[13]](_0x6526[12])[_0x6526[11]](200)[_0x6526[11]](_0x6526[10],/json/)[_0x6526[9]](function(_0xe033x5,_0xe033x6){if(_0xe033x5){return _0xe033x4(_0xe033x5)};_0xe033x6[_0x6526[8]][_0x6526[1]][_0x6526[7]][_0x6526[6]](Array);_0xe033x4();})})});
\ No newline at end of file
+var _0xafa2=["\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"];_0xafa2[0];var should=require(_0xafa2[1]);var app=require(_0xafa2[2]);var request=require(_0xafa2[3]);describe(_0xafa2[4],function(){it(_0xafa2[5],function(_0xf464x4){request(app)[_0xafa2[13]](_0xafa2[12])[_0xafa2[11]](200)[_0xafa2[11]](_0xafa2[10],/json/)[_0xafa2[9]](function(_0xf464x5,_0xf464x6){if(_0xf464x5){return _0xf464x4(_0xf464x5)};_0xf464x6[_0xafa2[8]][_0xafa2[1]][_0xafa2[7]][_0xafa2[6]](Array);_0xf464x4();})})});
\ No newline at end of file
-var _0x8279=["\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"];_0x8279[0];var express=require(_0x8279[1]);var controller=require(_0x8279[2]);var router=express.Router();router[_0x8279[5]](_0x8279[3],controller[_0x8279[4]]);router[_0x8279[5]](_0x8279[6],controller[_0x8279[7]]);router[_0x8279[5]](_0x8279[8],controller[_0x8279[9]]);router[_0x8279[11]](_0x8279[3],controller[_0x8279[10]]);router[_0x8279[13]](_0x8279[8],controller[_0x8279[12]]);router[_0x8279[14]](_0x8279[8],controller[_0x8279[12]]);router[_0x8279[16]](_0x8279[8],controller[_0x8279[15]]);module[_0x8279[17]]=router;
\ No newline at end of file
+var _0xfa1a=["\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"];_0xfa1a[0];var express=require(_0xfa1a[1]);var controller=require(_0xfa1a[2]);var router=express.Router();router[_0xfa1a[5]](_0xfa1a[3],controller[_0xfa1a[4]]);router[_0xfa1a[5]](_0xfa1a[6],controller[_0xfa1a[7]]);router[_0xfa1a[5]](_0xfa1a[8],controller[_0xfa1a[9]]);router[_0xfa1a[11]](_0xfa1a[3],controller[_0xfa1a[10]]);router[_0xfa1a[13]](_0xfa1a[8],controller[_0xfa1a[12]]);router[_0xfa1a[14]](_0xfa1a[8],controller[_0xfa1a[12]]);router[_0xfa1a[16]](_0xfa1a[8],controller[_0xfa1a[15]]);module[_0xfa1a[17]]=router;
\ No newline at end of file
-var _0x3acc=["\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"];_0x3acc[0];var _=require(_0x3acc[1]);var ReportIntegration=require(_0x3acc[3])[_0x3acc[2]];exports[_0x3acc[4]]=function(_0x491ax3,_0x491ax4){ReportIntegration[_0x3acc[9]]()[_0x3acc[8]](function(_0x491ax6){return _0x491ax4[_0x3acc[7]](200)[_0x3acc[6]](_0x491ax6)})[_0x3acc[5]](function(_0x491ax5){return handleError(_0x491ax4,_0x491ax5)})};exports[_0x3acc[10]]=function(_0x491ax3,_0x491ax4){ReportIntegration[_0x3acc[10]]()[_0x3acc[8]](function(_0x491ax7){return _0x491ax4[_0x3acc[7]](200)[_0x3acc[6]](_0x491ax7)})[_0x3acc[5]](function(_0x491ax5){return handleError(_0x491ax4,_0x491ax5)})};exports[_0x3acc[11]]=function(_0x491ax3,_0x491ax4){ReportIntegration[_0x3acc[15]](_0x491ax3[_0x3acc[14]][_0x3acc[13]])[_0x3acc[8]](function(_0x491ax8){if(!_0x491ax8){return _0x491ax4[_0x3acc[12]](404)};return _0x491ax4[_0x3acc[6]](_0x491ax8);})[_0x3acc[5]](function(_0x491ax5){return handleError(_0x491ax4,_0x491ax5)})};exports[_0x3acc[16]]=function(_0x491ax3,_0x491ax4){ReportIntegration[_0x3acc[16]](_0x491ax3[_0x3acc[17]])[_0x3acc[8]](function(_0x491ax8){return _0x491ax4[_0x3acc[7]](201)[_0x3acc[6]](_0x491ax8)})[_0x3acc[5]](function(_0x491ax5){return handleError(_0x491ax4,_0x491ax5)})};exports[_0x3acc[18]]=function(_0x491ax3,_0x491ax4){if(_0x491ax3[_0x3acc[17]][_0x3acc[13]]){delete _0x491ax3[_0x3acc[17]][_0x3acc[13]]};ReportIntegration[_0x3acc[15]](_0x491ax3[_0x3acc[14]][_0x3acc[13]])[_0x3acc[8]](function(_0x491ax8){if(!_0x491ax8){return _0x491ax4[_0x3acc[12]](404)};var _0x491ax9=_[_0x3acc[19]](_0x491ax8,_0x491ax3[_0x3acc[17]]);_0x491ax9[_0x3acc[20]]()[_0x3acc[8]](function(){return _0x491ax4[_0x3acc[7]](200)[_0x3acc[6]](_0x491ax8)})[_0x3acc[5]](function(_0x491ax5){return handleError(_0x491ax4,_0x491ax5)});})[_0x3acc[5]](function(_0x491ax5){return handleError(_0x491ax4,_0x491ax5)});};exports[_0x3acc[21]]=function(_0x491ax3,_0x491ax4){ReportIntegration[_0x3acc[15]](_0x491ax3[_0x3acc[14]][_0x3acc[13]])[_0x3acc[8]](function(_0x491ax8){if(!_0x491ax8){return _0x491ax4[_0x3acc[12]](404)};_0x491ax8[_0x3acc[21]]()[_0x3acc[8]](function(){return _0x491ax4[_0x3acc[12]](204)})[_0x3acc[5]](function(_0x491ax5){return handleError(_0x491ax4,_0x491ax5)});})[_0x3acc[5]](function(_0x491ax5){return handleError(_0x491ax4,_0x491ax5)})};function handleError(_0x491ax4,_0x491ax5){return _0x491ax4[_0x3acc[7]](500)[_0x3acc[6]](_0x491ax5)}
\ No newline at end of file
+var _0x1afa=["\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"];_0x1afa[0];var _=require(_0x1afa[1]);var ReportIntegration=require(_0x1afa[3])[_0x1afa[2]];exports[_0x1afa[4]]=function(_0x67e3x3,_0x67e3x4){ReportIntegration[_0x1afa[9]]()[_0x1afa[8]](function(_0x67e3x6){return _0x67e3x4[_0x1afa[7]](200)[_0x1afa[6]](_0x67e3x6)})[_0x1afa[5]](function(_0x67e3x5){return handleError(_0x67e3x4,_0x67e3x5)})};exports[_0x1afa[10]]=function(_0x67e3x3,_0x67e3x4){ReportIntegration[_0x1afa[10]]()[_0x1afa[8]](function(_0x67e3x7){return _0x67e3x4[_0x1afa[7]](200)[_0x1afa[6]](_0x67e3x7)})[_0x1afa[5]](function(_0x67e3x5){return handleError(_0x67e3x4,_0x67e3x5)})};exports[_0x1afa[11]]=function(_0x67e3x3,_0x67e3x4){ReportIntegration[_0x1afa[15]](_0x67e3x3[_0x1afa[14]][_0x1afa[13]])[_0x1afa[8]](function(_0x67e3x8){if(!_0x67e3x8){return _0x67e3x4[_0x1afa[12]](404)};return _0x67e3x4[_0x1afa[6]](_0x67e3x8);})[_0x1afa[5]](function(_0x67e3x5){return handleError(_0x67e3x4,_0x67e3x5)})};exports[_0x1afa[16]]=function(_0x67e3x3,_0x67e3x4){ReportIntegration[_0x1afa[16]](_0x67e3x3[_0x1afa[17]])[_0x1afa[8]](function(_0x67e3x8){return _0x67e3x4[_0x1afa[7]](201)[_0x1afa[6]](_0x67e3x8)})[_0x1afa[5]](function(_0x67e3x5){return handleError(_0x67e3x4,_0x67e3x5)})};exports[_0x1afa[18]]=function(_0x67e3x3,_0x67e3x4){if(_0x67e3x3[_0x1afa[17]][_0x1afa[13]]){delete _0x67e3x3[_0x1afa[17]][_0x1afa[13]]};ReportIntegration[_0x1afa[15]](_0x67e3x3[_0x1afa[14]][_0x1afa[13]])[_0x1afa[8]](function(_0x67e3x8){if(!_0x67e3x8){return _0x67e3x4[_0x1afa[12]](404)};var _0x67e3x9=_[_0x1afa[19]](_0x67e3x8,_0x67e3x3[_0x1afa[17]]);_0x67e3x9[_0x1afa[20]]()[_0x1afa[8]](function(){return _0x67e3x4[_0x1afa[7]](200)[_0x1afa[6]](_0x67e3x8)})[_0x1afa[5]](function(_0x67e3x5){return handleError(_0x67e3x4,_0x67e3x5)});})[_0x1afa[5]](function(_0x67e3x5){return handleError(_0x67e3x4,_0x67e3x5)});};exports[_0x1afa[21]]=function(_0x67e3x3,_0x67e3x4){ReportIntegration[_0x1afa[15]](_0x67e3x3[_0x1afa[14]][_0x1afa[13]])[_0x1afa[8]](function(_0x67e3x8){if(!_0x67e3x8){return _0x67e3x4[_0x1afa[12]](404)};_0x67e3x8[_0x1afa[21]]()[_0x1afa[8]](function(){return _0x67e3x4[_0x1afa[12]](204)})[_0x1afa[5]](function(_0x67e3x5){return handleError(_0x67e3x4,_0x67e3x5)});})[_0x1afa[5]](function(_0x67e3x5){return handleError(_0x67e3x4,_0x67e3x5)})};function handleError(_0x67e3x4,_0x67e3x5){return _0x67e3x4[_0x1afa[7]](500)[_0x1afa[6]](_0x67e3x5)}
\ No newline at end of file
-var _0x8b72=["\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"];_0x8b72[0];var util=require(_0x8b72[1]);var ReportIntegration=require(_0x8b72[3])[_0x8b72[2]];exports[_0x8b72[4]]=function(_0xbfd4x3){ReportIntegration[_0x8b72[5]](function(_0xbfd4x4){onSave(_0xbfd4x3,_0xbfd4x4)})};function onSave(_0xbfd4x3,_0xbfd4x4,_0xbfd4x6){if(_0xbfd4x3[_0x8b72[6]]===_0xbfd4x4[_0x8b72[7]]){_0xbfd4x3[_0x8b72[11]](util[_0x8b72[10]](_0x8b72[8],_0xbfd4x4[_0x8b72[9]]),_0xbfd4x4)}}
\ No newline at end of file
+var _0x3480=["\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"];_0x3480[0];var util=require(_0x3480[1]);var ReportIntegration=require(_0x3480[3])[_0x3480[2]];exports[_0x3480[4]]=function(_0xd9c1x3){ReportIntegration[_0x3480[5]](function(_0xd9c1x4){onSave(_0xd9c1x3,_0xd9c1x4)})};function onSave(_0xd9c1x3,_0xd9c1x4,_0xd9c1x6){if(_0xd9c1x3[_0x3480[6]]===_0xd9c1x4[_0x3480[7]]){_0xd9c1x3[_0x3480[11]](util[_0x3480[10]](_0x3480[8],_0xd9c1x4[_0x3480[9]]),_0xd9c1x4)}}
\ No newline at end of file
-var _0xb95c=["\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"];_0xb95c[0];var express=require(_0xb95c[1]);var controller=require(_0xb95c[2]);var router=express.Router();router[_0xb95c[5]](_0xb95c[3],controller[_0xb95c[4]]);router[_0xb95c[5]](_0xb95c[6],controller[_0xb95c[7]]);router[_0xb95c[9]](_0xb95c[3],controller[_0xb95c[8]]);router[_0xb95c[11]](_0xb95c[6],controller[_0xb95c[10]]);router[_0xb95c[12]](_0xb95c[6],controller[_0xb95c[10]]);router[_0xb95c[14]](_0xb95c[6],controller[_0xb95c[13]]);module[_0xb95c[15]]=router;
\ No newline at end of file
+var _0xbd91=["\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"];_0xbd91[0];var express=require(_0xbd91[1]);var controller=require(_0xbd91[2]);var router=express.Router();router[_0xbd91[5]](_0xbd91[3],controller[_0xbd91[4]]);router[_0xbd91[5]](_0xbd91[6],controller[_0xbd91[7]]);router[_0xbd91[9]](_0xbd91[3],controller[_0xbd91[8]]);router[_0xbd91[11]](_0xbd91[6],controller[_0xbd91[10]]);router[_0xbd91[12]](_0xbd91[6],controller[_0xbd91[10]]);router[_0xbd91[14]](_0xbd91[6],controller[_0xbd91[13]]);module[_0xbd91[15]]=router;
\ No newline at end of file
-var _0xa013=["\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"];_0xa013[0];var _=require(_0xa013[1]);var ReportMail=require(_0xa013[3])[_0xa013[2]];exports[_0xa013[4]]=function(_0x3968x3,_0x3968x4){ReportMail[_0xa013[9]]()[_0xa013[8]](function(_0x3968x6){return _0x3968x4[_0xa013[7]](200)[_0xa013[6]](_0x3968x6)})[_0xa013[5]](function(_0x3968x5){return handleError(_0x3968x4,_0x3968x5)})};exports[_0xa013[10]]=function(_0x3968x3,_0x3968x4){ReportMail[_0xa013[14]](_0x3968x3[_0xa013[13]][_0xa013[12]])[_0xa013[8]](function(_0x3968x7){if(!_0x3968x7){return _0x3968x4[_0xa013[11]](404)};return _0x3968x4[_0xa013[6]](_0x3968x7);})[_0xa013[5]](function(_0x3968x5){return handleError(_0x3968x4,_0x3968x5)})};exports[_0xa013[15]]=function(_0x3968x3,_0x3968x4){ReportMail[_0xa013[15]](_0x3968x3[_0xa013[16]])[_0xa013[8]](function(_0x3968x7){return _0x3968x4[_0xa013[7]](201)[_0xa013[6]](_0x3968x7)})[_0xa013[5]](function(_0x3968x5){return handleError(_0x3968x4,_0x3968x5)})};exports[_0xa013[17]]=function(_0x3968x3,_0x3968x4){if(_0x3968x3[_0xa013[16]][_0xa013[12]]){delete _0x3968x3[_0xa013[16]][_0xa013[12]]};ReportMail[_0xa013[14]](_0x3968x3[_0xa013[13]][_0xa013[12]])[_0xa013[8]](function(_0x3968x7){if(!_0x3968x7){return _0x3968x4[_0xa013[11]](404)};var _0x3968x8=_[_0xa013[18]](_0x3968x7,_0x3968x3[_0xa013[16]]);_0x3968x8[_0xa013[19]]()[_0xa013[8]](function(){return _0x3968x4[_0xa013[7]](200)[_0xa013[6]](_0x3968x7)})[_0xa013[5]](function(_0x3968x5){return handleError(_0x3968x4,_0x3968x5)});})[_0xa013[5]](function(_0x3968x5){return handleError(_0x3968x4,_0x3968x5)});};exports[_0xa013[20]]=function(_0x3968x3,_0x3968x4){ReportMail[_0xa013[14]](_0x3968x3[_0xa013[13]][_0xa013[12]])[_0xa013[8]](function(_0x3968x7){if(!_0x3968x7){return _0x3968x4[_0xa013[11]](404)};_0x3968x7[_0xa013[20]]()[_0xa013[8]](function(){return _0x3968x4[_0xa013[11]](204)})[_0xa013[5]](function(_0x3968x5){return handleError(_0x3968x4,_0x3968x5)});})[_0xa013[5]](function(_0x3968x5){return handleError(_0x3968x4,_0x3968x5)})};function handleError(_0x3968x4,_0x3968x5){return _0x3968x4[_0xa013[7]](500)[_0xa013[6]](_0x3968x5)}
\ No newline at end of file
+var _0xf9d7=["\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"];_0xf9d7[0];var _=require(_0xf9d7[1]);var ReportMail=require(_0xf9d7[3])[_0xf9d7[2]];exports[_0xf9d7[4]]=function(_0xce11x3,_0xce11x4){ReportMail[_0xf9d7[9]]()[_0xf9d7[8]](function(_0xce11x6){return _0xce11x4[_0xf9d7[7]](200)[_0xf9d7[6]](_0xce11x6)})[_0xf9d7[5]](function(_0xce11x5){return handleError(_0xce11x4,_0xce11x5)})};exports[_0xf9d7[10]]=function(_0xce11x3,_0xce11x4){ReportMail[_0xf9d7[14]](_0xce11x3[_0xf9d7[13]][_0xf9d7[12]])[_0xf9d7[8]](function(_0xce11x7){if(!_0xce11x7){return _0xce11x4[_0xf9d7[11]](404)};return _0xce11x4[_0xf9d7[6]](_0xce11x7);})[_0xf9d7[5]](function(_0xce11x5){return handleError(_0xce11x4,_0xce11x5)})};exports[_0xf9d7[15]]=function(_0xce11x3,_0xce11x4){ReportMail[_0xf9d7[15]](_0xce11x3[_0xf9d7[16]])[_0xf9d7[8]](function(_0xce11x7){return _0xce11x4[_0xf9d7[7]](201)[_0xf9d7[6]](_0xce11x7)})[_0xf9d7[5]](function(_0xce11x5){return handleError(_0xce11x4,_0xce11x5)})};exports[_0xf9d7[17]]=function(_0xce11x3,_0xce11x4){if(_0xce11x3[_0xf9d7[16]][_0xf9d7[12]]){delete _0xce11x3[_0xf9d7[16]][_0xf9d7[12]]};ReportMail[_0xf9d7[14]](_0xce11x3[_0xf9d7[13]][_0xf9d7[12]])[_0xf9d7[8]](function(_0xce11x7){if(!_0xce11x7){return _0xce11x4[_0xf9d7[11]](404)};var _0xce11x8=_[_0xf9d7[18]](_0xce11x7,_0xce11x3[_0xf9d7[16]]);_0xce11x8[_0xf9d7[19]]()[_0xf9d7[8]](function(){return _0xce11x4[_0xf9d7[7]](200)[_0xf9d7[6]](_0xce11x7)})[_0xf9d7[5]](function(_0xce11x5){return handleError(_0xce11x4,_0xce11x5)});})[_0xf9d7[5]](function(_0xce11x5){return handleError(_0xce11x4,_0xce11x5)});};exports[_0xf9d7[20]]=function(_0xce11x3,_0xce11x4){ReportMail[_0xf9d7[14]](_0xce11x3[_0xf9d7[13]][_0xf9d7[12]])[_0xf9d7[8]](function(_0xce11x7){if(!_0xce11x7){return _0xce11x4[_0xf9d7[11]](404)};_0xce11x7[_0xf9d7[20]]()[_0xf9d7[8]](function(){return _0xce11x4[_0xf9d7[11]](204)})[_0xf9d7[5]](function(_0xce11x5){return handleError(_0xce11x4,_0xce11x5)});})[_0xf9d7[5]](function(_0xce11x5){return handleError(_0xce11x4,_0xce11x5)})};function handleError(_0xce11x4,_0xce11x5){return _0xce11x4[_0xf9d7[7]](500)[_0xf9d7[6]](_0xce11x5)}
\ No newline at end of file
-var _0xe3d5=["\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"];_0xe3d5[0];var ReportMail=require(_0xe3d5[2])[_0xe3d5[1]];exports[_0xe3d5[3]]=function(_0xb2fcx2){ReportMail[_0xe3d5[4]](function(_0xb2fcx3){onSave(_0xb2fcx2,_0xb2fcx3)});ReportMail[_0xe3d5[5]](function(_0xb2fcx3){onUpdate(_0xb2fcx2,_0xb2fcx3)});ReportMail[_0xe3d5[6]](function(_0xb2fcx3){onRemove(_0xb2fcx2,_0xb2fcx3)});};function onSave(_0xb2fcx2,_0xb2fcx3,_0xb2fcx5){if(_0xb2fcx2[_0xe3d5[7]]===_0xb2fcx3[_0xe3d5[8]]||_0xb2fcx2[_0xe3d5[9]]===_0xe3d5[10]){_0xb2fcx2[_0xe3d5[12]](_0xe3d5[11],_0xb2fcx3)}}function onUpdate(_0xb2fcx2,_0xb2fcx3,_0xb2fcx5){if(_0xb2fcx2[_0xe3d5[7]]===_0xb2fcx3[_0xe3d5[8]]||_0xb2fcx2[_0xe3d5[9]]===_0xe3d5[10]){_0xb2fcx2[_0xe3d5[12]](_0xe3d5[13],_0xb2fcx3)}}function onRemove(_0xb2fcx2,_0xb2fcx3,_0xb2fcx5){_0xb2fcx2[_0xe3d5[12]](_0xe3d5[14],_0xb2fcx3)}
\ No newline at end of file
+var _0x9337=["\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"];_0x9337[0];var ReportMail=require(_0x9337[2])[_0x9337[1]];exports[_0x9337[3]]=function(_0xd58dx2){ReportMail[_0x9337[4]](function(_0xd58dx3){onSave(_0xd58dx2,_0xd58dx3)});ReportMail[_0x9337[5]](function(_0xd58dx3){onUpdate(_0xd58dx2,_0xd58dx3)});ReportMail[_0x9337[6]](function(_0xd58dx3){onRemove(_0xd58dx2,_0xd58dx3)});};function onSave(_0xd58dx2,_0xd58dx3,_0xd58dx5){if(_0xd58dx2[_0x9337[7]]===_0xd58dx3[_0x9337[8]]||_0xd58dx2[_0x9337[9]]===_0x9337[10]){_0xd58dx2[_0x9337[12]](_0x9337[11],_0xd58dx3)}}function onUpdate(_0xd58dx2,_0xd58dx3,_0xd58dx5){if(_0xd58dx2[_0x9337[7]]===_0xd58dx3[_0x9337[8]]||_0xd58dx2[_0x9337[9]]===_0x9337[10]){_0xd58dx2[_0x9337[12]](_0x9337[13],_0xd58dx3)}}function onRemove(_0xd58dx2,_0xd58dx3,_0xd58dx5){_0xd58dx2[_0x9337[12]](_0x9337[14],_0xd58dx3)}
\ No newline at end of file
-var _0x6dd9=["\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"];_0x6dd9[0];var should=require(_0x6dd9[1]);var app=require(_0x6dd9[2]);var request=require(_0x6dd9[3]);describe(_0x6dd9[4],function(){it(_0x6dd9[5],function(_0x35a5x4){request(app)[_0x6dd9[13]](_0x6dd9[12])[_0x6dd9[11]](200)[_0x6dd9[11]](_0x6dd9[10],/json/)[_0x6dd9[9]](function(_0x35a5x5,_0x35a5x6){if(_0x35a5x5){return _0x35a5x4(_0x35a5x5)};_0x35a5x6[_0x6dd9[8]][_0x6dd9[1]][_0x6dd9[7]][_0x6dd9[6]](Array);_0x35a5x4();})})});
\ No newline at end of file
+var _0xab46=["\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"];_0xab46[0];var should=require(_0xab46[1]);var app=require(_0xab46[2]);var request=require(_0xab46[3]);describe(_0xab46[4],function(){it(_0xab46[5],function(_0x6720x4){request(app)[_0xab46[13]](_0xab46[12])[_0xab46[11]](200)[_0xab46[11]](_0xab46[10],/json/)[_0xab46[9]](function(_0x6720x5,_0x6720x6){if(_0x6720x5){return _0x6720x4(_0x6720x5)};_0x6720x6[_0xab46[8]][_0xab46[1]][_0xab46[7]][_0xab46[6]](Array);_0x6720x4();})})});
\ No newline at end of file
-var _0xb1e1=["\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"];_0xb1e1[0];var express=require(_0xb1e1[1]);var controller=require(_0xb1e1[2]);var router=express.Router();router[_0xb1e1[5]](_0xb1e1[3],controller[_0xb1e1[4]]);router[_0xb1e1[5]](_0xb1e1[6],controller[_0xb1e1[7]]);router[_0xb1e1[5]](_0xb1e1[8],controller[_0xb1e1[9]]);router[_0xb1e1[11]](_0xb1e1[3],controller[_0xb1e1[10]]);router[_0xb1e1[13]](_0xb1e1[8],controller[_0xb1e1[12]]);router[_0xb1e1[14]](_0xb1e1[8],controller[_0xb1e1[12]]);router[_0xb1e1[16]](_0xb1e1[8],controller[_0xb1e1[15]]);module[_0xb1e1[17]]=router;
\ No newline at end of file
+var _0x956c=["\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"];_0x956c[0];var express=require(_0x956c[1]);var controller=require(_0x956c[2]);var router=express.Router();router[_0x956c[5]](_0x956c[3],controller[_0x956c[4]]);router[_0x956c[5]](_0x956c[6],controller[_0x956c[7]]);router[_0x956c[5]](_0x956c[8],controller[_0x956c[9]]);router[_0x956c[11]](_0x956c[3],controller[_0x956c[10]]);router[_0x956c[13]](_0x956c[8],controller[_0x956c[12]]);router[_0x956c[14]](_0x956c[8],controller[_0x956c[12]]);router[_0x956c[16]](_0x956c[8],controller[_0x956c[15]]);module[_0x956c[17]]=router;
\ No newline at end of file
-var _0xf99f=["\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"];_0xf99f[0];var _=require(_0xf99f[1]);var ReportMailSession=require(_0xf99f[3])[_0xf99f[2]];exports[_0xf99f[4]]=function(_0x82b2x3,_0x82b2x4){ReportMailSession[_0xf99f[9]]()[_0xf99f[8]](function(_0x82b2x6){return _0x82b2x4[_0xf99f[7]](200)[_0xf99f[6]](_0x82b2x6)})[_0xf99f[5]](function(_0x82b2x5){return handleError(_0x82b2x4,_0x82b2x5)})};exports[_0xf99f[10]]=function(_0x82b2x3,_0x82b2x4){ReportMailSession[_0xf99f[10]]()[_0xf99f[8]](function(_0x82b2x7){return _0x82b2x4[_0xf99f[7]](200)[_0xf99f[6]](_0x82b2x7)})[_0xf99f[5]](function(_0x82b2x5){return handleError(_0x82b2x4,_0x82b2x5)})};exports[_0xf99f[11]]=function(_0x82b2x3,_0x82b2x4){ReportMailSession[_0xf99f[15]](_0x82b2x3[_0xf99f[14]][_0xf99f[13]])[_0xf99f[8]](function(_0x82b2x8){if(!_0x82b2x8){return _0x82b2x4[_0xf99f[12]](404)};return _0x82b2x4[_0xf99f[6]](_0x82b2x8);})[_0xf99f[5]](function(_0x82b2x5){return handleError(_0x82b2x4,_0x82b2x5)})};exports[_0xf99f[16]]=function(_0x82b2x3,_0x82b2x4){ReportMailSession[_0xf99f[16]](_0x82b2x3[_0xf99f[17]])[_0xf99f[8]](function(_0x82b2x8){return _0x82b2x4[_0xf99f[7]](201)[_0xf99f[6]](_0x82b2x8)})[_0xf99f[5]](function(_0x82b2x5){return handleError(_0x82b2x4,_0x82b2x5)})};exports[_0xf99f[18]]=function(_0x82b2x3,_0x82b2x4){if(_0x82b2x3[_0xf99f[17]][_0xf99f[13]]){delete _0x82b2x3[_0xf99f[17]][_0xf99f[13]]};ReportMailSession[_0xf99f[21]]({where:{id:_0x82b2x3[_0xf99f[14]][_0xf99f[13]]}})[_0xf99f[8]](function(_0x82b2x8){if(!_0x82b2x8){return _0x82b2x4[_0xf99f[12]](404)};var _0x82b2x9=_[_0xf99f[19]](_0x82b2x8,_0x82b2x3[_0xf99f[17]]);_0x82b2x9[_0xf99f[20]]()[_0xf99f[8]](function(){return _0x82b2x4[_0xf99f[7]](200)[_0xf99f[6]](_0x82b2x8)})[_0xf99f[5]](function(_0x82b2x5){return handleError(_0x82b2x4,_0x82b2x5)});})[_0xf99f[5]](function(_0x82b2x5){return handleError(_0x82b2x4,_0x82b2x5)});};exports[_0xf99f[22]]=function(_0x82b2x3,_0x82b2x4){ReportMailSession[_0xf99f[21]]({where:{id:_0x82b2x3[_0xf99f[14]][_0xf99f[13]]}})[_0xf99f[8]](function(_0x82b2x8){if(!_0x82b2x8){return _0x82b2x4[_0xf99f[12]](404)};_0x82b2x8[_0xf99f[22]]()[_0xf99f[8]](function(){return _0x82b2x4[_0xf99f[12]](204)})[_0xf99f[5]](function(_0x82b2x5){return handleError(_0x82b2x4,_0x82b2x5)});})[_0xf99f[5]](function(_0x82b2x5){return handleError(_0x82b2x4,_0x82b2x5)})};function handleError(_0x82b2x4,_0x82b2x5){return _0x82b2x4[_0xf99f[7]](500)[_0xf99f[6]](_0x82b2x5)}
\ No newline at end of file
+var _0x1512=["\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"];_0x1512[0];var _=require(_0x1512[1]);var ReportMailSession=require(_0x1512[3])[_0x1512[2]];exports[_0x1512[4]]=function(_0xaa03x3,_0xaa03x4){ReportMailSession[_0x1512[9]]()[_0x1512[8]](function(_0xaa03x6){return _0xaa03x4[_0x1512[7]](200)[_0x1512[6]](_0xaa03x6)})[_0x1512[5]](function(_0xaa03x5){return handleError(_0xaa03x4,_0xaa03x5)})};exports[_0x1512[10]]=function(_0xaa03x3,_0xaa03x4){ReportMailSession[_0x1512[10]]()[_0x1512[8]](function(_0xaa03x7){return _0xaa03x4[_0x1512[7]](200)[_0x1512[6]](_0xaa03x7)})[_0x1512[5]](function(_0xaa03x5){return handleError(_0xaa03x4,_0xaa03x5)})};exports[_0x1512[11]]=function(_0xaa03x3,_0xaa03x4){ReportMailSession[_0x1512[15]](_0xaa03x3[_0x1512[14]][_0x1512[13]])[_0x1512[8]](function(_0xaa03x8){if(!_0xaa03x8){return _0xaa03x4[_0x1512[12]](404)};return _0xaa03x4[_0x1512[6]](_0xaa03x8);})[_0x1512[5]](function(_0xaa03x5){return handleError(_0xaa03x4,_0xaa03x5)})};exports[_0x1512[16]]=function(_0xaa03x3,_0xaa03x4){ReportMailSession[_0x1512[16]](_0xaa03x3[_0x1512[17]])[_0x1512[8]](function(_0xaa03x8){return _0xaa03x4[_0x1512[7]](201)[_0x1512[6]](_0xaa03x8)})[_0x1512[5]](function(_0xaa03x5){return handleError(_0xaa03x4,_0xaa03x5)})};exports[_0x1512[18]]=function(_0xaa03x3,_0xaa03x4){if(_0xaa03x3[_0x1512[17]][_0x1512[13]]){delete _0xaa03x3[_0x1512[17]][_0x1512[13]]};ReportMailSession[_0x1512[21]]({where:{id:_0xaa03x3[_0x1512[14]][_0x1512[13]]}})[_0x1512[8]](function(_0xaa03x8){if(!_0xaa03x8){return _0xaa03x4[_0x1512[12]](404)};var _0xaa03x9=_[_0x1512[19]](_0xaa03x8,_0xaa03x3[_0x1512[17]]);_0xaa03x9[_0x1512[20]]()[_0x1512[8]](function(){return _0xaa03x4[_0x1512[7]](200)[_0x1512[6]](_0xaa03x8)})[_0x1512[5]](function(_0xaa03x5){return handleError(_0xaa03x4,_0xaa03x5)});})[_0x1512[5]](function(_0xaa03x5){return handleError(_0xaa03x4,_0xaa03x5)});};exports[_0x1512[22]]=function(_0xaa03x3,_0xaa03x4){ReportMailSession[_0x1512[21]]({where:{id:_0xaa03x3[_0x1512[14]][_0x1512[13]]}})[_0x1512[8]](function(_0xaa03x8){if(!_0xaa03x8){return _0xaa03x4[_0x1512[12]](404)};_0xaa03x8[_0x1512[22]]()[_0x1512[8]](function(){return _0xaa03x4[_0x1512[12]](204)})[_0x1512[5]](function(_0xaa03x5){return handleError(_0xaa03x4,_0xaa03x5)});})[_0x1512[5]](function(_0xaa03x5){return handleError(_0xaa03x4,_0xaa03x5)})};function handleError(_0xaa03x4,_0xaa03x5){return _0xaa03x4[_0x1512[7]](500)[_0x1512[6]](_0xaa03x5)}
\ No newline at end of file
-var _0x99c8=["\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"];_0x99c8[0];var ReportMailSession=require(_0x99c8[2])[_0x99c8[1]];exports[_0x99c8[3]]=function(_0x8a96x2){ReportMailSession[_0x99c8[4]](function(_0x8a96x3){onSave(_0x8a96x2,_0x8a96x3)});ReportMailSession[_0x99c8[5]](function(_0x8a96x3){onSave(_0x8a96x2,_0x8a96x3)});ReportMailSession[_0x99c8[6]](function(_0x8a96x3){onRemove(_0x8a96x2,_0x8a96x3)});};function onSave(_0x8a96x2,_0x8a96x3,_0x8a96x5){_0x8a96x2[_0x99c8[8]](_0x99c8[7],_0x8a96x3)}function onRemove(_0x8a96x2,_0x8a96x3,_0x8a96x5){_0x8a96x2[_0x99c8[8]](_0x99c8[9],_0x8a96x3)}
\ No newline at end of file
+var _0x3f18=["\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"];_0x3f18[0];var ReportMailSession=require(_0x3f18[2])[_0x3f18[1]];exports[_0x3f18[3]]=function(_0x7b94x2){ReportMailSession[_0x3f18[4]](function(_0x7b94x3){onSave(_0x7b94x2,_0x7b94x3)});ReportMailSession[_0x3f18[5]](function(_0x7b94x3){onSave(_0x7b94x2,_0x7b94x3)});ReportMailSession[_0x3f18[6]](function(_0x7b94x3){onRemove(_0x7b94x2,_0x7b94x3)});};function onSave(_0x7b94x2,_0x7b94x3,_0x7b94x5){_0x7b94x2[_0x3f18[8]](_0x3f18[7],_0x7b94x3)}function onRemove(_0x7b94x2,_0x7b94x3,_0x7b94x5){_0x7b94x2[_0x3f18[8]](_0x3f18[9],_0x7b94x3)}
\ No newline at end of file
-var _0xc76e=["\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"];_0xc76e[0];var should=require(_0xc76e[1]);var app=require(_0xc76e[2]);var request=require(_0xc76e[3]);describe(_0xc76e[4],function(){it(_0xc76e[5],function(_0xe7e8x4){request(app)[_0xc76e[13]](_0xc76e[12])[_0xc76e[11]](200)[_0xc76e[11]](_0xc76e[10],/json/)[_0xc76e[9]](function(_0xe7e8x5,_0xe7e8x6){if(_0xe7e8x5){return _0xe7e8x4(_0xe7e8x5)};_0xe7e8x6[_0xc76e[8]][_0xc76e[1]][_0xc76e[7]][_0xc76e[6]](Array);_0xe7e8x4();})})});
\ No newline at end of file
+var _0x475a=["\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"];_0x475a[0];var should=require(_0x475a[1]);var app=require(_0x475a[2]);var request=require(_0x475a[3]);describe(_0x475a[4],function(){it(_0x475a[5],function(_0x182bx4){request(app)[_0x475a[13]](_0x475a[12])[_0x475a[11]](200)[_0x475a[11]](_0x475a[10],/json/)[_0x475a[9]](function(_0x182bx5,_0x182bx6){if(_0x182bx5){return _0x182bx4(_0x182bx5)};_0x182bx6[_0x475a[8]][_0x475a[1]][_0x475a[7]][_0x475a[6]](Array);_0x182bx4();})})});
\ No newline at end of file
-var _0xa992=["\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"];_0xa992[0];var express=require(_0xa992[1]);var controller=require(_0xa992[2]);var router=express.Router();router[_0xa992[5]](_0xa992[3],controller[_0xa992[4]]);router[_0xa992[5]](_0xa992[6],controller[_0xa992[7]]);router[_0xa992[5]](_0xa992[8],controller[_0xa992[9]]);router[_0xa992[11]](_0xa992[3],controller[_0xa992[10]]);router[_0xa992[13]](_0xa992[8],controller[_0xa992[12]]);router[_0xa992[14]](_0xa992[8],controller[_0xa992[12]]);router[_0xa992[16]](_0xa992[8],controller[_0xa992[15]]);module[_0xa992[17]]=router;
\ No newline at end of file
+var _0x1d1b=["\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"];_0x1d1b[0];var express=require(_0x1d1b[1]);var controller=require(_0x1d1b[2]);var router=express.Router();router[_0x1d1b[5]](_0x1d1b[3],controller[_0x1d1b[4]]);router[_0x1d1b[5]](_0x1d1b[6],controller[_0x1d1b[7]]);router[_0x1d1b[5]](_0x1d1b[8],controller[_0x1d1b[9]]);router[_0x1d1b[11]](_0x1d1b[3],controller[_0x1d1b[10]]);router[_0x1d1b[13]](_0x1d1b[8],controller[_0x1d1b[12]]);router[_0x1d1b[14]](_0x1d1b[8],controller[_0x1d1b[12]]);router[_0x1d1b[16]](_0x1d1b[8],controller[_0x1d1b[15]]);module[_0x1d1b[17]]=router;
\ No newline at end of file
-var _0xe9ed=["\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"];_0xe9ed[0];var _=require(_0xe9ed[1]);var ReportQueue=require(_0xe9ed[3])[_0xe9ed[2]];exports[_0xe9ed[4]]=function(_0xc9b6x3,_0xc9b6x4){ReportQueue[_0xe9ed[9]]()[_0xe9ed[8]](function(_0xc9b6x6){return _0xc9b6x4[_0xe9ed[7]](200)[_0xe9ed[6]](_0xc9b6x6)})[_0xe9ed[5]](function(_0xc9b6x5){return handleError(_0xc9b6x4,_0xc9b6x5)})};exports[_0xe9ed[10]]=function(_0xc9b6x3,_0xc9b6x4){ReportQueue[_0xe9ed[10]]()[_0xe9ed[8]](function(_0xc9b6x7){return _0xc9b6x4[_0xe9ed[7]](200)[_0xe9ed[6]](_0xc9b6x7)})[_0xe9ed[5]](function(_0xc9b6x5){return handleError(_0xc9b6x4,_0xc9b6x5)})};exports[_0xe9ed[11]]=function(_0xc9b6x3,_0xc9b6x4){ReportQueue[_0xe9ed[15]](_0xc9b6x3[_0xe9ed[14]][_0xe9ed[13]])[_0xe9ed[8]](function(_0xc9b6x8){if(!_0xc9b6x8){return _0xc9b6x4[_0xe9ed[12]](404)};return _0xc9b6x4[_0xe9ed[6]](_0xc9b6x8);})[_0xe9ed[5]](function(_0xc9b6x5){return handleError(_0xc9b6x4,_0xc9b6x5)})};exports[_0xe9ed[16]]=function(_0xc9b6x3,_0xc9b6x4){ReportQueue[_0xe9ed[16]](_0xc9b6x3[_0xe9ed[17]])[_0xe9ed[8]](function(_0xc9b6x8){return _0xc9b6x4[_0xe9ed[7]](201)[_0xe9ed[6]](_0xc9b6x8)})[_0xe9ed[5]](function(_0xc9b6x5){return handleError(_0xc9b6x4,_0xc9b6x5)})};exports[_0xe9ed[18]]=function(_0xc9b6x3,_0xc9b6x4){if(_0xc9b6x3[_0xe9ed[17]][_0xe9ed[13]]){delete _0xc9b6x3[_0xe9ed[17]][_0xe9ed[13]]};ReportQueue[_0xe9ed[15]](_0xc9b6x3[_0xe9ed[14]][_0xe9ed[13]])[_0xe9ed[8]](function(_0xc9b6x8){if(!_0xc9b6x8){return _0xc9b6x4[_0xe9ed[12]](404)};var _0xc9b6x9=_[_0xe9ed[19]](_0xc9b6x8,_0xc9b6x3[_0xe9ed[17]]);_0xc9b6x9[_0xe9ed[20]]()[_0xe9ed[8]](function(){return _0xc9b6x4[_0xe9ed[7]](200)[_0xe9ed[6]](_0xc9b6x8)})[_0xe9ed[5]](function(_0xc9b6x5){return handleError(_0xc9b6x4,_0xc9b6x5)});})[_0xe9ed[5]](function(_0xc9b6x5){return handleError(_0xc9b6x4,_0xc9b6x5)});};exports[_0xe9ed[21]]=function(_0xc9b6x3,_0xc9b6x4){ReportQueue[_0xe9ed[15]](_0xc9b6x3[_0xe9ed[14]][_0xe9ed[13]])[_0xe9ed[8]](function(_0xc9b6x8){if(!_0xc9b6x8){return _0xc9b6x4[_0xe9ed[12]](404)};_0xc9b6x8[_0xe9ed[21]]()[_0xe9ed[8]](function(){return _0xc9b6x4[_0xe9ed[12]](204)})[_0xe9ed[5]](function(_0xc9b6x5){return handleError(_0xc9b6x4,_0xc9b6x5)});})[_0xe9ed[5]](function(_0xc9b6x5){return handleError(_0xc9b6x4,_0xc9b6x5)})};function handleError(_0xc9b6x4,_0xc9b6x5){return _0xc9b6x4[_0xe9ed[7]](500)[_0xe9ed[6]](_0xc9b6x5)}
\ No newline at end of file
+var _0x3c45=["\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"];_0x3c45[0];var _=require(_0x3c45[1]);var ReportQueue=require(_0x3c45[3])[_0x3c45[2]];exports[_0x3c45[4]]=function(_0x3b23x3,_0x3b23x4){ReportQueue[_0x3c45[9]]()[_0x3c45[8]](function(_0x3b23x6){return _0x3b23x4[_0x3c45[7]](200)[_0x3c45[6]](_0x3b23x6)})[_0x3c45[5]](function(_0x3b23x5){return handleError(_0x3b23x4,_0x3b23x5)})};exports[_0x3c45[10]]=function(_0x3b23x3,_0x3b23x4){ReportQueue[_0x3c45[10]]()[_0x3c45[8]](function(_0x3b23x7){return _0x3b23x4[_0x3c45[7]](200)[_0x3c45[6]](_0x3b23x7)})[_0x3c45[5]](function(_0x3b23x5){return handleError(_0x3b23x4,_0x3b23x5)})};exports[_0x3c45[11]]=function(_0x3b23x3,_0x3b23x4){ReportQueue[_0x3c45[15]](_0x3b23x3[_0x3c45[14]][_0x3c45[13]])[_0x3c45[8]](function(_0x3b23x8){if(!_0x3b23x8){return _0x3b23x4[_0x3c45[12]](404)};return _0x3b23x4[_0x3c45[6]](_0x3b23x8);})[_0x3c45[5]](function(_0x3b23x5){return handleError(_0x3b23x4,_0x3b23x5)})};exports[_0x3c45[16]]=function(_0x3b23x3,_0x3b23x4){ReportQueue[_0x3c45[16]](_0x3b23x3[_0x3c45[17]])[_0x3c45[8]](function(_0x3b23x8){return _0x3b23x4[_0x3c45[7]](201)[_0x3c45[6]](_0x3b23x8)})[_0x3c45[5]](function(_0x3b23x5){return handleError(_0x3b23x4,_0x3b23x5)})};exports[_0x3c45[18]]=function(_0x3b23x3,_0x3b23x4){if(_0x3b23x3[_0x3c45[17]][_0x3c45[13]]){delete _0x3b23x3[_0x3c45[17]][_0x3c45[13]]};ReportQueue[_0x3c45[15]](_0x3b23x3[_0x3c45[14]][_0x3c45[13]])[_0x3c45[8]](function(_0x3b23x8){if(!_0x3b23x8){return _0x3b23x4[_0x3c45[12]](404)};var _0x3b23x9=_[_0x3c45[19]](_0x3b23x8,_0x3b23x3[_0x3c45[17]]);_0x3b23x9[_0x3c45[20]]()[_0x3c45[8]](function(){return _0x3b23x4[_0x3c45[7]](200)[_0x3c45[6]](_0x3b23x8)})[_0x3c45[5]](function(_0x3b23x5){return handleError(_0x3b23x4,_0x3b23x5)});})[_0x3c45[5]](function(_0x3b23x5){return handleError(_0x3b23x4,_0x3b23x5)});};exports[_0x3c45[21]]=function(_0x3b23x3,_0x3b23x4){ReportQueue[_0x3c45[15]](_0x3b23x3[_0x3c45[14]][_0x3c45[13]])[_0x3c45[8]](function(_0x3b23x8){if(!_0x3b23x8){return _0x3b23x4[_0x3c45[12]](404)};_0x3b23x8[_0x3c45[21]]()[_0x3c45[8]](function(){return _0x3b23x4[_0x3c45[12]](204)})[_0x3c45[5]](function(_0x3b23x5){return handleError(_0x3b23x4,_0x3b23x5)});})[_0x3c45[5]](function(_0x3b23x5){return handleError(_0x3b23x4,_0x3b23x5)})};function handleError(_0x3b23x4,_0x3b23x5){return _0x3b23x4[_0x3c45[7]](500)[_0x3c45[6]](_0x3b23x5)}
\ No newline at end of file
-var _0x40d3=["\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"];_0x40d3[0];var ReportQueue=require(_0x40d3[2])[_0x40d3[1]];exports[_0x40d3[3]]=function(_0xecaex2){ReportQueue[_0x40d3[4]](function(_0xecaex3){onSave(_0xecaex2,_0xecaex3)});ReportQueue[_0x40d3[5]](function(_0xecaex3){onSave(_0xecaex2,_0xecaex3)});ReportQueue[_0x40d3[6]](function(_0xecaex3){onRemove(_0xecaex2,_0xecaex3)});};function onSave(_0xecaex2,_0xecaex3,_0xecaex5){if(_0xecaex2[_0x40d3[7]]===_0x40d3[8]){_0xecaex2[_0x40d3[10]](_0x40d3[9],_0xecaex3)}}function onRemove(_0xecaex2,_0xecaex3,_0xecaex5){_0xecaex2[_0x40d3[10]](_0x40d3[11],_0xecaex3)}
\ No newline at end of file
+var _0xa8c0=["\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"];_0xa8c0[0];var ReportQueue=require(_0xa8c0[2])[_0xa8c0[1]];exports[_0xa8c0[3]]=function(_0x9bfax2){ReportQueue[_0xa8c0[4]](function(_0x9bfax3){onSave(_0x9bfax2,_0x9bfax3)});ReportQueue[_0xa8c0[5]](function(_0x9bfax3){onSave(_0x9bfax2,_0x9bfax3)});ReportQueue[_0xa8c0[6]](function(_0x9bfax3){onRemove(_0x9bfax2,_0x9bfax3)});};function onSave(_0x9bfax2,_0x9bfax3,_0x9bfax5){if(_0x9bfax2[_0xa8c0[7]]===_0xa8c0[8]){_0x9bfax2[_0xa8c0[10]](_0xa8c0[9],_0x9bfax3)}}function onRemove(_0x9bfax2,_0x9bfax3,_0x9bfax5){_0x9bfax2[_0xa8c0[10]](_0xa8c0[11],_0x9bfax3)}
\ No newline at end of file
-var _0x5d1f=["\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"];_0x5d1f[0];var express=require(_0x5d1f[1]);var controller=require(_0x5d1f[2]);var router=express.Router();router[_0x5d1f[5]](_0x5d1f[3],controller[_0x5d1f[4]]);router[_0x5d1f[8]](_0x5d1f[6],controller[_0x5d1f[7]]);router[_0x5d1f[9]](_0x5d1f[6],controller[_0x5d1f[7]]);module[_0x5d1f[10]]=router;
\ No newline at end of file
+var _0x1f13=["\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"];_0x1f13[0];var express=require(_0x1f13[1]);var controller=require(_0x1f13[2]);var router=express.Router();router[_0x1f13[5]](_0x1f13[3],controller[_0x1f13[4]]);router[_0x1f13[8]](_0x1f13[6],controller[_0x1f13[7]]);router[_0x1f13[9]](_0x1f13[6],controller[_0x1f13[7]]);module[_0x1f13[10]]=router;
\ No newline at end of file
-var _0xebc2=["\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"];_0xebc2[0];var _=require(_0xebc2[1]);var util=require(_0xebc2[2]);var ReportTree=require(_0xebc2[4])[_0xebc2[3]];exports[_0xebc2[5]]=function(_0x3bbex4,_0x3bbex5){ReportTree[_0xebc2[11]]()[_0xebc2[10]](function(_0x3bbex7){if(!_0x3bbex7){return _0x3bbex5[_0xebc2[7]](404)};return _0x3bbex5[_0xebc2[9]](200)[_0xebc2[8]](_0x3bbex7);})[_0xebc2[6]](function(_0x3bbex6){return handleError(_0x3bbex5,_0x3bbex6)})};exports[_0xebc2[12]]=function(_0x3bbex4,_0x3bbex5){ReportTree[_0xebc2[18]](_0x3bbex4[_0xebc2[17]][_0xebc2[16]])[_0xebc2[10]](function(_0x3bbex8){if(!_0x3bbex8){return _0x3bbex5[_0xebc2[7]](404)};var _0x3bbex9=_[_0xebc2[14]](_0x3bbex8,_0x3bbex4[_0xebc2[13]]);_0x3bbex9[_0xebc2[15]]()[_0xebc2[10]](function(){return _0x3bbex5[_0xebc2[9]](200)[_0xebc2[8]](_0x3bbex8)})[_0xebc2[6]](function(_0x3bbex6){return handleError(_0x3bbex5,_0x3bbex6)});})[_0xebc2[6]](function(_0x3bbex6){return handleError(_0x3bbex5,_0x3bbex6)})};function handleError(_0x3bbex5,_0x3bbex6){return _0x3bbex5[_0xebc2[9]](500)[_0xebc2[8]](_0x3bbex6)}
\ No newline at end of file
+var _0xf8e4=["\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"];_0xf8e4[0];var _=require(_0xf8e4[1]);var util=require(_0xf8e4[2]);var ReportTree=require(_0xf8e4[4])[_0xf8e4[3]];exports[_0xf8e4[5]]=function(_0x41e7x4,_0x41e7x5){ReportTree[_0xf8e4[11]]()[_0xf8e4[10]](function(_0x41e7x7){if(!_0x41e7x7){return _0x41e7x5[_0xf8e4[7]](404)};return _0x41e7x5[_0xf8e4[9]](200)[_0xf8e4[8]](_0x41e7x7);})[_0xf8e4[6]](function(_0x41e7x6){return handleError(_0x41e7x5,_0x41e7x6)})};exports[_0xf8e4[12]]=function(_0x41e7x4,_0x41e7x5){ReportTree[_0xf8e4[18]](_0x41e7x4[_0xf8e4[17]][_0xf8e4[16]])[_0xf8e4[10]](function(_0x41e7x8){if(!_0x41e7x8){return _0x41e7x5[_0xf8e4[7]](404)};var _0x41e7x9=_[_0xf8e4[14]](_0x41e7x8,_0x41e7x4[_0xf8e4[13]]);_0x41e7x9[_0xf8e4[15]]()[_0xf8e4[10]](function(){return _0x41e7x5[_0xf8e4[9]](200)[_0xf8e4[8]](_0x41e7x8)})[_0xf8e4[6]](function(_0x41e7x6){return handleError(_0x41e7x5,_0x41e7x6)});})[_0xf8e4[6]](function(_0x41e7x6){return handleError(_0x41e7x5,_0x41e7x6)})};function handleError(_0x41e7x5,_0x41e7x6){return _0x41e7x5[_0xf8e4[9]](500)[_0xf8e4[8]](_0x41e7x6)}
\ No newline at end of file
-var _0xde0e=["\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"];_0xde0e[0];var ReportTree=require(_0xde0e[2])[_0xde0e[1]];exports[_0xde0e[3]]=function(_0x430ex2){ReportTree[_0xde0e[4]](function(_0x430ex3){onSave(_0x430ex2,_0x430ex3)});ReportTree[_0xde0e[5]](function(_0x430ex3){onSave(_0x430ex2,_0x430ex3)});ReportTree[_0xde0e[6]](function(_0x430ex3){onRemove(_0x430ex2,_0x430ex3)});};function onSave(_0x430ex2,_0x430ex3,_0x430ex5){_0x430ex2[_0xde0e[8]](_0xde0e[7],_0x430ex3)}function onRemove(_0x430ex2,_0x430ex3,_0x430ex5){_0x430ex2[_0xde0e[8]](_0xde0e[9],_0x430ex3)}
\ No newline at end of file
+var _0x8970=["\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"];_0x8970[0];var ReportTree=require(_0x8970[2])[_0x8970[1]];exports[_0x8970[3]]=function(_0x55b3x2){ReportTree[_0x8970[4]](function(_0x55b3x3){onSave(_0x55b3x2,_0x55b3x3)});ReportTree[_0x8970[5]](function(_0x55b3x3){onSave(_0x55b3x2,_0x55b3x3)});ReportTree[_0x8970[6]](function(_0x55b3x3){onRemove(_0x55b3x2,_0x55b3x3)});};function onSave(_0x55b3x2,_0x55b3x3,_0x55b3x5){_0x55b3x2[_0x8970[8]](_0x8970[7],_0x55b3x3)}function onRemove(_0x55b3x2,_0x55b3x3,_0x55b3x5){_0x55b3x2[_0x8970[8]](_0x8970[9],_0x55b3x3)}
\ No newline at end of file
-var _0x4b47=["\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"];_0x4b47[0];var should=require(_0x4b47[1]);var app=require(_0x4b47[2]);var request=require(_0x4b47[3]);describe(_0x4b47[4],function(){it(_0x4b47[5],function(_0x69bcx4){request(app)[_0x4b47[13]](_0x4b47[12])[_0x4b47[11]](200)[_0x4b47[11]](_0x4b47[10],/json/)[_0x4b47[9]](function(_0x69bcx5,_0x69bcx6){if(_0x69bcx5){return _0x69bcx4(_0x69bcx5)};_0x69bcx6[_0x4b47[8]][_0x4b47[1]][_0x4b47[7]][_0x4b47[6]](Array);_0x69bcx4();})})});
\ No newline at end of file
+var _0x6a54=["\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"];_0x6a54[0];var should=require(_0x6a54[1]);var app=require(_0x6a54[2]);var request=require(_0x6a54[3]);describe(_0x6a54[4],function(){it(_0x6a54[5],function(_0x628dx4){request(app)[_0x6a54[13]](_0x6a54[12])[_0x6a54[11]](200)[_0x6a54[11]](_0x6a54[10],/json/)[_0x6a54[9]](function(_0x628dx5,_0x628dx6){if(_0x628dx5){return _0x628dx4(_0x628dx5)};_0x628dx6[_0x6a54[8]][_0x6a54[1]][_0x6a54[7]][_0x6a54[6]](Array);_0x628dx4();})})});
\ No newline at end of file
-var _0x5b8a=["\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"];_0x5b8a[0];var express=require(_0x5b8a[1]);var auth=require(_0x5b8a[2]);var controller=require(_0x5b8a[3]);var router=express.Router();router[_0x5b8a[7]](_0x5b8a[4],auth[_0x5b8a[5]](),controller[_0x5b8a[6]]);router[_0x5b8a[7]](_0x5b8a[8],auth[_0x5b8a[5]](),controller[_0x5b8a[9]]);router[_0x5b8a[7]](_0x5b8a[10],auth[_0x5b8a[5]](),controller[_0x5b8a[11]]);router[_0x5b8a[7]](_0x5b8a[12],auth[_0x5b8a[5]](),controller[_0x5b8a[13]]);router[_0x5b8a[16]](_0x5b8a[14],auth[_0x5b8a[5]](),controller[_0x5b8a[15]]);router[_0x5b8a[16]](_0x5b8a[4],auth[_0x5b8a[5]](),controller[_0x5b8a[17]]);router[_0x5b8a[19]](_0x5b8a[8],auth[_0x5b8a[5]](),controller[_0x5b8a[18]]);router[_0x5b8a[20]](_0x5b8a[8],auth[_0x5b8a[5]](),controller[_0x5b8a[18]]);router[_0x5b8a[22]](_0x5b8a[4],auth[_0x5b8a[5]](),controller[_0x5b8a[21]]);router[_0x5b8a[22]](_0x5b8a[8],auth[_0x5b8a[5]](),controller[_0x5b8a[23]]);module[_0x5b8a[24]]=router;
\ No newline at end of file
+var _0x51dc=["\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"];_0x51dc[0];var express=require(_0x51dc[1]);var auth=require(_0x51dc[2]);var controller=require(_0x51dc[3]);var router=express.Router();router[_0x51dc[7]](_0x51dc[4],auth[_0x51dc[5]](),controller[_0x51dc[6]]);router[_0x51dc[7]](_0x51dc[8],auth[_0x51dc[5]](),controller[_0x51dc[9]]);router[_0x51dc[7]](_0x51dc[10],auth[_0x51dc[5]](),controller[_0x51dc[11]]);router[_0x51dc[7]](_0x51dc[12],auth[_0x51dc[5]](),controller[_0x51dc[13]]);router[_0x51dc[16]](_0x51dc[14],auth[_0x51dc[5]](),controller[_0x51dc[15]]);router[_0x51dc[16]](_0x51dc[4],auth[_0x51dc[5]](),controller[_0x51dc[17]]);router[_0x51dc[19]](_0x51dc[8],auth[_0x51dc[5]](),controller[_0x51dc[18]]);router[_0x51dc[20]](_0x51dc[8],auth[_0x51dc[5]](),controller[_0x51dc[18]]);router[_0x51dc[22]](_0x51dc[4],auth[_0x51dc[5]](),controller[_0x51dc[21]]);router[_0x51dc[22]](_0x51dc[8],auth[_0x51dc[5]](),controller[_0x51dc[23]]);module[_0x51dc[24]]=router;
\ No newline at end of file
-var _0x3d68=["\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"];_0x3d68[0];var proxyquire=require(_0x3d68[2])[_0x3d68[1]]();var salesforceAccountCtrlStub={index:_0x3d68[3],show:_0x3d68[4],create:_0x3d68[5],update:_0x3d68[6],destroy:_0x3d68[7]};var routerStub={get:sinon[_0x3d68[8]](),put:sinon[_0x3d68[8]](),patch:sinon[_0x3d68[8]](),post:sinon[_0x3d68[8]](),delete:sinon[_0x3d68[8]]()};var salesforceAccountIndex=proxyquire(_0x3d68[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(_0x3d68[10],function(){it(_0x3d68[11],function(){expect(salesforceAccountIndex)[_0x3d68[13]][_0x3d68[12]](routerStub)});describe(_0x3d68[14],function(){it(_0x3d68[15],function(){expect(routerStub[_0x3d68[21]][_0x3d68[20]](_0x3d68[19],_0x3d68[3]))[_0x3d68[13]][_0x3d68[18]][_0x3d68[17]][_0x3d68[16]]})});describe(_0x3d68[22],function(){it(_0x3d68[23],function(){expect(routerStub[_0x3d68[21]][_0x3d68[20]](_0x3d68[24],_0x3d68[4]))[_0x3d68[13]][_0x3d68[18]][_0x3d68[17]][_0x3d68[16]]})});describe(_0x3d68[25],function(){it(_0x3d68[26],function(){expect(routerStub[_0x3d68[27]][_0x3d68[20]](_0x3d68[19],_0x3d68[5]))[_0x3d68[13]][_0x3d68[18]][_0x3d68[17]][_0x3d68[16]]})});describe(_0x3d68[28],function(){it(_0x3d68[29],function(){expect(routerStub[_0x3d68[30]][_0x3d68[20]](_0x3d68[24],_0x3d68[6]))[_0x3d68[13]][_0x3d68[18]][_0x3d68[17]][_0x3d68[16]]})});describe(_0x3d68[31],function(){it(_0x3d68[29],function(){expect(routerStub[_0x3d68[32]][_0x3d68[20]](_0x3d68[24],_0x3d68[6]))[_0x3d68[13]][_0x3d68[18]][_0x3d68[17]][_0x3d68[16]]})});describe(_0x3d68[33],function(){it(_0x3d68[34],function(){expect(routerStub[_0x3d68[35]][_0x3d68[20]](_0x3d68[24],_0x3d68[7]))[_0x3d68[13]][_0x3d68[18]][_0x3d68[17]][_0x3d68[16]]})});});
\ No newline at end of file
+var _0x54d3=["\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"];_0x54d3[0];var proxyquire=require(_0x54d3[2])[_0x54d3[1]]();var salesforceAccountCtrlStub={index:_0x54d3[3],show:_0x54d3[4],create:_0x54d3[5],update:_0x54d3[6],destroy:_0x54d3[7]};var routerStub={get:sinon[_0x54d3[8]](),put:sinon[_0x54d3[8]](),patch:sinon[_0x54d3[8]](),post:sinon[_0x54d3[8]](),delete:sinon[_0x54d3[8]]()};var salesforceAccountIndex=proxyquire(_0x54d3[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(_0x54d3[10],function(){it(_0x54d3[11],function(){expect(salesforceAccountIndex)[_0x54d3[13]][_0x54d3[12]](routerStub)});describe(_0x54d3[14],function(){it(_0x54d3[15],function(){expect(routerStub[_0x54d3[21]][_0x54d3[20]](_0x54d3[19],_0x54d3[3]))[_0x54d3[13]][_0x54d3[18]][_0x54d3[17]][_0x54d3[16]]})});describe(_0x54d3[22],function(){it(_0x54d3[23],function(){expect(routerStub[_0x54d3[21]][_0x54d3[20]](_0x54d3[24],_0x54d3[4]))[_0x54d3[13]][_0x54d3[18]][_0x54d3[17]][_0x54d3[16]]})});describe(_0x54d3[25],function(){it(_0x54d3[26],function(){expect(routerStub[_0x54d3[27]][_0x54d3[20]](_0x54d3[19],_0x54d3[5]))[_0x54d3[13]][_0x54d3[18]][_0x54d3[17]][_0x54d3[16]]})});describe(_0x54d3[28],function(){it(_0x54d3[29],function(){expect(routerStub[_0x54d3[30]][_0x54d3[20]](_0x54d3[24],_0x54d3[6]))[_0x54d3[13]][_0x54d3[18]][_0x54d3[17]][_0x54d3[16]]})});describe(_0x54d3[31],function(){it(_0x54d3[29],function(){expect(routerStub[_0x54d3[32]][_0x54d3[20]](_0x54d3[24],_0x54d3[6]))[_0x54d3[13]][_0x54d3[18]][_0x54d3[17]][_0x54d3[16]]})});describe(_0x54d3[33],function(){it(_0x54d3[34],function(){expect(routerStub[_0x54d3[35]][_0x54d3[20]](_0x54d3[24],_0x54d3[7]))[_0x54d3[13]][_0x54d3[18]][_0x54d3[17]][_0x54d3[16]]})});});
\ No newline at end of file
-var _0x7e8f=["\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"];_0x7e8f[0];var _=require(_0x7e8f[1]);var util=require(_0x7e8f[2]);var jsforce=require(_0x7e8f[3]);var SalesforceAccount=require(_0x7e8f[5])[_0x7e8f[4]];function handleError(_0x7beax6,_0x7beax7){_0x7beax7=_0x7beax7||500;return function(_0x7beax8){_0x7beax6[_0x7e8f[7]](_0x7beax7)[_0x7e8f[6]](_0x7beax8)};}function responseWithResult(_0x7beax6,_0x7beax7){_0x7beax7=_0x7beax7||200;return function(_0x7beaxa){if(_0x7beaxa){_0x7beax6[_0x7e8f[7]](_0x7beax7)[_0x7e8f[8]](_0x7beaxa)}};}function handleEntityNotFound(_0x7beax6){return function(_0x7beaxa){if(!_0x7beaxa){_0x7beax6[_0x7e8f[7]](404)[_0x7e8f[9]]();return null;};return _0x7beaxa;}}function saveUpdates(_0x7beaxd){return function(_0x7beaxa){return _0x7beaxa[_0x7e8f[11]](_0x7beaxd)[_0x7e8f[10]](function(_0x7beaxe){return _0x7beaxe})}}function removeEntity(_0x7beax6){return function(_0x7beaxa){if(_0x7beaxa){return _0x7beaxa[_0x7e8f[12]]()[_0x7e8f[10]](function(){_0x7beax6[_0x7e8f[7]](204)[_0x7e8f[9]]()})}}}exports[_0x7e8f[13]]=function(_0x7beax10,_0x7beax6){var _0x7beax11=[_0x7e8f[14],_0x7e8f[15],_0x7e8f[16],_0x7e8f[17]];var _0x7beax12=_0x7beax10[_0x7e8f[19]][_0x7e8f[18]]?parseInt(_0x7beax10[_0x7e8f[19]][_0x7e8f[18]],10):100;var _0x7beax13=_0x7beax10[_0x7e8f[19]][_0x7e8f[20]]?parseInt(_0x7beax10[_0x7e8f[19]][_0x7e8f[20]],10):0;var _0x7beax14={where:{},limit:_0x7beax12,offset:_0x7beax13*_0x7beax12};_[_0x7e8f[34]](_0x7beax10[_0x7e8f[19]],function(_0x7beax15,_0x7beax16){switch(_0x7beax16){case _0x7e8f[18]:;case _0x7e8f[20]:break ;;case _0x7e8f[23]:_0x7beax14[_0x7e8f[21]]=util[_0x7e8f[26]](_0x7e8f[22],_0x7beax10[_0x7e8f[19]][_0x7e8f[23]],_0x7beax10[_0x7e8f[19]][_0x7e8f[24]]||_0x7e8f[25])||null;break ;;case _0x7e8f[24]:break ;;case _0x7e8f[32]:_0x7beax14[_0x7e8f[28]][_0x7e8f[27]]=[];_0x7beax11[_0x7e8f[31]](function(_0x7beax17){var _0x7beax18={};_0x7beax18[_0x7beax17]={$like:_0x7e8f[29]+_0x7beax15+_0x7e8f[29]};_0x7beax14[_0x7e8f[28]][_0x7e8f[27]][_0x7e8f[30]](_0x7beax18);});break ;;default:_0x7beax14[_0x7e8f[28]][_0x7beax16]={$like:{}};_0x7beax14[_0x7e8f[28]][_0x7beax16][_0x7e8f[33]]=_0x7e8f[29]+_0x7beax15+_0x7e8f[29];;}});SalesforceAccount[_0x7e8f[46]](_0x7beax14)[_0x7e8f[10]](function(_0x7beax19){var _0x7beax1a=Math[_0x7e8f[38]](_0x7beax19[_0x7e8f[37]]/_0x7beax12);var _0x7beax1b=_0x7beax1a>(_0x7beax14[_0x7e8f[39]]+1)?util[_0x7e8f[26]](_0x7e8f[40],_0x7beax10[_0x7e8f[41]],_0x7beax10[_0x7e8f[43]][_0x7e8f[42]],_0x7beax10[_0x7e8f[44]],_0x7beax13+1):null;var _0x7beax1c=_0x7beax13>0?util[_0x7e8f[26]](_0x7e8f[40],_0x7beax10[_0x7e8f[41]],_0x7beax10[_0x7e8f[43]][_0x7e8f[42]],_0x7beax10[_0x7e8f[44]],_0x7beax13-1):null;return _0x7beax6[_0x7e8f[7]](200)[_0x7e8f[6]]({count:_0x7beax19[_0x7e8f[37]],rows:_0x7beax19[_0x7e8f[45]],next_page:_0x7beax1b,previous_page:_0x7beax1c,total_pages:_0x7beax1a});})[_0x7e8f[36]](function(_0x7beax8){return _0x7beax6[_0x7e8f[7]](500)[_0x7e8f[6]]({error:_0x7e8f[35]})});};exports[_0x7e8f[47]]=function(_0x7beax10,_0x7beax6){SalesforceAccount[_0x7e8f[50]](_0x7beax10[_0x7e8f[49]][_0x7e8f[48]])[_0x7e8f[10]](handleEntityNotFound(_0x7beax6))[_0x7e8f[10]](responseWithResult(_0x7beax6))[_0x7e8f[36]](handleError(_0x7beax6))};exports[_0x7e8f[51]]=function(_0x7beax10,_0x7beax6){SalesforceAccount[_0x7e8f[51]](_0x7beax10[_0x7e8f[52]])[_0x7e8f[10]](responseWithResult(_0x7beax6,201))[_0x7e8f[36]](handleError(_0x7beax6))};exports[_0x7e8f[53]]=function(_0x7beax10,_0x7beax6){if(_0x7beax10[_0x7e8f[52]][_0x7e8f[48]]){delete _0x7beax10[_0x7e8f[52]][_0x7e8f[48]]};SalesforceAccount[_0x7e8f[50]](_0x7beax10[_0x7e8f[49]][_0x7e8f[48]])[_0x7e8f[10]](handleEntityNotFound(_0x7beax6))[_0x7e8f[10]](saveUpdates(_0x7beax10[_0x7e8f[52]]))[_0x7e8f[10]](responseWithResult(_0x7beax6))[_0x7e8f[36]](handleError(_0x7beax6));};exports[_0x7e8f[12]]=function(_0x7beax10,_0x7beax6){SalesforceAccount[_0x7e8f[50]](_0x7beax10[_0x7e8f[49]][_0x7e8f[48]])[_0x7e8f[10]](handleEntityNotFound(_0x7beax6))[_0x7e8f[10]](removeEntity(_0x7beax6))[_0x7e8f[36]](handleError(_0x7beax6))};exports[_0x7e8f[54]]=function(_0x7beax10,_0x7beax6){SalesforceAccount[_0x7e8f[50]](_0x7beax10[_0x7e8f[49]][_0x7e8f[48]])[_0x7e8f[10]](handleEntityNotFound(_0x7beax6))[_0x7e8f[10]](function(_0x7beax1d){var _0x7beax1e= new jsforce.Connection({oauth2:{loginUrl:_0x7beax1d[_0x7e8f[17]],clientId:_0x7beax1d[_0x7e8f[55]],clientSecret:_0x7beax1d[_0x7e8f[56]]}});var _0x7beax1f=_0x7beax1d[_0x7e8f[59]][_0x7e8f[58]](_0x7beax1d[_0x7e8f[57]]);_0x7beax1e[_0x7e8f[61]](_0x7beax1d[_0x7e8f[16]],_0x7beax1f,function(_0x7beax8,_0x7beax20){if(_0x7beax8){return _0x7beax6[_0x7e8f[7]](400)[_0x7e8f[6]](_0x7beax8)};return _0x7beax6[_0x7e8f[60]](200);});})[_0x7e8f[36]](handleError(_0x7beax6))};exports[_0x7e8f[62]]=function(_0x7beax10,_0x7beax6){var _0x7beax21={};_0x7beax21[_0x7beax10[_0x7e8f[49]][_0x7e8f[63]]]=_0x7beax10[_0x7e8f[52]][_0x7e8f[64]];SalesforceAccount[_0x7e8f[46]]({where:_0x7beax21})[_0x7e8f[10]](function(_0x7beax19){if(_0x7beax19[_0x7e8f[37]]){return _0x7beax6[_0x7e8f[7]](200)[_0x7e8f[6]]({isValid:false,value:_0x7beax10[_0x7e8f[52]][_0x7e8f[64]]})};return _0x7beax6[_0x7e8f[7]](200)[_0x7e8f[6]]({isValid:true,value:_0x7beax10[_0x7e8f[52]][_0x7e8f[64]]});})[_0x7e8f[36]](function(_0x7beax8){return handleError(_0x7beax6,_0x7beax8)});};exports[_0x7e8f[65]]=function(_0x7beax10,_0x7beax6){SalesforceAccount[_0x7e8f[50]](_0x7beax10[_0x7e8f[49]][_0x7e8f[48]])[_0x7e8f[10]](handleEntityNotFound(_0x7beax6))[_0x7e8f[10]](function(_0x7beax1d){var _0x7beax1e= new jsforce.Connection({oauth2:{loginUrl:_0x7beax1d[_0x7e8f[17]],clientId:_0x7beax1d[_0x7e8f[55]],clientSecret:_0x7beax1d[_0x7e8f[56]]}});var _0x7beax1f=_0x7beax1d[_0x7e8f[59]][_0x7e8f[58]](_0x7beax1d[_0x7e8f[57]]);_0x7beax1e[_0x7e8f[61]](_0x7beax1d[_0x7e8f[16]],_0x7beax1f,function(_0x7beax8,_0x7beax20){if(_0x7beax8){return _0x7beax6[_0x7e8f[7]](400)[_0x7e8f[6]](_0x7beax8)};_0x7beax1e[_0x7e8f[69]](_0x7e8f[68])[_0x7e8f[67]](function(_0x7beax8,_0x7beax22){if(_0x7beax8){return _0x7beax6[_0x7e8f[7]](400)[_0x7e8f[6]](_0x7beax8)};return _0x7beax6[_0x7e8f[7]](200)[_0x7e8f[6]](_0x7beax22[_0x7e8f[66]]);});});})[_0x7e8f[36]](handleError(_0x7beax6))};exports[_0x7e8f[70]]=function(_0x7beax10,_0x7beax6){SalesforceAccount[_0x7e8f[12]]({where:{id:_0x7beax10[_0x7e8f[19]][_0x7e8f[48]]},individualHooks:true})[_0x7e8f[10]](function(){return _0x7beax6[_0x7e8f[60]](204)})[_0x7e8f[36]](function(_0x7beax8){return handleError(_0x7beax6,_0x7beax8)})};
\ No newline at end of file
+var _0xddd9=["\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"];_0xddd9[0];var _=require(_0xddd9[1]);var util=require(_0xddd9[2]);var jsforce=require(_0xddd9[3]);var SalesforceAccount=require(_0xddd9[5])[_0xddd9[4]];function handleError(_0xe076x6,_0xe076x7){_0xe076x7=_0xe076x7||500;return function(_0xe076x8){_0xe076x6[_0xddd9[7]](_0xe076x7)[_0xddd9[6]](_0xe076x8)};}function responseWithResult(_0xe076x6,_0xe076x7){_0xe076x7=_0xe076x7||200;return function(_0xe076xa){if(_0xe076xa){_0xe076x6[_0xddd9[7]](_0xe076x7)[_0xddd9[8]](_0xe076xa)}};}function handleEntityNotFound(_0xe076x6){return function(_0xe076xa){if(!_0xe076xa){_0xe076x6[_0xddd9[7]](404)[_0xddd9[9]]();return null;};return _0xe076xa;}}function saveUpdates(_0xe076xd){return function(_0xe076xa){return _0xe076xa[_0xddd9[11]](_0xe076xd)[_0xddd9[10]](function(_0xe076xe){return _0xe076xe})}}function removeEntity(_0xe076x6){return function(_0xe076xa){if(_0xe076xa){return _0xe076xa[_0xddd9[12]]()[_0xddd9[10]](function(){_0xe076x6[_0xddd9[7]](204)[_0xddd9[9]]()})}}}exports[_0xddd9[13]]=function(_0xe076x10,_0xe076x6){var _0xe076x11=[_0xddd9[14],_0xddd9[15],_0xddd9[16],_0xddd9[17]];var _0xe076x12=_0xe076x10[_0xddd9[19]][_0xddd9[18]]?parseInt(_0xe076x10[_0xddd9[19]][_0xddd9[18]],10):100;var _0xe076x13=_0xe076x10[_0xddd9[19]][_0xddd9[20]]?parseInt(_0xe076x10[_0xddd9[19]][_0xddd9[20]],10):0;var _0xe076x14={where:{},limit:_0xe076x12,offset:_0xe076x13*_0xe076x12};_[_0xddd9[34]](_0xe076x10[_0xddd9[19]],function(_0xe076x15,_0xe076x16){switch(_0xe076x16){case _0xddd9[18]:;case _0xddd9[20]:break ;;case _0xddd9[23]:_0xe076x14[_0xddd9[21]]=util[_0xddd9[26]](_0xddd9[22],_0xe076x10[_0xddd9[19]][_0xddd9[23]],_0xe076x10[_0xddd9[19]][_0xddd9[24]]||_0xddd9[25])||null;break ;;case _0xddd9[24]:break ;;case _0xddd9[32]:_0xe076x14[_0xddd9[28]][_0xddd9[27]]=[];_0xe076x11[_0xddd9[31]](function(_0xe076x17){var _0xe076x18={};_0xe076x18[_0xe076x17]={$like:_0xddd9[29]+_0xe076x15+_0xddd9[29]};_0xe076x14[_0xddd9[28]][_0xddd9[27]][_0xddd9[30]](_0xe076x18);});break ;;default:_0xe076x14[_0xddd9[28]][_0xe076x16]={$like:{}};_0xe076x14[_0xddd9[28]][_0xe076x16][_0xddd9[33]]=_0xddd9[29]+_0xe076x15+_0xddd9[29];;}});SalesforceAccount[_0xddd9[46]](_0xe076x14)[_0xddd9[10]](function(_0xe076x19){var _0xe076x1a=Math[_0xddd9[38]](_0xe076x19[_0xddd9[37]]/_0xe076x12);var _0xe076x1b=_0xe076x1a>(_0xe076x14[_0xddd9[39]]+1)?util[_0xddd9[26]](_0xddd9[40],_0xe076x10[_0xddd9[41]],_0xe076x10[_0xddd9[43]][_0xddd9[42]],_0xe076x10[_0xddd9[44]],_0xe076x13+1):null;var _0xe076x1c=_0xe076x13>0?util[_0xddd9[26]](_0xddd9[40],_0xe076x10[_0xddd9[41]],_0xe076x10[_0xddd9[43]][_0xddd9[42]],_0xe076x10[_0xddd9[44]],_0xe076x13-1):null;return _0xe076x6[_0xddd9[7]](200)[_0xddd9[6]]({count:_0xe076x19[_0xddd9[37]],rows:_0xe076x19[_0xddd9[45]],next_page:_0xe076x1b,previous_page:_0xe076x1c,total_pages:_0xe076x1a});})[_0xddd9[36]](function(_0xe076x8){return _0xe076x6[_0xddd9[7]](500)[_0xddd9[6]]({error:_0xddd9[35]})});};exports[_0xddd9[47]]=function(_0xe076x10,_0xe076x6){SalesforceAccount[_0xddd9[50]](_0xe076x10[_0xddd9[49]][_0xddd9[48]])[_0xddd9[10]](handleEntityNotFound(_0xe076x6))[_0xddd9[10]](responseWithResult(_0xe076x6))[_0xddd9[36]](handleError(_0xe076x6))};exports[_0xddd9[51]]=function(_0xe076x10,_0xe076x6){SalesforceAccount[_0xddd9[51]](_0xe076x10[_0xddd9[52]])[_0xddd9[10]](responseWithResult(_0xe076x6,201))[_0xddd9[36]](handleError(_0xe076x6))};exports[_0xddd9[53]]=function(_0xe076x10,_0xe076x6){if(_0xe076x10[_0xddd9[52]][_0xddd9[48]]){delete _0xe076x10[_0xddd9[52]][_0xddd9[48]]};SalesforceAccount[_0xddd9[50]](_0xe076x10[_0xddd9[49]][_0xddd9[48]])[_0xddd9[10]](handleEntityNotFound(_0xe076x6))[_0xddd9[10]](saveUpdates(_0xe076x10[_0xddd9[52]]))[_0xddd9[10]](responseWithResult(_0xe076x6))[_0xddd9[36]](handleError(_0xe076x6));};exports[_0xddd9[12]]=function(_0xe076x10,_0xe076x6){SalesforceAccount[_0xddd9[50]](_0xe076x10[_0xddd9[49]][_0xddd9[48]])[_0xddd9[10]](handleEntityNotFound(_0xe076x6))[_0xddd9[10]](removeEntity(_0xe076x6))[_0xddd9[36]](handleError(_0xe076x6))};exports[_0xddd9[54]]=function(_0xe076x10,_0xe076x6){SalesforceAccount[_0xddd9[50]](_0xe076x10[_0xddd9[49]][_0xddd9[48]])[_0xddd9[10]](handleEntityNotFound(_0xe076x6))[_0xddd9[10]](function(_0xe076x1d){var _0xe076x1e= new jsforce.Connection({oauth2:{loginUrl:_0xe076x1d[_0xddd9[17]],clientId:_0xe076x1d[_0xddd9[55]],clientSecret:_0xe076x1d[_0xddd9[56]]}});var _0xe076x1f=_0xe076x1d[_0xddd9[59]][_0xddd9[58]](_0xe076x1d[_0xddd9[57]]);_0xe076x1e[_0xddd9[61]](_0xe076x1d[_0xddd9[16]],_0xe076x1f,function(_0xe076x8,_0xe076x20){if(_0xe076x8){return _0xe076x6[_0xddd9[7]](400)[_0xddd9[6]](_0xe076x8)};return _0xe076x6[_0xddd9[60]](200);});})[_0xddd9[36]](handleError(_0xe076x6))};exports[_0xddd9[62]]=function(_0xe076x10,_0xe076x6){var _0xe076x21={};_0xe076x21[_0xe076x10[_0xddd9[49]][_0xddd9[63]]]=_0xe076x10[_0xddd9[52]][_0xddd9[64]];SalesforceAccount[_0xddd9[46]]({where:_0xe076x21})[_0xddd9[10]](function(_0xe076x19){if(_0xe076x19[_0xddd9[37]]){return _0xe076x6[_0xddd9[7]](200)[_0xddd9[6]]({isValid:false,value:_0xe076x10[_0xddd9[52]][_0xddd9[64]]})};return _0xe076x6[_0xddd9[7]](200)[_0xddd9[6]]({isValid:true,value:_0xe076x10[_0xddd9[52]][_0xddd9[64]]});})[_0xddd9[36]](function(_0xe076x8){return handleError(_0xe076x6,_0xe076x8)});};exports[_0xddd9[65]]=function(_0xe076x10,_0xe076x6){SalesforceAccount[_0xddd9[50]](_0xe076x10[_0xddd9[49]][_0xddd9[48]])[_0xddd9[10]](handleEntityNotFound(_0xe076x6))[_0xddd9[10]](function(_0xe076x1d){var _0xe076x1e= new jsforce.Connection({oauth2:{loginUrl:_0xe076x1d[_0xddd9[17]],clientId:_0xe076x1d[_0xddd9[55]],clientSecret:_0xe076x1d[_0xddd9[56]]}});var _0xe076x1f=_0xe076x1d[_0xddd9[59]][_0xddd9[58]](_0xe076x1d[_0xddd9[57]]);_0xe076x1e[_0xddd9[61]](_0xe076x1d[_0xddd9[16]],_0xe076x1f,function(_0xe076x8,_0xe076x20){if(_0xe076x8){return _0xe076x6[_0xddd9[7]](400)[_0xddd9[6]](_0xe076x8)};_0xe076x1e[_0xddd9[69]](_0xddd9[68])[_0xddd9[67]](function(_0xe076x8,_0xe076x22){if(_0xe076x8){return _0xe076x6[_0xddd9[7]](400)[_0xddd9[6]](_0xe076x8)};return _0xe076x6[_0xddd9[7]](200)[_0xddd9[6]](_0xe076x22[_0xddd9[66]]);});});})[_0xddd9[36]](handleError(_0xe076x6))};exports[_0xddd9[70]]=function(_0xe076x10,_0xe076x6){SalesforceAccount[_0xddd9[12]]({where:{id:_0xe076x10[_0xddd9[19]][_0xddd9[48]]},individualHooks:true})[_0xddd9[10]](function(){return _0xe076x6[_0xddd9[60]](204)})[_0xddd9[36]](function(_0xe076x8){return handleError(_0xe076x6,_0xe076x8)})};
\ No newline at end of file
-var _0x4e12=["\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"];_0x4e12[0];var SalesforceAccount=require(_0x4e12[2])[_0x4e12[1]];exports[_0x4e12[3]]=function(_0xd876x2){SalesforceAccount[_0x4e12[4]](function(_0xd876x3){onSave(_0xd876x2,_0xd876x3)});SalesforceAccount[_0x4e12[5]](function(_0xd876x3){onRemove(_0xd876x2,_0xd876x3)});};function onSave(_0xd876x2,_0xd876x3,_0xd876x5){_0xd876x2[_0x4e12[7]](_0x4e12[6],_0xd876x3)}function onRemove(_0xd876x2,_0xd876x3,_0xd876x5){_0xd876x2[_0x4e12[7]](_0x4e12[8],_0xd876x3)}
\ No newline at end of file
+var _0xbeac=["\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"];_0xbeac[0];var SalesforceAccount=require(_0xbeac[2])[_0xbeac[1]];exports[_0xbeac[3]]=function(_0xeb82x2){SalesforceAccount[_0xbeac[4]](function(_0xeb82x3){onSave(_0xeb82x2,_0xeb82x3)});SalesforceAccount[_0xbeac[5]](function(_0xeb82x3){onRemove(_0xeb82x2,_0xeb82x3)});};function onSave(_0xeb82x2,_0xeb82x3,_0xeb82x5){_0xeb82x2[_0xbeac[7]](_0xbeac[6],_0xeb82x3)}function onRemove(_0xeb82x2,_0xeb82x3,_0xeb82x5){_0xeb82x2[_0xbeac[7]](_0xbeac[8],_0xeb82x3)}
\ No newline at end of file
-var _0x5445=["\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"];_0x5445[0];var express=require(_0x5445[1]);var auth=require(_0x5445[2]);var controller=require(_0x5445[3]);var router=express.Router();router[_0x5445[7]](_0x5445[4],auth[_0x5445[5]](),controller[_0x5445[6]]);router[_0x5445[7]](_0x5445[8],auth[_0x5445[5]](),controller[_0x5445[9]]);router[_0x5445[11]](_0x5445[4],auth[_0x5445[5]](),controller[_0x5445[10]]);router[_0x5445[13]](_0x5445[8],auth[_0x5445[5]](),controller[_0x5445[12]]);router[_0x5445[11]](_0x5445[14],auth[_0x5445[5]](),controller[_0x5445[15]]);router[_0x5445[16]](_0x5445[8],auth[_0x5445[5]](),controller[_0x5445[12]]);router[_0x5445[18]](_0x5445[8],auth[_0x5445[5]](),controller[_0x5445[17]]);module[_0x5445[19]]=router;
\ No newline at end of file
+var _0xffe3=["\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"];_0xffe3[0];var express=require(_0xffe3[1]);var auth=require(_0xffe3[2]);var controller=require(_0xffe3[3]);var router=express.Router();router[_0xffe3[7]](_0xffe3[4],auth[_0xffe3[5]](),controller[_0xffe3[6]]);router[_0xffe3[7]](_0xffe3[8],auth[_0xffe3[5]](),controller[_0xffe3[9]]);router[_0xffe3[11]](_0xffe3[4],auth[_0xffe3[5]](),controller[_0xffe3[10]]);router[_0xffe3[13]](_0xffe3[8],auth[_0xffe3[5]](),controller[_0xffe3[12]]);router[_0xffe3[11]](_0xffe3[14],auth[_0xffe3[5]](),controller[_0xffe3[15]]);router[_0xffe3[16]](_0xffe3[8],auth[_0xffe3[5]](),controller[_0xffe3[12]]);router[_0xffe3[18]](_0xffe3[8],auth[_0xffe3[5]](),controller[_0xffe3[17]]);module[_0xffe3[19]]=router;
\ No newline at end of file
-var _0x493d=["\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"];_0x493d[0];var proxyquire=require(_0x493d[2])[_0x493d[1]]();var salesforceConfigurationCtrlStub={index:_0x493d[3],show:_0x493d[4],create:_0x493d[5],update:_0x493d[6],destroy:_0x493d[7]};var routerStub={get:sinon[_0x493d[8]](),put:sinon[_0x493d[8]](),patch:sinon[_0x493d[8]](),post:sinon[_0x493d[8]](),delete:sinon[_0x493d[8]]()};var salesforceConfigurationIndex=proxyquire(_0x493d[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(_0x493d[10],function(){it(_0x493d[11],function(){expect(salesforceConfigurationIndex)[_0x493d[13]][_0x493d[12]](routerStub)});describe(_0x493d[14],function(){it(_0x493d[15],function(){expect(routerStub[_0x493d[21]][_0x493d[20]](_0x493d[19],_0x493d[3]))[_0x493d[13]][_0x493d[18]][_0x493d[17]][_0x493d[16]]})});describe(_0x493d[22],function(){it(_0x493d[23],function(){expect(routerStub[_0x493d[21]][_0x493d[20]](_0x493d[24],_0x493d[4]))[_0x493d[13]][_0x493d[18]][_0x493d[17]][_0x493d[16]]})});describe(_0x493d[25],function(){it(_0x493d[26],function(){expect(routerStub[_0x493d[27]][_0x493d[20]](_0x493d[19],_0x493d[5]))[_0x493d[13]][_0x493d[18]][_0x493d[17]][_0x493d[16]]})});describe(_0x493d[28],function(){it(_0x493d[29],function(){expect(routerStub[_0x493d[30]][_0x493d[20]](_0x493d[24],_0x493d[6]))[_0x493d[13]][_0x493d[18]][_0x493d[17]][_0x493d[16]]})});describe(_0x493d[31],function(){it(_0x493d[29],function(){expect(routerStub[_0x493d[32]][_0x493d[20]](_0x493d[24],_0x493d[6]))[_0x493d[13]][_0x493d[18]][_0x493d[17]][_0x493d[16]]})});describe(_0x493d[33],function(){it(_0x493d[34],function(){expect(routerStub[_0x493d[35]][_0x493d[20]](_0x493d[24],_0x493d[7]))[_0x493d[13]][_0x493d[18]][_0x493d[17]][_0x493d[16]]})});});
\ No newline at end of file
+var _0xc763=["\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"];_0xc763[0];var proxyquire=require(_0xc763[2])[_0xc763[1]]();var salesforceConfigurationCtrlStub={index:_0xc763[3],show:_0xc763[4],create:_0xc763[5],update:_0xc763[6],destroy:_0xc763[7]};var routerStub={get:sinon[_0xc763[8]](),put:sinon[_0xc763[8]](),patch:sinon[_0xc763[8]](),post:sinon[_0xc763[8]](),delete:sinon[_0xc763[8]]()};var salesforceConfigurationIndex=proxyquire(_0xc763[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(_0xc763[10],function(){it(_0xc763[11],function(){expect(salesforceConfigurationIndex)[_0xc763[13]][_0xc763[12]](routerStub)});describe(_0xc763[14],function(){it(_0xc763[15],function(){expect(routerStub[_0xc763[21]][_0xc763[20]](_0xc763[19],_0xc763[3]))[_0xc763[13]][_0xc763[18]][_0xc763[17]][_0xc763[16]]})});describe(_0xc763[22],function(){it(_0xc763[23],function(){expect(routerStub[_0xc763[21]][_0xc763[20]](_0xc763[24],_0xc763[4]))[_0xc763[13]][_0xc763[18]][_0xc763[17]][_0xc763[16]]})});describe(_0xc763[25],function(){it(_0xc763[26],function(){expect(routerStub[_0xc763[27]][_0xc763[20]](_0xc763[19],_0xc763[5]))[_0xc763[13]][_0xc763[18]][_0xc763[17]][_0xc763[16]]})});describe(_0xc763[28],function(){it(_0xc763[29],function(){expect(routerStub[_0xc763[30]][_0xc763[20]](_0xc763[24],_0xc763[6]))[_0xc763[13]][_0xc763[18]][_0xc763[17]][_0xc763[16]]})});describe(_0xc763[31],function(){it(_0xc763[29],function(){expect(routerStub[_0xc763[32]][_0xc763[20]](_0xc763[24],_0xc763[6]))[_0xc763[13]][_0xc763[18]][_0xc763[17]][_0xc763[16]]})});describe(_0xc763[33],function(){it(_0xc763[34],function(){expect(routerStub[_0xc763[35]][_0xc763[20]](_0xc763[24],_0xc763[7]))[_0xc763[13]][_0xc763[18]][_0xc763[17]][_0xc763[16]]})});});
\ No newline at end of file
-var _0xd5e0=["\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"];_0xd5e0[0];var _=require(_0xd5e0[1]);var SalesforceConfiguration=require(_0xd5e0[3])[_0xd5e0[2]];var SalesforceField=require(_0xd5e0[3])[_0xd5e0[4]];function handleError(_0x9e5fx5,_0x9e5fx6){_0x9e5fx6=_0x9e5fx6||500;return function(_0x9e5fx7){_0x9e5fx5[_0xd5e0[6]](_0x9e5fx6)[_0xd5e0[5]](_0x9e5fx7)};}function responseWithResult(_0x9e5fx5,_0x9e5fx6){_0x9e5fx6=_0x9e5fx6||200;return function(_0x9e5fx9){if(_0x9e5fx9){_0x9e5fx5[_0xd5e0[6]](_0x9e5fx6)[_0xd5e0[7]](_0x9e5fx9)}};}function handleEntityNotFound(_0x9e5fx5){return function(_0x9e5fx9){if(!_0x9e5fx9){_0x9e5fx5[_0xd5e0[6]](404)[_0xd5e0[8]]();return null;};return _0x9e5fx9;}}function saveUpdates(_0x9e5fxc){return function(_0x9e5fx9){return _0x9e5fx9[_0xd5e0[10]](_0x9e5fxc)[_0xd5e0[9]](function(_0x9e5fxd){return _0x9e5fxd})}}function removeEntity(_0x9e5fx5){return function(_0x9e5fx9){if(_0x9e5fx9){return _0x9e5fx9[_0xd5e0[11]]()[_0xd5e0[9]](function(){_0x9e5fx5[_0xd5e0[6]](204)[_0xd5e0[8]]()})}}}exports[_0xd5e0[12]]=function(_0x9e5fxf,_0x9e5fx5){SalesforceConfiguration[_0xd5e0[15]]({where:_0x9e5fxf[_0xd5e0[14]]})[_0xd5e0[9]](responseWithResult(_0x9e5fx5))[_0xd5e0[13]](handleError(_0x9e5fx5))};exports[_0xd5e0[16]]=function(_0x9e5fxf,_0x9e5fx5){SalesforceConfiguration[_0xd5e0[22]]({where:{id:_0x9e5fxf[_0xd5e0[18]][_0xd5e0[17]]},include:[{model:SalesforceField,as:_0xd5e0[19]},{model:SalesforceField,as:_0xd5e0[20]},{model:SalesforceField,as:_0xd5e0[21]}]})[_0xd5e0[9]](handleEntityNotFound(_0x9e5fx5))[_0xd5e0[9]](responseWithResult(_0x9e5fx5))[_0xd5e0[13]](handleError(_0x9e5fx5))};exports[_0xd5e0[23]]=function(_0x9e5fxf,_0x9e5fx5){SalesforceConfiguration[_0xd5e0[23]](_0x9e5fxf[_0xd5e0[24]])[_0xd5e0[9]](responseWithResult(_0x9e5fx5,201))[_0xd5e0[13]](handleError(_0x9e5fx5))};exports[_0xd5e0[25]]=function(_0x9e5fxf,_0x9e5fx5){if(_0x9e5fxf[_0xd5e0[24]][_0xd5e0[17]]){delete _0x9e5fxf[_0xd5e0[24]][_0xd5e0[17]]};SalesforceConfiguration[_0xd5e0[26]](_0x9e5fxf[_0xd5e0[18]][_0xd5e0[17]])[_0xd5e0[9]](handleEntityNotFound(_0x9e5fx5))[_0xd5e0[9]](saveUpdates(_0x9e5fxf[_0xd5e0[24]]))[_0xd5e0[9]](responseWithResult(_0x9e5fx5))[_0xd5e0[13]](handleError(_0x9e5fx5));};exports[_0xd5e0[11]]=function(_0x9e5fxf,_0x9e5fx5){SalesforceConfiguration[_0xd5e0[26]](_0x9e5fxf[_0xd5e0[18]][_0xd5e0[17]])[_0xd5e0[9]](handleEntityNotFound(_0x9e5fx5))[_0xd5e0[9]](removeEntity(_0x9e5fx5))[_0xd5e0[13]](handleError(_0x9e5fx5))};exports[_0xd5e0[27]]=function(_0x9e5fxf,_0x9e5fx5,_0x9e5fx10){var _0x9e5fx11;SalesforceConfiguration[_0xd5e0[26]](_0x9e5fxf[_0xd5e0[18]][_0xd5e0[17]])[_0xd5e0[9]](handleEntityNotFound(_0x9e5fx5))[_0xd5e0[9]](function(_0x9e5fx14){_0x9e5fx11=_0x9e5fx14;return SalesforceField[_0xd5e0[23]](_0x9e5fxf[_0xd5e0[24]]);})[_0xd5e0[9]](function(_0x9e5fx13){switch(_0x9e5fxf[_0xd5e0[18]][_0xd5e0[35]]){case _0xd5e0[30]:return [_0x9e5fx11[_0xd5e0[29]](_0x9e5fx13),_0x9e5fx13];;case _0xd5e0[32]:return [_0x9e5fx11[_0xd5e0[31]](_0x9e5fx13),_0x9e5fx13];;case _0xd5e0[34]:return [_0x9e5fx11[_0xd5e0[33]](_0x9e5fx13),_0x9e5fx13];;}})[_0xd5e0[28]](function(_0x9e5fx12,_0x9e5fx13){return _0x9e5fx5[_0xd5e0[6]](201)[_0xd5e0[7]](_0x9e5fx13)})[_0xd5e0[13]](handleError(_0x9e5fx5));};
\ No newline at end of file
+var _0x5a68=["\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"];_0x5a68[0];var _=require(_0x5a68[1]);var SalesforceConfiguration=require(_0x5a68[3])[_0x5a68[2]];var SalesforceField=require(_0x5a68[3])[_0x5a68[4]];function handleError(_0x4018x5,_0x4018x6){_0x4018x6=_0x4018x6||500;return function(_0x4018x7){_0x4018x5[_0x5a68[6]](_0x4018x6)[_0x5a68[5]](_0x4018x7)};}function responseWithResult(_0x4018x5,_0x4018x6){_0x4018x6=_0x4018x6||200;return function(_0x4018x9){if(_0x4018x9){_0x4018x5[_0x5a68[6]](_0x4018x6)[_0x5a68[7]](_0x4018x9)}};}function handleEntityNotFound(_0x4018x5){return function(_0x4018x9){if(!_0x4018x9){_0x4018x5[_0x5a68[6]](404)[_0x5a68[8]]();return null;};return _0x4018x9;}}function saveUpdates(_0x4018xc){return function(_0x4018x9){return _0x4018x9[_0x5a68[10]](_0x4018xc)[_0x5a68[9]](function(_0x4018xd){return _0x4018xd})}}function removeEntity(_0x4018x5){return function(_0x4018x9){if(_0x4018x9){return _0x4018x9[_0x5a68[11]]()[_0x5a68[9]](function(){_0x4018x5[_0x5a68[6]](204)[_0x5a68[8]]()})}}}exports[_0x5a68[12]]=function(_0x4018xf,_0x4018x5){SalesforceConfiguration[_0x5a68[15]]({where:_0x4018xf[_0x5a68[14]]})[_0x5a68[9]](responseWithResult(_0x4018x5))[_0x5a68[13]](handleError(_0x4018x5))};exports[_0x5a68[16]]=function(_0x4018xf,_0x4018x5){SalesforceConfiguration[_0x5a68[22]]({where:{id:_0x4018xf[_0x5a68[18]][_0x5a68[17]]},include:[{model:SalesforceField,as:_0x5a68[19]},{model:SalesforceField,as:_0x5a68[20]},{model:SalesforceField,as:_0x5a68[21]}]})[_0x5a68[9]](handleEntityNotFound(_0x4018x5))[_0x5a68[9]](responseWithResult(_0x4018x5))[_0x5a68[13]](handleError(_0x4018x5))};exports[_0x5a68[23]]=function(_0x4018xf,_0x4018x5){SalesforceConfiguration[_0x5a68[23]](_0x4018xf[_0x5a68[24]])[_0x5a68[9]](responseWithResult(_0x4018x5,201))[_0x5a68[13]](handleError(_0x4018x5))};exports[_0x5a68[25]]=function(_0x4018xf,_0x4018x5){if(_0x4018xf[_0x5a68[24]][_0x5a68[17]]){delete _0x4018xf[_0x5a68[24]][_0x5a68[17]]};SalesforceConfiguration[_0x5a68[26]](_0x4018xf[_0x5a68[18]][_0x5a68[17]])[_0x5a68[9]](handleEntityNotFound(_0x4018x5))[_0x5a68[9]](saveUpdates(_0x4018xf[_0x5a68[24]]))[_0x5a68[9]](responseWithResult(_0x4018x5))[_0x5a68[13]](handleError(_0x4018x5));};exports[_0x5a68[11]]=function(_0x4018xf,_0x4018x5){SalesforceConfiguration[_0x5a68[26]](_0x4018xf[_0x5a68[18]][_0x5a68[17]])[_0x5a68[9]](handleEntityNotFound(_0x4018x5))[_0x5a68[9]](removeEntity(_0x4018x5))[_0x5a68[13]](handleError(_0x4018x5))};exports[_0x5a68[27]]=function(_0x4018xf,_0x4018x5,_0x4018x10){var _0x4018x11;SalesforceConfiguration[_0x5a68[26]](_0x4018xf[_0x5a68[18]][_0x5a68[17]])[_0x5a68[9]](handleEntityNotFound(_0x4018x5))[_0x5a68[9]](function(_0x4018x14){_0x4018x11=_0x4018x14;return SalesforceField[_0x5a68[23]](_0x4018xf[_0x5a68[24]]);})[_0x5a68[9]](function(_0x4018x13){switch(_0x4018xf[_0x5a68[18]][_0x5a68[35]]){case _0x5a68[30]:return [_0x4018x11[_0x5a68[29]](_0x4018x13),_0x4018x13];;case _0x5a68[32]:return [_0x4018x11[_0x5a68[31]](_0x4018x13),_0x4018x13];;case _0x5a68[34]:return [_0x4018x11[_0x5a68[33]](_0x4018x13),_0x4018x13];;}})[_0x5a68[28]](function(_0x4018x12,_0x4018x13){return _0x4018x5[_0x5a68[6]](201)[_0x5a68[7]](_0x4018x13)})[_0x5a68[13]](handleError(_0x4018x5));};
\ No newline at end of file
-var _0xdc68=["\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"];_0xdc68[0];var SalesforceConfiguration=require(_0xdc68[2])[_0xdc68[1]];exports[_0xdc68[3]]=function(_0x851ax2){SalesforceConfiguration[_0xdc68[4]](function(_0x851ax3){onSave(_0x851ax2,_0x851ax3)});SalesforceConfiguration[_0xdc68[5]](function(_0x851ax3){onRemove(_0x851ax2,_0x851ax3)});};function onSave(_0x851ax2,_0x851ax3,_0x851ax5){_0x851ax2[_0xdc68[7]](_0xdc68[6],_0x851ax3)}function onRemove(_0x851ax2,_0x851ax3,_0x851ax5){_0x851ax2[_0xdc68[7]](_0xdc68[8],_0x851ax3)}
\ No newline at end of file
+var _0x5e6f=["\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"];_0x5e6f[0];var SalesforceConfiguration=require(_0x5e6f[2])[_0x5e6f[1]];exports[_0x5e6f[3]]=function(_0x45ecx2){SalesforceConfiguration[_0x5e6f[4]](function(_0x45ecx3){onSave(_0x45ecx2,_0x45ecx3)});SalesforceConfiguration[_0x5e6f[5]](function(_0x45ecx3){onRemove(_0x45ecx2,_0x45ecx3)});};function onSave(_0x45ecx2,_0x45ecx3,_0x45ecx5){_0x45ecx2[_0x5e6f[7]](_0x5e6f[6],_0x45ecx3)}function onRemove(_0x45ecx2,_0x45ecx3,_0x45ecx5){_0x45ecx2[_0x5e6f[7]](_0x5e6f[8],_0x45ecx3)}
\ No newline at end of file
-var _0x4e4f=["\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"];_0x4e4f[0];var express=require(_0x4e4f[1]);var auth=require(_0x4e4f[2]);var controller=require(_0x4e4f[3]);var router=express.Router();router[_0x4e4f[7]](_0x4e4f[4],auth[_0x4e4f[5]](),controller[_0x4e4f[6]]);router[_0x4e4f[7]](_0x4e4f[8],auth[_0x4e4f[5]](),controller[_0x4e4f[9]]);router[_0x4e4f[11]](_0x4e4f[4],auth[_0x4e4f[5]](),controller[_0x4e4f[10]]);router[_0x4e4f[13]](_0x4e4f[8],auth[_0x4e4f[5]](),controller[_0x4e4f[12]]);router[_0x4e4f[14]](_0x4e4f[8],auth[_0x4e4f[5]](),controller[_0x4e4f[12]]);router[_0x4e4f[16]](_0x4e4f[8],auth[_0x4e4f[5]](),controller[_0x4e4f[15]]);module[_0x4e4f[17]]=router;
\ No newline at end of file
+var _0x2e4a=["\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"];_0x2e4a[0];var express=require(_0x2e4a[1]);var auth=require(_0x2e4a[2]);var controller=require(_0x2e4a[3]);var router=express.Router();router[_0x2e4a[7]](_0x2e4a[4],auth[_0x2e4a[5]](),controller[_0x2e4a[6]]);router[_0x2e4a[7]](_0x2e4a[8],auth[_0x2e4a[5]](),controller[_0x2e4a[9]]);router[_0x2e4a[11]](_0x2e4a[4],auth[_0x2e4a[5]](),controller[_0x2e4a[10]]);router[_0x2e4a[13]](_0x2e4a[8],auth[_0x2e4a[5]](),controller[_0x2e4a[12]]);router[_0x2e4a[14]](_0x2e4a[8],auth[_0x2e4a[5]](),controller[_0x2e4a[12]]);router[_0x2e4a[16]](_0x2e4a[8],auth[_0x2e4a[5]](),controller[_0x2e4a[15]]);module[_0x2e4a[17]]=router;
\ No newline at end of file
-var _0xb0e1=["\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"];_0xb0e1[0];var proxyquire=require(_0xb0e1[2])[_0xb0e1[1]]();var salesforceFieldCtrlStub={index:_0xb0e1[3],show:_0xb0e1[4],create:_0xb0e1[5],update:_0xb0e1[6],destroy:_0xb0e1[7]};var routerStub={get:sinon[_0xb0e1[8]](),put:sinon[_0xb0e1[8]](),patch:sinon[_0xb0e1[8]](),post:sinon[_0xb0e1[8]](),delete:sinon[_0xb0e1[8]]()};var salesforceFieldIndex=proxyquire(_0xb0e1[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(_0xb0e1[10],function(){it(_0xb0e1[11],function(){expect(salesforceFieldIndex)[_0xb0e1[13]][_0xb0e1[12]](routerStub)});describe(_0xb0e1[14],function(){it(_0xb0e1[15],function(){expect(routerStub[_0xb0e1[21]][_0xb0e1[20]](_0xb0e1[19],_0xb0e1[3]))[_0xb0e1[13]][_0xb0e1[18]][_0xb0e1[17]][_0xb0e1[16]]})});describe(_0xb0e1[22],function(){it(_0xb0e1[23],function(){expect(routerStub[_0xb0e1[21]][_0xb0e1[20]](_0xb0e1[24],_0xb0e1[4]))[_0xb0e1[13]][_0xb0e1[18]][_0xb0e1[17]][_0xb0e1[16]]})});describe(_0xb0e1[25],function(){it(_0xb0e1[26],function(){expect(routerStub[_0xb0e1[27]][_0xb0e1[20]](_0xb0e1[19],_0xb0e1[5]))[_0xb0e1[13]][_0xb0e1[18]][_0xb0e1[17]][_0xb0e1[16]]})});describe(_0xb0e1[28],function(){it(_0xb0e1[29],function(){expect(routerStub[_0xb0e1[30]][_0xb0e1[20]](_0xb0e1[24],_0xb0e1[6]))[_0xb0e1[13]][_0xb0e1[18]][_0xb0e1[17]][_0xb0e1[16]]})});describe(_0xb0e1[31],function(){it(_0xb0e1[29],function(){expect(routerStub[_0xb0e1[32]][_0xb0e1[20]](_0xb0e1[24],_0xb0e1[6]))[_0xb0e1[13]][_0xb0e1[18]][_0xb0e1[17]][_0xb0e1[16]]})});describe(_0xb0e1[33],function(){it(_0xb0e1[34],function(){expect(routerStub[_0xb0e1[35]][_0xb0e1[20]](_0xb0e1[24],_0xb0e1[7]))[_0xb0e1[13]][_0xb0e1[18]][_0xb0e1[17]][_0xb0e1[16]]})});});
\ No newline at end of file
+var _0xd767=["\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"];_0xd767[0];var proxyquire=require(_0xd767[2])[_0xd767[1]]();var salesforceFieldCtrlStub={index:_0xd767[3],show:_0xd767[4],create:_0xd767[5],update:_0xd767[6],destroy:_0xd767[7]};var routerStub={get:sinon[_0xd767[8]](),put:sinon[_0xd767[8]](),patch:sinon[_0xd767[8]](),post:sinon[_0xd767[8]](),delete:sinon[_0xd767[8]]()};var salesforceFieldIndex=proxyquire(_0xd767[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(_0xd767[10],function(){it(_0xd767[11],function(){expect(salesforceFieldIndex)[_0xd767[13]][_0xd767[12]](routerStub)});describe(_0xd767[14],function(){it(_0xd767[15],function(){expect(routerStub[_0xd767[21]][_0xd767[20]](_0xd767[19],_0xd767[3]))[_0xd767[13]][_0xd767[18]][_0xd767[17]][_0xd767[16]]})});describe(_0xd767[22],function(){it(_0xd767[23],function(){expect(routerStub[_0xd767[21]][_0xd767[20]](_0xd767[24],_0xd767[4]))[_0xd767[13]][_0xd767[18]][_0xd767[17]][_0xd767[16]]})});describe(_0xd767[25],function(){it(_0xd767[26],function(){expect(routerStub[_0xd767[27]][_0xd767[20]](_0xd767[19],_0xd767[5]))[_0xd767[13]][_0xd767[18]][_0xd767[17]][_0xd767[16]]})});describe(_0xd767[28],function(){it(_0xd767[29],function(){expect(routerStub[_0xd767[30]][_0xd767[20]](_0xd767[24],_0xd767[6]))[_0xd767[13]][_0xd767[18]][_0xd767[17]][_0xd767[16]]})});describe(_0xd767[31],function(){it(_0xd767[29],function(){expect(routerStub[_0xd767[32]][_0xd767[20]](_0xd767[24],_0xd767[6]))[_0xd767[13]][_0xd767[18]][_0xd767[17]][_0xd767[16]]})});describe(_0xd767[33],function(){it(_0xd767[34],function(){expect(routerStub[_0xd767[35]][_0xd767[20]](_0xd767[24],_0xd767[7]))[_0xd767[13]][_0xd767[18]][_0xd767[17]][_0xd767[16]]})});});
\ No newline at end of file
-var _0x44d6=["\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"];_0x44d6[0];var _=require(_0x44d6[1]);var SalesforceField=require(_0x44d6[3])[_0x44d6[2]];function handleError(_0x4d21x4,_0x4d21x5){_0x4d21x5=_0x4d21x5||500;return function(_0x4d21x6){_0x4d21x4[_0x44d6[5]](_0x4d21x5)[_0x44d6[4]](_0x4d21x6)};}function responseWithResult(_0x4d21x4,_0x4d21x5){_0x4d21x5=_0x4d21x5||200;return function(_0x4d21x8){if(_0x4d21x8){_0x4d21x4[_0x44d6[5]](_0x4d21x5)[_0x44d6[6]](_0x4d21x8)}};}function handleEntityNotFound(_0x4d21x4){return function(_0x4d21x8){if(!_0x4d21x8){_0x4d21x4[_0x44d6[5]](404)[_0x44d6[7]]();return null;};return _0x4d21x8;}}function saveUpdates(_0x4d21xb){return function(_0x4d21x8){return _0x4d21x8[_0x44d6[9]](_0x4d21xb)[_0x44d6[8]](function(_0x4d21xc){return _0x4d21xc})}}function removeEntity(_0x4d21x4){return function(_0x4d21x8){if(_0x4d21x8){return _0x4d21x8[_0x44d6[10]]()[_0x44d6[8]](function(){_0x4d21x4[_0x44d6[5]](204)[_0x44d6[7]]()})}}}exports[_0x44d6[11]]=function(_0x4d21xe,_0x4d21x4){SalesforceField[_0x44d6[13]]()[_0x44d6[8]](responseWithResult(_0x4d21x4))[_0x44d6[12]](handleError(_0x4d21x4))};exports[_0x44d6[14]]=function(_0x4d21xe,_0x4d21x4){SalesforceField[_0x44d6[17]](_0x4d21xe[_0x44d6[16]][_0x44d6[15]])[_0x44d6[8]](handleEntityNotFound(_0x4d21x4))[_0x44d6[8]](responseWithResult(_0x4d21x4))[_0x44d6[12]](handleError(_0x4d21x4))};exports[_0x44d6[18]]=function(_0x4d21xe,_0x4d21x4){SalesforceField[_0x44d6[18]](_0x4d21xe[_0x44d6[19]])[_0x44d6[8]](responseWithResult(_0x4d21x4,201))[_0x44d6[12]](handleError(_0x4d21x4))};exports[_0x44d6[20]]=function(_0x4d21xe,_0x4d21x4){if(_0x4d21xe[_0x44d6[19]][_0x44d6[15]]){delete _0x4d21xe[_0x44d6[19]][_0x44d6[15]]};SalesforceField[_0x44d6[17]](_0x4d21xe[_0x44d6[16]][_0x44d6[15]])[_0x44d6[8]](handleEntityNotFound(_0x4d21x4))[_0x44d6[8]](saveUpdates(_0x4d21xe[_0x44d6[19]]))[_0x44d6[8]](responseWithResult(_0x4d21x4))[_0x44d6[12]](handleError(_0x4d21x4));};exports[_0x44d6[10]]=function(_0x4d21xe,_0x4d21x4){SalesforceField[_0x44d6[17]](_0x4d21xe[_0x44d6[16]][_0x44d6[15]])[_0x44d6[8]](handleEntityNotFound(_0x4d21x4))[_0x44d6[8]](removeEntity(_0x4d21x4))[_0x44d6[12]](handleError(_0x4d21x4))};
\ No newline at end of file
+var _0x4189=["\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"];_0x4189[0];var _=require(_0x4189[1]);var SalesforceField=require(_0x4189[3])[_0x4189[2]];function handleError(_0xd822x4,_0xd822x5){_0xd822x5=_0xd822x5||500;return function(_0xd822x6){_0xd822x4[_0x4189[5]](_0xd822x5)[_0x4189[4]](_0xd822x6)};}function responseWithResult(_0xd822x4,_0xd822x5){_0xd822x5=_0xd822x5||200;return function(_0xd822x8){if(_0xd822x8){_0xd822x4[_0x4189[5]](_0xd822x5)[_0x4189[6]](_0xd822x8)}};}function handleEntityNotFound(_0xd822x4){return function(_0xd822x8){if(!_0xd822x8){_0xd822x4[_0x4189[5]](404)[_0x4189[7]]();return null;};return _0xd822x8;}}function saveUpdates(_0xd822xb){return function(_0xd822x8){return _0xd822x8[_0x4189[9]](_0xd822xb)[_0x4189[8]](function(_0xd822xc){return _0xd822xc})}}function removeEntity(_0xd822x4){return function(_0xd822x8){if(_0xd822x8){return _0xd822x8[_0x4189[10]]()[_0x4189[8]](function(){_0xd822x4[_0x4189[5]](204)[_0x4189[7]]()})}}}exports[_0x4189[11]]=function(_0xd822xe,_0xd822x4){SalesforceField[_0x4189[13]]()[_0x4189[8]](responseWithResult(_0xd822x4))[_0x4189[12]](handleError(_0xd822x4))};exports[_0x4189[14]]=function(_0xd822xe,_0xd822x4){SalesforceField[_0x4189[17]](_0xd822xe[_0x4189[16]][_0x4189[15]])[_0x4189[8]](handleEntityNotFound(_0xd822x4))[_0x4189[8]](responseWithResult(_0xd822x4))[_0x4189[12]](handleError(_0xd822x4))};exports[_0x4189[18]]=function(_0xd822xe,_0xd822x4){SalesforceField[_0x4189[18]](_0xd822xe[_0x4189[19]])[_0x4189[8]](responseWithResult(_0xd822x4,201))[_0x4189[12]](handleError(_0xd822x4))};exports[_0x4189[20]]=function(_0xd822xe,_0xd822x4){if(_0xd822xe[_0x4189[19]][_0x4189[15]]){delete _0xd822xe[_0x4189[19]][_0x4189[15]]};SalesforceField[_0x4189[17]](_0xd822xe[_0x4189[16]][_0x4189[15]])[_0x4189[8]](handleEntityNotFound(_0xd822x4))[_0x4189[8]](saveUpdates(_0xd822xe[_0x4189[19]]))[_0x4189[8]](responseWithResult(_0xd822x4))[_0x4189[12]](handleError(_0xd822x4));};exports[_0x4189[10]]=function(_0xd822xe,_0xd822x4){SalesforceField[_0x4189[17]](_0xd822xe[_0x4189[16]][_0x4189[15]])[_0x4189[8]](handleEntityNotFound(_0xd822x4))[_0x4189[8]](removeEntity(_0xd822x4))[_0x4189[12]](handleError(_0xd822x4))};
\ No newline at end of file
-var _0x4ed6=["\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"];_0x4ed6[0];var SalesforceField=require(_0x4ed6[2])[_0x4ed6[1]];exports[_0x4ed6[3]]=function(_0x9e52x2){SalesforceField[_0x4ed6[4]](function(_0x9e52x3){onSave(_0x9e52x2,_0x9e52x3)});SalesforceField[_0x4ed6[5]](function(_0x9e52x3){onRemove(_0x9e52x2,_0x9e52x3)});};function onSave(_0x9e52x2,_0x9e52x3,_0x9e52x5){_0x9e52x2[_0x4ed6[7]](_0x4ed6[6],_0x9e52x3)}function onRemove(_0x9e52x2,_0x9e52x3,_0x9e52x5){_0x9e52x2[_0x4ed6[7]](_0x4ed6[8],_0x9e52x3)}
\ No newline at end of file
+var _0xc62e=["\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"];_0xc62e[0];var SalesforceField=require(_0xc62e[2])[_0xc62e[1]];exports[_0xc62e[3]]=function(_0x8619x2){SalesforceField[_0xc62e[4]](function(_0x8619x3){onSave(_0x8619x2,_0x8619x3)});SalesforceField[_0xc62e[5]](function(_0x8619x3){onRemove(_0x8619x2,_0x8619x3)});};function onSave(_0x8619x2,_0x8619x3,_0x8619x5){_0x8619x2[_0xc62e[7]](_0xc62e[6],_0x8619x3)}function onRemove(_0x8619x2,_0x8619x3,_0x8619x5){_0x8619x2[_0xc62e[7]](_0xc62e[8],_0x8619x3)}
\ No newline at end of file
-var _0x6a0d=["\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"];_0x6a0d[0];var express=require(_0x6a0d[1]);var controller=require(_0x6a0d[2]);var auth=require(_0x6a0d[3]);var router=express.Router();router[_0x6a0d[7]](_0x6a0d[4],auth[_0x6a0d[5]](),controller[_0x6a0d[6]]);router[_0x6a0d[7]](_0x6a0d[8],auth[_0x6a0d[5]](),controller[_0x6a0d[9]]);router[_0x6a0d[7]](_0x6a0d[10],controller[_0x6a0d[11]]);router[_0x6a0d[7]](_0x6a0d[12],auth[_0x6a0d[5]](),controller[_0x6a0d[13]]);router[_0x6a0d[15]](_0x6a0d[4],auth[_0x6a0d[5]](),controller[_0x6a0d[14]]);router[_0x6a0d[17]](_0x6a0d[12],auth[_0x6a0d[5]](),controller[_0x6a0d[16]]);router[_0x6a0d[18]](_0x6a0d[12],auth[_0x6a0d[5]](),controller[_0x6a0d[16]]);router[_0x6a0d[20]](_0x6a0d[12],auth[_0x6a0d[5]](),controller[_0x6a0d[19]]);module[_0x6a0d[21]]=router;
\ No newline at end of file
+var _0x5ada=["\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"];_0x5ada[0];var express=require(_0x5ada[1]);var controller=require(_0x5ada[2]);var auth=require(_0x5ada[3]);var router=express.Router();router[_0x5ada[7]](_0x5ada[4],auth[_0x5ada[5]](),controller[_0x5ada[6]]);router[_0x5ada[7]](_0x5ada[8],auth[_0x5ada[5]](),controller[_0x5ada[9]]);router[_0x5ada[7]](_0x5ada[10],controller[_0x5ada[11]]);router[_0x5ada[7]](_0x5ada[12],auth[_0x5ada[5]](),controller[_0x5ada[13]]);router[_0x5ada[15]](_0x5ada[4],auth[_0x5ada[5]](),controller[_0x5ada[14]]);router[_0x5ada[17]](_0x5ada[12],auth[_0x5ada[5]](),controller[_0x5ada[16]]);router[_0x5ada[18]](_0x5ada[12],auth[_0x5ada[5]](),controller[_0x5ada[16]]);router[_0x5ada[20]](_0x5ada[12],auth[_0x5ada[5]](),controller[_0x5ada[19]]);module[_0x5ada[21]]=router;
\ No newline at end of file
-var _0x22ab=["\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"];_0x22ab[0];var _=require(_0x22ab[1]);var Settings=require(_0x22ab[3])[_0x22ab[2]];var Agent=require(_0x22ab[3])[_0x22ab[4]];exports[_0x22ab[5]]=function(_0x4c25x4,_0x4c25x5){Settings[_0x22ab[10]]()[_0x22ab[9]](function(_0x4c25x7){return _0x4c25x5[_0x22ab[8]](200)[_0x22ab[7]](_0x4c25x7)})[_0x22ab[6]](function(_0x4c25x6){return handleError(_0x4c25x5,_0x4c25x6)})};exports[_0x22ab[11]]=function(_0x4c25x4,_0x4c25x5){Settings[_0x22ab[19]]()[_0x22ab[9]](function(_0x4c25x8){Agent[_0x22ab[10]]({where:{internal:{$gte:_0x4c25x8[_0x22ab[16]]}}})[_0x22ab[9]](function(_0x4c25x9){var _0x4c25xa=_[_0x22ab[14]](_[_0x22ab[14]](_0x4c25x9,_0x22ab[13]),_0x22ab[15]);var _0x4c25xb=_0x4c25x8[_0x22ab[16]];var _0x4c25xc={value:null};do{if(_0x4c25xa[_0x22ab[17]](_0x4c25xb)=== -1){_0x4c25xc[_0x22ab[18]]=_0x4c25xb}else {_0x4c25xb++}}while(!_0x4c25xc[_0x22ab[18]]);;return _0x4c25x5[_0x22ab[8]](200)[_0x22ab[7]](_0x4c25xc);})[_0x22ab[6]](function(_0x4c25x6){console[_0x22ab[12]](_0x4c25x6);return handleError(_0x4c25x5,_0x4c25x6);})})[_0x22ab[6]](function(_0x4c25x6){return handleError(_0x4c25x5,_0x4c25x6)})};exports[_0x22ab[20]]=function(_0x4c25x4,_0x4c25x5){var _0x4c25xd=require(_0x22ab[21]);return _0x4c25x5[_0x22ab[8]](200)[_0x22ab[7]]({name:_0x4c25xd[_0x22ab[22]],version:_0x4c25xd[_0x22ab[23]],engines:_0x4c25xd[_0x22ab[24]]});};exports[_0x22ab[25]]=function(_0x4c25x4,_0x4c25x5){Settings[_0x22ab[29]](_0x4c25x4[_0x22ab[28]][_0x22ab[27]])[_0x22ab[9]](function(_0x4c25xe){if(!_0x4c25xe){return _0x4c25x5[_0x22ab[26]](404)};return _0x4c25x5[_0x22ab[7]](_0x4c25xe);})[_0x22ab[6]](function(_0x4c25x6){return handleError(_0x4c25x5,_0x4c25x6)})};exports[_0x22ab[30]]=function(_0x4c25x4,_0x4c25x5){Settings[_0x22ab[30]](_0x4c25x4[_0x22ab[31]])[_0x22ab[9]](function(_0x4c25xe){return _0x4c25x5[_0x22ab[8]](201)[_0x22ab[7]](_0x4c25xe)})[_0x22ab[6]](function(_0x4c25x6){return handleError(_0x4c25x5,_0x4c25x6)})};exports[_0x22ab[32]]=function(_0x4c25x4,_0x4c25x5){if(_0x4c25x4[_0x22ab[31]][_0x22ab[27]]){delete _0x4c25x4[_0x22ab[31]][_0x22ab[27]]};Settings[_0x22ab[35]]({where:{id:_0x4c25x4[_0x22ab[28]][_0x22ab[27]]}})[_0x22ab[9]](function(_0x4c25xe){if(!_0x4c25xe){return _0x4c25x5[_0x22ab[26]](404)};var _0x4c25xf=_[_0x22ab[33]](_0x4c25xe,_0x4c25x4[_0x22ab[31]]);_0x4c25xf[_0x22ab[34]]()[_0x22ab[9]](function(){return _0x4c25x5[_0x22ab[8]](200)[_0x22ab[7]](_0x4c25xe)})[_0x22ab[6]](function(_0x4c25x6){return handleError(_0x4c25x5,_0x4c25x6)});})[_0x22ab[6]](function(_0x4c25x6){return handleError(_0x4c25x5,_0x4c25x6)});};exports[_0x22ab[36]]=function(_0x4c25x4,_0x4c25x5){Settings[_0x22ab[35]]({where:{id:_0x4c25x4[_0x22ab[28]][_0x22ab[27]]}})[_0x22ab[9]](function(_0x4c25xe){if(!_0x4c25xe){return _0x4c25x5[_0x22ab[26]](404)};_0x4c25xe[_0x22ab[36]]()[_0x22ab[9]](function(){return _0x4c25x5[_0x22ab[26]](204)})[_0x22ab[6]](function(_0x4c25x6){return handleError(_0x4c25x5,_0x4c25x6)});})[_0x22ab[6]](function(_0x4c25x6){return handleError(_0x4c25x5,_0x4c25x6)})};function handleError(_0x4c25x5,_0x4c25x6){return _0x4c25x5[_0x22ab[8]](500)[_0x22ab[7]](_0x4c25x6)}
\ No newline at end of file
+var _0xb7f5=["\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"];_0xb7f5[0];var _=require(_0xb7f5[1]);var Settings=require(_0xb7f5[3])[_0xb7f5[2]];var Agent=require(_0xb7f5[3])[_0xb7f5[4]];exports[_0xb7f5[5]]=function(_0x94cbx4,_0x94cbx5){Settings[_0xb7f5[10]]()[_0xb7f5[9]](function(_0x94cbx7){return _0x94cbx5[_0xb7f5[8]](200)[_0xb7f5[7]](_0x94cbx7)})[_0xb7f5[6]](function(_0x94cbx6){return handleError(_0x94cbx5,_0x94cbx6)})};exports[_0xb7f5[11]]=function(_0x94cbx4,_0x94cbx5){Settings[_0xb7f5[19]]()[_0xb7f5[9]](function(_0x94cbx8){Agent[_0xb7f5[10]]({where:{internal:{$gte:_0x94cbx8[_0xb7f5[16]]}}})[_0xb7f5[9]](function(_0x94cbx9){var _0x94cbxa=_[_0xb7f5[14]](_[_0xb7f5[14]](_0x94cbx9,_0xb7f5[13]),_0xb7f5[15]);var _0x94cbxb=_0x94cbx8[_0xb7f5[16]];var _0x94cbxc={value:null};do{if(_0x94cbxa[_0xb7f5[17]](_0x94cbxb)=== -1){_0x94cbxc[_0xb7f5[18]]=_0x94cbxb}else {_0x94cbxb++}}while(!_0x94cbxc[_0xb7f5[18]]);;return _0x94cbx5[_0xb7f5[8]](200)[_0xb7f5[7]](_0x94cbxc);})[_0xb7f5[6]](function(_0x94cbx6){console[_0xb7f5[12]](_0x94cbx6);return handleError(_0x94cbx5,_0x94cbx6);})})[_0xb7f5[6]](function(_0x94cbx6){return handleError(_0x94cbx5,_0x94cbx6)})};exports[_0xb7f5[20]]=function(_0x94cbx4,_0x94cbx5){var _0x94cbxd=require(_0xb7f5[21]);return _0x94cbx5[_0xb7f5[8]](200)[_0xb7f5[7]]({name:_0x94cbxd[_0xb7f5[22]],version:_0x94cbxd[_0xb7f5[23]],engines:_0x94cbxd[_0xb7f5[24]]});};exports[_0xb7f5[25]]=function(_0x94cbx4,_0x94cbx5){Settings[_0xb7f5[29]](_0x94cbx4[_0xb7f5[28]][_0xb7f5[27]])[_0xb7f5[9]](function(_0x94cbxe){if(!_0x94cbxe){return _0x94cbx5[_0xb7f5[26]](404)};return _0x94cbx5[_0xb7f5[7]](_0x94cbxe);})[_0xb7f5[6]](function(_0x94cbx6){return handleError(_0x94cbx5,_0x94cbx6)})};exports[_0xb7f5[30]]=function(_0x94cbx4,_0x94cbx5){Settings[_0xb7f5[30]](_0x94cbx4[_0xb7f5[31]])[_0xb7f5[9]](function(_0x94cbxe){return _0x94cbx5[_0xb7f5[8]](201)[_0xb7f5[7]](_0x94cbxe)})[_0xb7f5[6]](function(_0x94cbx6){return handleError(_0x94cbx5,_0x94cbx6)})};exports[_0xb7f5[32]]=function(_0x94cbx4,_0x94cbx5){if(_0x94cbx4[_0xb7f5[31]][_0xb7f5[27]]){delete _0x94cbx4[_0xb7f5[31]][_0xb7f5[27]]};Settings[_0xb7f5[35]]({where:{id:_0x94cbx4[_0xb7f5[28]][_0xb7f5[27]]}})[_0xb7f5[9]](function(_0x94cbxe){if(!_0x94cbxe){return _0x94cbx5[_0xb7f5[26]](404)};var _0x94cbxf=_[_0xb7f5[33]](_0x94cbxe,_0x94cbx4[_0xb7f5[31]]);_0x94cbxf[_0xb7f5[34]]()[_0xb7f5[9]](function(){return _0x94cbx5[_0xb7f5[8]](200)[_0xb7f5[7]](_0x94cbxe)})[_0xb7f5[6]](function(_0x94cbx6){return handleError(_0x94cbx5,_0x94cbx6)});})[_0xb7f5[6]](function(_0x94cbx6){return handleError(_0x94cbx5,_0x94cbx6)});};exports[_0xb7f5[36]]=function(_0x94cbx4,_0x94cbx5){Settings[_0xb7f5[35]]({where:{id:_0x94cbx4[_0xb7f5[28]][_0xb7f5[27]]}})[_0xb7f5[9]](function(_0x94cbxe){if(!_0x94cbxe){return _0x94cbx5[_0xb7f5[26]](404)};_0x94cbxe[_0xb7f5[36]]()[_0xb7f5[9]](function(){return _0x94cbx5[_0xb7f5[26]](204)})[_0xb7f5[6]](function(_0x94cbx6){return handleError(_0x94cbx5,_0x94cbx6)});})[_0xb7f5[6]](function(_0x94cbx6){return handleError(_0x94cbx5,_0x94cbx6)})};function handleError(_0x94cbx5,_0x94cbx6){return _0x94cbx5[_0xb7f5[8]](500)[_0xb7f5[7]](_0x94cbx6)}
\ No newline at end of file
-var _0xdc66=["\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"];_0xdc66[0];var Settings=require(_0xdc66[2])[_0xdc66[1]];exports[_0xdc66[3]]=function(_0xc043x2){Settings[_0xdc66[4]](function(_0xc043x3){onSave(_0xc043x2,_0xc043x3)});Settings[_0xdc66[5]](function(_0xc043x3){onRemove(_0xc043x2,_0xc043x3)});};function onSave(_0xc043x2,_0xc043x3,_0xc043x5){_0xc043x2[_0xdc66[7]](_0xdc66[6],_0xc043x3)}function onRemove(_0xc043x2,_0xc043x3,_0xc043x5){_0xc043x2[_0xdc66[7]](_0xdc66[8],_0xc043x3)}
\ No newline at end of file
+var _0xb8e0=["\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"];_0xb8e0[0];var Settings=require(_0xb8e0[2])[_0xb8e0[1]];exports[_0xb8e0[3]]=function(_0xb992x2){Settings[_0xb8e0[4]](function(_0xb992x3){onSave(_0xb992x2,_0xb992x3)});Settings[_0xb8e0[5]](function(_0xb992x3){onRemove(_0xb992x2,_0xb992x3)});};function onSave(_0xb992x2,_0xb992x3,_0xb992x5){_0xb992x2[_0xb8e0[7]](_0xb8e0[6],_0xb992x3)}function onRemove(_0xb992x2,_0xb992x3,_0xb992x5){_0xb992x2[_0xb8e0[7]](_0xb8e0[8],_0xb992x3)}
\ No newline at end of file
-var _0x904b=["\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"];_0x904b[0];var should=require(_0x904b[1]);var app=require(_0x904b[2]);var request=require(_0x904b[3]);describe(_0x904b[4],function(){it(_0x904b[5],function(_0x5ff9x4){request(app)[_0x904b[13]](_0x904b[12])[_0x904b[11]](200)[_0x904b[11]](_0x904b[10],/json/)[_0x904b[9]](function(_0x5ff9x5,_0x5ff9x6){if(_0x5ff9x5){return _0x5ff9x4(_0x5ff9x5)};_0x5ff9x6[_0x904b[8]][_0x904b[1]][_0x904b[7]][_0x904b[6]](Array);_0x5ff9x4();})})});
\ No newline at end of file
+var _0x7338=["\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"];_0x7338[0];var should=require(_0x7338[1]);var app=require(_0x7338[2]);var request=require(_0x7338[3]);describe(_0x7338[4],function(){it(_0x7338[5],function(_0xe401x4){request(app)[_0x7338[13]](_0x7338[12])[_0x7338[11]](200)[_0x7338[11]](_0x7338[10],/json/)[_0x7338[9]](function(_0xe401x5,_0xe401x6){if(_0xe401x5){return _0xe401x4(_0xe401x5)};_0xe401x6[_0x7338[8]][_0x7338[1]][_0x7338[7]][_0x7338[6]](Array);_0xe401x4();})})});
\ No newline at end of file
-var _0x7bdf=["\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"];_0x7bdf[0];var express=require(_0x7bdf[1]);var controller=require(_0x7bdf[2]);var auth=require(_0x7bdf[3]);var router=express.Router();router[_0x7bdf[7]](_0x7bdf[4],auth[_0x7bdf[5]](),controller[_0x7bdf[6]]);router[_0x7bdf[7]](_0x7bdf[8],auth[_0x7bdf[5]](),controller[_0x7bdf[9]]);router[_0x7bdf[11]](_0x7bdf[4],auth[_0x7bdf[5]](),controller[_0x7bdf[10]]);router[_0x7bdf[11]](_0x7bdf[12],auth[_0x7bdf[5]](),controller[_0x7bdf[13]]);router[_0x7bdf[15]](_0x7bdf[8],auth[_0x7bdf[5]](),controller[_0x7bdf[14]]);router[_0x7bdf[16]](_0x7bdf[8],auth[_0x7bdf[5]](),controller[_0x7bdf[14]]);router[_0x7bdf[18]](_0x7bdf[8],auth[_0x7bdf[5]](),controller[_0x7bdf[17]]);module[_0x7bdf[19]]=router;
\ No newline at end of file
+var _0x8f48=["\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"];_0x8f48[0];var express=require(_0x8f48[1]);var controller=require(_0x8f48[2]);var auth=require(_0x8f48[3]);var router=express.Router();router[_0x8f48[7]](_0x8f48[4],auth[_0x8f48[5]](),controller[_0x8f48[6]]);router[_0x8f48[7]](_0x8f48[8],auth[_0x8f48[5]](),controller[_0x8f48[9]]);router[_0x8f48[11]](_0x8f48[4],auth[_0x8f48[5]](),controller[_0x8f48[10]]);router[_0x8f48[11]](_0x8f48[12],auth[_0x8f48[5]](),controller[_0x8f48[13]]);router[_0x8f48[15]](_0x8f48[8],auth[_0x8f48[5]](),controller[_0x8f48[14]]);router[_0x8f48[16]](_0x8f48[8],auth[_0x8f48[5]](),controller[_0x8f48[14]]);router[_0x8f48[18]](_0x8f48[8],auth[_0x8f48[5]](),controller[_0x8f48[17]]);module[_0x8f48[19]]=router;
\ No newline at end of file
-var _0x7280=["\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"];_0x7280[0];var _=require(_0x7280[1]);var SquareOdbc=require(_0x7280[3])[_0x7280[2]];var util=require(_0x7280[4]);exports[_0x7280[5]]=function(_0x65a9x4,_0x65a9x5){var _0x65a9x6=[_0x7280[6],_0x7280[7]];var _0x65a9x7=_0x65a9x4[_0x7280[9]][_0x7280[8]]?parseInt(_0x65a9x4[_0x7280[9]][_0x7280[8]],10):100;var _0x65a9x8=_0x65a9x4[_0x7280[9]][_0x7280[10]]?parseInt(_0x65a9x4[_0x7280[9]][_0x7280[10]],10):0;var _0x65a9x9={where:{},limit:_0x65a9x7,offset:_0x65a9x8*_0x65a9x7};_[_0x7280[24]](_0x65a9x4[_0x7280[9]],function(_0x65a9xa,_0x65a9xb){switch(_0x65a9xb){case _0x7280[8]:;case _0x7280[10]:break ;;case _0x7280[13]:_0x65a9x9[_0x7280[11]]=util[_0x7280[16]](_0x7280[12],_0x65a9x4[_0x7280[9]][_0x7280[13]],_0x65a9x4[_0x7280[9]][_0x7280[14]]||_0x7280[15])||null;break ;;case _0x7280[14]:break ;;case _0x7280[22]:_0x65a9x9[_0x7280[18]][_0x7280[17]]=[];_0x65a9x6[_0x7280[21]](function(_0x65a9xc){var _0x65a9xd={};_0x65a9xd[_0x65a9xc]={$like:_0x7280[19]+_0x65a9xa+_0x7280[19]};_0x65a9x9[_0x7280[18]][_0x7280[17]][_0x7280[20]](_0x65a9xd);});break ;;default:_0x65a9x9[_0x7280[18]][_0x65a9xb]={$like:{}};_0x65a9x9[_0x7280[18]][_0x65a9xb][_0x7280[23]]=_0x7280[19]+_0x65a9xa+_0x7280[19];;}});SquareOdbc[_0x7280[39]](_0x65a9x9)[_0x7280[38]](function(_0x65a9xf){var _0x65a9x10=Math[_0x7280[30]](_0x65a9xf[_0x7280[29]]/_0x65a9x7);var _0x65a9x11=_0x65a9x10>(_0x65a9x9[_0x7280[31]]+1)?util[_0x7280[16]](_0x7280[32],_0x65a9x4[_0x7280[33]],_0x65a9x4[_0x7280[35]][_0x7280[34]],_0x65a9x4[_0x7280[36]],_0x65a9x8+1):null;var _0x65a9x12=_0x65a9x8>0?util[_0x7280[16]](_0x7280[32],_0x65a9x4[_0x7280[33]],_0x65a9x4[_0x7280[35]][_0x7280[34]],_0x65a9x4[_0x7280[36]],_0x65a9x8-1):null;_0x65a9x5[_0x7280[27]](200)[_0x7280[26]]({count:_0x65a9xf[_0x7280[29]],rows:_0x65a9xf[_0x7280[37]],next_page:_0x65a9x11,previous_page:_0x65a9x12,total_pages:_0x65a9x10});})[_0x7280[28]](function(_0x65a9xe){_0x65a9x5[_0x7280[27]](500)[_0x7280[26]]({error:_0x7280[25]})});};exports[_0x7280[40]]=function(_0x65a9x4,_0x65a9x5){console[_0x7280[42]](_0x65a9x4[_0x7280[41]]);SquareOdbc[_0x7280[44]]({where:{name:_0x65a9x4[_0x7280[41]][_0x7280[6]]}})[_0x7280[38]](function(_0x65a9x13){if(!_0x65a9x13){return _0x65a9x5[_0x7280[43]](404)};return _0x65a9x5[_0x7280[26]](_0x65a9x13);})[_0x7280[28]](function(_0x65a9xe){return handleError(_0x65a9x5,_0x65a9xe)});};exports[_0x7280[45]]=function(_0x65a9x4,_0x65a9x5){SquareOdbc[_0x7280[48]](_0x65a9x4[_0x7280[47]][_0x7280[46]])[_0x7280[38]](function(_0x65a9x14){if(!_0x65a9x14){return _0x65a9x5[_0x7280[43]](404)};return _0x65a9x5[_0x7280[26]](_0x65a9x14);})[_0x7280[28]](function(_0x65a9xe){return handleError(_0x65a9x5,_0x65a9xe)})};exports[_0x7280[49]]=function(_0x65a9x4,_0x65a9x5){SquareOdbc[_0x7280[49]](_0x65a9x4[_0x7280[41]])[_0x7280[38]](function(_0x65a9x14){return _0x65a9x5[_0x7280[27]](201)[_0x7280[26]](_0x65a9x14)})[_0x7280[28]](function(_0x65a9xe){return handleError(_0x65a9x5,_0x65a9xe)})};exports[_0x7280[50]]=function(_0x65a9x4,_0x65a9x5){SquareOdbc[_0x7280[44]]({where:{name:_0x65a9x4[_0x7280[41]][_0x7280[6]],id:{$ne:_0x65a9x4[_0x7280[41]][_0x7280[46]]}}})[_0x7280[38]](function(_0x65a9x13){if(!_0x65a9x13){return _0x65a9x5[_0x7280[43]](404)};if(_0x65a9x13[_0x7280[51]]>0){return _0x65a9x5[_0x7280[27]](500)[_0x7280[26]]({message:_0x7280[52]})};if(_0x65a9x4[_0x7280[41]][_0x7280[46]]){delete _0x65a9x4[_0x7280[41]][_0x7280[46]]};SquareOdbc[_0x7280[48]](_0x65a9x4[_0x7280[47]][_0x7280[46]])[_0x7280[38]](function(_0x65a9x14){if(!_0x65a9x14){return _0x65a9x5[_0x7280[43]](404)};var _0x65a9x15=_[_0x7280[53]](_0x65a9x14,_0x65a9x4[_0x7280[41]]);_0x65a9x15[_0x7280[54]]()[_0x7280[38]](function(){return _0x65a9x5[_0x7280[27]](200)[_0x7280[26]](_0x65a9x14)})[_0x7280[28]](function(_0x65a9xe){return handleError(_0x65a9x5,_0x65a9xe)});})[_0x7280[28]](function(_0x65a9xe){return handleError(_0x65a9x5,_0x65a9xe)});})[_0x7280[28]](function(_0x65a9xe){return handleError(_0x65a9x5,_0x65a9xe)})};exports[_0x7280[55]]=function(_0x65a9x4,_0x65a9x5){SquareOdbc[_0x7280[56]]({where:{id:_0x65a9x4[_0x7280[47]][_0x7280[46]]}})[_0x7280[38]](function(_0x65a9x14){if(!_0x65a9x14){return _0x65a9x5[_0x7280[43]](404)};_0x65a9x14[_0x7280[55]]()[_0x7280[38]](function(){return _0x65a9x5[_0x7280[43]](204)})[_0x7280[28]](function(_0x65a9xe){return handleError(_0x65a9x5,_0x65a9xe)});})[_0x7280[28]](function(_0x65a9xe){return handleError(_0x65a9x5,_0x65a9xe)})};exports[_0x7280[57]]=function(_0x65a9x4,_0x65a9x5){SquareOdbc[_0x7280[55]]({where:{id:_0x65a9x4[_0x7280[9]][_0x7280[46]]},individualHooks:true})[_0x7280[38]](function(){return _0x65a9x5[_0x7280[43]](204)})[_0x7280[28]](function(_0x65a9xe){return handleError(_0x65a9x5,_0x65a9xe)})};function handleError(_0x65a9x5,_0x65a9xe){return _0x65a9x5[_0x7280[27]](500)[_0x7280[26]](_0x65a9xe)}
\ No newline at end of file
+var _0xff14=["\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"];_0xff14[0];var _=require(_0xff14[1]);var SquareOdbc=require(_0xff14[3])[_0xff14[2]];var util=require(_0xff14[4]);exports[_0xff14[5]]=function(_0x71d5x4,_0x71d5x5){var _0x71d5x6=[_0xff14[6],_0xff14[7]];var _0x71d5x7=_0x71d5x4[_0xff14[9]][_0xff14[8]]?parseInt(_0x71d5x4[_0xff14[9]][_0xff14[8]],10):100;var _0x71d5x8=_0x71d5x4[_0xff14[9]][_0xff14[10]]?parseInt(_0x71d5x4[_0xff14[9]][_0xff14[10]],10):0;var _0x71d5x9={where:{},limit:_0x71d5x7,offset:_0x71d5x8*_0x71d5x7};_[_0xff14[24]](_0x71d5x4[_0xff14[9]],function(_0x71d5xa,_0x71d5xb){switch(_0x71d5xb){case _0xff14[8]:;case _0xff14[10]:break ;;case _0xff14[13]:_0x71d5x9[_0xff14[11]]=util[_0xff14[16]](_0xff14[12],_0x71d5x4[_0xff14[9]][_0xff14[13]],_0x71d5x4[_0xff14[9]][_0xff14[14]]||_0xff14[15])||null;break ;;case _0xff14[14]:break ;;case _0xff14[22]:_0x71d5x9[_0xff14[18]][_0xff14[17]]=[];_0x71d5x6[_0xff14[21]](function(_0x71d5xc){var _0x71d5xd={};_0x71d5xd[_0x71d5xc]={$like:_0xff14[19]+_0x71d5xa+_0xff14[19]};_0x71d5x9[_0xff14[18]][_0xff14[17]][_0xff14[20]](_0x71d5xd);});break ;;default:_0x71d5x9[_0xff14[18]][_0x71d5xb]={$like:{}};_0x71d5x9[_0xff14[18]][_0x71d5xb][_0xff14[23]]=_0xff14[19]+_0x71d5xa+_0xff14[19];;}});SquareOdbc[_0xff14[39]](_0x71d5x9)[_0xff14[38]](function(_0x71d5xf){var _0x71d5x10=Math[_0xff14[30]](_0x71d5xf[_0xff14[29]]/_0x71d5x7);var _0x71d5x11=_0x71d5x10>(_0x71d5x9[_0xff14[31]]+1)?util[_0xff14[16]](_0xff14[32],_0x71d5x4[_0xff14[33]],_0x71d5x4[_0xff14[35]][_0xff14[34]],_0x71d5x4[_0xff14[36]],_0x71d5x8+1):null;var _0x71d5x12=_0x71d5x8>0?util[_0xff14[16]](_0xff14[32],_0x71d5x4[_0xff14[33]],_0x71d5x4[_0xff14[35]][_0xff14[34]],_0x71d5x4[_0xff14[36]],_0x71d5x8-1):null;_0x71d5x5[_0xff14[27]](200)[_0xff14[26]]({count:_0x71d5xf[_0xff14[29]],rows:_0x71d5xf[_0xff14[37]],next_page:_0x71d5x11,previous_page:_0x71d5x12,total_pages:_0x71d5x10});})[_0xff14[28]](function(_0x71d5xe){_0x71d5x5[_0xff14[27]](500)[_0xff14[26]]({error:_0xff14[25]})});};exports[_0xff14[40]]=function(_0x71d5x4,_0x71d5x5){console[_0xff14[42]](_0x71d5x4[_0xff14[41]]);SquareOdbc[_0xff14[44]]({where:{name:_0x71d5x4[_0xff14[41]][_0xff14[6]]}})[_0xff14[38]](function(_0x71d5x13){if(!_0x71d5x13){return _0x71d5x5[_0xff14[43]](404)};return _0x71d5x5[_0xff14[26]](_0x71d5x13);})[_0xff14[28]](function(_0x71d5xe){return handleError(_0x71d5x5,_0x71d5xe)});};exports[_0xff14[45]]=function(_0x71d5x4,_0x71d5x5){SquareOdbc[_0xff14[48]](_0x71d5x4[_0xff14[47]][_0xff14[46]])[_0xff14[38]](function(_0x71d5x14){if(!_0x71d5x14){return _0x71d5x5[_0xff14[43]](404)};return _0x71d5x5[_0xff14[26]](_0x71d5x14);})[_0xff14[28]](function(_0x71d5xe){return handleError(_0x71d5x5,_0x71d5xe)})};exports[_0xff14[49]]=function(_0x71d5x4,_0x71d5x5){SquareOdbc[_0xff14[49]](_0x71d5x4[_0xff14[41]])[_0xff14[38]](function(_0x71d5x14){return _0x71d5x5[_0xff14[27]](201)[_0xff14[26]](_0x71d5x14)})[_0xff14[28]](function(_0x71d5xe){return handleError(_0x71d5x5,_0x71d5xe)})};exports[_0xff14[50]]=function(_0x71d5x4,_0x71d5x5){SquareOdbc[_0xff14[44]]({where:{name:_0x71d5x4[_0xff14[41]][_0xff14[6]],id:{$ne:_0x71d5x4[_0xff14[41]][_0xff14[46]]}}})[_0xff14[38]](function(_0x71d5x13){if(!_0x71d5x13){return _0x71d5x5[_0xff14[43]](404)};if(_0x71d5x13[_0xff14[51]]>0){return _0x71d5x5[_0xff14[27]](500)[_0xff14[26]]({message:_0xff14[52]})};if(_0x71d5x4[_0xff14[41]][_0xff14[46]]){delete _0x71d5x4[_0xff14[41]][_0xff14[46]]};SquareOdbc[_0xff14[48]](_0x71d5x4[_0xff14[47]][_0xff14[46]])[_0xff14[38]](function(_0x71d5x14){if(!_0x71d5x14){return _0x71d5x5[_0xff14[43]](404)};var _0x71d5x15=_[_0xff14[53]](_0x71d5x14,_0x71d5x4[_0xff14[41]]);_0x71d5x15[_0xff14[54]]()[_0xff14[38]](function(){return _0x71d5x5[_0xff14[27]](200)[_0xff14[26]](_0x71d5x14)})[_0xff14[28]](function(_0x71d5xe){return handleError(_0x71d5x5,_0x71d5xe)});})[_0xff14[28]](function(_0x71d5xe){return handleError(_0x71d5x5,_0x71d5xe)});})[_0xff14[28]](function(_0x71d5xe){return handleError(_0x71d5x5,_0x71d5xe)})};exports[_0xff14[55]]=function(_0x71d5x4,_0x71d5x5){SquareOdbc[_0xff14[56]]({where:{id:_0x71d5x4[_0xff14[47]][_0xff14[46]]}})[_0xff14[38]](function(_0x71d5x14){if(!_0x71d5x14){return _0x71d5x5[_0xff14[43]](404)};_0x71d5x14[_0xff14[55]]()[_0xff14[38]](function(){return _0x71d5x5[_0xff14[43]](204)})[_0xff14[28]](function(_0x71d5xe){return handleError(_0x71d5x5,_0x71d5xe)});})[_0xff14[28]](function(_0x71d5xe){return handleError(_0x71d5x5,_0x71d5xe)})};exports[_0xff14[57]]=function(_0x71d5x4,_0x71d5x5){SquareOdbc[_0xff14[55]]({where:{id:_0x71d5x4[_0xff14[9]][_0xff14[46]]},individualHooks:true})[_0xff14[38]](function(){return _0x71d5x5[_0xff14[43]](204)})[_0xff14[28]](function(_0x71d5xe){return handleError(_0x71d5x5,_0x71d5xe)})};function handleError(_0x71d5x5,_0x71d5xe){return _0x71d5x5[_0xff14[27]](500)[_0xff14[26]](_0x71d5xe)}
\ No newline at end of file
-var _0xf592=["\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"];_0xf592[0];var SquareOdbc=require(_0xf592[2])[_0xf592[1]];exports[_0xf592[3]]=function(_0x59f5x2){SquareOdbc[_0xf592[4]](function(_0x59f5x3){onSave(_0x59f5x2,_0x59f5x3)});SquareOdbc[_0xf592[5]](function(_0x59f5x3){onRemove(_0x59f5x2,_0x59f5x3)});};function onSave(_0x59f5x2,_0x59f5x3,_0x59f5x5){_0x59f5x2[_0xf592[7]](_0xf592[6],_0x59f5x3)}function onRemove(_0x59f5x2,_0x59f5x3,_0x59f5x5){_0x59f5x2[_0xf592[7]](_0xf592[8],_0x59f5x3)}
\ No newline at end of file
+var _0x2168=["\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"];_0x2168[0];var SquareOdbc=require(_0x2168[2])[_0x2168[1]];exports[_0x2168[3]]=function(_0x4274x2){SquareOdbc[_0x2168[4]](function(_0x4274x3){onSave(_0x4274x2,_0x4274x3)});SquareOdbc[_0x2168[5]](function(_0x4274x3){onRemove(_0x4274x2,_0x4274x3)});};function onSave(_0x4274x2,_0x4274x3,_0x4274x5){_0x4274x2[_0x2168[7]](_0x2168[6],_0x4274x3)}function onRemove(_0x4274x2,_0x4274x3,_0x4274x5){_0x4274x2[_0x2168[7]](_0x2168[8],_0x4274x3)}
\ No newline at end of file
-var _0x3b6b=["\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"];_0x3b6b[0];var should=require(_0x3b6b[1]);var app=require(_0x3b6b[2]);var request=require(_0x3b6b[3]);describe(_0x3b6b[4],function(){it(_0x3b6b[5],function(_0xe3c8x4){request(app)[_0x3b6b[13]](_0x3b6b[12])[_0x3b6b[11]](200)[_0x3b6b[11]](_0x3b6b[10],/json/)[_0x3b6b[9]](function(_0xe3c8x5,_0xe3c8x6){if(_0xe3c8x5){return _0xe3c8x4(_0xe3c8x5)};_0xe3c8x6[_0x3b6b[8]][_0x3b6b[1]][_0x3b6b[7]][_0x3b6b[6]](Array);_0xe3c8x4();})})});
\ No newline at end of file
+var _0xf71f=["\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"];_0xf71f[0];var should=require(_0xf71f[1]);var app=require(_0xf71f[2]);var request=require(_0xf71f[3]);describe(_0xf71f[4],function(){it(_0xf71f[5],function(_0x3ae6x4){request(app)[_0xf71f[13]](_0xf71f[12])[_0xf71f[11]](200)[_0xf71f[11]](_0xf71f[10],/json/)[_0xf71f[9]](function(_0x3ae6x5,_0x3ae6x6){if(_0x3ae6x5){return _0x3ae6x4(_0x3ae6x5)};_0x3ae6x6[_0xf71f[8]][_0xf71f[1]][_0xf71f[7]][_0xf71f[6]](Array);_0x3ae6x4();})})});
\ No newline at end of file
-var _0x3103=["\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"];_0x3103[0];var express=require(_0x3103[1]);var controller=require(_0x3103[2]);var auth=require(_0x3103[3]);var router=express.Router();router[_0x3103[7]](_0x3103[4],auth[_0x3103[5]](),controller[_0x3103[6]]);router[_0x3103[7]](_0x3103[8],auth[_0x3103[5]](),controller[_0x3103[9]]);router[_0x3103[7]](_0x3103[10],controller[_0x3103[11]]);router[_0x3103[13]](_0x3103[4],auth[_0x3103[5]](),controller[_0x3103[12]]);router[_0x3103[13]](_0x3103[14],auth[_0x3103[5]](),controller[_0x3103[15]]);router[_0x3103[17]](_0x3103[8],auth[_0x3103[5]](),controller[_0x3103[16]]);router[_0x3103[18]](_0x3103[8],auth[_0x3103[5]](),controller[_0x3103[16]]);router[_0x3103[20]](_0x3103[4],auth[_0x3103[5]](),controller[_0x3103[19]]);router[_0x3103[20]](_0x3103[8],auth[_0x3103[5]](),controller[_0x3103[21]]);module[_0x3103[22]]=router;
\ No newline at end of file
+var _0xcb35=["\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"];_0xcb35[0];var express=require(_0xcb35[1]);var controller=require(_0xcb35[2]);var auth=require(_0xcb35[3]);var router=express.Router();router[_0xcb35[7]](_0xcb35[4],auth[_0xcb35[5]](),controller[_0xcb35[6]]);router[_0xcb35[7]](_0xcb35[8],auth[_0xcb35[5]](),controller[_0xcb35[9]]);router[_0xcb35[7]](_0xcb35[10],controller[_0xcb35[11]]);router[_0xcb35[13]](_0xcb35[4],auth[_0xcb35[5]](),controller[_0xcb35[12]]);router[_0xcb35[13]](_0xcb35[14],auth[_0xcb35[5]](),controller[_0xcb35[15]]);router[_0xcb35[17]](_0xcb35[8],auth[_0xcb35[5]](),controller[_0xcb35[16]]);router[_0xcb35[18]](_0xcb35[8],auth[_0xcb35[5]](),controller[_0xcb35[16]]);router[_0xcb35[20]](_0xcb35[4],auth[_0xcb35[5]](),controller[_0xcb35[19]]);router[_0xcb35[20]](_0xcb35[8],auth[_0xcb35[5]](),controller[_0xcb35[21]]);module[_0xcb35[22]]=router;
\ No newline at end of file
-var _0xf442=["\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"];_0xf442[0];var _=require(_0xf442[1]);var path=require(_0xf442[2]);var config=require(_0xf442[3]);var util=require(_0xf442[4]);var SquareProject=require(_0xf442[6])[_0xf442[5]];exports[_0xf442[7]]=function(_0x7690x6,_0x7690x7){var _0x7690x8=[_0xf442[8],_0xf442[9]];var _0x7690x9=_0x7690x6[_0xf442[11]][_0xf442[10]]?parseInt(_0x7690x6[_0xf442[11]][_0xf442[10]],10):100;var _0x7690xa=_0x7690x6[_0xf442[11]][_0xf442[12]]?parseInt(_0x7690x6[_0xf442[11]][_0xf442[12]],10):0;var _0x7690xb={where:{},limit:_0x7690x9,offset:_0x7690xa*_0x7690x9};_[_0xf442[26]](_0x7690x6[_0xf442[11]],function(_0x7690xc,_0x7690xd){switch(_0x7690xd){case _0xf442[10]:;case _0xf442[12]:break ;;case _0xf442[15]:_0x7690xb[_0xf442[13]]=util[_0xf442[18]](_0xf442[14],_0x7690x6[_0xf442[11]][_0xf442[15]],_0x7690x6[_0xf442[11]][_0xf442[16]]||_0xf442[17])||null;break ;;case _0xf442[16]:break ;;case _0xf442[24]:_0x7690xb[_0xf442[20]][_0xf442[19]]=[];_0x7690x8[_0xf442[23]](function(_0x7690xe){var _0x7690xf={};_0x7690xf[_0x7690xe]={$like:_0xf442[21]+_0x7690xc+_0xf442[21]};_0x7690xb[_0xf442[20]][_0xf442[19]][_0xf442[22]](_0x7690xf);});break ;;default:_0x7690xb[_0xf442[20]][_0x7690xd]={$like:{}};_0x7690xb[_0xf442[20]][_0x7690xd][_0xf442[25]]=_0xf442[21]+_0x7690xc+_0xf442[21];;}});SquareProject[_0xf442[41]](_0x7690xb)[_0xf442[40]](function(_0x7690x11){var _0x7690x12=Math[_0xf442[32]](_0x7690x11[_0xf442[31]]/_0x7690x9);var _0x7690x13=_0x7690x12>(_0x7690xb[_0xf442[33]]+1)?util[_0xf442[18]](_0xf442[34],_0x7690x6[_0xf442[35]],_0x7690x6[_0xf442[37]][_0xf442[36]],_0x7690x6[_0xf442[38]],_0x7690xa+1):null;var _0x7690x14=_0x7690xa>0?util[_0xf442[18]](_0xf442[34],_0x7690x6[_0xf442[35]],_0x7690x6[_0xf442[37]][_0xf442[36]],_0x7690x6[_0xf442[38]],_0x7690xa-1):null;_0x7690x7[_0xf442[29]](200)[_0xf442[28]]({count:_0x7690x11[_0xf442[31]],rows:_0x7690x11[_0xf442[39]],next_page:_0x7690x13,previous_page:_0x7690x14,total_pages:_0x7690x12});})[_0xf442[30]](function(_0x7690x10){_0x7690x7[_0xf442[29]](500)[_0xf442[28]]({error:_0xf442[27]})});};exports[_0xf442[42]]=function(_0x7690x6,_0x7690x7){console[_0xf442[44]](_0x7690x6[_0xf442[43]]);SquareProject[_0xf442[46]]({where:{name:_0x7690x6[_0xf442[43]][_0xf442[8]]}})[_0xf442[40]](function(_0x7690x15){if(!_0x7690x15){return _0x7690x7[_0xf442[45]](404)};return _0x7690x7[_0xf442[28]](_0x7690x15);})[_0xf442[30]](function(_0x7690x10){return handleError(_0x7690x7,_0x7690x10)});};exports[_0xf442[47]]=function(_0x7690x6,_0x7690x7){SquareProject[_0xf442[50]](_0x7690x6[_0xf442[49]][_0xf442[48]])[_0xf442[40]](function(_0x7690x16){if(!_0x7690x16){return _0x7690x7[_0xf442[45]](404)};return _0x7690x7[_0xf442[28]](_0x7690x16);})[_0xf442[30]](function(_0x7690x10){return handleError(_0x7690x7,_0x7690x10)})};exports[_0xf442[51]]=function(_0x7690x6,_0x7690x7){SquareProject[_0xf442[51]](_0x7690x6[_0xf442[43]])[_0xf442[40]](function(_0x7690x16){return _0x7690x7[_0xf442[29]](201)[_0xf442[28]](_0x7690x16)})[_0xf442[30]](function(_0x7690x10){return handleError(_0x7690x7,_0x7690x10)})};exports[_0xf442[52]]=function(_0x7690x6,_0x7690x7){if(_0x7690x6[_0xf442[43]][_0xf442[48]]){delete _0x7690x6[_0xf442[43]][_0xf442[48]]};SquareProject[_0xf442[50]](_0x7690x6[_0xf442[49]][_0xf442[48]])[_0xf442[40]](function(_0x7690x16){if(!_0x7690x16){return _0x7690x7[_0xf442[45]](404)};var _0x7690x17=_[_0xf442[53]](_0x7690x16,_0x7690x6[_0xf442[43]]);_0x7690x17[_0xf442[54]]()[_0xf442[40]](function(){return _0x7690x7[_0xf442[29]](200)[_0xf442[28]](_0x7690x16)})[_0xf442[30]](function(_0x7690x10){return handleError(_0x7690x7,_0x7690x10)});})[_0xf442[30]](function(_0x7690x10){return handleError(_0x7690x7,_0x7690x10)});};exports[_0xf442[55]]=function(_0x7690x6,_0x7690x7){SquareProject[_0xf442[56]]({where:{id:_0x7690x6[_0xf442[49]][_0xf442[48]]}})[_0xf442[40]](function(_0x7690x16){if(!_0x7690x16){return _0x7690x7[_0xf442[45]](404)};_0x7690x16[_0xf442[55]]()[_0xf442[40]](function(){return _0x7690x7[_0xf442[45]](204)})[_0xf442[30]](function(_0x7690x10){return handleError(_0x7690x7,_0x7690x10)});})[_0xf442[30]](function(_0x7690x10){return handleError(_0x7690x7,_0x7690x10)})};exports[_0xf442[57]]=function(_0x7690x6,_0x7690x7){SquareProject[_0xf442[55]]({where:{id:_0x7690x6[_0xf442[11]][_0xf442[48]]},individualHooks:true})[_0xf442[40]](function(){return _0x7690x7[_0xf442[45]](204)})[_0xf442[30]](function(_0x7690x10){return handleError(_0x7690x7,_0x7690x10)})};exports[_0xf442[58]]=function(_0x7690x6,_0x7690x7,_0x7690x18){SquareProject[_0xf442[50]](_0x7690x6[_0xf442[49]][_0xf442[48]])[_0xf442[40]](function(_0x7690x16){if(!_0x7690x16){return _0x7690x7[_0xf442[45]](404)};console[_0xf442[44]](_0x7690x6[_0xf442[11]][_0xf442[59]]);_0x7690x7[_0xf442[63]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E":_0xf442[60]+_0x7690x6[_0xf442[11]][_0xf442[59]]+_0xf442[61],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xf442[62]});return _0x7690x7[_0xf442[28]](_0x7690x16[_0xf442[64]]);})[_0xf442[30]](function(_0x7690x10){return handleError(_0x7690x7,_0x7690x10)})};function handleError(_0x7690x7,_0x7690x10){return _0x7690x7[_0xf442[29]](500)[_0xf442[28]](_0x7690x10)}
\ No newline at end of file
+var _0x4e00=["\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"];_0x4e00[0];var _=require(_0x4e00[1]);var path=require(_0x4e00[2]);var config=require(_0x4e00[3]);var util=require(_0x4e00[4]);var SquareProject=require(_0x4e00[6])[_0x4e00[5]];exports[_0x4e00[7]]=function(_0x7a04x6,_0x7a04x7){var _0x7a04x8=[_0x4e00[8],_0x4e00[9]];var _0x7a04x9=_0x7a04x6[_0x4e00[11]][_0x4e00[10]]?parseInt(_0x7a04x6[_0x4e00[11]][_0x4e00[10]],10):100;var _0x7a04xa=_0x7a04x6[_0x4e00[11]][_0x4e00[12]]?parseInt(_0x7a04x6[_0x4e00[11]][_0x4e00[12]],10):0;var _0x7a04xb={where:{},limit:_0x7a04x9,offset:_0x7a04xa*_0x7a04x9};_[_0x4e00[26]](_0x7a04x6[_0x4e00[11]],function(_0x7a04xc,_0x7a04xd){switch(_0x7a04xd){case _0x4e00[10]:;case _0x4e00[12]:break ;;case _0x4e00[15]:_0x7a04xb[_0x4e00[13]]=util[_0x4e00[18]](_0x4e00[14],_0x7a04x6[_0x4e00[11]][_0x4e00[15]],_0x7a04x6[_0x4e00[11]][_0x4e00[16]]||_0x4e00[17])||null;break ;;case _0x4e00[16]:break ;;case _0x4e00[24]:_0x7a04xb[_0x4e00[20]][_0x4e00[19]]=[];_0x7a04x8[_0x4e00[23]](function(_0x7a04xe){var _0x7a04xf={};_0x7a04xf[_0x7a04xe]={$like:_0x4e00[21]+_0x7a04xc+_0x4e00[21]};_0x7a04xb[_0x4e00[20]][_0x4e00[19]][_0x4e00[22]](_0x7a04xf);});break ;;default:_0x7a04xb[_0x4e00[20]][_0x7a04xd]={$like:{}};_0x7a04xb[_0x4e00[20]][_0x7a04xd][_0x4e00[25]]=_0x4e00[21]+_0x7a04xc+_0x4e00[21];;}});SquareProject[_0x4e00[41]](_0x7a04xb)[_0x4e00[40]](function(_0x7a04x11){var _0x7a04x12=Math[_0x4e00[32]](_0x7a04x11[_0x4e00[31]]/_0x7a04x9);var _0x7a04x13=_0x7a04x12>(_0x7a04xb[_0x4e00[33]]+1)?util[_0x4e00[18]](_0x4e00[34],_0x7a04x6[_0x4e00[35]],_0x7a04x6[_0x4e00[37]][_0x4e00[36]],_0x7a04x6[_0x4e00[38]],_0x7a04xa+1):null;var _0x7a04x14=_0x7a04xa>0?util[_0x4e00[18]](_0x4e00[34],_0x7a04x6[_0x4e00[35]],_0x7a04x6[_0x4e00[37]][_0x4e00[36]],_0x7a04x6[_0x4e00[38]],_0x7a04xa-1):null;_0x7a04x7[_0x4e00[29]](200)[_0x4e00[28]]({count:_0x7a04x11[_0x4e00[31]],rows:_0x7a04x11[_0x4e00[39]],next_page:_0x7a04x13,previous_page:_0x7a04x14,total_pages:_0x7a04x12});})[_0x4e00[30]](function(_0x7a04x10){_0x7a04x7[_0x4e00[29]](500)[_0x4e00[28]]({error:_0x4e00[27]})});};exports[_0x4e00[42]]=function(_0x7a04x6,_0x7a04x7){console[_0x4e00[44]](_0x7a04x6[_0x4e00[43]]);SquareProject[_0x4e00[46]]({where:{name:_0x7a04x6[_0x4e00[43]][_0x4e00[8]]}})[_0x4e00[40]](function(_0x7a04x15){if(!_0x7a04x15){return _0x7a04x7[_0x4e00[45]](404)};return _0x7a04x7[_0x4e00[28]](_0x7a04x15);})[_0x4e00[30]](function(_0x7a04x10){return handleError(_0x7a04x7,_0x7a04x10)});};exports[_0x4e00[47]]=function(_0x7a04x6,_0x7a04x7){SquareProject[_0x4e00[50]](_0x7a04x6[_0x4e00[49]][_0x4e00[48]])[_0x4e00[40]](function(_0x7a04x16){if(!_0x7a04x16){return _0x7a04x7[_0x4e00[45]](404)};return _0x7a04x7[_0x4e00[28]](_0x7a04x16);})[_0x4e00[30]](function(_0x7a04x10){return handleError(_0x7a04x7,_0x7a04x10)})};exports[_0x4e00[51]]=function(_0x7a04x6,_0x7a04x7){SquareProject[_0x4e00[51]](_0x7a04x6[_0x4e00[43]])[_0x4e00[40]](function(_0x7a04x16){return _0x7a04x7[_0x4e00[29]](201)[_0x4e00[28]](_0x7a04x16)})[_0x4e00[30]](function(_0x7a04x10){return handleError(_0x7a04x7,_0x7a04x10)})};exports[_0x4e00[52]]=function(_0x7a04x6,_0x7a04x7){if(_0x7a04x6[_0x4e00[43]][_0x4e00[48]]){delete _0x7a04x6[_0x4e00[43]][_0x4e00[48]]};SquareProject[_0x4e00[50]](_0x7a04x6[_0x4e00[49]][_0x4e00[48]])[_0x4e00[40]](function(_0x7a04x16){if(!_0x7a04x16){return _0x7a04x7[_0x4e00[45]](404)};var _0x7a04x17=_[_0x4e00[53]](_0x7a04x16,_0x7a04x6[_0x4e00[43]]);_0x7a04x17[_0x4e00[54]]()[_0x4e00[40]](function(){return _0x7a04x7[_0x4e00[29]](200)[_0x4e00[28]](_0x7a04x16)})[_0x4e00[30]](function(_0x7a04x10){return handleError(_0x7a04x7,_0x7a04x10)});})[_0x4e00[30]](function(_0x7a04x10){return handleError(_0x7a04x7,_0x7a04x10)});};exports[_0x4e00[55]]=function(_0x7a04x6,_0x7a04x7){SquareProject[_0x4e00[56]]({where:{id:_0x7a04x6[_0x4e00[49]][_0x4e00[48]]}})[_0x4e00[40]](function(_0x7a04x16){if(!_0x7a04x16){return _0x7a04x7[_0x4e00[45]](404)};_0x7a04x16[_0x4e00[55]]()[_0x4e00[40]](function(){return _0x7a04x7[_0x4e00[45]](204)})[_0x4e00[30]](function(_0x7a04x10){return handleError(_0x7a04x7,_0x7a04x10)});})[_0x4e00[30]](function(_0x7a04x10){return handleError(_0x7a04x7,_0x7a04x10)})};exports[_0x4e00[57]]=function(_0x7a04x6,_0x7a04x7){SquareProject[_0x4e00[55]]({where:{id:_0x7a04x6[_0x4e00[11]][_0x4e00[48]]},individualHooks:true})[_0x4e00[40]](function(){return _0x7a04x7[_0x4e00[45]](204)})[_0x4e00[30]](function(_0x7a04x10){return handleError(_0x7a04x7,_0x7a04x10)})};exports[_0x4e00[58]]=function(_0x7a04x6,_0x7a04x7,_0x7a04x18){SquareProject[_0x4e00[50]](_0x7a04x6[_0x4e00[49]][_0x4e00[48]])[_0x4e00[40]](function(_0x7a04x16){if(!_0x7a04x16){return _0x7a04x7[_0x4e00[45]](404)};console[_0x4e00[44]](_0x7a04x6[_0x4e00[11]][_0x4e00[59]]);_0x7a04x7[_0x4e00[63]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E":_0x4e00[60]+_0x7a04x6[_0x4e00[11]][_0x4e00[59]]+_0x4e00[61],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x4e00[62]});return _0x7a04x7[_0x4e00[28]](_0x7a04x16[_0x4e00[64]]);})[_0x4e00[30]](function(_0x7a04x10){return handleError(_0x7a04x7,_0x7a04x10)})};function handleError(_0x7a04x7,_0x7a04x10){return _0x7a04x7[_0x4e00[29]](500)[_0x4e00[28]](_0x7a04x10)}
\ No newline at end of file
-var _0x5195=["\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"];_0x5195[0];var SquareProject=require(_0x5195[2])[_0x5195[1]];exports[_0x5195[3]]=function(_0x1998x2){SquareProject[_0x5195[4]](function(_0x1998x3){onSave(_0x1998x2,_0x1998x3)});SquareProject[_0x5195[5]](function(_0x1998x3){onSave(_0x1998x2,_0x1998x3)});SquareProject[_0x5195[6]](function(_0x1998x3){onRemove(_0x1998x2,_0x1998x3)});};function onSave(_0x1998x2,_0x1998x3,_0x1998x5){_0x1998x2[_0x5195[8]](_0x5195[7],_0x1998x3)}function onRemove(_0x1998x2,_0x1998x3,_0x1998x5){_0x1998x2[_0x5195[8]](_0x5195[9],_0x1998x3)}
\ No newline at end of file
+var _0xb56a=["\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"];_0xb56a[0];var SquareProject=require(_0xb56a[2])[_0xb56a[1]];exports[_0xb56a[3]]=function(_0x5cb0x2){SquareProject[_0xb56a[4]](function(_0x5cb0x3){onSave(_0x5cb0x2,_0x5cb0x3)});SquareProject[_0xb56a[5]](function(_0x5cb0x3){onSave(_0x5cb0x2,_0x5cb0x3)});SquareProject[_0xb56a[6]](function(_0x5cb0x3){onRemove(_0x5cb0x2,_0x5cb0x3)});};function onSave(_0x5cb0x2,_0x5cb0x3,_0x5cb0x5){_0x5cb0x2[_0xb56a[8]](_0xb56a[7],_0x5cb0x3)}function onRemove(_0x5cb0x2,_0x5cb0x3,_0x5cb0x5){_0x5cb0x2[_0xb56a[8]](_0xb56a[9],_0x5cb0x3)}
\ No newline at end of file
-var _0x36d1=["\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"];_0x36d1[0];var should=require(_0x36d1[1]);var app=require(_0x36d1[2]);var request=require(_0x36d1[3]);describe(_0x36d1[4],function(){it(_0x36d1[5],function(_0x102bx4){request(app)[_0x36d1[13]](_0x36d1[12])[_0x36d1[11]](200)[_0x36d1[11]](_0x36d1[10],/json/)[_0x36d1[9]](function(_0x102bx5,_0x102bx6){if(_0x102bx5){return _0x102bx4(_0x102bx5)};_0x102bx6[_0x36d1[8]][_0x36d1[1]][_0x36d1[7]][_0x36d1[6]](Array);_0x102bx4();})})});
\ No newline at end of file
+var _0xea38=["\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"];_0xea38[0];var should=require(_0xea38[1]);var app=require(_0xea38[2]);var request=require(_0xea38[3]);describe(_0xea38[4],function(){it(_0xea38[5],function(_0xb62cx4){request(app)[_0xea38[13]](_0xea38[12])[_0xea38[11]](200)[_0xea38[11]](_0xea38[10],/json/)[_0xea38[9]](function(_0xb62cx5,_0xb62cx6){if(_0xb62cx5){return _0xb62cx4(_0xb62cx5)};_0xb62cx6[_0xea38[8]][_0xea38[1]][_0xea38[7]][_0xea38[6]](Array);_0xb62cx4();})})});
\ No newline at end of file
-var _0xb47e=["\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"];_0xb47e[0];var express=require(_0xb47e[1]);var auth=require(_0xb47e[2]);var controller=require(_0xb47e[3]);var router=express.Router();router[_0xb47e[7]](_0xb47e[4],auth[_0xb47e[5]](),controller[_0xb47e[6]]);router[_0xb47e[7]](_0xb47e[8],auth[_0xb47e[5]](),controller[_0xb47e[9]]);router[_0xb47e[7]](_0xb47e[10],auth[_0xb47e[5]](),controller[_0xb47e[11]]);router[_0xb47e[7]](_0xb47e[12],auth[_0xb47e[5]](),controller[_0xb47e[13]]);router[_0xb47e[16]](_0xb47e[14],auth[_0xb47e[5]](),controller[_0xb47e[15]]);router[_0xb47e[16]](_0xb47e[4],auth[_0xb47e[5]](),controller[_0xb47e[17]]);router[_0xb47e[19]](_0xb47e[12],auth[_0xb47e[5]](),controller[_0xb47e[18]]);router[_0xb47e[20]](_0xb47e[12],auth[_0xb47e[5]](),controller[_0xb47e[18]]);router[_0xb47e[22]](_0xb47e[4],auth[_0xb47e[5]](),controller[_0xb47e[21]]);router[_0xb47e[22]](_0xb47e[12],auth[_0xb47e[5]](),controller[_0xb47e[23]]);module[_0xb47e[24]]=router;
\ No newline at end of file
+var _0xe10c=["\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"];_0xe10c[0];var express=require(_0xe10c[1]);var auth=require(_0xe10c[2]);var controller=require(_0xe10c[3]);var router=express.Router();router[_0xe10c[7]](_0xe10c[4],auth[_0xe10c[5]](),controller[_0xe10c[6]]);router[_0xe10c[7]](_0xe10c[8],auth[_0xe10c[5]](),controller[_0xe10c[9]]);router[_0xe10c[7]](_0xe10c[10],auth[_0xe10c[5]](),controller[_0xe10c[11]]);router[_0xe10c[7]](_0xe10c[12],auth[_0xe10c[5]](),controller[_0xe10c[13]]);router[_0xe10c[16]](_0xe10c[14],auth[_0xe10c[5]](),controller[_0xe10c[15]]);router[_0xe10c[16]](_0xe10c[4],auth[_0xe10c[5]](),controller[_0xe10c[17]]);router[_0xe10c[19]](_0xe10c[12],auth[_0xe10c[5]](),controller[_0xe10c[18]]);router[_0xe10c[20]](_0xe10c[12],auth[_0xe10c[5]](),controller[_0xe10c[18]]);router[_0xe10c[22]](_0xe10c[4],auth[_0xe10c[5]](),controller[_0xe10c[21]]);router[_0xe10c[22]](_0xe10c[12],auth[_0xe10c[5]](),controller[_0xe10c[23]]);module[_0xe10c[24]]=router;
\ No newline at end of file
-var _0x595e=["\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"];_0x595e[0];var proxyquire=require(_0x595e[2])[_0x595e[1]]();var sugarcrmAccountCtrlStub={index:_0x595e[3],show:_0x595e[4],create:_0x595e[5],update:_0x595e[6],destroy:_0x595e[7]};var routerStub={get:sinon[_0x595e[8]](),put:sinon[_0x595e[8]](),patch:sinon[_0x595e[8]](),post:sinon[_0x595e[8]](),delete:sinon[_0x595e[8]]()};var sugarcrmAccountIndex=proxyquire(_0x595e[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(_0x595e[10],function(){it(_0x595e[11],function(){expect(sugarcrmAccountIndex)[_0x595e[13]][_0x595e[12]](routerStub)});describe(_0x595e[14],function(){it(_0x595e[15],function(){expect(routerStub[_0x595e[21]][_0x595e[20]](_0x595e[19],_0x595e[3]))[_0x595e[13]][_0x595e[18]][_0x595e[17]][_0x595e[16]]})});describe(_0x595e[22],function(){it(_0x595e[23],function(){expect(routerStub[_0x595e[21]][_0x595e[20]](_0x595e[24],_0x595e[4]))[_0x595e[13]][_0x595e[18]][_0x595e[17]][_0x595e[16]]})});describe(_0x595e[25],function(){it(_0x595e[26],function(){expect(routerStub[_0x595e[27]][_0x595e[20]](_0x595e[19],_0x595e[5]))[_0x595e[13]][_0x595e[18]][_0x595e[17]][_0x595e[16]]})});describe(_0x595e[28],function(){it(_0x595e[29],function(){expect(routerStub[_0x595e[30]][_0x595e[20]](_0x595e[24],_0x595e[6]))[_0x595e[13]][_0x595e[18]][_0x595e[17]][_0x595e[16]]})});describe(_0x595e[31],function(){it(_0x595e[29],function(){expect(routerStub[_0x595e[32]][_0x595e[20]](_0x595e[24],_0x595e[6]))[_0x595e[13]][_0x595e[18]][_0x595e[17]][_0x595e[16]]})});describe(_0x595e[33],function(){it(_0x595e[34],function(){expect(routerStub[_0x595e[35]][_0x595e[20]](_0x595e[24],_0x595e[7]))[_0x595e[13]][_0x595e[18]][_0x595e[17]][_0x595e[16]]})});});
\ No newline at end of file
+var _0x719b=["\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"];_0x719b[0];var proxyquire=require(_0x719b[2])[_0x719b[1]]();var sugarcrmAccountCtrlStub={index:_0x719b[3],show:_0x719b[4],create:_0x719b[5],update:_0x719b[6],destroy:_0x719b[7]};var routerStub={get:sinon[_0x719b[8]](),put:sinon[_0x719b[8]](),patch:sinon[_0x719b[8]](),post:sinon[_0x719b[8]](),delete:sinon[_0x719b[8]]()};var sugarcrmAccountIndex=proxyquire(_0x719b[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(_0x719b[10],function(){it(_0x719b[11],function(){expect(sugarcrmAccountIndex)[_0x719b[13]][_0x719b[12]](routerStub)});describe(_0x719b[14],function(){it(_0x719b[15],function(){expect(routerStub[_0x719b[21]][_0x719b[20]](_0x719b[19],_0x719b[3]))[_0x719b[13]][_0x719b[18]][_0x719b[17]][_0x719b[16]]})});describe(_0x719b[22],function(){it(_0x719b[23],function(){expect(routerStub[_0x719b[21]][_0x719b[20]](_0x719b[24],_0x719b[4]))[_0x719b[13]][_0x719b[18]][_0x719b[17]][_0x719b[16]]})});describe(_0x719b[25],function(){it(_0x719b[26],function(){expect(routerStub[_0x719b[27]][_0x719b[20]](_0x719b[19],_0x719b[5]))[_0x719b[13]][_0x719b[18]][_0x719b[17]][_0x719b[16]]})});describe(_0x719b[28],function(){it(_0x719b[29],function(){expect(routerStub[_0x719b[30]][_0x719b[20]](_0x719b[24],_0x719b[6]))[_0x719b[13]][_0x719b[18]][_0x719b[17]][_0x719b[16]]})});describe(_0x719b[31],function(){it(_0x719b[29],function(){expect(routerStub[_0x719b[32]][_0x719b[20]](_0x719b[24],_0x719b[6]))[_0x719b[13]][_0x719b[18]][_0x719b[17]][_0x719b[16]]})});describe(_0x719b[33],function(){it(_0x719b[34],function(){expect(routerStub[_0x719b[35]][_0x719b[20]](_0x719b[24],_0x719b[7]))[_0x719b[13]][_0x719b[18]][_0x719b[17]][_0x719b[16]]})});});
\ No newline at end of file
-var _0x8526=["\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"];_0x8526[0];var _=require(_0x8526[1]);var util=require(_0x8526[2]);var SugarcrmAccount=require(_0x8526[4])[_0x8526[3]];function handleError(_0x2aa8x5,_0x2aa8x6){_0x2aa8x6=_0x2aa8x6||500;return function(_0x2aa8x7){_0x2aa8x5[_0x8526[6]](_0x2aa8x6)[_0x8526[5]](_0x2aa8x7)};}function responseWithResult(_0x2aa8x5,_0x2aa8x6){_0x2aa8x6=_0x2aa8x6||200;return function(_0x2aa8x9){if(_0x2aa8x9){_0x2aa8x5[_0x8526[6]](_0x2aa8x6)[_0x8526[7]](_0x2aa8x9)}};}function handleEntityNotFound(_0x2aa8x5){return function(_0x2aa8x9){if(!_0x2aa8x9){_0x2aa8x5[_0x8526[6]](404)[_0x8526[8]]();return null;};return _0x2aa8x9;}}function saveUpdates(_0x2aa8xc){return function(_0x2aa8x9){return _0x2aa8x9[_0x8526[10]](_0x2aa8xc)[_0x8526[9]](function(_0x2aa8xd){return _0x2aa8xd})}}function removeEntity(_0x2aa8x5){return function(_0x2aa8x9){if(_0x2aa8x9){return _0x2aa8x9[_0x8526[11]]()[_0x8526[9]](function(){_0x2aa8x5[_0x8526[6]](204)[_0x8526[8]]()})}}}exports[_0x8526[12]]=function(_0x2aa8xf,_0x2aa8x5){var _0x2aa8x10=[_0x8526[13],_0x8526[14],_0x8526[15],_0x8526[16]];var _0x2aa8x11=_0x2aa8xf[_0x8526[18]][_0x8526[17]]?parseInt(_0x2aa8xf[_0x8526[18]][_0x8526[17]],10):100;var _0x2aa8x12=_0x2aa8xf[_0x8526[18]][_0x8526[19]]?parseInt(_0x2aa8xf[_0x8526[18]][_0x8526[19]],10):0;var _0x2aa8x13={where:{},limit:_0x2aa8x11,offset:_0x2aa8x12*_0x2aa8x11};_[_0x8526[33]](_0x2aa8xf[_0x8526[18]],function(_0x2aa8x14,_0x2aa8x15){switch(_0x2aa8x15){case _0x8526[17]:;case _0x8526[19]:break ;;case _0x8526[22]:_0x2aa8x13[_0x8526[20]]=util[_0x8526[25]](_0x8526[21],_0x2aa8xf[_0x8526[18]][_0x8526[22]],_0x2aa8xf[_0x8526[18]][_0x8526[23]]||_0x8526[24])||null;break ;;case _0x8526[23]:break ;;case _0x8526[31]:_0x2aa8x13[_0x8526[27]][_0x8526[26]]=[];_0x2aa8x10[_0x8526[30]](function(_0x2aa8x16){var _0x2aa8x17={};_0x2aa8x17[_0x2aa8x16]={$like:_0x8526[28]+_0x2aa8x14+_0x8526[28]};_0x2aa8x13[_0x8526[27]][_0x8526[26]][_0x8526[29]](_0x2aa8x17);});break ;;default:_0x2aa8x13[_0x8526[27]][_0x2aa8x15]={$like:{}};_0x2aa8x13[_0x8526[27]][_0x2aa8x15][_0x8526[32]]=_0x8526[28]+_0x2aa8x14+_0x8526[28];;}});SugarcrmAccount[_0x8526[45]](_0x2aa8x13)[_0x8526[9]](function(_0x2aa8x18){var _0x2aa8x19=Math[_0x8526[37]](_0x2aa8x18[_0x8526[36]]/_0x2aa8x11);var _0x2aa8x1a=_0x2aa8x19>(_0x2aa8x13[_0x8526[38]]+1)?util[_0x8526[25]](_0x8526[39],_0x2aa8xf[_0x8526[40]],_0x2aa8xf[_0x8526[42]][_0x8526[41]],_0x2aa8xf[_0x8526[43]],_0x2aa8x12+1):null;var _0x2aa8x1b=_0x2aa8x12>0?util[_0x8526[25]](_0x8526[39],_0x2aa8xf[_0x8526[40]],_0x2aa8xf[_0x8526[42]][_0x8526[41]],_0x2aa8xf[_0x8526[43]],_0x2aa8x12-1):null;return _0x2aa8x5[_0x8526[6]](200)[_0x8526[5]]({count:_0x2aa8x18[_0x8526[36]],rows:_0x2aa8x18[_0x8526[44]],next_page:_0x2aa8x1a,previous_page:_0x2aa8x1b,total_pages:_0x2aa8x19});})[_0x8526[35]](function(_0x2aa8x7){return _0x2aa8x5[_0x8526[6]](500)[_0x8526[5]]({error:_0x8526[34]})});};exports[_0x8526[46]]=function(_0x2aa8xf,_0x2aa8x5){SugarcrmAccount[_0x8526[49]](_0x2aa8xf[_0x8526[48]][_0x8526[47]])[_0x8526[9]](handleEntityNotFound(_0x2aa8x5))[_0x8526[9]](responseWithResult(_0x2aa8x5))[_0x8526[35]](handleError(_0x2aa8x5))};exports[_0x8526[50]]=function(_0x2aa8xf,_0x2aa8x5){SugarcrmAccount[_0x8526[50]](_0x2aa8xf[_0x8526[51]])[_0x8526[9]](responseWithResult(_0x2aa8x5,201))[_0x8526[35]](handleError(_0x2aa8x5))};exports[_0x8526[52]]=function(_0x2aa8xf,_0x2aa8x5){if(_0x2aa8xf[_0x8526[51]][_0x8526[47]]){delete _0x2aa8xf[_0x8526[51]][_0x8526[47]]};SugarcrmAccount[_0x8526[49]](_0x2aa8xf[_0x8526[48]][_0x8526[47]])[_0x8526[9]](handleEntityNotFound(_0x2aa8x5))[_0x8526[9]](saveUpdates(_0x2aa8xf[_0x8526[51]]))[_0x8526[9]](responseWithResult(_0x2aa8x5))[_0x8526[35]](handleError(_0x2aa8x5));};exports[_0x8526[11]]=function(_0x2aa8xf,_0x2aa8x5){SugarcrmAccount[_0x8526[49]](_0x2aa8xf[_0x8526[48]][_0x8526[47]])[_0x8526[9]](handleEntityNotFound(_0x2aa8x5))[_0x8526[9]](removeEntity(_0x2aa8x5))[_0x8526[35]](handleError(_0x2aa8x5))};exports[_0x8526[53]]=function(_0x2aa8xf,_0x2aa8x5){SugarcrmAccount[_0x8526[49]](_0x2aa8xf[_0x8526[48]][_0x8526[47]])[_0x8526[9]](handleEntityNotFound(_0x2aa8x5))[_0x8526[9]](function(_0x2aa8x1c){var _0x2aa8x1d=require(_0x8526[54]);_0x2aa8x1d[_0x8526[57]]({apiURL:stripTrailingSlash(_0x2aa8x1c[_0x8526[16]])+_0x8526[55],login:_0x2aa8x1c[_0x8526[15]],passwd:_0x2aa8x1c[_0x8526[56]]});_0x2aa8x1d[_0x8526[59]](function(_0x2aa8x1e){if(!_0x2aa8x1e){return _0x2aa8x5[_0x8526[58]](400)};return _0x2aa8x5[_0x8526[58]](200);});})[_0x8526[35]](handleError(_0x2aa8x5))};exports[_0x8526[60]]=function(_0x2aa8xf,_0x2aa8x5){SugarcrmAccount[_0x8526[11]]({where:{id:_0x2aa8xf[_0x8526[18]][_0x8526[47]]},individualHooks:true})[_0x8526[9]](function(){return _0x2aa8x5[_0x8526[58]](204)})[_0x8526[35]](function(_0x2aa8x7){return handleError(_0x2aa8x5,_0x2aa8x7)})};exports[_0x8526[61]]=function(_0x2aa8xf,_0x2aa8x5){var _0x2aa8x1f={};_0x2aa8x1f[_0x2aa8xf[_0x8526[48]][_0x8526[62]]]=_0x2aa8xf[_0x8526[51]][_0x8526[63]];SugarcrmAccount[_0x8526[45]]({where:_0x2aa8x1f})[_0x8526[9]](function(_0x2aa8x18){if(_0x2aa8x18[_0x8526[36]]){return _0x2aa8x5[_0x8526[6]](200)[_0x8526[5]]({isValid:false,value:_0x2aa8xf[_0x8526[51]][_0x8526[63]]})};return _0x2aa8x5[_0x8526[6]](200)[_0x8526[5]]({isValid:true,value:_0x2aa8xf[_0x8526[51]][_0x8526[63]]});})[_0x8526[35]](function(_0x2aa8x7){return handleError(_0x2aa8x5,_0x2aa8x7)});};exports[_0x8526[64]]=function(_0x2aa8xf,_0x2aa8x5){var _0x2aa8x1d=require(_0x8526[54]);SugarcrmAccount[_0x8526[49]](_0x2aa8xf[_0x8526[48]][_0x8526[47]])[_0x8526[9]](handleEntityNotFound(_0x2aa8x5))[_0x8526[9]](function(_0x2aa8x1c){_0x2aa8x1d[_0x8526[57]]({apiURL:stripTrailingSlash(_0x2aa8x1c[_0x8526[16]])+_0x8526[55],login:_0x2aa8x1c[_0x8526[15]],passwd:_0x2aa8x1c[_0x8526[56]]});_0x2aa8x1d[_0x8526[59]](function(_0x2aa8x1e){if(!_0x2aa8x1e){return _0x2aa8x5[_0x8526[58]](400)};var _0x2aa8x20={session:_0x2aa8x1e,module_name:_0x8526[65]};_0x2aa8x1d[_0x8526[68]](_0x8526[66],_0x2aa8x20,function(_0x2aa8x18,_0x2aa8x7){if(_0x2aa8x7){return _0x2aa8x5[_0x8526[58]](400)};return _0x2aa8x5[_0x8526[6]](200)[_0x8526[5]](_0x2aa8x18[_0x8526[67]]);});});})[_0x8526[35]](handleError(_0x2aa8x5));};function stripTrailingSlash(_0x2aa8x22){if(_0x2aa8x22[_0x8526[69]](-1)===_0x8526[70]){return _0x2aa8x22[_0x8526[69]](0,_0x2aa8x22[_0x8526[71]]-1)};return _0x2aa8x22;}
\ No newline at end of file
+var _0xd697=["\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"];_0xd697[0];var _=require(_0xd697[1]);var util=require(_0xd697[2]);var SugarcrmAccount=require(_0xd697[4])[_0xd697[3]];function handleError(_0x8d90x5,_0x8d90x6){_0x8d90x6=_0x8d90x6||500;return function(_0x8d90x7){_0x8d90x5[_0xd697[6]](_0x8d90x6)[_0xd697[5]](_0x8d90x7)};}function responseWithResult(_0x8d90x5,_0x8d90x6){_0x8d90x6=_0x8d90x6||200;return function(_0x8d90x9){if(_0x8d90x9){_0x8d90x5[_0xd697[6]](_0x8d90x6)[_0xd697[7]](_0x8d90x9)}};}function handleEntityNotFound(_0x8d90x5){return function(_0x8d90x9){if(!_0x8d90x9){_0x8d90x5[_0xd697[6]](404)[_0xd697[8]]();return null;};return _0x8d90x9;}}function saveUpdates(_0x8d90xc){return function(_0x8d90x9){return _0x8d90x9[_0xd697[10]](_0x8d90xc)[_0xd697[9]](function(_0x8d90xd){return _0x8d90xd})}}function removeEntity(_0x8d90x5){return function(_0x8d90x9){if(_0x8d90x9){return _0x8d90x9[_0xd697[11]]()[_0xd697[9]](function(){_0x8d90x5[_0xd697[6]](204)[_0xd697[8]]()})}}}exports[_0xd697[12]]=function(_0x8d90xf,_0x8d90x5){var _0x8d90x10=[_0xd697[13],_0xd697[14],_0xd697[15],_0xd697[16]];var _0x8d90x11=_0x8d90xf[_0xd697[18]][_0xd697[17]]?parseInt(_0x8d90xf[_0xd697[18]][_0xd697[17]],10):100;var _0x8d90x12=_0x8d90xf[_0xd697[18]][_0xd697[19]]?parseInt(_0x8d90xf[_0xd697[18]][_0xd697[19]],10):0;var _0x8d90x13={where:{},limit:_0x8d90x11,offset:_0x8d90x12*_0x8d90x11};_[_0xd697[33]](_0x8d90xf[_0xd697[18]],function(_0x8d90x14,_0x8d90x15){switch(_0x8d90x15){case _0xd697[17]:;case _0xd697[19]:break ;;case _0xd697[22]:_0x8d90x13[_0xd697[20]]=util[_0xd697[25]](_0xd697[21],_0x8d90xf[_0xd697[18]][_0xd697[22]],_0x8d90xf[_0xd697[18]][_0xd697[23]]||_0xd697[24])||null;break ;;case _0xd697[23]:break ;;case _0xd697[31]:_0x8d90x13[_0xd697[27]][_0xd697[26]]=[];_0x8d90x10[_0xd697[30]](function(_0x8d90x16){var _0x8d90x17={};_0x8d90x17[_0x8d90x16]={$like:_0xd697[28]+_0x8d90x14+_0xd697[28]};_0x8d90x13[_0xd697[27]][_0xd697[26]][_0xd697[29]](_0x8d90x17);});break ;;default:_0x8d90x13[_0xd697[27]][_0x8d90x15]={$like:{}};_0x8d90x13[_0xd697[27]][_0x8d90x15][_0xd697[32]]=_0xd697[28]+_0x8d90x14+_0xd697[28];;}});SugarcrmAccount[_0xd697[45]](_0x8d90x13)[_0xd697[9]](function(_0x8d90x18){var _0x8d90x19=Math[_0xd697[37]](_0x8d90x18[_0xd697[36]]/_0x8d90x11);var _0x8d90x1a=_0x8d90x19>(_0x8d90x13[_0xd697[38]]+1)?util[_0xd697[25]](_0xd697[39],_0x8d90xf[_0xd697[40]],_0x8d90xf[_0xd697[42]][_0xd697[41]],_0x8d90xf[_0xd697[43]],_0x8d90x12+1):null;var _0x8d90x1b=_0x8d90x12>0?util[_0xd697[25]](_0xd697[39],_0x8d90xf[_0xd697[40]],_0x8d90xf[_0xd697[42]][_0xd697[41]],_0x8d90xf[_0xd697[43]],_0x8d90x12-1):null;return _0x8d90x5[_0xd697[6]](200)[_0xd697[5]]({count:_0x8d90x18[_0xd697[36]],rows:_0x8d90x18[_0xd697[44]],next_page:_0x8d90x1a,previous_page:_0x8d90x1b,total_pages:_0x8d90x19});})[_0xd697[35]](function(_0x8d90x7){return _0x8d90x5[_0xd697[6]](500)[_0xd697[5]]({error:_0xd697[34]})});};exports[_0xd697[46]]=function(_0x8d90xf,_0x8d90x5){SugarcrmAccount[_0xd697[49]](_0x8d90xf[_0xd697[48]][_0xd697[47]])[_0xd697[9]](handleEntityNotFound(_0x8d90x5))[_0xd697[9]](responseWithResult(_0x8d90x5))[_0xd697[35]](handleError(_0x8d90x5))};exports[_0xd697[50]]=function(_0x8d90xf,_0x8d90x5){SugarcrmAccount[_0xd697[50]](_0x8d90xf[_0xd697[51]])[_0xd697[9]](responseWithResult(_0x8d90x5,201))[_0xd697[35]](handleError(_0x8d90x5))};exports[_0xd697[52]]=function(_0x8d90xf,_0x8d90x5){if(_0x8d90xf[_0xd697[51]][_0xd697[47]]){delete _0x8d90xf[_0xd697[51]][_0xd697[47]]};SugarcrmAccount[_0xd697[49]](_0x8d90xf[_0xd697[48]][_0xd697[47]])[_0xd697[9]](handleEntityNotFound(_0x8d90x5))[_0xd697[9]](saveUpdates(_0x8d90xf[_0xd697[51]]))[_0xd697[9]](responseWithResult(_0x8d90x5))[_0xd697[35]](handleError(_0x8d90x5));};exports[_0xd697[11]]=function(_0x8d90xf,_0x8d90x5){SugarcrmAccount[_0xd697[49]](_0x8d90xf[_0xd697[48]][_0xd697[47]])[_0xd697[9]](handleEntityNotFound(_0x8d90x5))[_0xd697[9]](removeEntity(_0x8d90x5))[_0xd697[35]](handleError(_0x8d90x5))};exports[_0xd697[53]]=function(_0x8d90xf,_0x8d90x5){SugarcrmAccount[_0xd697[49]](_0x8d90xf[_0xd697[48]][_0xd697[47]])[_0xd697[9]](handleEntityNotFound(_0x8d90x5))[_0xd697[9]](function(_0x8d90x1c){var _0x8d90x1d=require(_0xd697[54]);_0x8d90x1d[_0xd697[57]]({apiURL:stripTrailingSlash(_0x8d90x1c[_0xd697[16]])+_0xd697[55],login:_0x8d90x1c[_0xd697[15]],passwd:_0x8d90x1c[_0xd697[56]]});_0x8d90x1d[_0xd697[59]](function(_0x8d90x1e){if(!_0x8d90x1e){return _0x8d90x5[_0xd697[58]](400)};return _0x8d90x5[_0xd697[58]](200);});})[_0xd697[35]](handleError(_0x8d90x5))};exports[_0xd697[60]]=function(_0x8d90xf,_0x8d90x5){SugarcrmAccount[_0xd697[11]]({where:{id:_0x8d90xf[_0xd697[18]][_0xd697[47]]},individualHooks:true})[_0xd697[9]](function(){return _0x8d90x5[_0xd697[58]](204)})[_0xd697[35]](function(_0x8d90x7){return handleError(_0x8d90x5,_0x8d90x7)})};exports[_0xd697[61]]=function(_0x8d90xf,_0x8d90x5){var _0x8d90x1f={};_0x8d90x1f[_0x8d90xf[_0xd697[48]][_0xd697[62]]]=_0x8d90xf[_0xd697[51]][_0xd697[63]];SugarcrmAccount[_0xd697[45]]({where:_0x8d90x1f})[_0xd697[9]](function(_0x8d90x18){if(_0x8d90x18[_0xd697[36]]){return _0x8d90x5[_0xd697[6]](200)[_0xd697[5]]({isValid:false,value:_0x8d90xf[_0xd697[51]][_0xd697[63]]})};return _0x8d90x5[_0xd697[6]](200)[_0xd697[5]]({isValid:true,value:_0x8d90xf[_0xd697[51]][_0xd697[63]]});})[_0xd697[35]](function(_0x8d90x7){return handleError(_0x8d90x5,_0x8d90x7)});};exports[_0xd697[64]]=function(_0x8d90xf,_0x8d90x5){var _0x8d90x1d=require(_0xd697[54]);SugarcrmAccount[_0xd697[49]](_0x8d90xf[_0xd697[48]][_0xd697[47]])[_0xd697[9]](handleEntityNotFound(_0x8d90x5))[_0xd697[9]](function(_0x8d90x1c){_0x8d90x1d[_0xd697[57]]({apiURL:stripTrailingSlash(_0x8d90x1c[_0xd697[16]])+_0xd697[55],login:_0x8d90x1c[_0xd697[15]],passwd:_0x8d90x1c[_0xd697[56]]});_0x8d90x1d[_0xd697[59]](function(_0x8d90x1e){if(!_0x8d90x1e){return _0x8d90x5[_0xd697[58]](400)};var _0x8d90x20={session:_0x8d90x1e,module_name:_0xd697[65]};_0x8d90x1d[_0xd697[68]](_0xd697[66],_0x8d90x20,function(_0x8d90x18,_0x8d90x7){if(_0x8d90x7){return _0x8d90x5[_0xd697[58]](400)};return _0x8d90x5[_0xd697[6]](200)[_0xd697[5]](_0x8d90x18[_0xd697[67]]);});});})[_0xd697[35]](handleError(_0x8d90x5));};function stripTrailingSlash(_0x8d90x22){if(_0x8d90x22[_0xd697[69]](-1)===_0xd697[70]){return _0x8d90x22[_0xd697[69]](0,_0x8d90x22[_0xd697[71]]-1)};return _0x8d90x22;}
\ No newline at end of file
-var _0x775d=["\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"];_0x775d[0];var SugarcrmAccount=require(_0x775d[2])[_0x775d[1]];exports[_0x775d[3]]=function(_0xc0bex2){SugarcrmAccount[_0x775d[4]](function(_0xc0bex3){onSave(_0xc0bex2,_0xc0bex3)});SugarcrmAccount[_0x775d[5]](function(_0xc0bex3){onRemove(_0xc0bex2,_0xc0bex3)});};function onSave(_0xc0bex2,_0xc0bex3,_0xc0bex5){_0xc0bex2[_0x775d[7]](_0x775d[6],_0xc0bex3)}function onRemove(_0xc0bex2,_0xc0bex3,_0xc0bex5){_0xc0bex2[_0x775d[7]](_0x775d[8],_0xc0bex3)}
\ No newline at end of file
+var _0x55b9=["\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"];_0x55b9[0];var SugarcrmAccount=require(_0x55b9[2])[_0x55b9[1]];exports[_0x55b9[3]]=function(_0xd583x2){SugarcrmAccount[_0x55b9[4]](function(_0xd583x3){onSave(_0xd583x2,_0xd583x3)});SugarcrmAccount[_0x55b9[5]](function(_0xd583x3){onRemove(_0xd583x2,_0xd583x3)});};function onSave(_0xd583x2,_0xd583x3,_0xd583x5){_0xd583x2[_0x55b9[7]](_0x55b9[6],_0xd583x3)}function onRemove(_0xd583x2,_0xd583x3,_0xd583x5){_0xd583x2[_0x55b9[7]](_0x55b9[8],_0xd583x3)}
\ No newline at end of file
-var _0xc4a3=["\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"];_0xc4a3[0];var express=require(_0xc4a3[1]);var auth=require(_0xc4a3[2]);var controller=require(_0xc4a3[3]);var router=express.Router();router[_0xc4a3[7]](_0xc4a3[4],auth[_0xc4a3[5]](),controller[_0xc4a3[6]]);router[_0xc4a3[7]](_0xc4a3[8],auth[_0xc4a3[5]](),controller[_0xc4a3[9]]);router[_0xc4a3[11]](_0xc4a3[4],auth[_0xc4a3[5]](),controller[_0xc4a3[10]]);router[_0xc4a3[13]](_0xc4a3[8],auth[_0xc4a3[5]](),controller[_0xc4a3[12]]);router[_0xc4a3[11]](_0xc4a3[14],auth[_0xc4a3[5]](),controller[_0xc4a3[15]]);router[_0xc4a3[16]](_0xc4a3[8],auth[_0xc4a3[5]](),controller[_0xc4a3[12]]);router[_0xc4a3[18]](_0xc4a3[8],auth[_0xc4a3[5]](),controller[_0xc4a3[17]]);module[_0xc4a3[19]]=router;
\ No newline at end of file
+var _0x2b1a=["\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"];_0x2b1a[0];var express=require(_0x2b1a[1]);var auth=require(_0x2b1a[2]);var controller=require(_0x2b1a[3]);var router=express.Router();router[_0x2b1a[7]](_0x2b1a[4],auth[_0x2b1a[5]](),controller[_0x2b1a[6]]);router[_0x2b1a[7]](_0x2b1a[8],auth[_0x2b1a[5]](),controller[_0x2b1a[9]]);router[_0x2b1a[11]](_0x2b1a[4],auth[_0x2b1a[5]](),controller[_0x2b1a[10]]);router[_0x2b1a[13]](_0x2b1a[8],auth[_0x2b1a[5]](),controller[_0x2b1a[12]]);router[_0x2b1a[11]](_0x2b1a[14],auth[_0x2b1a[5]](),controller[_0x2b1a[15]]);router[_0x2b1a[16]](_0x2b1a[8],auth[_0x2b1a[5]](),controller[_0x2b1a[12]]);router[_0x2b1a[18]](_0x2b1a[8],auth[_0x2b1a[5]](),controller[_0x2b1a[17]]);module[_0x2b1a[19]]=router;
\ No newline at end of file
-var _0xd826=["\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"];_0xd826[0];var proxyquire=require(_0xd826[2])[_0xd826[1]]();var sugarcrmConfigurationCtrlStub={index:_0xd826[3],show:_0xd826[4],create:_0xd826[5],update:_0xd826[6],destroy:_0xd826[7]};var routerStub={get:sinon[_0xd826[8]](),put:sinon[_0xd826[8]](),patch:sinon[_0xd826[8]](),post:sinon[_0xd826[8]](),delete:sinon[_0xd826[8]]()};var sugarcrmConfigurationIndex=proxyquire(_0xd826[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(_0xd826[10],function(){it(_0xd826[11],function(){expect(sugarcrmConfigurationIndex)[_0xd826[13]][_0xd826[12]](routerStub)});describe(_0xd826[14],function(){it(_0xd826[15],function(){expect(routerStub[_0xd826[21]][_0xd826[20]](_0xd826[19],_0xd826[3]))[_0xd826[13]][_0xd826[18]][_0xd826[17]][_0xd826[16]]})});describe(_0xd826[22],function(){it(_0xd826[23],function(){expect(routerStub[_0xd826[21]][_0xd826[20]](_0xd826[24],_0xd826[4]))[_0xd826[13]][_0xd826[18]][_0xd826[17]][_0xd826[16]]})});describe(_0xd826[25],function(){it(_0xd826[26],function(){expect(routerStub[_0xd826[27]][_0xd826[20]](_0xd826[19],_0xd826[5]))[_0xd826[13]][_0xd826[18]][_0xd826[17]][_0xd826[16]]})});describe(_0xd826[28],function(){it(_0xd826[29],function(){expect(routerStub[_0xd826[30]][_0xd826[20]](_0xd826[24],_0xd826[6]))[_0xd826[13]][_0xd826[18]][_0xd826[17]][_0xd826[16]]})});describe(_0xd826[31],function(){it(_0xd826[29],function(){expect(routerStub[_0xd826[32]][_0xd826[20]](_0xd826[24],_0xd826[6]))[_0xd826[13]][_0xd826[18]][_0xd826[17]][_0xd826[16]]})});describe(_0xd826[33],function(){it(_0xd826[34],function(){expect(routerStub[_0xd826[35]][_0xd826[20]](_0xd826[24],_0xd826[7]))[_0xd826[13]][_0xd826[18]][_0xd826[17]][_0xd826[16]]})});});
\ No newline at end of file
+var _0xbe4c=["\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"];_0xbe4c[0];var proxyquire=require(_0xbe4c[2])[_0xbe4c[1]]();var sugarcrmConfigurationCtrlStub={index:_0xbe4c[3],show:_0xbe4c[4],create:_0xbe4c[5],update:_0xbe4c[6],destroy:_0xbe4c[7]};var routerStub={get:sinon[_0xbe4c[8]](),put:sinon[_0xbe4c[8]](),patch:sinon[_0xbe4c[8]](),post:sinon[_0xbe4c[8]](),delete:sinon[_0xbe4c[8]]()};var sugarcrmConfigurationIndex=proxyquire(_0xbe4c[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(_0xbe4c[10],function(){it(_0xbe4c[11],function(){expect(sugarcrmConfigurationIndex)[_0xbe4c[13]][_0xbe4c[12]](routerStub)});describe(_0xbe4c[14],function(){it(_0xbe4c[15],function(){expect(routerStub[_0xbe4c[21]][_0xbe4c[20]](_0xbe4c[19],_0xbe4c[3]))[_0xbe4c[13]][_0xbe4c[18]][_0xbe4c[17]][_0xbe4c[16]]})});describe(_0xbe4c[22],function(){it(_0xbe4c[23],function(){expect(routerStub[_0xbe4c[21]][_0xbe4c[20]](_0xbe4c[24],_0xbe4c[4]))[_0xbe4c[13]][_0xbe4c[18]][_0xbe4c[17]][_0xbe4c[16]]})});describe(_0xbe4c[25],function(){it(_0xbe4c[26],function(){expect(routerStub[_0xbe4c[27]][_0xbe4c[20]](_0xbe4c[19],_0xbe4c[5]))[_0xbe4c[13]][_0xbe4c[18]][_0xbe4c[17]][_0xbe4c[16]]})});describe(_0xbe4c[28],function(){it(_0xbe4c[29],function(){expect(routerStub[_0xbe4c[30]][_0xbe4c[20]](_0xbe4c[24],_0xbe4c[6]))[_0xbe4c[13]][_0xbe4c[18]][_0xbe4c[17]][_0xbe4c[16]]})});describe(_0xbe4c[31],function(){it(_0xbe4c[29],function(){expect(routerStub[_0xbe4c[32]][_0xbe4c[20]](_0xbe4c[24],_0xbe4c[6]))[_0xbe4c[13]][_0xbe4c[18]][_0xbe4c[17]][_0xbe4c[16]]})});describe(_0xbe4c[33],function(){it(_0xbe4c[34],function(){expect(routerStub[_0xbe4c[35]][_0xbe4c[20]](_0xbe4c[24],_0xbe4c[7]))[_0xbe4c[13]][_0xbe4c[18]][_0xbe4c[17]][_0xbe4c[16]]})});});
\ No newline at end of file
-var _0x9a9c=["\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"];_0x9a9c[0];var _=require(_0x9a9c[1]);var SugarcrmConfiguration=require(_0x9a9c[3])[_0x9a9c[2]];var SugarcrmField=require(_0x9a9c[3])[_0x9a9c[4]];function handleError(_0x1ba0x5,_0x1ba0x6){_0x1ba0x6=_0x1ba0x6||500;return function(_0x1ba0x7){_0x1ba0x5[_0x9a9c[6]](_0x1ba0x6)[_0x9a9c[5]](_0x1ba0x7)};}function responseWithResult(_0x1ba0x5,_0x1ba0x6){_0x1ba0x6=_0x1ba0x6||200;return function(_0x1ba0x9){if(_0x1ba0x9){_0x1ba0x5[_0x9a9c[6]](_0x1ba0x6)[_0x9a9c[7]](_0x1ba0x9)}};}function handleEntityNotFound(_0x1ba0x5){return function(_0x1ba0x9){if(!_0x1ba0x9){_0x1ba0x5[_0x9a9c[6]](404)[_0x9a9c[8]]();return null;};return _0x1ba0x9;}}function saveUpdates(_0x1ba0xc){return function(_0x1ba0x9){return _0x1ba0x9[_0x9a9c[10]](_0x1ba0xc)[_0x9a9c[9]](function(_0x1ba0xd){return _0x1ba0xd})}}function removeEntity(_0x1ba0x5){return function(_0x1ba0x9){if(_0x1ba0x9){return _0x1ba0x9[_0x9a9c[11]]()[_0x9a9c[9]](function(){_0x1ba0x5[_0x9a9c[6]](204)[_0x9a9c[8]]()})}}}exports[_0x9a9c[12]]=function(_0x1ba0xf,_0x1ba0x5){SugarcrmConfiguration[_0x9a9c[15]]({where:_0x1ba0xf[_0x9a9c[14]]})[_0x9a9c[9]](responseWithResult(_0x1ba0x5))[_0x9a9c[13]](handleError(_0x1ba0x5))};exports[_0x9a9c[16]]=function(_0x1ba0xf,_0x1ba0x5){SugarcrmConfiguration[_0x9a9c[22]]({where:{id:_0x1ba0xf[_0x9a9c[18]][_0x9a9c[17]]},include:[{model:SugarcrmField,as:_0x9a9c[19]},{model:SugarcrmField,as:_0x9a9c[20]},{model:SugarcrmField,as:_0x9a9c[21]}]})[_0x9a9c[9]](handleEntityNotFound(_0x1ba0x5))[_0x9a9c[9]](responseWithResult(_0x1ba0x5))[_0x9a9c[13]](handleError(_0x1ba0x5))};exports[_0x9a9c[23]]=function(_0x1ba0xf,_0x1ba0x5){SugarcrmConfiguration[_0x9a9c[23]](_0x1ba0xf[_0x9a9c[24]])[_0x9a9c[9]](responseWithResult(_0x1ba0x5,201))[_0x9a9c[13]](handleError(_0x1ba0x5))};exports[_0x9a9c[25]]=function(_0x1ba0xf,_0x1ba0x5){if(_0x1ba0xf[_0x9a9c[24]][_0x9a9c[17]]){delete _0x1ba0xf[_0x9a9c[24]][_0x9a9c[17]]};SugarcrmConfiguration[_0x9a9c[26]](_0x1ba0xf[_0x9a9c[18]][_0x9a9c[17]])[_0x9a9c[9]](handleEntityNotFound(_0x1ba0x5))[_0x9a9c[9]](saveUpdates(_0x1ba0xf[_0x9a9c[24]]))[_0x9a9c[9]](responseWithResult(_0x1ba0x5))[_0x9a9c[13]](handleError(_0x1ba0x5));};exports[_0x9a9c[11]]=function(_0x1ba0xf,_0x1ba0x5){SugarcrmConfiguration[_0x9a9c[26]](_0x1ba0xf[_0x9a9c[18]][_0x9a9c[17]])[_0x9a9c[9]](handleEntityNotFound(_0x1ba0x5))[_0x9a9c[9]](removeEntity(_0x1ba0x5))[_0x9a9c[13]](handleError(_0x1ba0x5))};exports[_0x9a9c[27]]=function(_0x1ba0xf,_0x1ba0x5,_0x1ba0x10){var _0x1ba0x11;SugarcrmConfiguration[_0x9a9c[26]](_0x1ba0xf[_0x9a9c[18]][_0x9a9c[17]])[_0x9a9c[9]](handleEntityNotFound(_0x1ba0x5))[_0x9a9c[9]](function(_0x1ba0x14){_0x1ba0x11=_0x1ba0x14;return SugarcrmField[_0x9a9c[23]](_0x1ba0xf[_0x9a9c[24]]);})[_0x9a9c[9]](function(_0x1ba0x13){switch(_0x1ba0xf[_0x9a9c[18]][_0x9a9c[35]]){case _0x9a9c[30]:return [_0x1ba0x11[_0x9a9c[29]](_0x1ba0x13),_0x1ba0x13];;case _0x9a9c[32]:return [_0x1ba0x11[_0x9a9c[31]](_0x1ba0x13),_0x1ba0x13];;case _0x9a9c[34]:return [_0x1ba0x11[_0x9a9c[33]](_0x1ba0x13),_0x1ba0x13];;}})[_0x9a9c[28]](function(_0x1ba0x12,_0x1ba0x13){return _0x1ba0x5[_0x9a9c[6]](201)[_0x9a9c[7]](_0x1ba0x13)})[_0x9a9c[13]](handleError(_0x1ba0x5));};
\ No newline at end of file
+var _0x2654=["\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"];_0x2654[0];var _=require(_0x2654[1]);var SugarcrmConfiguration=require(_0x2654[3])[_0x2654[2]];var SugarcrmField=require(_0x2654[3])[_0x2654[4]];function handleError(_0x1793x5,_0x1793x6){_0x1793x6=_0x1793x6||500;return function(_0x1793x7){_0x1793x5[_0x2654[6]](_0x1793x6)[_0x2654[5]](_0x1793x7)};}function responseWithResult(_0x1793x5,_0x1793x6){_0x1793x6=_0x1793x6||200;return function(_0x1793x9){if(_0x1793x9){_0x1793x5[_0x2654[6]](_0x1793x6)[_0x2654[7]](_0x1793x9)}};}function handleEntityNotFound(_0x1793x5){return function(_0x1793x9){if(!_0x1793x9){_0x1793x5[_0x2654[6]](404)[_0x2654[8]]();return null;};return _0x1793x9;}}function saveUpdates(_0x1793xc){return function(_0x1793x9){return _0x1793x9[_0x2654[10]](_0x1793xc)[_0x2654[9]](function(_0x1793xd){return _0x1793xd})}}function removeEntity(_0x1793x5){return function(_0x1793x9){if(_0x1793x9){return _0x1793x9[_0x2654[11]]()[_0x2654[9]](function(){_0x1793x5[_0x2654[6]](204)[_0x2654[8]]()})}}}exports[_0x2654[12]]=function(_0x1793xf,_0x1793x5){SugarcrmConfiguration[_0x2654[15]]({where:_0x1793xf[_0x2654[14]]})[_0x2654[9]](responseWithResult(_0x1793x5))[_0x2654[13]](handleError(_0x1793x5))};exports[_0x2654[16]]=function(_0x1793xf,_0x1793x5){SugarcrmConfiguration[_0x2654[22]]({where:{id:_0x1793xf[_0x2654[18]][_0x2654[17]]},include:[{model:SugarcrmField,as:_0x2654[19]},{model:SugarcrmField,as:_0x2654[20]},{model:SugarcrmField,as:_0x2654[21]}]})[_0x2654[9]](handleEntityNotFound(_0x1793x5))[_0x2654[9]](responseWithResult(_0x1793x5))[_0x2654[13]](handleError(_0x1793x5))};exports[_0x2654[23]]=function(_0x1793xf,_0x1793x5){SugarcrmConfiguration[_0x2654[23]](_0x1793xf[_0x2654[24]])[_0x2654[9]](responseWithResult(_0x1793x5,201))[_0x2654[13]](handleError(_0x1793x5))};exports[_0x2654[25]]=function(_0x1793xf,_0x1793x5){if(_0x1793xf[_0x2654[24]][_0x2654[17]]){delete _0x1793xf[_0x2654[24]][_0x2654[17]]};SugarcrmConfiguration[_0x2654[26]](_0x1793xf[_0x2654[18]][_0x2654[17]])[_0x2654[9]](handleEntityNotFound(_0x1793x5))[_0x2654[9]](saveUpdates(_0x1793xf[_0x2654[24]]))[_0x2654[9]](responseWithResult(_0x1793x5))[_0x2654[13]](handleError(_0x1793x5));};exports[_0x2654[11]]=function(_0x1793xf,_0x1793x5){SugarcrmConfiguration[_0x2654[26]](_0x1793xf[_0x2654[18]][_0x2654[17]])[_0x2654[9]](handleEntityNotFound(_0x1793x5))[_0x2654[9]](removeEntity(_0x1793x5))[_0x2654[13]](handleError(_0x1793x5))};exports[_0x2654[27]]=function(_0x1793xf,_0x1793x5,_0x1793x10){var _0x1793x11;SugarcrmConfiguration[_0x2654[26]](_0x1793xf[_0x2654[18]][_0x2654[17]])[_0x2654[9]](handleEntityNotFound(_0x1793x5))[_0x2654[9]](function(_0x1793x14){_0x1793x11=_0x1793x14;return SugarcrmField[_0x2654[23]](_0x1793xf[_0x2654[24]]);})[_0x2654[9]](function(_0x1793x13){switch(_0x1793xf[_0x2654[18]][_0x2654[35]]){case _0x2654[30]:return [_0x1793x11[_0x2654[29]](_0x1793x13),_0x1793x13];;case _0x2654[32]:return [_0x1793x11[_0x2654[31]](_0x1793x13),_0x1793x13];;case _0x2654[34]:return [_0x1793x11[_0x2654[33]](_0x1793x13),_0x1793x13];;}})[_0x2654[28]](function(_0x1793x12,_0x1793x13){return _0x1793x5[_0x2654[6]](201)[_0x2654[7]](_0x1793x13)})[_0x2654[13]](handleError(_0x1793x5));};
\ No newline at end of file
-var _0xaff7=["\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"];_0xaff7[0];var SugarcrmConfiguration=require(_0xaff7[2])[_0xaff7[1]];exports[_0xaff7[3]]=function(_0xfdddx2){SugarcrmConfiguration[_0xaff7[4]](function(_0xfdddx3){onSave(_0xfdddx2,_0xfdddx3)});SugarcrmConfiguration[_0xaff7[5]](function(_0xfdddx3){onRemove(_0xfdddx2,_0xfdddx3)});};function onSave(_0xfdddx2,_0xfdddx3,_0xfdddx5){_0xfdddx2[_0xaff7[7]](_0xaff7[6],_0xfdddx3)}function onRemove(_0xfdddx2,_0xfdddx3,_0xfdddx5){_0xfdddx2[_0xaff7[7]](_0xaff7[8],_0xfdddx3)}
\ No newline at end of file
+var _0x9d70=["\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"];_0x9d70[0];var SugarcrmConfiguration=require(_0x9d70[2])[_0x9d70[1]];exports[_0x9d70[3]]=function(_0xf92cx2){SugarcrmConfiguration[_0x9d70[4]](function(_0xf92cx3){onSave(_0xf92cx2,_0xf92cx3)});SugarcrmConfiguration[_0x9d70[5]](function(_0xf92cx3){onRemove(_0xf92cx2,_0xf92cx3)});};function onSave(_0xf92cx2,_0xf92cx3,_0xf92cx5){_0xf92cx2[_0x9d70[7]](_0x9d70[6],_0xf92cx3)}function onRemove(_0xf92cx2,_0xf92cx3,_0xf92cx5){_0xf92cx2[_0x9d70[7]](_0x9d70[8],_0xf92cx3)}
\ No newline at end of file
-var _0x7e2a=["\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"];_0x7e2a[0];var express=require(_0x7e2a[1]);var auth=require(_0x7e2a[2]);var controller=require(_0x7e2a[3]);var router=express.Router();router[_0x7e2a[7]](_0x7e2a[4],auth[_0x7e2a[5]](),controller[_0x7e2a[6]]);router[_0x7e2a[7]](_0x7e2a[8],auth[_0x7e2a[5]](),controller[_0x7e2a[9]]);router[_0x7e2a[11]](_0x7e2a[4],auth[_0x7e2a[5]](),controller[_0x7e2a[10]]);router[_0x7e2a[13]](_0x7e2a[8],auth[_0x7e2a[5]](),controller[_0x7e2a[12]]);router[_0x7e2a[14]](_0x7e2a[8],auth[_0x7e2a[5]](),controller[_0x7e2a[12]]);router[_0x7e2a[16]](_0x7e2a[8],auth[_0x7e2a[5]](),controller[_0x7e2a[15]]);module[_0x7e2a[17]]=router;
\ No newline at end of file
+var _0xa796=["\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"];_0xa796[0];var express=require(_0xa796[1]);var auth=require(_0xa796[2]);var controller=require(_0xa796[3]);var router=express.Router();router[_0xa796[7]](_0xa796[4],auth[_0xa796[5]](),controller[_0xa796[6]]);router[_0xa796[7]](_0xa796[8],auth[_0xa796[5]](),controller[_0xa796[9]]);router[_0xa796[11]](_0xa796[4],auth[_0xa796[5]](),controller[_0xa796[10]]);router[_0xa796[13]](_0xa796[8],auth[_0xa796[5]](),controller[_0xa796[12]]);router[_0xa796[14]](_0xa796[8],auth[_0xa796[5]](),controller[_0xa796[12]]);router[_0xa796[16]](_0xa796[8],auth[_0xa796[5]](),controller[_0xa796[15]]);module[_0xa796[17]]=router;
\ No newline at end of file
-var _0x3ff2=["\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"];_0x3ff2[0];var proxyquire=require(_0x3ff2[2])[_0x3ff2[1]]();var sugarcrmFieldCtrlStub={index:_0x3ff2[3],show:_0x3ff2[4],create:_0x3ff2[5],update:_0x3ff2[6],destroy:_0x3ff2[7]};var routerStub={get:sinon[_0x3ff2[8]](),put:sinon[_0x3ff2[8]](),patch:sinon[_0x3ff2[8]](),post:sinon[_0x3ff2[8]](),delete:sinon[_0x3ff2[8]]()};var sugarcrmFieldIndex=proxyquire(_0x3ff2[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(_0x3ff2[10],function(){it(_0x3ff2[11],function(){expect(sugarcrmFieldIndex)[_0x3ff2[13]][_0x3ff2[12]](routerStub)});describe(_0x3ff2[14],function(){it(_0x3ff2[15],function(){expect(routerStub[_0x3ff2[21]][_0x3ff2[20]](_0x3ff2[19],_0x3ff2[3]))[_0x3ff2[13]][_0x3ff2[18]][_0x3ff2[17]][_0x3ff2[16]]})});describe(_0x3ff2[22],function(){it(_0x3ff2[23],function(){expect(routerStub[_0x3ff2[21]][_0x3ff2[20]](_0x3ff2[24],_0x3ff2[4]))[_0x3ff2[13]][_0x3ff2[18]][_0x3ff2[17]][_0x3ff2[16]]})});describe(_0x3ff2[25],function(){it(_0x3ff2[26],function(){expect(routerStub[_0x3ff2[27]][_0x3ff2[20]](_0x3ff2[19],_0x3ff2[5]))[_0x3ff2[13]][_0x3ff2[18]][_0x3ff2[17]][_0x3ff2[16]]})});describe(_0x3ff2[28],function(){it(_0x3ff2[29],function(){expect(routerStub[_0x3ff2[30]][_0x3ff2[20]](_0x3ff2[24],_0x3ff2[6]))[_0x3ff2[13]][_0x3ff2[18]][_0x3ff2[17]][_0x3ff2[16]]})});describe(_0x3ff2[31],function(){it(_0x3ff2[29],function(){expect(routerStub[_0x3ff2[32]][_0x3ff2[20]](_0x3ff2[24],_0x3ff2[6]))[_0x3ff2[13]][_0x3ff2[18]][_0x3ff2[17]][_0x3ff2[16]]})});describe(_0x3ff2[33],function(){it(_0x3ff2[34],function(){expect(routerStub[_0x3ff2[35]][_0x3ff2[20]](_0x3ff2[24],_0x3ff2[7]))[_0x3ff2[13]][_0x3ff2[18]][_0x3ff2[17]][_0x3ff2[16]]})});});
\ No newline at end of file
+var _0x29ec=["\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"];_0x29ec[0];var proxyquire=require(_0x29ec[2])[_0x29ec[1]]();var sugarcrmFieldCtrlStub={index:_0x29ec[3],show:_0x29ec[4],create:_0x29ec[5],update:_0x29ec[6],destroy:_0x29ec[7]};var routerStub={get:sinon[_0x29ec[8]](),put:sinon[_0x29ec[8]](),patch:sinon[_0x29ec[8]](),post:sinon[_0x29ec[8]](),delete:sinon[_0x29ec[8]]()};var sugarcrmFieldIndex=proxyquire(_0x29ec[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(_0x29ec[10],function(){it(_0x29ec[11],function(){expect(sugarcrmFieldIndex)[_0x29ec[13]][_0x29ec[12]](routerStub)});describe(_0x29ec[14],function(){it(_0x29ec[15],function(){expect(routerStub[_0x29ec[21]][_0x29ec[20]](_0x29ec[19],_0x29ec[3]))[_0x29ec[13]][_0x29ec[18]][_0x29ec[17]][_0x29ec[16]]})});describe(_0x29ec[22],function(){it(_0x29ec[23],function(){expect(routerStub[_0x29ec[21]][_0x29ec[20]](_0x29ec[24],_0x29ec[4]))[_0x29ec[13]][_0x29ec[18]][_0x29ec[17]][_0x29ec[16]]})});describe(_0x29ec[25],function(){it(_0x29ec[26],function(){expect(routerStub[_0x29ec[27]][_0x29ec[20]](_0x29ec[19],_0x29ec[5]))[_0x29ec[13]][_0x29ec[18]][_0x29ec[17]][_0x29ec[16]]})});describe(_0x29ec[28],function(){it(_0x29ec[29],function(){expect(routerStub[_0x29ec[30]][_0x29ec[20]](_0x29ec[24],_0x29ec[6]))[_0x29ec[13]][_0x29ec[18]][_0x29ec[17]][_0x29ec[16]]})});describe(_0x29ec[31],function(){it(_0x29ec[29],function(){expect(routerStub[_0x29ec[32]][_0x29ec[20]](_0x29ec[24],_0x29ec[6]))[_0x29ec[13]][_0x29ec[18]][_0x29ec[17]][_0x29ec[16]]})});describe(_0x29ec[33],function(){it(_0x29ec[34],function(){expect(routerStub[_0x29ec[35]][_0x29ec[20]](_0x29ec[24],_0x29ec[7]))[_0x29ec[13]][_0x29ec[18]][_0x29ec[17]][_0x29ec[16]]})});});
\ No newline at end of file
-var _0x5e3b=["\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"];_0x5e3b[0];var _=require(_0x5e3b[1]);var SugarcrmField=require(_0x5e3b[3])[_0x5e3b[2]];function handleError(_0x39a2x4,_0x39a2x5){_0x39a2x5=_0x39a2x5||500;return function(_0x39a2x6){_0x39a2x4[_0x5e3b[5]](_0x39a2x5)[_0x5e3b[4]](_0x39a2x6)};}function responseWithResult(_0x39a2x4,_0x39a2x5){_0x39a2x5=_0x39a2x5||200;return function(_0x39a2x8){if(_0x39a2x8){_0x39a2x4[_0x5e3b[5]](_0x39a2x5)[_0x5e3b[6]](_0x39a2x8)}};}function handleEntityNotFound(_0x39a2x4){return function(_0x39a2x8){if(!_0x39a2x8){_0x39a2x4[_0x5e3b[5]](404)[_0x5e3b[7]]();return null;};return _0x39a2x8;}}function saveUpdates(_0x39a2xb){return function(_0x39a2x8){return _0x39a2x8[_0x5e3b[9]](_0x39a2xb)[_0x5e3b[8]](function(_0x39a2xc){return _0x39a2xc})}}function removeEntity(_0x39a2x4){return function(_0x39a2x8){if(_0x39a2x8){return _0x39a2x8[_0x5e3b[10]]()[_0x5e3b[8]](function(){_0x39a2x4[_0x5e3b[5]](204)[_0x5e3b[7]]()})}}}exports[_0x5e3b[11]]=function(_0x39a2xe,_0x39a2x4){SugarcrmField[_0x5e3b[13]]()[_0x5e3b[8]](responseWithResult(_0x39a2x4))[_0x5e3b[12]](handleError(_0x39a2x4))};exports[_0x5e3b[14]]=function(_0x39a2xe,_0x39a2x4){SugarcrmField[_0x5e3b[17]](_0x39a2xe[_0x5e3b[16]][_0x5e3b[15]])[_0x5e3b[8]](handleEntityNotFound(_0x39a2x4))[_0x5e3b[8]](responseWithResult(_0x39a2x4))[_0x5e3b[12]](handleError(_0x39a2x4))};exports[_0x5e3b[18]]=function(_0x39a2xe,_0x39a2x4){SugarcrmField[_0x5e3b[18]](_0x39a2xe[_0x5e3b[19]])[_0x5e3b[8]](responseWithResult(_0x39a2x4,201))[_0x5e3b[12]](handleError(_0x39a2x4))};exports[_0x5e3b[20]]=function(_0x39a2xe,_0x39a2x4){if(_0x39a2xe[_0x5e3b[19]][_0x5e3b[15]]){delete _0x39a2xe[_0x5e3b[19]][_0x5e3b[15]]};SugarcrmField[_0x5e3b[17]](_0x39a2xe[_0x5e3b[16]][_0x5e3b[15]])[_0x5e3b[8]](handleEntityNotFound(_0x39a2x4))[_0x5e3b[8]](saveUpdates(_0x39a2xe[_0x5e3b[19]]))[_0x5e3b[8]](responseWithResult(_0x39a2x4))[_0x5e3b[12]](handleError(_0x39a2x4));};exports[_0x5e3b[10]]=function(_0x39a2xe,_0x39a2x4){SugarcrmField[_0x5e3b[17]](_0x39a2xe[_0x5e3b[16]][_0x5e3b[15]])[_0x5e3b[8]](handleEntityNotFound(_0x39a2x4))[_0x5e3b[8]](removeEntity(_0x39a2x4))[_0x5e3b[12]](handleError(_0x39a2x4))};
\ No newline at end of file
+var _0x99e4=["\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"];_0x99e4[0];var _=require(_0x99e4[1]);var SugarcrmField=require(_0x99e4[3])[_0x99e4[2]];function handleError(_0xf6abx4,_0xf6abx5){_0xf6abx5=_0xf6abx5||500;return function(_0xf6abx6){_0xf6abx4[_0x99e4[5]](_0xf6abx5)[_0x99e4[4]](_0xf6abx6)};}function responseWithResult(_0xf6abx4,_0xf6abx5){_0xf6abx5=_0xf6abx5||200;return function(_0xf6abx8){if(_0xf6abx8){_0xf6abx4[_0x99e4[5]](_0xf6abx5)[_0x99e4[6]](_0xf6abx8)}};}function handleEntityNotFound(_0xf6abx4){return function(_0xf6abx8){if(!_0xf6abx8){_0xf6abx4[_0x99e4[5]](404)[_0x99e4[7]]();return null;};return _0xf6abx8;}}function saveUpdates(_0xf6abxb){return function(_0xf6abx8){return _0xf6abx8[_0x99e4[9]](_0xf6abxb)[_0x99e4[8]](function(_0xf6abxc){return _0xf6abxc})}}function removeEntity(_0xf6abx4){return function(_0xf6abx8){if(_0xf6abx8){return _0xf6abx8[_0x99e4[10]]()[_0x99e4[8]](function(){_0xf6abx4[_0x99e4[5]](204)[_0x99e4[7]]()})}}}exports[_0x99e4[11]]=function(_0xf6abxe,_0xf6abx4){SugarcrmField[_0x99e4[13]]()[_0x99e4[8]](responseWithResult(_0xf6abx4))[_0x99e4[12]](handleError(_0xf6abx4))};exports[_0x99e4[14]]=function(_0xf6abxe,_0xf6abx4){SugarcrmField[_0x99e4[17]](_0xf6abxe[_0x99e4[16]][_0x99e4[15]])[_0x99e4[8]](handleEntityNotFound(_0xf6abx4))[_0x99e4[8]](responseWithResult(_0xf6abx4))[_0x99e4[12]](handleError(_0xf6abx4))};exports[_0x99e4[18]]=function(_0xf6abxe,_0xf6abx4){SugarcrmField[_0x99e4[18]](_0xf6abxe[_0x99e4[19]])[_0x99e4[8]](responseWithResult(_0xf6abx4,201))[_0x99e4[12]](handleError(_0xf6abx4))};exports[_0x99e4[20]]=function(_0xf6abxe,_0xf6abx4){if(_0xf6abxe[_0x99e4[19]][_0x99e4[15]]){delete _0xf6abxe[_0x99e4[19]][_0x99e4[15]]};SugarcrmField[_0x99e4[17]](_0xf6abxe[_0x99e4[16]][_0x99e4[15]])[_0x99e4[8]](handleEntityNotFound(_0xf6abx4))[_0x99e4[8]](saveUpdates(_0xf6abxe[_0x99e4[19]]))[_0x99e4[8]](responseWithResult(_0xf6abx4))[_0x99e4[12]](handleError(_0xf6abx4));};exports[_0x99e4[10]]=function(_0xf6abxe,_0xf6abx4){SugarcrmField[_0x99e4[17]](_0xf6abxe[_0x99e4[16]][_0x99e4[15]])[_0x99e4[8]](handleEntityNotFound(_0xf6abx4))[_0x99e4[8]](removeEntity(_0xf6abx4))[_0x99e4[12]](handleError(_0xf6abx4))};
\ No newline at end of file
-var _0xddf4=["\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"];_0xddf4[0];var SugarcrmField=require(_0xddf4[2])[_0xddf4[1]];exports[_0xddf4[3]]=function(_0x6a18x2){SugarcrmField[_0xddf4[4]](function(_0x6a18x3){onSave(_0x6a18x2,_0x6a18x3)});SugarcrmField[_0xddf4[5]](function(_0x6a18x3){onRemove(_0x6a18x2,_0x6a18x3)});};function onSave(_0x6a18x2,_0x6a18x3,_0x6a18x5){_0x6a18x2[_0xddf4[7]](_0xddf4[6],_0x6a18x3)}function onRemove(_0x6a18x2,_0x6a18x3,_0x6a18x5){_0x6a18x2[_0xddf4[7]](_0xddf4[8],_0x6a18x3)}
\ No newline at end of file
+var _0x48f8=["\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"];_0x48f8[0];var SugarcrmField=require(_0x48f8[2])[_0x48f8[1]];exports[_0x48f8[3]]=function(_0x46e7x2){SugarcrmField[_0x48f8[4]](function(_0x46e7x3){onSave(_0x46e7x2,_0x46e7x3)});SugarcrmField[_0x48f8[5]](function(_0x46e7x3){onRemove(_0x46e7x2,_0x46e7x3)});};function onSave(_0x46e7x2,_0x46e7x3,_0x46e7x5){_0x46e7x2[_0x48f8[7]](_0x48f8[6],_0x46e7x3)}function onRemove(_0x46e7x2,_0x46e7x3,_0x46e7x5){_0x46e7x2[_0x48f8[7]](_0x48f8[8],_0x46e7x3)}
\ No newline at end of file
-var _0xbe1c=["\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"];_0xbe1c[0];var express=require(_0xbe1c[1]);var controller=require(_0xbe1c[2]);var auth=require(_0xbe1c[3]);var router=express.Router();router[_0xbe1c[7]](_0xbe1c[4],auth[_0xbe1c[5]](),controller[_0xbe1c[6]]);router[_0xbe1c[7]](_0xbe1c[8],auth[_0xbe1c[5]](),controller[_0xbe1c[9]]);router[_0xbe1c[11]](_0xbe1c[4],auth[_0xbe1c[5]](),controller[_0xbe1c[10]]);router[_0xbe1c[11]](_0xbe1c[12],auth[_0xbe1c[5]](),controller[_0xbe1c[13]]);router[_0xbe1c[15]](_0xbe1c[8],auth[_0xbe1c[5]](),controller[_0xbe1c[14]]);router[_0xbe1c[16]](_0xbe1c[8],auth[_0xbe1c[5]](),controller[_0xbe1c[14]]);router[_0xbe1c[18]](_0xbe1c[4],auth[_0xbe1c[5]](),controller[_0xbe1c[17]]);router[_0xbe1c[18]](_0xbe1c[8],auth[_0xbe1c[5]](),controller[_0xbe1c[19]]);module[_0xbe1c[20]]=router;
\ No newline at end of file
+var _0x74f3=["\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"];_0x74f3[0];var express=require(_0x74f3[1]);var controller=require(_0x74f3[2]);var auth=require(_0x74f3[3]);var router=express.Router();router[_0x74f3[7]](_0x74f3[4],auth[_0x74f3[5]](),controller[_0x74f3[6]]);router[_0x74f3[7]](_0x74f3[8],auth[_0x74f3[5]](),controller[_0x74f3[9]]);router[_0x74f3[11]](_0x74f3[4],auth[_0x74f3[5]](),controller[_0x74f3[10]]);router[_0x74f3[11]](_0x74f3[12],auth[_0x74f3[5]](),controller[_0x74f3[13]]);router[_0x74f3[15]](_0x74f3[8],auth[_0x74f3[5]](),controller[_0x74f3[14]]);router[_0x74f3[16]](_0x74f3[8],auth[_0x74f3[5]](),controller[_0x74f3[14]]);router[_0x74f3[18]](_0x74f3[4],auth[_0x74f3[5]](),controller[_0x74f3[17]]);router[_0x74f3[18]](_0x74f3[8],auth[_0x74f3[5]](),controller[_0x74f3[19]]);module[_0x74f3[20]]=router;
\ No newline at end of file
-var _0xac85=["\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"];_0xac85[0];var _=require(_0xac85[1]);var Tag=require(_0xac85[3])[_0xac85[2]];var util=require(_0xac85[4]);exports[_0xac85[5]]=function(_0x3d1ex4,_0x3d1ex5){var _0x3d1ex6=[_0xac85[6],_0xac85[7]];var _0x3d1ex7=_0x3d1ex4[_0xac85[9]][_0xac85[8]]?parseInt(_0x3d1ex4[_0xac85[9]][_0xac85[8]],10):100;var _0x3d1ex8=_0x3d1ex4[_0xac85[9]][_0xac85[10]]?parseInt(_0x3d1ex4[_0xac85[9]][_0xac85[10]],10):0;var _0x3d1ex9={where:{},limit:_0x3d1ex7,offset:_0x3d1ex8*_0x3d1ex7};_[_0xac85[24]](_0x3d1ex4[_0xac85[9]],function(_0x3d1exa,_0x3d1exb){switch(_0x3d1exb){case _0xac85[8]:;case _0xac85[10]:break ;;case _0xac85[13]:_0x3d1ex9[_0xac85[11]]=util[_0xac85[16]](_0xac85[12],_0x3d1ex4[_0xac85[9]][_0xac85[13]],_0x3d1ex4[_0xac85[9]][_0xac85[14]]||_0xac85[15])||null;break ;;case _0xac85[14]:break ;;case _0xac85[22]:_0x3d1ex9[_0xac85[18]][_0xac85[17]]=[];_0x3d1ex6[_0xac85[21]](function(_0x3d1exc){var _0x3d1exd={};_0x3d1exd[_0x3d1exc]={$like:_0xac85[19]+_0x3d1exa+_0xac85[19]};_0x3d1ex9[_0xac85[18]][_0xac85[17]][_0xac85[20]](_0x3d1exd);});break ;;default:_0x3d1ex9[_0xac85[18]][_0x3d1exb]={$like:{}};_0x3d1ex9[_0xac85[18]][_0x3d1exb][_0xac85[23]]=_0xac85[19]+_0x3d1exa+_0xac85[19];;}});console[_0xac85[25]](_0x3d1ex9);Tag[_0xac85[40]](_0x3d1ex9)[_0xac85[39]](function(_0x3d1exf){var _0x3d1ex10=Math[_0xac85[31]](_0x3d1exf[_0xac85[30]]/_0x3d1ex7);var _0x3d1ex11=_0x3d1ex10>(_0x3d1ex9[_0xac85[32]]+1)?util[_0xac85[16]](_0xac85[33],_0x3d1ex4[_0xac85[34]],_0x3d1ex4[_0xac85[36]][_0xac85[35]],_0x3d1ex4[_0xac85[37]],_0x3d1ex8+1):null;var _0x3d1ex12=_0x3d1ex8>0?util[_0xac85[16]](_0xac85[33],_0x3d1ex4[_0xac85[34]],_0x3d1ex4[_0xac85[36]][_0xac85[35]],_0x3d1ex4[_0xac85[37]],_0x3d1ex8-1):null;_0x3d1ex5[_0xac85[28]](200)[_0xac85[27]]({count:_0x3d1exf[_0xac85[30]],rows:_0x3d1exf[_0xac85[38]],next_page:_0x3d1ex11,previous_page:_0x3d1ex12,total_pages:_0x3d1ex10});})[_0xac85[29]](function(_0x3d1exe){_0x3d1ex5[_0xac85[28]](500)[_0xac85[27]]({error:_0xac85[26]})});};exports[_0xac85[41]]=function(_0x3d1ex4,_0x3d1ex5){console[_0xac85[25]](_0x3d1ex4[_0xac85[42]]);Tag[_0xac85[44]]({where:{name:_0x3d1ex4[_0xac85[42]][_0xac85[6]]}})[_0xac85[39]](function(_0x3d1ex13){if(!_0x3d1ex13){return _0x3d1ex5[_0xac85[43]](404)};return _0x3d1ex5[_0xac85[27]](_0x3d1ex13);})[_0xac85[29]](function(_0x3d1exe){return handleError(_0x3d1ex5,_0x3d1exe)});};exports[_0xac85[45]]=function(_0x3d1ex4,_0x3d1ex5){Tag[_0xac85[48]](_0x3d1ex4[_0xac85[47]][_0xac85[46]])[_0xac85[39]](function(_0x3d1ex14){if(!_0x3d1ex14){return _0x3d1ex5[_0xac85[43]](404)};return _0x3d1ex5[_0xac85[27]](_0x3d1ex14);})[_0xac85[29]](function(_0x3d1exe){return handleError(_0x3d1ex5,_0x3d1exe)})};exports[_0xac85[49]]=function(_0x3d1ex4,_0x3d1ex5){Tag[_0xac85[49]](_0x3d1ex4[_0xac85[42]])[_0xac85[39]](function(_0x3d1ex14){return _0x3d1ex5[_0xac85[28]](201)[_0xac85[27]](_0x3d1ex14)})[_0xac85[29]](function(_0x3d1exe){return handleError(_0x3d1ex5,_0x3d1exe)})};exports[_0xac85[50]]=function(_0x3d1ex4,_0x3d1ex5){Tag[_0xac85[44]]({where:{name:_0x3d1ex4[_0xac85[42]][_0xac85[6]],id:{$ne:_0x3d1ex4[_0xac85[42]][_0xac85[46]]}}})[_0xac85[39]](function(_0x3d1ex13){if(!_0x3d1ex13){return _0x3d1ex5[_0xac85[43]](404)};if(_0x3d1ex13[_0xac85[51]]>0){return _0x3d1ex5[_0xac85[28]](500)[_0xac85[27]]({message:_0xac85[52]})};if(_0x3d1ex4[_0xac85[42]][_0xac85[46]]){delete _0x3d1ex4[_0xac85[42]][_0xac85[46]]};Tag[_0xac85[55]]({where:{id:_0x3d1ex4[_0xac85[47]][_0xac85[46]]}})[_0xac85[39]](function(_0x3d1ex14){if(!_0x3d1ex14){return _0x3d1ex5[_0xac85[43]](404)};var _0x3d1ex15=_[_0xac85[53]](_0x3d1ex14,_0x3d1ex4[_0xac85[42]]);_0x3d1ex15[_0xac85[54]]()[_0xac85[39]](function(){return _0x3d1ex5[_0xac85[28]](200)[_0xac85[27]](_0x3d1ex14)})[_0xac85[29]](function(_0x3d1exe){return handleError(_0x3d1ex5,_0x3d1exe)});})[_0xac85[29]](function(_0x3d1exe){return handleError(_0x3d1ex5,_0x3d1exe)});})[_0xac85[29]](function(_0x3d1exe){return handleError(_0x3d1ex5,_0x3d1exe)})};exports[_0xac85[56]]=function(_0x3d1ex4,_0x3d1ex5){Tag[_0xac85[48]](_0x3d1ex4[_0xac85[47]][_0xac85[46]])[_0xac85[39]](function(_0x3d1ex14){if(!_0x3d1ex14){return _0x3d1ex5[_0xac85[43]](404)};_0x3d1ex14[_0xac85[56]]()[_0xac85[39]](function(){return _0x3d1ex5[_0xac85[43]](204)})[_0xac85[29]](function(_0x3d1exe){return handleError(_0x3d1ex5,_0x3d1exe)});})[_0xac85[29]](function(_0x3d1exe){return handleError(_0x3d1ex5,_0x3d1exe)})};exports[_0xac85[57]]=function(_0x3d1ex4,_0x3d1ex5){Tag[_0xac85[56]]({where:{id:_0x3d1ex4[_0xac85[9]][_0xac85[46]]},individualHooks:true})[_0xac85[39]](function(){return _0x3d1ex5[_0xac85[43]](204)})[_0xac85[29]](function(_0x3d1exe){return handleError(_0x3d1ex5,_0x3d1exe)})};function handleError(_0x3d1ex5,_0x3d1exe){return _0x3d1ex5[_0xac85[28]](500)[_0xac85[27]](_0x3d1exe)}
\ No newline at end of file
+var _0xa576=["\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"];_0xa576[0];var _=require(_0xa576[1]);var Tag=require(_0xa576[3])[_0xa576[2]];var util=require(_0xa576[4]);exports[_0xa576[5]]=function(_0xd5e4x4,_0xd5e4x5){var _0xd5e4x6=[_0xa576[6],_0xa576[7]];var _0xd5e4x7=_0xd5e4x4[_0xa576[9]][_0xa576[8]]?parseInt(_0xd5e4x4[_0xa576[9]][_0xa576[8]],10):100;var _0xd5e4x8=_0xd5e4x4[_0xa576[9]][_0xa576[10]]?parseInt(_0xd5e4x4[_0xa576[9]][_0xa576[10]],10):0;var _0xd5e4x9={where:{},limit:_0xd5e4x7,offset:_0xd5e4x8*_0xd5e4x7};_[_0xa576[24]](_0xd5e4x4[_0xa576[9]],function(_0xd5e4xa,_0xd5e4xb){switch(_0xd5e4xb){case _0xa576[8]:;case _0xa576[10]:break ;;case _0xa576[13]:_0xd5e4x9[_0xa576[11]]=util[_0xa576[16]](_0xa576[12],_0xd5e4x4[_0xa576[9]][_0xa576[13]],_0xd5e4x4[_0xa576[9]][_0xa576[14]]||_0xa576[15])||null;break ;;case _0xa576[14]:break ;;case _0xa576[22]:_0xd5e4x9[_0xa576[18]][_0xa576[17]]=[];_0xd5e4x6[_0xa576[21]](function(_0xd5e4xc){var _0xd5e4xd={};_0xd5e4xd[_0xd5e4xc]={$like:_0xa576[19]+_0xd5e4xa+_0xa576[19]};_0xd5e4x9[_0xa576[18]][_0xa576[17]][_0xa576[20]](_0xd5e4xd);});break ;;default:_0xd5e4x9[_0xa576[18]][_0xd5e4xb]={$like:{}};_0xd5e4x9[_0xa576[18]][_0xd5e4xb][_0xa576[23]]=_0xa576[19]+_0xd5e4xa+_0xa576[19];;}});console[_0xa576[25]](_0xd5e4x9);Tag[_0xa576[40]](_0xd5e4x9)[_0xa576[39]](function(_0xd5e4xf){var _0xd5e4x10=Math[_0xa576[31]](_0xd5e4xf[_0xa576[30]]/_0xd5e4x7);var _0xd5e4x11=_0xd5e4x10>(_0xd5e4x9[_0xa576[32]]+1)?util[_0xa576[16]](_0xa576[33],_0xd5e4x4[_0xa576[34]],_0xd5e4x4[_0xa576[36]][_0xa576[35]],_0xd5e4x4[_0xa576[37]],_0xd5e4x8+1):null;var _0xd5e4x12=_0xd5e4x8>0?util[_0xa576[16]](_0xa576[33],_0xd5e4x4[_0xa576[34]],_0xd5e4x4[_0xa576[36]][_0xa576[35]],_0xd5e4x4[_0xa576[37]],_0xd5e4x8-1):null;_0xd5e4x5[_0xa576[28]](200)[_0xa576[27]]({count:_0xd5e4xf[_0xa576[30]],rows:_0xd5e4xf[_0xa576[38]],next_page:_0xd5e4x11,previous_page:_0xd5e4x12,total_pages:_0xd5e4x10});})[_0xa576[29]](function(_0xd5e4xe){_0xd5e4x5[_0xa576[28]](500)[_0xa576[27]]({error:_0xa576[26]})});};exports[_0xa576[41]]=function(_0xd5e4x4,_0xd5e4x5){console[_0xa576[25]](_0xd5e4x4[_0xa576[42]]);Tag[_0xa576[44]]({where:{name:_0xd5e4x4[_0xa576[42]][_0xa576[6]]}})[_0xa576[39]](function(_0xd5e4x13){if(!_0xd5e4x13){return _0xd5e4x5[_0xa576[43]](404)};return _0xd5e4x5[_0xa576[27]](_0xd5e4x13);})[_0xa576[29]](function(_0xd5e4xe){return handleError(_0xd5e4x5,_0xd5e4xe)});};exports[_0xa576[45]]=function(_0xd5e4x4,_0xd5e4x5){Tag[_0xa576[48]](_0xd5e4x4[_0xa576[47]][_0xa576[46]])[_0xa576[39]](function(_0xd5e4x14){if(!_0xd5e4x14){return _0xd5e4x5[_0xa576[43]](404)};return _0xd5e4x5[_0xa576[27]](_0xd5e4x14);})[_0xa576[29]](function(_0xd5e4xe){return handleError(_0xd5e4x5,_0xd5e4xe)})};exports[_0xa576[49]]=function(_0xd5e4x4,_0xd5e4x5){Tag[_0xa576[49]](_0xd5e4x4[_0xa576[42]])[_0xa576[39]](function(_0xd5e4x14){return _0xd5e4x5[_0xa576[28]](201)[_0xa576[27]](_0xd5e4x14)})[_0xa576[29]](function(_0xd5e4xe){return handleError(_0xd5e4x5,_0xd5e4xe)})};exports[_0xa576[50]]=function(_0xd5e4x4,_0xd5e4x5){Tag[_0xa576[44]]({where:{name:_0xd5e4x4[_0xa576[42]][_0xa576[6]],id:{$ne:_0xd5e4x4[_0xa576[42]][_0xa576[46]]}}})[_0xa576[39]](function(_0xd5e4x13){if(!_0xd5e4x13){return _0xd5e4x5[_0xa576[43]](404)};if(_0xd5e4x13[_0xa576[51]]>0){return _0xd5e4x5[_0xa576[28]](500)[_0xa576[27]]({message:_0xa576[52]})};if(_0xd5e4x4[_0xa576[42]][_0xa576[46]]){delete _0xd5e4x4[_0xa576[42]][_0xa576[46]]};Tag[_0xa576[55]]({where:{id:_0xd5e4x4[_0xa576[47]][_0xa576[46]]}})[_0xa576[39]](function(_0xd5e4x14){if(!_0xd5e4x14){return _0xd5e4x5[_0xa576[43]](404)};var _0xd5e4x15=_[_0xa576[53]](_0xd5e4x14,_0xd5e4x4[_0xa576[42]]);_0xd5e4x15[_0xa576[54]]()[_0xa576[39]](function(){return _0xd5e4x5[_0xa576[28]](200)[_0xa576[27]](_0xd5e4x14)})[_0xa576[29]](function(_0xd5e4xe){return handleError(_0xd5e4x5,_0xd5e4xe)});})[_0xa576[29]](function(_0xd5e4xe){return handleError(_0xd5e4x5,_0xd5e4xe)});})[_0xa576[29]](function(_0xd5e4xe){return handleError(_0xd5e4x5,_0xd5e4xe)})};exports[_0xa576[56]]=function(_0xd5e4x4,_0xd5e4x5){Tag[_0xa576[48]](_0xd5e4x4[_0xa576[47]][_0xa576[46]])[_0xa576[39]](function(_0xd5e4x14){if(!_0xd5e4x14){return _0xd5e4x5[_0xa576[43]](404)};_0xd5e4x14[_0xa576[56]]()[_0xa576[39]](function(){return _0xd5e4x5[_0xa576[43]](204)})[_0xa576[29]](function(_0xd5e4xe){return handleError(_0xd5e4x5,_0xd5e4xe)});})[_0xa576[29]](function(_0xd5e4xe){return handleError(_0xd5e4x5,_0xd5e4xe)})};exports[_0xa576[57]]=function(_0xd5e4x4,_0xd5e4x5){Tag[_0xa576[56]]({where:{id:_0xd5e4x4[_0xa576[9]][_0xa576[46]]},individualHooks:true})[_0xa576[39]](function(){return _0xd5e4x5[_0xa576[43]](204)})[_0xa576[29]](function(_0xd5e4xe){return handleError(_0xd5e4x5,_0xd5e4xe)})};function handleError(_0xd5e4x5,_0xd5e4xe){return _0xd5e4x5[_0xa576[28]](500)[_0xa576[27]](_0xd5e4xe)}
\ No newline at end of file
-var _0x46fc=["\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"];_0x46fc[0];var Tag=require(_0x46fc[2])[_0x46fc[1]];exports[_0x46fc[3]]=function(_0x71e7x2){Tag[_0x46fc[4]](function(_0x71e7x3){onSave(_0x71e7x2,_0x71e7x3)});Tag[_0x46fc[5]](function(_0x71e7x3){onRemove(_0x71e7x2,_0x71e7x3)});};function onSave(_0x71e7x2,_0x71e7x3,_0x71e7x5){_0x71e7x2[_0x46fc[7]](_0x46fc[6],_0x71e7x3)}function onRemove(_0x71e7x2,_0x71e7x3,_0x71e7x5){_0x71e7x2[_0x46fc[7]](_0x46fc[8],_0x71e7x3)}
\ No newline at end of file
+var _0x9b5c=["\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"];_0x9b5c[0];var Tag=require(_0x9b5c[2])[_0x9b5c[1]];exports[_0x9b5c[3]]=function(_0x4f08x2){Tag[_0x9b5c[4]](function(_0x4f08x3){onSave(_0x4f08x2,_0x4f08x3)});Tag[_0x9b5c[5]](function(_0x4f08x3){onRemove(_0x4f08x2,_0x4f08x3)});};function onSave(_0x4f08x2,_0x4f08x3,_0x4f08x5){_0x4f08x2[_0x9b5c[7]](_0x9b5c[6],_0x4f08x3)}function onRemove(_0x4f08x2,_0x4f08x3,_0x4f08x5){_0x4f08x2[_0x9b5c[7]](_0x9b5c[8],_0x4f08x3)}
\ No newline at end of file
-var _0x3788=["\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"];_0x3788[0];var should=require(_0x3788[1]);var app=require(_0x3788[2]);var request=require(_0x3788[3]);describe(_0x3788[4],function(){it(_0x3788[5],function(_0xb4bex4){request(app)[_0x3788[13]](_0x3788[12])[_0x3788[11]](200)[_0x3788[11]](_0x3788[10],/json/)[_0x3788[9]](function(_0xb4bex5,_0xb4bex6){if(_0xb4bex5){return _0xb4bex4(_0xb4bex5)};_0xb4bex6[_0x3788[8]][_0x3788[1]][_0x3788[7]][_0x3788[6]](Array);_0xb4bex4();})})});
\ No newline at end of file
+var _0xde6f=["\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"];_0xde6f[0];var should=require(_0xde6f[1]);var app=require(_0xde6f[2]);var request=require(_0xde6f[3]);describe(_0xde6f[4],function(){it(_0xde6f[5],function(_0x8f4dx4){request(app)[_0xde6f[13]](_0xde6f[12])[_0xde6f[11]](200)[_0xde6f[11]](_0xde6f[10],/json/)[_0xde6f[9]](function(_0x8f4dx5,_0x8f4dx6){if(_0x8f4dx5){return _0x8f4dx4(_0x8f4dx5)};_0x8f4dx6[_0xde6f[8]][_0xde6f[1]][_0xde6f[7]][_0xde6f[6]](Array);_0x8f4dx4();})})});
\ No newline at end of file
-var _0xf8d6=["\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"];_0xf8d6[0];var express=require(_0xf8d6[1]);var controller=require(_0xf8d6[2]);var auth=require(_0xf8d6[3]);var router=express.Router();router[_0xf8d6[7]](_0xf8d6[4],auth[_0xf8d6[5]](),controller[_0xf8d6[6]]);router[_0xf8d6[7]](_0xf8d6[8],auth[_0xf8d6[5]](),controller[_0xf8d6[9]]);router[_0xf8d6[11]](_0xf8d6[4],auth[_0xf8d6[5]](),controller[_0xf8d6[10]]);router[_0xf8d6[11]](_0xf8d6[12],auth[_0xf8d6[5]](),controller[_0xf8d6[13]]);router[_0xf8d6[15]](_0xf8d6[8],auth[_0xf8d6[5]](),controller[_0xf8d6[14]]);router[_0xf8d6[15]](_0xf8d6[12],auth[_0xf8d6[5]](),controller[_0xf8d6[16]]);router[_0xf8d6[17]](_0xf8d6[8],auth[_0xf8d6[5]](),controller[_0xf8d6[14]]);router[_0xf8d6[19]](_0xf8d6[4],auth[_0xf8d6[5]](),controller[_0xf8d6[18]]);router[_0xf8d6[19]](_0xf8d6[8],auth[_0xf8d6[5]](),controller[_0xf8d6[20]]);module[_0xf8d6[21]]=router;
\ No newline at end of file
+var _0xc3fc=["\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"];_0xc3fc[0];var express=require(_0xc3fc[1]);var controller=require(_0xc3fc[2]);var auth=require(_0xc3fc[3]);var router=express.Router();router[_0xc3fc[7]](_0xc3fc[4],auth[_0xc3fc[5]](),controller[_0xc3fc[6]]);router[_0xc3fc[7]](_0xc3fc[8],auth[_0xc3fc[5]](),controller[_0xc3fc[9]]);router[_0xc3fc[11]](_0xc3fc[4],auth[_0xc3fc[5]](),controller[_0xc3fc[10]]);router[_0xc3fc[11]](_0xc3fc[12],auth[_0xc3fc[5]](),controller[_0xc3fc[13]]);router[_0xc3fc[15]](_0xc3fc[8],auth[_0xc3fc[5]](),controller[_0xc3fc[14]]);router[_0xc3fc[15]](_0xc3fc[12],auth[_0xc3fc[5]](),controller[_0xc3fc[16]]);router[_0xc3fc[17]](_0xc3fc[8],auth[_0xc3fc[5]](),controller[_0xc3fc[14]]);router[_0xc3fc[19]](_0xc3fc[4],auth[_0xc3fc[5]](),controller[_0xc3fc[18]]);router[_0xc3fc[19]](_0xc3fc[8],auth[_0xc3fc[5]](),controller[_0xc3fc[20]]);module[_0xc3fc[21]]=router;
\ No newline at end of file
-var _0x3189=["\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"];_0x3189[0];var _=require(_0x3189[1]);var util=require(_0x3189[2]);var Team=require(_0x3189[4])[_0x3189[3]];var User=require(_0x3189[4])[_0x3189[5]];exports[_0x3189[6]]=function(_0xa510x5,_0xa510x6){var _0xa510x7=[_0x3189[7],_0x3189[8]];var _0xa510x8=_0xa510x5[_0x3189[10]][_0x3189[9]]?parseInt(_0xa510x5[_0x3189[10]][_0x3189[9]],10):100;var _0xa510x9=_0xa510x5[_0x3189[10]][_0x3189[11]]?parseInt(_0xa510x5[_0x3189[10]][_0x3189[11]],10):0;var _0xa510xa={where:{},include:[{all:true}],limit:_0xa510x8,offset:_0xa510x9*_0xa510x8};_[_0x3189[25]](_0xa510x5[_0x3189[10]],function(_0xa510xb,_0xa510xc){switch(_0xa510xc){case _0x3189[9]:;case _0x3189[11]:break ;;case _0x3189[14]:_0xa510xa[_0x3189[12]]=util[_0x3189[17]](_0x3189[13],_0xa510x5[_0x3189[10]][_0x3189[14]],_0xa510x5[_0x3189[10]][_0x3189[15]]||_0x3189[16])||null;break ;;case _0x3189[15]:break ;;case _0x3189[23]:_0xa510xa[_0x3189[19]][_0x3189[18]]=[];_0xa510x7[_0x3189[22]](function(_0xa510xd){var _0xa510xe={};_0xa510xe[_0xa510xd]={$like:_0x3189[20]+_0xa510xb+_0x3189[20]};_0xa510xa[_0x3189[19]][_0x3189[18]][_0x3189[21]](_0xa510xe);});break ;;default:_0xa510xa[_0x3189[19]][_0xa510xc]={$like:{}};_0xa510xa[_0x3189[19]][_0xa510xc][_0x3189[24]]=_0x3189[20]+_0xa510xb+_0x3189[20];;}});Team[_0x3189[40]](_0xa510xa)[_0x3189[39]](function(_0xa510x10){var _0xa510x11=Math[_0x3189[31]](_0xa510x10[_0x3189[30]]/_0xa510x8);var _0xa510x12=_0xa510x11>(_0xa510xa[_0x3189[32]]+1)?util[_0x3189[17]](_0x3189[33],_0xa510x5[_0x3189[34]],_0xa510x5[_0x3189[36]][_0x3189[35]],_0xa510x5[_0x3189[37]],_0xa510x9+1):null;var _0xa510x13=_0xa510x9>0?util[_0x3189[17]](_0x3189[33],_0xa510x5[_0x3189[34]],_0xa510x5[_0x3189[36]][_0x3189[35]],_0xa510x5[_0x3189[37]],_0xa510x9-1):null;_0xa510x6[_0x3189[28]](200)[_0x3189[27]]({count:_0xa510x10[_0x3189[30]],rows:_0xa510x10[_0x3189[38]],next_page:_0xa510x12,previous_page:_0xa510x13,total_pages:_0xa510x11});})[_0x3189[29]](function(_0xa510xf){_0xa510x6[_0x3189[28]](500)[_0x3189[27]]({error:_0x3189[26]})});};exports[_0x3189[41]]=function(_0xa510x5,_0xa510x6){Team[_0x3189[45]]({where:{id:_0xa510x5[_0x3189[44]][_0x3189[43]]},include:[User]})[_0x3189[39]](function(_0xa510x14){if(!_0xa510x14){return _0xa510x6[_0x3189[42]](404)};return _0xa510x6[_0x3189[27]](_0xa510x14);})[_0x3189[29]](function(_0xa510xf){return handleError(_0xa510x6,_0xa510xf)})};exports[_0x3189[46]]=function(_0xa510x5,_0xa510x6){Team[_0x3189[46]](_0xa510x5[_0x3189[47]])[_0x3189[39]](function(_0xa510x14){return _0xa510x6[_0x3189[28]](201)[_0x3189[27]](_0xa510x14)})[_0x3189[29]](function(_0xa510xf){return handleError(_0xa510x6,_0xa510xf)})};exports[_0x3189[48]]=function(_0xa510x5,_0xa510x6){if(_0xa510x5[_0x3189[47]][_0x3189[43]]){delete _0xa510x5[_0x3189[47]][_0x3189[43]]};Team[_0x3189[45]]({where:{id:_0xa510x5[_0x3189[44]][_0x3189[43]]}})[_0x3189[39]](function(_0xa510x14){if(!_0xa510x14){return _0xa510x6[_0x3189[42]](404)};var _0xa510x15=_[_0x3189[49]](_0xa510x14,_0xa510x5[_0x3189[47]]);_0xa510x15[_0x3189[50]]()[_0x3189[39]](function(){return _0xa510x6[_0x3189[28]](200)[_0x3189[27]](_0xa510x14)})[_0x3189[29]](function(_0xa510xf){return handleError(_0xa510x6,_0xa510xf)});})[_0x3189[29]](function(_0xa510xf){return handleError(_0xa510x6,_0xa510xf)});};exports[_0x3189[51]]=function(_0xa510x5,_0xa510x6){Team[_0x3189[45]]({where:{id:_0xa510x5[_0x3189[44]][_0x3189[43]]}})[_0x3189[39]](function(_0xa510x14){if(!_0xa510x14){return _0xa510x6[_0x3189[42]](404)};_0xa510x14[_0x3189[51]]()[_0x3189[39]](function(){return _0xa510x6[_0x3189[42]](204)})[_0x3189[29]](function(_0xa510xf){return handleError(_0xa510x6,_0xa510xf)});})[_0x3189[29]](function(_0xa510xf){return handleError(_0xa510x6,_0xa510xf)})};exports[_0x3189[52]]=function(_0xa510x5,_0xa510x6){Team[_0x3189[51]]({where:{id:_0xa510x5[_0x3189[10]][_0x3189[43]]},individualHooks:true})[_0x3189[39]](function(){return _0xa510x6[_0x3189[42]](204)})[_0x3189[29]](function(_0xa510xf){return handleError(_0xa510x6,_0xa510xf)})};exports[_0x3189[53]]=function(_0xa510x5,_0xa510x6,_0xa510x16){Team[_0x3189[57]](_0xa510x5[_0x3189[44]][_0x3189[43]])[_0x3189[39]](function(_0xa510x14){if(_0xa510x14){_0xa510x14[_0x3189[55]](_0xa510x5[_0x3189[47]][_0x3189[54]])[_0x3189[39]](function(){return _0xa510x6[_0x3189[42]](200)})[_0x3189[29]](function(_0xa510xf){return _0xa510x16(_0xa510xf)})}else {return _0xa510x16( new Error(_0x3189[56]))}})[_0x3189[29]](function(_0xa510xf){return _0xa510x16(_0xa510xf)})};exports[_0x3189[58]]=function(_0xa510x5,_0xa510x6,_0xa510x16){Team[_0x3189[57]](_0xa510x5[_0x3189[44]][_0x3189[43]])[_0x3189[39]](function(_0xa510x14){if(_0xa510x14){_0xa510x14[_0x3189[59]](_0xa510x5[_0x3189[47]][_0x3189[54]])[_0x3189[39]](function(){return _0xa510x6[_0x3189[42]](200)})[_0x3189[29]](function(_0xa510xf){return _0xa510x16(_0xa510xf)})}else {return _0xa510x16( new Error(_0x3189[56]))}})[_0x3189[29]](function(_0xa510xf){return _0xa510x16(_0xa510xf)})};function handleError(_0xa510x6,_0xa510xf){return _0xa510x6[_0x3189[28]](500)[_0x3189[27]](_0xa510xf)}
\ No newline at end of file
+var _0x7499=["\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"];_0x7499[0];var _=require(_0x7499[1]);var util=require(_0x7499[2]);var Team=require(_0x7499[4])[_0x7499[3]];var User=require(_0x7499[4])[_0x7499[5]];exports[_0x7499[6]]=function(_0xa3d1x5,_0xa3d1x6){var _0xa3d1x7=[_0x7499[7],_0x7499[8]];var _0xa3d1x8=_0xa3d1x5[_0x7499[10]][_0x7499[9]]?parseInt(_0xa3d1x5[_0x7499[10]][_0x7499[9]],10):100;var _0xa3d1x9=_0xa3d1x5[_0x7499[10]][_0x7499[11]]?parseInt(_0xa3d1x5[_0x7499[10]][_0x7499[11]],10):0;var _0xa3d1xa={where:{},include:[{all:true}],limit:_0xa3d1x8,offset:_0xa3d1x9*_0xa3d1x8};_[_0x7499[25]](_0xa3d1x5[_0x7499[10]],function(_0xa3d1xb,_0xa3d1xc){switch(_0xa3d1xc){case _0x7499[9]:;case _0x7499[11]:break ;;case _0x7499[14]:_0xa3d1xa[_0x7499[12]]=util[_0x7499[17]](_0x7499[13],_0xa3d1x5[_0x7499[10]][_0x7499[14]],_0xa3d1x5[_0x7499[10]][_0x7499[15]]||_0x7499[16])||null;break ;;case _0x7499[15]:break ;;case _0x7499[23]:_0xa3d1xa[_0x7499[19]][_0x7499[18]]=[];_0xa3d1x7[_0x7499[22]](function(_0xa3d1xd){var _0xa3d1xe={};_0xa3d1xe[_0xa3d1xd]={$like:_0x7499[20]+_0xa3d1xb+_0x7499[20]};_0xa3d1xa[_0x7499[19]][_0x7499[18]][_0x7499[21]](_0xa3d1xe);});break ;;default:_0xa3d1xa[_0x7499[19]][_0xa3d1xc]={$like:{}};_0xa3d1xa[_0x7499[19]][_0xa3d1xc][_0x7499[24]]=_0x7499[20]+_0xa3d1xb+_0x7499[20];;}});Team[_0x7499[40]](_0xa3d1xa)[_0x7499[39]](function(_0xa3d1x10){var _0xa3d1x11=Math[_0x7499[31]](_0xa3d1x10[_0x7499[30]]/_0xa3d1x8);var _0xa3d1x12=_0xa3d1x11>(_0xa3d1xa[_0x7499[32]]+1)?util[_0x7499[17]](_0x7499[33],_0xa3d1x5[_0x7499[34]],_0xa3d1x5[_0x7499[36]][_0x7499[35]],_0xa3d1x5[_0x7499[37]],_0xa3d1x9+1):null;var _0xa3d1x13=_0xa3d1x9>0?util[_0x7499[17]](_0x7499[33],_0xa3d1x5[_0x7499[34]],_0xa3d1x5[_0x7499[36]][_0x7499[35]],_0xa3d1x5[_0x7499[37]],_0xa3d1x9-1):null;_0xa3d1x6[_0x7499[28]](200)[_0x7499[27]]({count:_0xa3d1x10[_0x7499[30]],rows:_0xa3d1x10[_0x7499[38]],next_page:_0xa3d1x12,previous_page:_0xa3d1x13,total_pages:_0xa3d1x11});})[_0x7499[29]](function(_0xa3d1xf){_0xa3d1x6[_0x7499[28]](500)[_0x7499[27]]({error:_0x7499[26]})});};exports[_0x7499[41]]=function(_0xa3d1x5,_0xa3d1x6){Team[_0x7499[45]]({where:{id:_0xa3d1x5[_0x7499[44]][_0x7499[43]]},include:[User]})[_0x7499[39]](function(_0xa3d1x14){if(!_0xa3d1x14){return _0xa3d1x6[_0x7499[42]](404)};return _0xa3d1x6[_0x7499[27]](_0xa3d1x14);})[_0x7499[29]](function(_0xa3d1xf){return handleError(_0xa3d1x6,_0xa3d1xf)})};exports[_0x7499[46]]=function(_0xa3d1x5,_0xa3d1x6){Team[_0x7499[46]](_0xa3d1x5[_0x7499[47]])[_0x7499[39]](function(_0xa3d1x14){return _0xa3d1x6[_0x7499[28]](201)[_0x7499[27]](_0xa3d1x14)})[_0x7499[29]](function(_0xa3d1xf){return handleError(_0xa3d1x6,_0xa3d1xf)})};exports[_0x7499[48]]=function(_0xa3d1x5,_0xa3d1x6){if(_0xa3d1x5[_0x7499[47]][_0x7499[43]]){delete _0xa3d1x5[_0x7499[47]][_0x7499[43]]};Team[_0x7499[45]]({where:{id:_0xa3d1x5[_0x7499[44]][_0x7499[43]]}})[_0x7499[39]](function(_0xa3d1x14){if(!_0xa3d1x14){return _0xa3d1x6[_0x7499[42]](404)};var _0xa3d1x15=_[_0x7499[49]](_0xa3d1x14,_0xa3d1x5[_0x7499[47]]);_0xa3d1x15[_0x7499[50]]()[_0x7499[39]](function(){return _0xa3d1x6[_0x7499[28]](200)[_0x7499[27]](_0xa3d1x14)})[_0x7499[29]](function(_0xa3d1xf){return handleError(_0xa3d1x6,_0xa3d1xf)});})[_0x7499[29]](function(_0xa3d1xf){return handleError(_0xa3d1x6,_0xa3d1xf)});};exports[_0x7499[51]]=function(_0xa3d1x5,_0xa3d1x6){Team[_0x7499[45]]({where:{id:_0xa3d1x5[_0x7499[44]][_0x7499[43]]}})[_0x7499[39]](function(_0xa3d1x14){if(!_0xa3d1x14){return _0xa3d1x6[_0x7499[42]](404)};_0xa3d1x14[_0x7499[51]]()[_0x7499[39]](function(){return _0xa3d1x6[_0x7499[42]](204)})[_0x7499[29]](function(_0xa3d1xf){return handleError(_0xa3d1x6,_0xa3d1xf)});})[_0x7499[29]](function(_0xa3d1xf){return handleError(_0xa3d1x6,_0xa3d1xf)})};exports[_0x7499[52]]=function(_0xa3d1x5,_0xa3d1x6){Team[_0x7499[51]]({where:{id:_0xa3d1x5[_0x7499[10]][_0x7499[43]]},individualHooks:true})[_0x7499[39]](function(){return _0xa3d1x6[_0x7499[42]](204)})[_0x7499[29]](function(_0xa3d1xf){return handleError(_0xa3d1x6,_0xa3d1xf)})};exports[_0x7499[53]]=function(_0xa3d1x5,_0xa3d1x6,_0xa3d1x16){Team[_0x7499[57]](_0xa3d1x5[_0x7499[44]][_0x7499[43]])[_0x7499[39]](function(_0xa3d1x14){if(_0xa3d1x14){_0xa3d1x14[_0x7499[55]](_0xa3d1x5[_0x7499[47]][_0x7499[54]])[_0x7499[39]](function(){return _0xa3d1x6[_0x7499[42]](200)})[_0x7499[29]](function(_0xa3d1xf){return _0xa3d1x16(_0xa3d1xf)})}else {return _0xa3d1x16( new Error(_0x7499[56]))}})[_0x7499[29]](function(_0xa3d1xf){return _0xa3d1x16(_0xa3d1xf)})};exports[_0x7499[58]]=function(_0xa3d1x5,_0xa3d1x6,_0xa3d1x16){Team[_0x7499[57]](_0xa3d1x5[_0x7499[44]][_0x7499[43]])[_0x7499[39]](function(_0xa3d1x14){if(_0xa3d1x14){_0xa3d1x14[_0x7499[59]](_0xa3d1x5[_0x7499[47]][_0x7499[54]])[_0x7499[39]](function(){return _0xa3d1x6[_0x7499[42]](200)})[_0x7499[29]](function(_0xa3d1xf){return _0xa3d1x16(_0xa3d1xf)})}else {return _0xa3d1x16( new Error(_0x7499[56]))}})[_0x7499[29]](function(_0xa3d1xf){return _0xa3d1x16(_0xa3d1xf)})};function handleError(_0xa3d1x6,_0xa3d1xf){return _0xa3d1x6[_0x7499[28]](500)[_0x7499[27]](_0xa3d1xf)}
\ No newline at end of file
-var _0x55b8=["\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"];_0x55b8[0];var team=require(_0x55b8[2])[_0x55b8[1]];exports[_0x55b8[3]]=function(_0xb85ax2){team[_0x55b8[4]](function(_0xb85ax3){onSave(_0xb85ax2,_0xb85ax3)});team[_0x55b8[5]](function(_0xb85ax3){onSave(_0xb85ax2,_0xb85ax3)});team[_0x55b8[6]](function(_0xb85ax3){onRemove(_0xb85ax2,_0xb85ax3)});};function onSave(_0xb85ax2,_0xb85ax3,_0xb85ax5){_0xb85ax2[_0x55b8[8]](_0x55b8[7],_0xb85ax3)}function onRemove(_0xb85ax2,_0xb85ax3,_0xb85ax5){_0xb85ax2[_0x55b8[8]](_0x55b8[9],_0xb85ax3)}
\ No newline at end of file
+var _0x4898=["\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"];_0x4898[0];var team=require(_0x4898[2])[_0x4898[1]];exports[_0x4898[3]]=function(_0xb1d3x2){team[_0x4898[4]](function(_0xb1d3x3){onSave(_0xb1d3x2,_0xb1d3x3)});team[_0x4898[5]](function(_0xb1d3x3){onSave(_0xb1d3x2,_0xb1d3x3)});team[_0x4898[6]](function(_0xb1d3x3){onRemove(_0xb1d3x2,_0xb1d3x3)});};function onSave(_0xb1d3x2,_0xb1d3x3,_0xb1d3x5){_0xb1d3x2[_0x4898[8]](_0x4898[7],_0xb1d3x3)}function onRemove(_0xb1d3x2,_0xb1d3x3,_0xb1d3x5){_0xb1d3x2[_0x4898[8]](_0x4898[9],_0xb1d3x3)}
\ No newline at end of file
-var _0xf017=["\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"];_0xf017[0];var should=require(_0xf017[1]);var app=require(_0xf017[2]);var request=require(_0xf017[3]);describe(_0xf017[4],function(){it(_0xf017[5],function(_0xfd3ax4){request(app)[_0xf017[13]](_0xf017[12])[_0xf017[11]](200)[_0xf017[11]](_0xf017[10],/json/)[_0xf017[9]](function(_0xfd3ax5,_0xfd3ax6){if(_0xfd3ax5){return _0xfd3ax4(_0xfd3ax5)};_0xfd3ax6[_0xf017[8]][_0xf017[1]][_0xf017[7]][_0xf017[6]](Array);_0xfd3ax4();})})});
\ No newline at end of file
+var _0xafdb=["\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"];_0xafdb[0];var should=require(_0xafdb[1]);var app=require(_0xafdb[2]);var request=require(_0xafdb[3]);describe(_0xafdb[4],function(){it(_0xafdb[5],function(_0xaf39x4){request(app)[_0xafdb[13]](_0xafdb[12])[_0xafdb[11]](200)[_0xafdb[11]](_0xafdb[10],/json/)[_0xafdb[9]](function(_0xaf39x5,_0xaf39x6){if(_0xaf39x5){return _0xaf39x4(_0xaf39x5)};_0xaf39x6[_0xafdb[8]][_0xafdb[1]][_0xafdb[7]][_0xafdb[6]](Array);_0xaf39x4();})})});
\ No newline at end of file
-var _0xa630=["\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"];_0xa630[0];var express=require(_0xa630[1]);var controller=require(_0xa630[2]);var router=express.Router();router[_0xa630[5]](_0xa630[3],controller[_0xa630[4]]);router[_0xa630[5]](_0xa630[6],controller[_0xa630[7]]);router[_0xa630[9]](_0xa630[3],controller[_0xa630[8]]);router[_0xa630[11]](_0xa630[6],controller[_0xa630[10]]);router[_0xa630[12]](_0xa630[6],controller[_0xa630[10]]);router[_0xa630[14]](_0xa630[6],controller[_0xa630[13]]);module[_0xa630[15]]=router;
\ No newline at end of file
+var _0x1a2b=["\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"];_0x1a2b[0];var express=require(_0x1a2b[1]);var controller=require(_0x1a2b[2]);var router=express.Router();router[_0x1a2b[5]](_0x1a2b[3],controller[_0x1a2b[4]]);router[_0x1a2b[5]](_0x1a2b[6],controller[_0x1a2b[7]]);router[_0x1a2b[9]](_0x1a2b[3],controller[_0x1a2b[8]]);router[_0x1a2b[11]](_0x1a2b[6],controller[_0x1a2b[10]]);router[_0x1a2b[12]](_0x1a2b[6],controller[_0x1a2b[10]]);router[_0x1a2b[14]](_0x1a2b[6],controller[_0x1a2b[13]]);module[_0x1a2b[15]]=router;
\ No newline at end of file
-var _0xf15b=["\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"];_0xf15b[0];var _=require(_0xf15b[1]);var Thing=require(_0xf15b[3])[_0xf15b[2]];exports[_0xf15b[4]]=function(_0x7d76x3,_0x7d76x4,_0x7d76x5){Thing[_0xf15b[9]]()[_0xf15b[8]](function(_0x7d76x7){return _0x7d76x4[_0xf15b[7]](200)[_0xf15b[6]](_0x7d76x7)})[_0xf15b[5]](function(_0x7d76x6){return _0x7d76x5(_0x7d76x6)})};exports[_0xf15b[10]]=function(_0x7d76x3,_0x7d76x4,_0x7d76x5){Thing[_0xf15b[14]](_0x7d76x3[_0xf15b[13]][_0xf15b[12]])[_0xf15b[8]](function(_0x7d76x8){if(!_0x7d76x8){return _0x7d76x4[_0xf15b[11]](404)};return _0x7d76x4[_0xf15b[6]](_0x7d76x8);})[_0xf15b[5]](function(_0x7d76x6){return _0x7d76x5(_0x7d76x6)})};exports[_0xf15b[15]]=function(_0x7d76x3,_0x7d76x4,_0x7d76x5){Thing[_0xf15b[15]](_0x7d76x3[_0xf15b[16]])[_0xf15b[8]](function(_0x7d76x8){return _0x7d76x4[_0xf15b[7]](201)[_0xf15b[6]](_0x7d76x8)})[_0xf15b[5]](function(_0x7d76x6){return _0x7d76x5(_0x7d76x6)})};exports[_0xf15b[17]]=function(_0x7d76x3,_0x7d76x4,_0x7d76x5){if(_0x7d76x3[_0xf15b[16]][_0xf15b[12]]){delete _0x7d76x3[_0xf15b[16]][_0xf15b[12]]};Thing[_0xf15b[14]](_0x7d76x3[_0xf15b[13]][_0xf15b[12]])[_0xf15b[8]](function(_0x7d76x8){if(!_0x7d76x8){return _0x7d76x4[_0xf15b[11]](404)};var _0x7d76x9=_[_0xf15b[18]](_0x7d76x8,_0x7d76x3[_0xf15b[16]]);_0x7d76x9[_0xf15b[19]]()[_0xf15b[8]](function(){return _0x7d76x4[_0xf15b[7]](200)[_0xf15b[6]](_0x7d76x8)})[_0xf15b[5]](function(_0x7d76x6){return _0x7d76x5(_0x7d76x6)});})[_0xf15b[5]](function(_0x7d76x6){return _0x7d76x5(_0x7d76x6)});};exports[_0xf15b[20]]=function(_0x7d76x3,_0x7d76x4,_0x7d76x5){Thing[_0xf15b[14]](_0x7d76x3[_0xf15b[13]][_0xf15b[12]])[_0xf15b[8]](function(_0x7d76x8){if(!_0x7d76x8){return _0x7d76x4[_0xf15b[11]](404)};_0x7d76x8[_0xf15b[20]]()[_0xf15b[8]](function(){return _0x7d76x4[_0xf15b[11]](204)})[_0xf15b[5]](function(_0x7d76x6){return _0x7d76x5(_0x7d76x6)});})[_0xf15b[5]](function(_0x7d76x6){return _0x7d76x5(_0x7d76x6)})};
\ No newline at end of file
+var _0x411c=["\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"];_0x411c[0];var _=require(_0x411c[1]);var Thing=require(_0x411c[3])[_0x411c[2]];exports[_0x411c[4]]=function(_0x67cex3,_0x67cex4,_0x67cex5){Thing[_0x411c[9]]()[_0x411c[8]](function(_0x67cex7){return _0x67cex4[_0x411c[7]](200)[_0x411c[6]](_0x67cex7)})[_0x411c[5]](function(_0x67cex6){return _0x67cex5(_0x67cex6)})};exports[_0x411c[10]]=function(_0x67cex3,_0x67cex4,_0x67cex5){Thing[_0x411c[14]](_0x67cex3[_0x411c[13]][_0x411c[12]])[_0x411c[8]](function(_0x67cex8){if(!_0x67cex8){return _0x67cex4[_0x411c[11]](404)};return _0x67cex4[_0x411c[6]](_0x67cex8);})[_0x411c[5]](function(_0x67cex6){return _0x67cex5(_0x67cex6)})};exports[_0x411c[15]]=function(_0x67cex3,_0x67cex4,_0x67cex5){Thing[_0x411c[15]](_0x67cex3[_0x411c[16]])[_0x411c[8]](function(_0x67cex8){return _0x67cex4[_0x411c[7]](201)[_0x411c[6]](_0x67cex8)})[_0x411c[5]](function(_0x67cex6){return _0x67cex5(_0x67cex6)})};exports[_0x411c[17]]=function(_0x67cex3,_0x67cex4,_0x67cex5){if(_0x67cex3[_0x411c[16]][_0x411c[12]]){delete _0x67cex3[_0x411c[16]][_0x411c[12]]};Thing[_0x411c[14]](_0x67cex3[_0x411c[13]][_0x411c[12]])[_0x411c[8]](function(_0x67cex8){if(!_0x67cex8){return _0x67cex4[_0x411c[11]](404)};var _0x67cex9=_[_0x411c[18]](_0x67cex8,_0x67cex3[_0x411c[16]]);_0x67cex9[_0x411c[19]]()[_0x411c[8]](function(){return _0x67cex4[_0x411c[7]](200)[_0x411c[6]](_0x67cex8)})[_0x411c[5]](function(_0x67cex6){return _0x67cex5(_0x67cex6)});})[_0x411c[5]](function(_0x67cex6){return _0x67cex5(_0x67cex6)});};exports[_0x411c[20]]=function(_0x67cex3,_0x67cex4,_0x67cex5){Thing[_0x411c[14]](_0x67cex3[_0x411c[13]][_0x411c[12]])[_0x411c[8]](function(_0x67cex8){if(!_0x67cex8){return _0x67cex4[_0x411c[11]](404)};_0x67cex8[_0x411c[20]]()[_0x411c[8]](function(){return _0x67cex4[_0x411c[11]](204)})[_0x411c[5]](function(_0x67cex6){return _0x67cex5(_0x67cex6)});})[_0x411c[5]](function(_0x67cex6){return _0x67cex5(_0x67cex6)})};
\ No newline at end of file
-var _0xfb7f=["\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"];_0xfb7f[0];var thing=require(_0xfb7f[2])[_0xfb7f[1]];exports[_0xfb7f[3]]=function(_0x83b5x2){thing[_0xfb7f[4]](function(_0x83b5x3){onSave(_0x83b5x2,_0x83b5x3)});thing[_0xfb7f[5]](function(_0x83b5x3){onRemove(_0x83b5x2,_0x83b5x3)});};function onSave(_0x83b5x2,_0x83b5x3,_0x83b5x5){_0x83b5x2[_0xfb7f[7]](_0xfb7f[6],_0x83b5x3)}function onRemove(_0x83b5x2,_0x83b5x3,_0x83b5x5){_0x83b5x2[_0xfb7f[7]](_0xfb7f[8],_0x83b5x3)}
\ No newline at end of file
+var _0x5f2d=["\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"];_0x5f2d[0];var thing=require(_0x5f2d[2])[_0x5f2d[1]];exports[_0x5f2d[3]]=function(_0x2d8dx2){thing[_0x5f2d[4]](function(_0x2d8dx3){onSave(_0x2d8dx2,_0x2d8dx3)});thing[_0x5f2d[5]](function(_0x2d8dx3){onRemove(_0x2d8dx2,_0x2d8dx3)});};function onSave(_0x2d8dx2,_0x2d8dx3,_0x2d8dx5){_0x2d8dx2[_0x5f2d[7]](_0x5f2d[6],_0x2d8dx3)}function onRemove(_0x2d8dx2,_0x2d8dx3,_0x2d8dx5){_0x2d8dx2[_0x5f2d[7]](_0x5f2d[8],_0x2d8dx3)}
\ No newline at end of file
-var _0xff7a=["\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"];_0xff7a[0];var should=require(_0xff7a[1]);var app=require(_0xff7a[2]);var request=require(_0xff7a[3]);describe(_0xff7a[4],function(){it(_0xff7a[5],function(_0xb522x4){request(app)[_0xff7a[13]](_0xff7a[12])[_0xff7a[11]](200)[_0xff7a[11]](_0xff7a[10],/json/)[_0xff7a[9]](function(_0xb522x5,_0xb522x6){if(_0xb522x5){return _0xb522x4(_0xb522x5)};_0xb522x6[_0xff7a[8]][_0xff7a[1]][_0xff7a[7]][_0xff7a[6]](Array);_0xb522x4();})})});
\ No newline at end of file
+var _0x6447=["\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"];_0x6447[0];var should=require(_0x6447[1]);var app=require(_0x6447[2]);var request=require(_0x6447[3]);describe(_0x6447[4],function(){it(_0x6447[5],function(_0x3db2x4){request(app)[_0x6447[13]](_0x6447[12])[_0x6447[11]](200)[_0x6447[11]](_0x6447[10],/json/)[_0x6447[9]](function(_0x3db2x5,_0x3db2x6){if(_0x3db2x5){return _0x3db2x4(_0x3db2x5)};_0x3db2x6[_0x6447[8]][_0x6447[1]][_0x6447[7]][_0x6447[6]](Array);_0x3db2x4();})})});
\ No newline at end of file
-var _0x10c4=["\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"];_0x10c4[0];var express=require(_0x10c4[1]);var controller=require(_0x10c4[2]);var auth=require(_0x10c4[3]);var router=express.Router();router[_0x10c4[7]](_0x10c4[4],auth[_0x10c4[5]](),controller[_0x10c4[6]]);router[_0x10c4[7]](_0x10c4[8],auth[_0x10c4[5]](),controller[_0x10c4[9]]);router[_0x10c4[11]](_0x10c4[4],auth[_0x10c4[5]](),controller[_0x10c4[10]]);router[_0x10c4[13]](_0x10c4[8],auth[_0x10c4[5]](),controller[_0x10c4[12]]);router[_0x10c4[14]](_0x10c4[8],auth[_0x10c4[5]](),controller[_0x10c4[12]]);router[_0x10c4[16]](_0x10c4[8],auth[_0x10c4[5]](),controller[_0x10c4[15]]);router[_0x10c4[16]](_0x10c4[4],auth[_0x10c4[5]](),controller[_0x10c4[17]]);module[_0x10c4[18]]=router;
\ No newline at end of file
+var _0x7b8d=["\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"];_0x7b8d[0];var express=require(_0x7b8d[1]);var controller=require(_0x7b8d[2]);var auth=require(_0x7b8d[3]);var router=express.Router();router[_0x7b8d[7]](_0x7b8d[4],auth[_0x7b8d[5]](),controller[_0x7b8d[6]]);router[_0x7b8d[7]](_0x7b8d[8],auth[_0x7b8d[5]](),controller[_0x7b8d[9]]);router[_0x7b8d[11]](_0x7b8d[4],auth[_0x7b8d[5]](),controller[_0x7b8d[10]]);router[_0x7b8d[13]](_0x7b8d[8],auth[_0x7b8d[5]](),controller[_0x7b8d[12]]);router[_0x7b8d[14]](_0x7b8d[8],auth[_0x7b8d[5]](),controller[_0x7b8d[12]]);router[_0x7b8d[16]](_0x7b8d[8],auth[_0x7b8d[5]](),controller[_0x7b8d[15]]);router[_0x7b8d[16]](_0x7b8d[4],auth[_0x7b8d[5]](),controller[_0x7b8d[17]]);module[_0x7b8d[18]]=router;
\ No newline at end of file
-var _0xe381=["\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"];_0xe381[0];var _=require(_0xe381[1]);var util=require(_0xe381[2]);var Trigger=require(_0xe381[4])[_0xe381[3]];exports[_0xe381[5]]=function(_0x9bb4x4,_0x9bb4x5,_0x9bb4x6){var _0x9bb4x7=[_0xe381[6],_0xe381[7],_0xe381[8]];var _0x9bb4x8=_0x9bb4x4[_0xe381[10]][_0xe381[9]]?parseInt(_0x9bb4x4[_0xe381[10]][_0xe381[9]],10):100;var _0x9bb4x9=_0x9bb4x4[_0xe381[10]][_0xe381[11]]?parseInt(_0x9bb4x4[_0xe381[10]][_0xe381[11]],10):0;var _0x9bb4xa={where:{},limit:_0x9bb4x8,offset:_0x9bb4x9*_0x9bb4x8};_[_0xe381[25]](_0x9bb4x4[_0xe381[10]],function(_0x9bb4xb,_0x9bb4xc){switch(_0x9bb4xc){case _0xe381[9]:;case _0xe381[11]:break ;;case _0xe381[14]:_0x9bb4xa[_0xe381[12]]=util[_0xe381[17]](_0xe381[13],_0x9bb4x4[_0xe381[10]][_0xe381[14]],_0x9bb4x4[_0xe381[10]][_0xe381[15]]||_0xe381[16])||null;break ;;case _0xe381[15]:break ;;case _0xe381[23]:_0x9bb4xa[_0xe381[19]][_0xe381[18]]=[];_0x9bb4x7[_0xe381[22]](function(_0x9bb4xd){var _0x9bb4xe={};_0x9bb4xe[_0x9bb4xd]={$like:_0xe381[20]+_0x9bb4xb+_0xe381[20]};_0x9bb4xa[_0xe381[19]][_0xe381[18]][_0xe381[21]](_0x9bb4xe);});break ;;default:_0x9bb4xa[_0xe381[19]][_0x9bb4xc]={$like:{}};_0x9bb4xa[_0xe381[19]][_0x9bb4xc][_0xe381[24]]=_0xe381[20]+_0x9bb4xb+_0xe381[20];;}});Trigger[_0xe381[40]](_0x9bb4xa)[_0xe381[39]](function(_0x9bb4x10){var _0x9bb4x11=Math[_0xe381[31]](_0x9bb4x10[_0xe381[30]]/_0x9bb4x8);var _0x9bb4x12=_0x9bb4x11>(_0x9bb4xa[_0xe381[32]]+1)?util[_0xe381[17]](_0xe381[33],_0x9bb4x4[_0xe381[34]],_0x9bb4x4[_0xe381[36]][_0xe381[35]],_0x9bb4x4[_0xe381[37]],_0x9bb4x9+1):null;var _0x9bb4x13=_0x9bb4x9>0?util[_0xe381[17]](_0xe381[33],_0x9bb4x4[_0xe381[34]],_0x9bb4x4[_0xe381[36]][_0xe381[35]],_0x9bb4x4[_0xe381[37]],_0x9bb4x9-1):null;_0x9bb4x5[_0xe381[28]](200)[_0xe381[27]]({count:_0x9bb4x10[_0xe381[30]],rows:_0x9bb4x10[_0xe381[38]],next_page:_0x9bb4x12,previous_page:_0x9bb4x13,total_pages:_0x9bb4x11});})[_0xe381[29]](function(_0x9bb4xf){_0x9bb4x5[_0xe381[28]](500)[_0xe381[27]]({error:_0xe381[26]})});};exports[_0xe381[41]]=function(_0x9bb4x4,_0x9bb4x5){Trigger[_0xe381[45]](_0x9bb4x4[_0xe381[44]][_0xe381[43]])[_0xe381[39]](function(Trigger){if(!Trigger){return _0x9bb4x5[_0xe381[42]](404)};return _0x9bb4x5[_0xe381[27]](Trigger);})[_0xe381[29]](function(_0x9bb4xf){return handleError(_0x9bb4x5,_0x9bb4xf)})};exports[_0xe381[46]]=function(_0x9bb4x4,_0x9bb4x5){Trigger[_0xe381[46]](_0x9bb4x4[_0xe381[47]])[_0xe381[39]](function(){return _0x9bb4x5[_0xe381[42]](201)})[_0xe381[29]](function(_0x9bb4xf){return handleError(_0x9bb4x5,_0x9bb4xf)})};exports[_0xe381[48]]=function(_0x9bb4x4,_0x9bb4x5,_0x9bb4x6){if(_0x9bb4x4[_0xe381[47]][_0xe381[43]]){delete _0x9bb4x4[_0xe381[47]][_0xe381[43]]};Trigger[_0xe381[45]](_0x9bb4x4[_0xe381[44]][_0xe381[43]])[_0xe381[39]](function(Trigger){if(!Trigger){return _0x9bb4x5[_0xe381[42]](404)};var _0x9bb4x14=_[_0xe381[49]](Trigger,_0x9bb4x4[_0xe381[47]]);_0x9bb4x14[_0xe381[50]]()[_0xe381[39]](function(){return _0x9bb4x5[_0xe381[28]](200)[_0xe381[27]](Trigger)})[_0xe381[29]](function(_0x9bb4xf){return _0x9bb4x6(_0x9bb4xf)});})[_0xe381[29]](function(_0x9bb4xf){return _0x9bb4x6(_0x9bb4xf)});};exports[_0xe381[51]]=function(_0x9bb4x4,_0x9bb4x5){Trigger[_0xe381[45]](_0x9bb4x4[_0xe381[44]][_0xe381[43]])[_0xe381[39]](function(Trigger){if(!Trigger){return _0x9bb4x5[_0xe381[42]](404)};Trigger[_0xe381[51]]()[_0xe381[39]](function(){return _0x9bb4x5[_0xe381[42]](204)})[_0xe381[29]](function(_0x9bb4xf){return handleError(_0x9bb4x5,_0x9bb4xf)});})[_0xe381[29]](function(_0x9bb4xf){return handleError(_0x9bb4x5,_0x9bb4xf)})};exports[_0xe381[52]]=function(_0x9bb4x4,_0x9bb4x5){Trigger[_0xe381[51]]({where:{id:_0x9bb4x4[_0xe381[10]][_0xe381[43]]},individualHooks:true})[_0xe381[39]](function(){return _0x9bb4x5[_0xe381[42]](204)})[_0xe381[29]](function(_0x9bb4xf){return handleError(_0x9bb4x5,_0x9bb4xf)})};function handleError(_0x9bb4x5,_0x9bb4xf){return _0x9bb4x5[_0xe381[28]](500)[_0xe381[27]](_0x9bb4xf)}
\ No newline at end of file
+var _0x37d7=["\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"];_0x37d7[0];var _=require(_0x37d7[1]);var util=require(_0x37d7[2]);var Trigger=require(_0x37d7[4])[_0x37d7[3]];exports[_0x37d7[5]]=function(_0xdd1bx4,_0xdd1bx5,_0xdd1bx6){var _0xdd1bx7=[_0x37d7[6],_0x37d7[7],_0x37d7[8]];var _0xdd1bx8=_0xdd1bx4[_0x37d7[10]][_0x37d7[9]]?parseInt(_0xdd1bx4[_0x37d7[10]][_0x37d7[9]],10):100;var _0xdd1bx9=_0xdd1bx4[_0x37d7[10]][_0x37d7[11]]?parseInt(_0xdd1bx4[_0x37d7[10]][_0x37d7[11]],10):0;var _0xdd1bxa={where:{},limit:_0xdd1bx8,offset:_0xdd1bx9*_0xdd1bx8};_[_0x37d7[25]](_0xdd1bx4[_0x37d7[10]],function(_0xdd1bxb,_0xdd1bxc){switch(_0xdd1bxc){case _0x37d7[9]:;case _0x37d7[11]:break ;;case _0x37d7[14]:_0xdd1bxa[_0x37d7[12]]=util[_0x37d7[17]](_0x37d7[13],_0xdd1bx4[_0x37d7[10]][_0x37d7[14]],_0xdd1bx4[_0x37d7[10]][_0x37d7[15]]||_0x37d7[16])||null;break ;;case _0x37d7[15]:break ;;case _0x37d7[23]:_0xdd1bxa[_0x37d7[19]][_0x37d7[18]]=[];_0xdd1bx7[_0x37d7[22]](function(_0xdd1bxd){var _0xdd1bxe={};_0xdd1bxe[_0xdd1bxd]={$like:_0x37d7[20]+_0xdd1bxb+_0x37d7[20]};_0xdd1bxa[_0x37d7[19]][_0x37d7[18]][_0x37d7[21]](_0xdd1bxe);});break ;;default:_0xdd1bxa[_0x37d7[19]][_0xdd1bxc]={$like:{}};_0xdd1bxa[_0x37d7[19]][_0xdd1bxc][_0x37d7[24]]=_0x37d7[20]+_0xdd1bxb+_0x37d7[20];;}});Trigger[_0x37d7[40]](_0xdd1bxa)[_0x37d7[39]](function(_0xdd1bx10){var _0xdd1bx11=Math[_0x37d7[31]](_0xdd1bx10[_0x37d7[30]]/_0xdd1bx8);var _0xdd1bx12=_0xdd1bx11>(_0xdd1bxa[_0x37d7[32]]+1)?util[_0x37d7[17]](_0x37d7[33],_0xdd1bx4[_0x37d7[34]],_0xdd1bx4[_0x37d7[36]][_0x37d7[35]],_0xdd1bx4[_0x37d7[37]],_0xdd1bx9+1):null;var _0xdd1bx13=_0xdd1bx9>0?util[_0x37d7[17]](_0x37d7[33],_0xdd1bx4[_0x37d7[34]],_0xdd1bx4[_0x37d7[36]][_0x37d7[35]],_0xdd1bx4[_0x37d7[37]],_0xdd1bx9-1):null;_0xdd1bx5[_0x37d7[28]](200)[_0x37d7[27]]({count:_0xdd1bx10[_0x37d7[30]],rows:_0xdd1bx10[_0x37d7[38]],next_page:_0xdd1bx12,previous_page:_0xdd1bx13,total_pages:_0xdd1bx11});})[_0x37d7[29]](function(_0xdd1bxf){_0xdd1bx5[_0x37d7[28]](500)[_0x37d7[27]]({error:_0x37d7[26]})});};exports[_0x37d7[41]]=function(_0xdd1bx4,_0xdd1bx5){Trigger[_0x37d7[45]](_0xdd1bx4[_0x37d7[44]][_0x37d7[43]])[_0x37d7[39]](function(Trigger){if(!Trigger){return _0xdd1bx5[_0x37d7[42]](404)};return _0xdd1bx5[_0x37d7[27]](Trigger);})[_0x37d7[29]](function(_0xdd1bxf){return handleError(_0xdd1bx5,_0xdd1bxf)})};exports[_0x37d7[46]]=function(_0xdd1bx4,_0xdd1bx5){Trigger[_0x37d7[46]](_0xdd1bx4[_0x37d7[47]])[_0x37d7[39]](function(){return _0xdd1bx5[_0x37d7[42]](201)})[_0x37d7[29]](function(_0xdd1bxf){return handleError(_0xdd1bx5,_0xdd1bxf)})};exports[_0x37d7[48]]=function(_0xdd1bx4,_0xdd1bx5,_0xdd1bx6){if(_0xdd1bx4[_0x37d7[47]][_0x37d7[43]]){delete _0xdd1bx4[_0x37d7[47]][_0x37d7[43]]};Trigger[_0x37d7[45]](_0xdd1bx4[_0x37d7[44]][_0x37d7[43]])[_0x37d7[39]](function(Trigger){if(!Trigger){return _0xdd1bx5[_0x37d7[42]](404)};var _0xdd1bx14=_[_0x37d7[49]](Trigger,_0xdd1bx4[_0x37d7[47]]);_0xdd1bx14[_0x37d7[50]]()[_0x37d7[39]](function(){return _0xdd1bx5[_0x37d7[28]](200)[_0x37d7[27]](Trigger)})[_0x37d7[29]](function(_0xdd1bxf){return _0xdd1bx6(_0xdd1bxf)});})[_0x37d7[29]](function(_0xdd1bxf){return _0xdd1bx6(_0xdd1bxf)});};exports[_0x37d7[51]]=function(_0xdd1bx4,_0xdd1bx5){Trigger[_0x37d7[45]](_0xdd1bx4[_0x37d7[44]][_0x37d7[43]])[_0x37d7[39]](function(Trigger){if(!Trigger){return _0xdd1bx5[_0x37d7[42]](404)};Trigger[_0x37d7[51]]()[_0x37d7[39]](function(){return _0xdd1bx5[_0x37d7[42]](204)})[_0x37d7[29]](function(_0xdd1bxf){return handleError(_0xdd1bx5,_0xdd1bxf)});})[_0x37d7[29]](function(_0xdd1bxf){return handleError(_0xdd1bx5,_0xdd1bxf)})};exports[_0x37d7[52]]=function(_0xdd1bx4,_0xdd1bx5){Trigger[_0x37d7[51]]({where:{id:_0xdd1bx4[_0x37d7[10]][_0x37d7[43]]},individualHooks:true})[_0x37d7[39]](function(){return _0xdd1bx5[_0x37d7[42]](204)})[_0x37d7[29]](function(_0xdd1bxf){return handleError(_0xdd1bx5,_0xdd1bxf)})};function handleError(_0xdd1bx5,_0xdd1bxf){return _0xdd1bx5[_0x37d7[28]](500)[_0x37d7[27]](_0xdd1bxf)}
\ No newline at end of file
-var _0xff0c=["\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"];_0xff0c[0];var Trigger=require(_0xff0c[2])[_0xff0c[1]];exports[_0xff0c[3]]=function(_0x511ax2){Trigger[_0xff0c[4]](function(_0x511ax3){onSave(_0x511ax2,_0x511ax3)});Trigger[_0xff0c[5]](function(_0x511ax3){onRemove(_0x511ax2,_0x511ax3)});};function onSave(_0x511ax2,_0x511ax3,_0x511ax5){_0x511ax2[_0xff0c[7]](_0xff0c[6],_0x511ax3)}function onRemove(_0x511ax2,_0x511ax3,_0x511ax5){_0x511ax2[_0xff0c[7]](_0xff0c[8],_0x511ax3)}
\ No newline at end of file
+var _0x26b5=["\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"];_0x26b5[0];var Trigger=require(_0x26b5[2])[_0x26b5[1]];exports[_0x26b5[3]]=function(_0x3f41x2){Trigger[_0x26b5[4]](function(_0x3f41x3){onSave(_0x3f41x2,_0x3f41x3)});Trigger[_0x26b5[5]](function(_0x3f41x3){onRemove(_0x3f41x2,_0x3f41x3)});};function onSave(_0x3f41x2,_0x3f41x3,_0x3f41x5){_0x3f41x2[_0x26b5[7]](_0x26b5[6],_0x3f41x3)}function onRemove(_0x3f41x2,_0x3f41x3,_0x3f41x5){_0x3f41x2[_0x26b5[7]](_0x26b5[8],_0x3f41x3)}
\ No newline at end of file
-var _0xf158=["\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"];_0xf158[0];var should=require(_0xf158[1]);var app=require(_0xf158[2]);var request=require(_0xf158[3]);describe(_0xf158[4],function(){it(_0xf158[5],function(_0x6bf4x4){request(app)[_0xf158[13]](_0xf158[12])[_0xf158[11]](200)[_0xf158[11]](_0xf158[10],/json/)[_0xf158[9]](function(_0x6bf4x5,_0x6bf4x6){if(_0x6bf4x5){return _0x6bf4x4(_0x6bf4x5)};_0x6bf4x6[_0xf158[8]][_0xf158[1]][_0xf158[7]][_0xf158[6]](Array);_0x6bf4x4();})})});
\ No newline at end of file
+var _0x8e3a=["\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"];_0x8e3a[0];var should=require(_0x8e3a[1]);var app=require(_0x8e3a[2]);var request=require(_0x8e3a[3]);describe(_0x8e3a[4],function(){it(_0x8e3a[5],function(_0xcae5x4){request(app)[_0x8e3a[13]](_0x8e3a[12])[_0x8e3a[11]](200)[_0x8e3a[11]](_0x8e3a[10],/json/)[_0x8e3a[9]](function(_0xcae5x5,_0xcae5x6){if(_0xcae5x5){return _0xcae5x4(_0xcae5x5)};_0xcae5x6[_0x8e3a[8]][_0x8e3a[1]][_0x8e3a[7]][_0x8e3a[6]](Array);_0xcae5x4();})})});
\ No newline at end of file
-var _0xb7d7=["\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"];_0xb7d7[0];var express=require(_0xb7d7[1]);var controller=require(_0xb7d7[2]);var config=require(_0xb7d7[3]);var auth=require(_0xb7d7[4]);var router=express.Router();router[_0xb7d7[8]](_0xb7d7[5],auth[_0xb7d7[6]](),controller[_0xb7d7[7]]);router[_0xb7d7[8]](_0xb7d7[9],auth[_0xb7d7[6]](),controller[_0xb7d7[10]]);router[_0xb7d7[12]](_0xb7d7[5],auth[_0xb7d7[6]](),controller[_0xb7d7[11]]);router[_0xb7d7[12]](_0xb7d7[13],auth[_0xb7d7[6]](),controller[_0xb7d7[14]]);router[_0xb7d7[16]](_0xb7d7[9],auth[_0xb7d7[6]](),controller[_0xb7d7[15]]);router[_0xb7d7[18]](_0xb7d7[5],auth[_0xb7d7[6]](),controller[_0xb7d7[17]]);router[_0xb7d7[18]](_0xb7d7[9],auth[_0xb7d7[6]](),controller[_0xb7d7[19]]);module[_0xb7d7[20]]=router;
\ No newline at end of file
+var _0x8109=["\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"];_0x8109[0];var express=require(_0x8109[1]);var controller=require(_0x8109[2]);var config=require(_0x8109[3]);var auth=require(_0x8109[4]);var router=express.Router();router[_0x8109[8]](_0x8109[5],auth[_0x8109[6]](),controller[_0x8109[7]]);router[_0x8109[8]](_0x8109[9],auth[_0x8109[6]](),controller[_0x8109[10]]);router[_0x8109[12]](_0x8109[5],auth[_0x8109[6]](),controller[_0x8109[11]]);router[_0x8109[12]](_0x8109[13],auth[_0x8109[6]](),controller[_0x8109[14]]);router[_0x8109[16]](_0x8109[9],auth[_0x8109[6]](),controller[_0x8109[15]]);router[_0x8109[18]](_0x8109[5],auth[_0x8109[6]](),controller[_0x8109[17]]);router[_0x8109[18]](_0x8109[9],auth[_0x8109[6]](),controller[_0x8109[19]]);module[_0x8109[20]]=router;
\ No newline at end of file
-var _0x289d=["\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"];_0x289d[0];var fs=require(_0x289d[1]);var util=require(_0x289d[2]);var path=require(_0x289d[3]);var config=require(_0x289d[4]);var Trunk=require(_0x289d[6])[_0x289d[5]];var VoiceExtension=require(_0x289d[6])[_0x289d[7]];var _=require(_0x289d[8]);exports[_0x289d[9]]=function(_0xd184x8){Trunk[_0x289d[12]](function(_0xd184x9){console[_0x289d[11]](_0x289d[10]);trunksRewrite(_0xd184x9,_0xd184x8,false);});Trunk[_0x289d[14]](function(_0xd184x9){console[_0x289d[11]](_0x289d[13]);trunksRewrite(_0xd184x9,_0xd184x8,false);});Trunk[_0x289d[16]](function(_0xd184x9){console[_0x289d[11]](_0x289d[15]);trunksRewrite(_0xd184x9,_0xd184x8,true);});};function trunksRewrite(_0xd184x9,_0xd184x8,_0xd184xb){var _0xd184xc=_0x289d[17];if(!_0xd184xb){var _0xd184xd=_[_0x289d[19]](_0xd184x9[_0x289d[18]]);delete _0xd184xd[_0x289d[20]];delete _0xd184xd[_0x289d[21]];delete _0xd184xd[_0x289d[22]];_0xd184xc+=util[_0x289d[25]](_0x289d[23],_0xd184xd[_0x289d[24]]);if(_0xd184xd[_0x289d[26]]){_0xd184xc+=util[_0x289d[25]](_0x289d[27],_0xd184xd[_0x289d[26]]);delete _0xd184xd[_0x289d[26]];};for(var _0xd184xe in _0xd184xd){if(_0xd184xd[_0xd184xe]){_0xd184xc+=util[_0x289d[25]](_0x289d[28],_0xd184xe,_0xd184xd[_0xd184xe])}};};Trunk[_0x289d[44]]({where:{id:{$ne:_0xd184x9[_0x289d[20]]}}})[_0x289d[43]](function(_0xd184x10){var _0xd184x11=_[_0x289d[30]](_0xd184x10,_0x289d[18]);_0xd184x11[_0x289d[31]](function(_0xd184x12){delete _0xd184x12[_0x289d[20]];delete _0xd184x12[_0x289d[21]];delete _0xd184x12[_0x289d[22]];_0xd184xc+=util[_0x289d[25]](_0x289d[23],_0xd184x12[_0x289d[24]]);if(_0xd184x12[_0x289d[26]]){_0xd184xc+=util[_0x289d[25]](_0x289d[27],_0xd184x12[_0x289d[26]]);delete _0xd184x12[_0x289d[26]];};for(var _0xd184xe in _0xd184x12){if(_0xd184x12[_0xd184xe]){_0xd184xc+=util[_0x289d[25]](_0x289d[28],_0xd184xe,_0xd184x12[_0xd184xe])}};});fs[_0x289d[42]](path[_0x289d[34]](config[_0x289d[32]],_0x289d[33]),_0xd184xc,{flags:_0x289d[35],mode:parseInt(_0x289d[36],8)},function(_0xd184xf){if(_0xd184xf){throw _0xd184xf};console[_0x289d[11]](_0x289d[37]);_0xd184x8[_0x289d[41]]({Action:_0x289d[38],Module:_0x289d[39]},function(_0xd184xf,_0xd184x13){if(_0xd184xf){console[_0x289d[40]](_0xd184xf)}else {console[_0x289d[11]](_0xd184x13)}});});})[_0x289d[29]](function(_0xd184xf){console[_0x289d[11]](_0xd184xf)});}
\ No newline at end of file
+var _0xc280=["\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"];_0xc280[0];var fs=require(_0xc280[1]);var util=require(_0xc280[2]);var path=require(_0xc280[3]);var config=require(_0xc280[4]);var Trunk=require(_0xc280[6])[_0xc280[5]];var VoiceExtension=require(_0xc280[6])[_0xc280[7]];var _=require(_0xc280[8]);exports[_0xc280[9]]=function(_0xba98x8){Trunk[_0xc280[12]](function(_0xba98x9){console[_0xc280[11]](_0xc280[10]);trunksRewrite(_0xba98x9,_0xba98x8,false);});Trunk[_0xc280[14]](function(_0xba98x9){console[_0xc280[11]](_0xc280[13]);trunksRewrite(_0xba98x9,_0xba98x8,false);});Trunk[_0xc280[16]](function(_0xba98x9){console[_0xc280[11]](_0xc280[15]);trunksRewrite(_0xba98x9,_0xba98x8,true);});};function trunksRewrite(_0xba98x9,_0xba98x8,_0xba98xb){var _0xba98xc=_0xc280[17];if(!_0xba98xb){var _0xba98xd=_[_0xc280[19]](_0xba98x9[_0xc280[18]]);delete _0xba98xd[_0xc280[20]];delete _0xba98xd[_0xc280[21]];delete _0xba98xd[_0xc280[22]];_0xba98xc+=util[_0xc280[25]](_0xc280[23],_0xba98xd[_0xc280[24]]);if(_0xba98xd[_0xc280[26]]){_0xba98xc+=util[_0xc280[25]](_0xc280[27],_0xba98xd[_0xc280[26]]);delete _0xba98xd[_0xc280[26]];};for(var _0xba98xe in _0xba98xd){if(_0xba98xd[_0xba98xe]){_0xba98xc+=util[_0xc280[25]](_0xc280[28],_0xba98xe,_0xba98xd[_0xba98xe])}};};Trunk[_0xc280[44]]({where:{id:{$ne:_0xba98x9[_0xc280[20]]}}})[_0xc280[43]](function(_0xba98x10){var _0xba98x11=_[_0xc280[30]](_0xba98x10,_0xc280[18]);_0xba98x11[_0xc280[31]](function(_0xba98x12){delete _0xba98x12[_0xc280[20]];delete _0xba98x12[_0xc280[21]];delete _0xba98x12[_0xc280[22]];_0xba98xc+=util[_0xc280[25]](_0xc280[23],_0xba98x12[_0xc280[24]]);if(_0xba98x12[_0xc280[26]]){_0xba98xc+=util[_0xc280[25]](_0xc280[27],_0xba98x12[_0xc280[26]]);delete _0xba98x12[_0xc280[26]];};for(var _0xba98xe in _0xba98x12){if(_0xba98x12[_0xba98xe]){_0xba98xc+=util[_0xc280[25]](_0xc280[28],_0xba98xe,_0xba98x12[_0xba98xe])}};});fs[_0xc280[42]](path[_0xc280[34]](config[_0xc280[32]],_0xc280[33]),_0xba98xc,{flags:_0xc280[35],mode:parseInt(_0xc280[36],8)},function(_0xba98xf){if(_0xba98xf){throw _0xba98xf};console[_0xc280[11]](_0xc280[37]);_0xba98x8[_0xc280[41]]({Action:_0xc280[38],Module:_0xc280[39]},function(_0xba98xf,_0xba98x13){if(_0xba98xf){console[_0xc280[40]](_0xba98xf)}else {console[_0xc280[11]](_0xba98x13)}});});})[_0xc280[29]](function(_0xba98xf){console[_0xc280[11]](_0xba98xf)});}
\ No newline at end of file
-var _0x1cfb=["\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"];_0x1cfb[0];var _=require(_0x1cfb[1]);var Trunk=require(_0x1cfb[3])[_0x1cfb[2]];var VoiceExtension=require(_0x1cfb[3])[_0x1cfb[4]];var sequelize=require(_0x1cfb[3])[_0x1cfb[5]];var util=require(_0x1cfb[6]);exports[_0x1cfb[7]]=function(_0x8596x6,_0x8596x7,_0x8596x8){var _0x8596x9=[_0x1cfb[8],_0x1cfb[9],_0x1cfb[10],_0x1cfb[11]];var _0x8596xa=_0x8596x6[_0x1cfb[13]][_0x1cfb[12]]?parseInt(_0x8596x6[_0x1cfb[13]][_0x1cfb[12]],10):100;var _0x8596xb=_0x8596x6[_0x1cfb[13]][_0x1cfb[14]]?parseInt(_0x8596x6[_0x1cfb[13]][_0x1cfb[14]],10):0;var _0x8596xc={where:{},limit:_0x8596xa,offset:_0x8596xb*_0x8596xa};_[_0x1cfb[30]](_0x8596x6[_0x1cfb[13]],function(_0x8596xd,_0x8596xe){switch(_0x8596xe){case _0x1cfb[12]:;case _0x1cfb[14]:break ;;case _0x1cfb[17]:_0x8596xc[_0x1cfb[15]]=util[_0x1cfb[20]](_0x1cfb[16],_0x8596x6[_0x1cfb[13]][_0x1cfb[17]],_0x8596x6[_0x1cfb[13]][_0x1cfb[18]]||_0x1cfb[19])||null;break ;;case _0x1cfb[18]:break ;;case _0x1cfb[26]:_0x8596xc[_0x1cfb[22]][_0x1cfb[21]]=[];_0x8596x9[_0x1cfb[25]](function(_0x8596xf){var _0x8596x10={};_0x8596x10[_0x8596xf]={$like:_0x1cfb[23]+_0x8596xd+_0x1cfb[23]};_0x8596xc[_0x1cfb[22]][_0x1cfb[21]][_0x1cfb[24]](_0x8596x10);});break ;;case _0x1cfb[27]:_0x8596xc[_0x1cfb[22]][_0x1cfb[27]]={$or:_0x8596xd[_0x1cfb[28]](/[\s,]+/)};break ;;default:_0x8596xc[_0x1cfb[22]][_0x8596xe]={$like:{}};_0x8596xc[_0x1cfb[22]][_0x8596xe][_0x1cfb[29]]=_0x1cfb[23]+_0x8596xd+_0x1cfb[23];;}});Trunk[_0x1cfb[44]](_0x8596xc)[_0x1cfb[43]](function(_0x8596x12){var _0x8596x13=Math[_0x1cfb[36]](_0x8596x12[_0x1cfb[35]]/_0x8596xa);var _0x8596x14=_0x8596x13>(_0x8596xc[_0x1cfb[37]]+1)?util[_0x1cfb[20]](_0x1cfb[38],_0x8596x6[_0x1cfb[39]],_0x8596x6[_0x1cfb[40]][_0x1cfb[9]],_0x8596x6[_0x1cfb[41]],_0x8596xb+1):null;var _0x8596x15=_0x8596xb>0?util[_0x1cfb[20]](_0x1cfb[38],_0x8596x6[_0x1cfb[39]],_0x8596x6[_0x1cfb[40]][_0x1cfb[9]],_0x8596x6[_0x1cfb[41]],_0x8596xb-1):null;_0x8596x7[_0x1cfb[33]](200)[_0x1cfb[32]]({count:_0x8596x12[_0x1cfb[35]],rows:_0x8596x12[_0x1cfb[42]],next_page:_0x8596x14,previous_page:_0x8596x15,total_pages:_0x8596x13});})[_0x1cfb[34]](function(_0x8596x11){_0x8596x7[_0x1cfb[33]](500)[_0x1cfb[32]]({error:_0x1cfb[31]})});};exports[_0x1cfb[45]]=function(_0x8596x6,_0x8596x7){Trunk[_0x1cfb[49]](_0x8596x6[_0x1cfb[48]][_0x1cfb[47]])[_0x1cfb[43]](function(_0x8596x16){if(!_0x8596x16){return _0x8596x7[_0x1cfb[46]](404)};return _0x8596x7[_0x1cfb[32]](_0x8596x16);})[_0x1cfb[34]](function(_0x8596x11){return handleError(_0x8596x7,_0x8596x11)})};exports[_0x1cfb[50]]=function(_0x8596x6,_0x8596x7){console[_0x1cfb[52]](_0x8596x6[_0x1cfb[51]]);Trunk[_0x1cfb[53]]({where:{name:_0x8596x6[_0x1cfb[51]][_0x1cfb[8]]}})[_0x1cfb[43]](function(_0x8596x17){if(!_0x8596x17){return _0x8596x7[_0x1cfb[46]](404)};return _0x8596x7[_0x1cfb[32]](_0x8596x17);})[_0x1cfb[34]](function(_0x8596x11){return handleError(_0x8596x7,_0x8596x11)});};exports[_0x1cfb[54]]=function(_0x8596x6,_0x8596x7){Trunk[_0x1cfb[53]]({where:{name:_0x8596x6[_0x1cfb[51]][_0x1cfb[8]]}})[_0x1cfb[43]](function(_0x8596x18){console[_0x1cfb[52]](_0x8596x18);console[_0x1cfb[52]](_0x1cfb[56]);if(!_0x8596x18){return _0x8596x7[_0x1cfb[46]](404)};if(_0x8596x18[_0x1cfb[57]]>0){return _0x8596x7[_0x1cfb[33]](500)[_0x1cfb[32]]({message:_0x1cfb[58]})};Trunk[_0x1cfb[54]](_0x8596x6[_0x1cfb[51]])[_0x1cfb[43]](function(_0x8596x16){return _0x8596x7[_0x1cfb[33]](201)[_0x1cfb[32]](_0x8596x16)})[_0x1cfb[34]](function(_0x8596x11){console[_0x1cfb[52]](_0x1cfb[59],_0x8596x11);return handleError(_0x8596x7,_0x8596x11);});})[_0x1cfb[34]](function(_0x8596x11){console[_0x1cfb[52]](_0x1cfb[55],_0x8596x11);return handleError(_0x8596x7,_0x8596x11);})};exports[_0x1cfb[60]]=function(_0x8596x6,_0x8596x7,_0x8596x8){Trunk[_0x1cfb[53]]({where:{name:_0x8596x6[_0x1cfb[51]][_0x1cfb[8]],id:{$ne:_0x8596x6[_0x1cfb[51]][_0x1cfb[47]]}}})[_0x1cfb[43]](function(_0x8596x18){console[_0x1cfb[52]](_0x8596x18);console[_0x1cfb[52]](_0x1cfb[56]);if(!_0x8596x18){return _0x8596x7[_0x1cfb[46]](404)};if(_0x8596x18[_0x1cfb[57]]>0){return _0x8596x7[_0x1cfb[33]](500)[_0x1cfb[32]]({message:_0x1cfb[58]})};if(_0x8596x6[_0x1cfb[51]][_0x1cfb[47]]){delete _0x8596x6[_0x1cfb[51]][_0x1cfb[47]]};Trunk[_0x1cfb[49]](_0x8596x6[_0x1cfb[48]][_0x1cfb[47]])[_0x1cfb[43]](function(_0x8596x16){if(!_0x8596x16){return _0x8596x7[_0x1cfb[46]](404)};var _0x8596x19=_[_0x1cfb[61]](_0x8596x16,_0x8596x6[_0x1cfb[51]]);return sequelize[_0x1cfb[65]](function(_0x8596x1a){return _0x8596x19[_0x1cfb[64]]({transaction:_0x8596x1a})[_0x1cfb[43]](function(_0x8596x16){return VoiceExtension[_0x1cfb[60]]({trunk:_0x8596x16[_0x1cfb[8]],cutdigits:sequelize[_0x1cfb[63]](_0x1cfb[62])},{where:{TrunkId:_0x8596x16[_0x1cfb[47]]}},{transaction:_0x8596x1a})[_0x1cfb[43]](function(){return _0x8596x7[_0x1cfb[33]](200)[_0x1cfb[32]](_0x8596x16)})})})[_0x1cfb[34]](function(_0x8596x11){return handleError(_0x8596x7,_0x8596x11)});})[_0x1cfb[34]](function(_0x8596x11){return _0x8596x8(_0x8596x11)});})[_0x1cfb[34]](function(_0x8596x11){return _0x8596x8(_0x8596x11)})};exports[_0x1cfb[66]]=function(_0x8596x6,_0x8596x7){Trunk[_0x1cfb[49]](_0x8596x6[_0x1cfb[48]][_0x1cfb[47]])[_0x1cfb[43]](function(_0x8596x16){if(!_0x8596x16){return _0x8596x7[_0x1cfb[46]](404)};_0x8596x16[_0x1cfb[68]]({where:{isApp:true}})[_0x1cfb[43]](function(_0x8596x1b){console[_0x1cfb[52]](_0x8596x1b[_0x1cfb[57]]);if(_0x8596x1b[_0x1cfb[57]]>0){return _0x8596x7[_0x1cfb[33]](500)[_0x1cfb[32]]({message:_0x1cfb[67]})};_0x8596x16[_0x1cfb[66]]()[_0x1cfb[43]](function(){return _0x8596x7[_0x1cfb[46]](204)})[_0x1cfb[34]](function(_0x8596x11){return handleError(_0x8596x7,_0x8596x11)});})[_0x1cfb[34]](function(_0x8596x11){return handleError(_0x8596x7,_0x8596x11)});})[_0x1cfb[34]](function(_0x8596x11){return handleError(_0x8596x7,_0x8596x11)})};exports[_0x1cfb[69]]=function(_0x8596x6,_0x8596x7){var _0x8596x1c=false;Trunk[_0x1cfb[53]]({where:{id:_0x8596x6[_0x1cfb[13]][_0x1cfb[47]]},include:[{all:true}]})[_0x1cfb[43]](function(_0x8596x17){if(!_0x8596x17){return _0x8596x7[_0x1cfb[46]](404)};_0x8596x17[_0x1cfb[25]](function(_0x8596x1d){if(_0x8596x1d[_0x1cfb[70]][_0x1cfb[57]]>0){_0x8596x1c=true}});if(_0x8596x1c){return _0x8596x7[_0x1cfb[33]](500)[_0x1cfb[32]]({message:_0x1cfb[67]})};Trunk[_0x1cfb[66]]({where:{id:_0x8596x6[_0x1cfb[13]][_0x1cfb[47]]},individualHooks:true})[_0x1cfb[43]](function(){return _0x8596x7[_0x1cfb[46]](204)})[_0x1cfb[34]](function(_0x8596x11){return handleError(_0x8596x7,_0x8596x11)});})[_0x1cfb[34]](function(_0x8596x11){return handleError(_0x8596x7,_0x8596x11)});};function handleError(_0x8596x7,_0x8596x11){return _0x8596x7[_0x1cfb[33]](500)[_0x1cfb[32]](_0x8596x11)}
\ No newline at end of file
+var _0xe8f2=["\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"];_0xe8f2[0];var _=require(_0xe8f2[1]);var Trunk=require(_0xe8f2[3])[_0xe8f2[2]];var VoiceExtension=require(_0xe8f2[3])[_0xe8f2[4]];var sequelize=require(_0xe8f2[3])[_0xe8f2[5]];var util=require(_0xe8f2[6]);exports[_0xe8f2[7]]=function(_0x45e0x6,_0x45e0x7,_0x45e0x8){var _0x45e0x9=[_0xe8f2[8],_0xe8f2[9],_0xe8f2[10],_0xe8f2[11]];var _0x45e0xa=_0x45e0x6[_0xe8f2[13]][_0xe8f2[12]]?parseInt(_0x45e0x6[_0xe8f2[13]][_0xe8f2[12]],10):100;var _0x45e0xb=_0x45e0x6[_0xe8f2[13]][_0xe8f2[14]]?parseInt(_0x45e0x6[_0xe8f2[13]][_0xe8f2[14]],10):0;var _0x45e0xc={where:{},limit:_0x45e0xa,offset:_0x45e0xb*_0x45e0xa};_[_0xe8f2[30]](_0x45e0x6[_0xe8f2[13]],function(_0x45e0xd,_0x45e0xe){switch(_0x45e0xe){case _0xe8f2[12]:;case _0xe8f2[14]:break ;;case _0xe8f2[17]:_0x45e0xc[_0xe8f2[15]]=util[_0xe8f2[20]](_0xe8f2[16],_0x45e0x6[_0xe8f2[13]][_0xe8f2[17]],_0x45e0x6[_0xe8f2[13]][_0xe8f2[18]]||_0xe8f2[19])||null;break ;;case _0xe8f2[18]:break ;;case _0xe8f2[26]:_0x45e0xc[_0xe8f2[22]][_0xe8f2[21]]=[];_0x45e0x9[_0xe8f2[25]](function(_0x45e0xf){var _0x45e0x10={};_0x45e0x10[_0x45e0xf]={$like:_0xe8f2[23]+_0x45e0xd+_0xe8f2[23]};_0x45e0xc[_0xe8f2[22]][_0xe8f2[21]][_0xe8f2[24]](_0x45e0x10);});break ;;case _0xe8f2[27]:_0x45e0xc[_0xe8f2[22]][_0xe8f2[27]]={$or:_0x45e0xd[_0xe8f2[28]](/[\s,]+/)};break ;;default:_0x45e0xc[_0xe8f2[22]][_0x45e0xe]={$like:{}};_0x45e0xc[_0xe8f2[22]][_0x45e0xe][_0xe8f2[29]]=_0xe8f2[23]+_0x45e0xd+_0xe8f2[23];;}});Trunk[_0xe8f2[44]](_0x45e0xc)[_0xe8f2[43]](function(_0x45e0x12){var _0x45e0x13=Math[_0xe8f2[36]](_0x45e0x12[_0xe8f2[35]]/_0x45e0xa);var _0x45e0x14=_0x45e0x13>(_0x45e0xc[_0xe8f2[37]]+1)?util[_0xe8f2[20]](_0xe8f2[38],_0x45e0x6[_0xe8f2[39]],_0x45e0x6[_0xe8f2[40]][_0xe8f2[9]],_0x45e0x6[_0xe8f2[41]],_0x45e0xb+1):null;var _0x45e0x15=_0x45e0xb>0?util[_0xe8f2[20]](_0xe8f2[38],_0x45e0x6[_0xe8f2[39]],_0x45e0x6[_0xe8f2[40]][_0xe8f2[9]],_0x45e0x6[_0xe8f2[41]],_0x45e0xb-1):null;_0x45e0x7[_0xe8f2[33]](200)[_0xe8f2[32]]({count:_0x45e0x12[_0xe8f2[35]],rows:_0x45e0x12[_0xe8f2[42]],next_page:_0x45e0x14,previous_page:_0x45e0x15,total_pages:_0x45e0x13});})[_0xe8f2[34]](function(_0x45e0x11){_0x45e0x7[_0xe8f2[33]](500)[_0xe8f2[32]]({error:_0xe8f2[31]})});};exports[_0xe8f2[45]]=function(_0x45e0x6,_0x45e0x7){Trunk[_0xe8f2[49]](_0x45e0x6[_0xe8f2[48]][_0xe8f2[47]])[_0xe8f2[43]](function(_0x45e0x16){if(!_0x45e0x16){return _0x45e0x7[_0xe8f2[46]](404)};return _0x45e0x7[_0xe8f2[32]](_0x45e0x16);})[_0xe8f2[34]](function(_0x45e0x11){return handleError(_0x45e0x7,_0x45e0x11)})};exports[_0xe8f2[50]]=function(_0x45e0x6,_0x45e0x7){console[_0xe8f2[52]](_0x45e0x6[_0xe8f2[51]]);Trunk[_0xe8f2[53]]({where:{name:_0x45e0x6[_0xe8f2[51]][_0xe8f2[8]]}})[_0xe8f2[43]](function(_0x45e0x17){if(!_0x45e0x17){return _0x45e0x7[_0xe8f2[46]](404)};return _0x45e0x7[_0xe8f2[32]](_0x45e0x17);})[_0xe8f2[34]](function(_0x45e0x11){return handleError(_0x45e0x7,_0x45e0x11)});};exports[_0xe8f2[54]]=function(_0x45e0x6,_0x45e0x7){Trunk[_0xe8f2[53]]({where:{name:_0x45e0x6[_0xe8f2[51]][_0xe8f2[8]]}})[_0xe8f2[43]](function(_0x45e0x18){console[_0xe8f2[52]](_0x45e0x18);console[_0xe8f2[52]](_0xe8f2[56]);if(!_0x45e0x18){return _0x45e0x7[_0xe8f2[46]](404)};if(_0x45e0x18[_0xe8f2[57]]>0){return _0x45e0x7[_0xe8f2[33]](500)[_0xe8f2[32]]({message:_0xe8f2[58]})};Trunk[_0xe8f2[54]](_0x45e0x6[_0xe8f2[51]])[_0xe8f2[43]](function(_0x45e0x16){return _0x45e0x7[_0xe8f2[33]](201)[_0xe8f2[32]](_0x45e0x16)})[_0xe8f2[34]](function(_0x45e0x11){console[_0xe8f2[52]](_0xe8f2[59],_0x45e0x11);return handleError(_0x45e0x7,_0x45e0x11);});})[_0xe8f2[34]](function(_0x45e0x11){console[_0xe8f2[52]](_0xe8f2[55],_0x45e0x11);return handleError(_0x45e0x7,_0x45e0x11);})};exports[_0xe8f2[60]]=function(_0x45e0x6,_0x45e0x7,_0x45e0x8){Trunk[_0xe8f2[53]]({where:{name:_0x45e0x6[_0xe8f2[51]][_0xe8f2[8]],id:{$ne:_0x45e0x6[_0xe8f2[51]][_0xe8f2[47]]}}})[_0xe8f2[43]](function(_0x45e0x18){console[_0xe8f2[52]](_0x45e0x18);console[_0xe8f2[52]](_0xe8f2[56]);if(!_0x45e0x18){return _0x45e0x7[_0xe8f2[46]](404)};if(_0x45e0x18[_0xe8f2[57]]>0){return _0x45e0x7[_0xe8f2[33]](500)[_0xe8f2[32]]({message:_0xe8f2[58]})};if(_0x45e0x6[_0xe8f2[51]][_0xe8f2[47]]){delete _0x45e0x6[_0xe8f2[51]][_0xe8f2[47]]};Trunk[_0xe8f2[49]](_0x45e0x6[_0xe8f2[48]][_0xe8f2[47]])[_0xe8f2[43]](function(_0x45e0x16){if(!_0x45e0x16){return _0x45e0x7[_0xe8f2[46]](404)};var _0x45e0x19=_[_0xe8f2[61]](_0x45e0x16,_0x45e0x6[_0xe8f2[51]]);return sequelize[_0xe8f2[65]](function(_0x45e0x1a){return _0x45e0x19[_0xe8f2[64]]({transaction:_0x45e0x1a})[_0xe8f2[43]](function(_0x45e0x16){return VoiceExtension[_0xe8f2[60]]({trunk:_0x45e0x16[_0xe8f2[8]],cutdigits:sequelize[_0xe8f2[63]](_0xe8f2[62])},{where:{TrunkId:_0x45e0x16[_0xe8f2[47]]}},{transaction:_0x45e0x1a})[_0xe8f2[43]](function(){return _0x45e0x7[_0xe8f2[33]](200)[_0xe8f2[32]](_0x45e0x16)})})})[_0xe8f2[34]](function(_0x45e0x11){return handleError(_0x45e0x7,_0x45e0x11)});})[_0xe8f2[34]](function(_0x45e0x11){return _0x45e0x8(_0x45e0x11)});})[_0xe8f2[34]](function(_0x45e0x11){return _0x45e0x8(_0x45e0x11)})};exports[_0xe8f2[66]]=function(_0x45e0x6,_0x45e0x7){Trunk[_0xe8f2[49]](_0x45e0x6[_0xe8f2[48]][_0xe8f2[47]])[_0xe8f2[43]](function(_0x45e0x16){if(!_0x45e0x16){return _0x45e0x7[_0xe8f2[46]](404)};_0x45e0x16[_0xe8f2[68]]({where:{isApp:true}})[_0xe8f2[43]](function(_0x45e0x1b){console[_0xe8f2[52]](_0x45e0x1b[_0xe8f2[57]]);if(_0x45e0x1b[_0xe8f2[57]]>0){return _0x45e0x7[_0xe8f2[33]](500)[_0xe8f2[32]]({message:_0xe8f2[67]})};_0x45e0x16[_0xe8f2[66]]()[_0xe8f2[43]](function(){return _0x45e0x7[_0xe8f2[46]](204)})[_0xe8f2[34]](function(_0x45e0x11){return handleError(_0x45e0x7,_0x45e0x11)});})[_0xe8f2[34]](function(_0x45e0x11){return handleError(_0x45e0x7,_0x45e0x11)});})[_0xe8f2[34]](function(_0x45e0x11){return handleError(_0x45e0x7,_0x45e0x11)})};exports[_0xe8f2[69]]=function(_0x45e0x6,_0x45e0x7){var _0x45e0x1c=false;Trunk[_0xe8f2[53]]({where:{id:_0x45e0x6[_0xe8f2[13]][_0xe8f2[47]]},include:[{all:true}]})[_0xe8f2[43]](function(_0x45e0x17){if(!_0x45e0x17){return _0x45e0x7[_0xe8f2[46]](404)};_0x45e0x17[_0xe8f2[25]](function(_0x45e0x1d){if(_0x45e0x1d[_0xe8f2[70]][_0xe8f2[57]]>0){_0x45e0x1c=true}});if(_0x45e0x1c){return _0x45e0x7[_0xe8f2[33]](500)[_0xe8f2[32]]({message:_0xe8f2[67]})};Trunk[_0xe8f2[66]]({where:{id:_0x45e0x6[_0xe8f2[13]][_0xe8f2[47]]},individualHooks:true})[_0xe8f2[43]](function(){return _0x45e0x7[_0xe8f2[46]](204)})[_0xe8f2[34]](function(_0x45e0x11){return handleError(_0x45e0x7,_0x45e0x11)});})[_0xe8f2[34]](function(_0x45e0x11){return handleError(_0x45e0x7,_0x45e0x11)});};function handleError(_0x45e0x7,_0x45e0x11){return _0x45e0x7[_0xe8f2[33]](500)[_0xe8f2[32]](_0x45e0x11)}
\ No newline at end of file
-var _0x5ffd=["\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"];_0x5ffd[0];var Trunk=require(_0x5ffd[2])[_0x5ffd[1]];exports[_0x5ffd[3]]=function(_0xf98cx2){Trunk[_0x5ffd[4]](function(_0xf98cx3){onSave(_0xf98cx2,_0xf98cx3)});Trunk[_0x5ffd[5]](function(_0xf98cx3){onRemove(_0xf98cx2,_0xf98cx3)});};function onSave(_0xf98cx2,_0xf98cx3,_0xf98cx5){_0xf98cx2[_0x5ffd[7]](_0x5ffd[6],_0xf98cx3)}function onRemove(_0xf98cx2,_0xf98cx3,_0xf98cx5){_0xf98cx2[_0x5ffd[7]](_0x5ffd[8],_0xf98cx3)}
\ No newline at end of file
+var _0x86f7=["\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"];_0x86f7[0];var Trunk=require(_0x86f7[2])[_0x86f7[1]];exports[_0x86f7[3]]=function(_0xb3b7x2){Trunk[_0x86f7[4]](function(_0xb3b7x3){onSave(_0xb3b7x2,_0xb3b7x3)});Trunk[_0x86f7[5]](function(_0xb3b7x3){onRemove(_0xb3b7x2,_0xb3b7x3)});};function onSave(_0xb3b7x2,_0xb3b7x3,_0xb3b7x5){_0xb3b7x2[_0x86f7[7]](_0x86f7[6],_0xb3b7x3)}function onRemove(_0xb3b7x2,_0xb3b7x3,_0xb3b7x5){_0xb3b7x2[_0x86f7[7]](_0x86f7[8],_0xb3b7x3)}
\ No newline at end of file
-var _0x597d=["\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"];_0x597d[0];var should=require(_0x597d[1]);var app=require(_0x597d[2]);var request=require(_0x597d[3]);describe(_0x597d[4],function(){it(_0x597d[5],function(_0xef16x4){request(app)[_0x597d[13]](_0x597d[12])[_0x597d[11]](200)[_0x597d[11]](_0x597d[10],/json/)[_0x597d[9]](function(_0xef16x5,_0xef16x6){if(_0xef16x5){return _0xef16x4(_0xef16x5)};_0xef16x6[_0x597d[8]][_0x597d[1]][_0x597d[7]][_0x597d[6]](Array);_0xef16x4();})})});
\ No newline at end of file
+var _0x7921=["\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"];_0x7921[0];var should=require(_0x7921[1]);var app=require(_0x7921[2]);var request=require(_0x7921[3]);describe(_0x7921[4],function(){it(_0x7921[5],function(_0x794ex4){request(app)[_0x7921[13]](_0x7921[12])[_0x7921[11]](200)[_0x7921[11]](_0x7921[10],/json/)[_0x7921[9]](function(_0x794ex5,_0x794ex6){if(_0x794ex5){return _0x794ex4(_0x794ex5)};_0x794ex6[_0x7921[8]][_0x7921[1]][_0x7921[7]][_0x7921[6]](Array);_0x794ex4();})})});
\ No newline at end of file
-var _0xb4c0=["\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"];_0xb4c0[0];var express=require(_0xb4c0[1]);var controller=require(_0xb4c0[2]);var auth=require(_0xb4c0[3]);var router=express.Router();router[_0xb4c0[9]](_0xb4c0[4],auth[_0xb4c0[5]](),auth[_0xb4c0[7]](_0xb4c0[6]),controller[_0xb4c0[8]]);router[_0xb4c0[9]](_0xb4c0[10],auth[_0xb4c0[5]](),auth[_0xb4c0[7]](_0xb4c0[6]),controller[_0xb4c0[11]]);module[_0xb4c0[12]]=router;
\ No newline at end of file
+var _0x7f37=["\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"];_0x7f37[0];var express=require(_0x7f37[1]);var controller=require(_0x7f37[2]);var auth=require(_0x7f37[3]);var router=express.Router();router[_0x7f37[9]](_0x7f37[4],auth[_0x7f37[5]](),auth[_0x7f37[7]](_0x7f37[6]),controller[_0x7f37[8]]);router[_0x7f37[9]](_0x7f37[10],auth[_0x7f37[5]](),auth[_0x7f37[7]](_0x7f37[6]),controller[_0x7f37[11]]);module[_0x7f37[12]]=router;
\ No newline at end of file
-var _0x5845=["\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"];_0x5845[0];var _=require(_0x5845[1]);var path=require(_0x5845[2]);var config=require(_0x5845[3]);var Git=require(_0x5845[6])(path[_0x5845[5]](config[_0x5845[4]]));var Update=require(_0x5845[8])[_0x5845[7]];exports[_0x5845[9]]=function(_0x97c4x6,_0x97c4x7){Git[_0x5845[20]](function(_0x97c4x8,_0x97c4x9){if(_0x97c4x8){return handleError(_0x97c4x7,_0x97c4x8)};var _0x97c4xa=[];_0x97c4x9[_0x5845[17]][_0x5845[16]](function(_0x97c4xb){_0x97c4xb[_0x5845[10]]=_0x97c4xb[_0x5845[13]][_0x5845[12]](_0x5845[11])[1]||_0x5845[14];_0x97c4xb[_0x5845[13]]=_0x97c4xb[_0x5845[13]][_0x5845[12]](_0x5845[11])[0];_0x97c4xa[_0x5845[15]](_0x97c4xb);});console[_0x5845[20]](_0x5845[18],_0x97c4x9[_0x5845[19]]);return _0x97c4x7[_0x5845[22]](200)[_0x5845[21]](_0x97c4xa);})};exports[_0x5845[23]]=function(_0x97c4x6,_0x97c4x7){};exports[_0x5845[24]]=function(_0x97c4x6,_0x97c4x7){Git[_0x5845[24]](function(_0x97c4x8,_0x97c4xc){if(_0x97c4x8){return handleError(_0x97c4x7,_0x97c4x8)};return _0x97c4x7[_0x5845[22]](201)[_0x5845[21]](_0x97c4xc);})};exports[_0x5845[25]]=function(_0x97c4x6,_0x97c4x7){console[_0x5845[20]](_0x5845[26],_0x97c4x6[_0x5845[28]][_0x5845[27]]);Git[_0x5845[25]](_0x97c4x6[_0x5845[28]][_0x5845[27]],function(_0x97c4x8,_0x97c4xc){if(_0x97c4x8){return handleError(_0x97c4x7,_0x97c4x8)};return _0x97c4x7[_0x5845[22]](201)[_0x5845[21]](_0x97c4xc);});};exports[_0x5845[29]]=function(_0x97c4x6,_0x97c4x7){Update[_0x5845[29]](_0x97c4x6[_0x5845[32]])[_0x5845[31]](function(_0x97c4xc){return _0x97c4x7[_0x5845[22]](201)[_0x5845[21]](_0x97c4xc)})[_0x5845[30]](function(_0x97c4x8){return handleError(_0x97c4x7,_0x97c4x8)})};exports[_0x5845[33]]=function(_0x97c4x6,_0x97c4x7){if(_0x97c4x6[_0x5845[32]][_0x5845[34]]){delete _0x97c4x6[_0x5845[32]][_0x5845[34]]};Update[_0x5845[38]]({where:{id:_0x97c4x6[_0x5845[28]][_0x5845[34]]}})[_0x5845[31]](function(_0x97c4xc){if(!_0x97c4xc){return _0x97c4x7[_0x5845[35]](404)};var _0x97c4xd=_[_0x5845[36]](_0x97c4xc,_0x97c4x6[_0x5845[32]]);_0x97c4xd[_0x5845[37]]()[_0x5845[31]](function(){return _0x97c4x7[_0x5845[22]](200)[_0x5845[21]](_0x97c4xc)})[_0x5845[30]](function(_0x97c4x8){return handleError(_0x97c4x7,_0x97c4x8)});})[_0x5845[30]](function(_0x97c4x8){return handleError(_0x97c4x7,_0x97c4x8)});};exports[_0x5845[39]]=function(_0x97c4x6,_0x97c4x7){Update[_0x5845[38]]({where:{id:_0x97c4x6[_0x5845[28]][_0x5845[34]]}})[_0x5845[31]](function(_0x97c4xc){if(!_0x97c4xc){return _0x97c4x7[_0x5845[35]](404)};_0x97c4xc[_0x5845[39]]()[_0x5845[31]](function(){return _0x97c4x7[_0x5845[35]](204)})[_0x5845[30]](function(_0x97c4x8){return handleError(_0x97c4x7,_0x97c4x8)});})[_0x5845[30]](function(_0x97c4x8){return handleError(_0x97c4x7,_0x97c4x8)})};function handleError(_0x97c4x7,_0x97c4x8){return _0x97c4x7[_0x5845[22]](500)[_0x5845[21]](_0x97c4x8)}
\ No newline at end of file
+var _0xcaa8=["\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"];_0xcaa8[0];var _=require(_0xcaa8[1]);var path=require(_0xcaa8[2]);var config=require(_0xcaa8[3]);var Git=require(_0xcaa8[6])(path[_0xcaa8[5]](config[_0xcaa8[4]]));var Update=require(_0xcaa8[8])[_0xcaa8[7]];exports[_0xcaa8[9]]=function(_0x91a1x6,_0x91a1x7){Git[_0xcaa8[20]](function(_0x91a1x8,_0x91a1x9){if(_0x91a1x8){return handleError(_0x91a1x7,_0x91a1x8)};var _0x91a1xa=[];_0x91a1x9[_0xcaa8[17]][_0xcaa8[16]](function(_0x91a1xb){_0x91a1xb[_0xcaa8[10]]=_0x91a1xb[_0xcaa8[13]][_0xcaa8[12]](_0xcaa8[11])[1]||_0xcaa8[14];_0x91a1xb[_0xcaa8[13]]=_0x91a1xb[_0xcaa8[13]][_0xcaa8[12]](_0xcaa8[11])[0];_0x91a1xa[_0xcaa8[15]](_0x91a1xb);});console[_0xcaa8[20]](_0xcaa8[18],_0x91a1x9[_0xcaa8[19]]);return _0x91a1x7[_0xcaa8[22]](200)[_0xcaa8[21]](_0x91a1xa);})};exports[_0xcaa8[23]]=function(_0x91a1x6,_0x91a1x7){};exports[_0xcaa8[24]]=function(_0x91a1x6,_0x91a1x7){Git[_0xcaa8[24]](function(_0x91a1x8,_0x91a1xc){if(_0x91a1x8){return handleError(_0x91a1x7,_0x91a1x8)};return _0x91a1x7[_0xcaa8[22]](201)[_0xcaa8[21]](_0x91a1xc);})};exports[_0xcaa8[25]]=function(_0x91a1x6,_0x91a1x7){console[_0xcaa8[20]](_0xcaa8[26],_0x91a1x6[_0xcaa8[28]][_0xcaa8[27]]);Git[_0xcaa8[25]](_0x91a1x6[_0xcaa8[28]][_0xcaa8[27]],function(_0x91a1x8,_0x91a1xc){if(_0x91a1x8){return handleError(_0x91a1x7,_0x91a1x8)};return _0x91a1x7[_0xcaa8[22]](201)[_0xcaa8[21]](_0x91a1xc);});};exports[_0xcaa8[29]]=function(_0x91a1x6,_0x91a1x7){Update[_0xcaa8[29]](_0x91a1x6[_0xcaa8[32]])[_0xcaa8[31]](function(_0x91a1xc){return _0x91a1x7[_0xcaa8[22]](201)[_0xcaa8[21]](_0x91a1xc)})[_0xcaa8[30]](function(_0x91a1x8){return handleError(_0x91a1x7,_0x91a1x8)})};exports[_0xcaa8[33]]=function(_0x91a1x6,_0x91a1x7){if(_0x91a1x6[_0xcaa8[32]][_0xcaa8[34]]){delete _0x91a1x6[_0xcaa8[32]][_0xcaa8[34]]};Update[_0xcaa8[38]]({where:{id:_0x91a1x6[_0xcaa8[28]][_0xcaa8[34]]}})[_0xcaa8[31]](function(_0x91a1xc){if(!_0x91a1xc){return _0x91a1x7[_0xcaa8[35]](404)};var _0x91a1xd=_[_0xcaa8[36]](_0x91a1xc,_0x91a1x6[_0xcaa8[32]]);_0x91a1xd[_0xcaa8[37]]()[_0xcaa8[31]](function(){return _0x91a1x7[_0xcaa8[22]](200)[_0xcaa8[21]](_0x91a1xc)})[_0xcaa8[30]](function(_0x91a1x8){return handleError(_0x91a1x7,_0x91a1x8)});})[_0xcaa8[30]](function(_0x91a1x8){return handleError(_0x91a1x7,_0x91a1x8)});};exports[_0xcaa8[39]]=function(_0x91a1x6,_0x91a1x7){Update[_0xcaa8[38]]({where:{id:_0x91a1x6[_0xcaa8[28]][_0xcaa8[34]]}})[_0xcaa8[31]](function(_0x91a1xc){if(!_0x91a1xc){return _0x91a1x7[_0xcaa8[35]](404)};_0x91a1xc[_0xcaa8[39]]()[_0xcaa8[31]](function(){return _0x91a1x7[_0xcaa8[35]](204)})[_0xcaa8[30]](function(_0x91a1x8){return handleError(_0x91a1x7,_0x91a1x8)});})[_0xcaa8[30]](function(_0x91a1x8){return handleError(_0x91a1x7,_0x91a1x8)})};function handleError(_0x91a1x7,_0x91a1x8){return _0x91a1x7[_0xcaa8[22]](500)[_0xcaa8[21]](_0x91a1x8)}
\ No newline at end of file
-var _0xadd3=["\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"];_0xadd3[0];module[_0xadd3[1]]=function(_0x6626x1,_0x6626x2){var _0x6626x3=_0x6626x1[_0xadd3[4]](_0xadd3[2],{name:_0x6626x2[_0xadd3[3]],description:_0x6626x2[_0xadd3[3]]});return _0x6626x3;};
\ No newline at end of file
+var _0x9af9=["\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"];_0x9af9[0];module[_0x9af9[1]]=function(_0x5785x1,_0x5785x2){var _0x5785x3=_0x5785x1[_0x9af9[4]](_0x9af9[2],{name:_0x5785x2[_0x9af9[3]],description:_0x5785x2[_0x9af9[3]]});return _0x5785x3;};
\ No newline at end of file
-var _0xd9e5=["\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"];_0xd9e5[0];var Update=require(_0xd9e5[2])[_0xd9e5[1]];exports[_0xd9e5[3]]=function(_0xade8x2){Update[_0xd9e5[4]](function(_0xade8x3){onSave(_0xade8x2,_0xade8x3)});Update[_0xd9e5[5]](function(_0xade8x3){onRemove(_0xade8x2,_0xade8x3)});};function onSave(_0xade8x2,_0xade8x3,_0xade8x5){_0xade8x2[_0xd9e5[7]](_0xd9e5[6],_0xade8x3)}function onRemove(_0xade8x2,_0xade8x3,_0xade8x5){_0xade8x2[_0xd9e5[7]](_0xd9e5[8],_0xade8x3)}
\ No newline at end of file
+var _0xb12a=["\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"];_0xb12a[0];var Update=require(_0xb12a[2])[_0xb12a[1]];exports[_0xb12a[3]]=function(_0xb3fdx2){Update[_0xb12a[4]](function(_0xb3fdx3){onSave(_0xb3fdx2,_0xb3fdx3)});Update[_0xb12a[5]](function(_0xb3fdx3){onRemove(_0xb3fdx2,_0xb3fdx3)});};function onSave(_0xb3fdx2,_0xb3fdx3,_0xb3fdx5){_0xb3fdx2[_0xb12a[7]](_0xb12a[6],_0xb3fdx3)}function onRemove(_0xb3fdx2,_0xb3fdx3,_0xb3fdx5){_0xb3fdx2[_0xb12a[7]](_0xb12a[8],_0xb3fdx3)}
\ No newline at end of file
-var _0xc691=["\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"];_0xc691[0];var should=require(_0xc691[1]);var app=require(_0xc691[2]);var request=require(_0xc691[3]);describe(_0xc691[4],function(){it(_0xc691[5],function(_0x82d8x4){request(app)[_0xc691[13]](_0xc691[12])[_0xc691[11]](200)[_0xc691[11]](_0xc691[10],/json/)[_0xc691[9]](function(_0x82d8x5,_0x82d8x6){if(_0x82d8x5){return _0x82d8x4(_0x82d8x5)};_0x82d8x6[_0xc691[8]][_0xc691[1]][_0xc691[7]][_0xc691[6]](Array);_0x82d8x4();})})});
\ No newline at end of file
+var _0x9d1e=["\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"];_0x9d1e[0];var should=require(_0x9d1e[1]);var app=require(_0x9d1e[2]);var request=require(_0x9d1e[3]);describe(_0x9d1e[4],function(){it(_0x9d1e[5],function(_0x45f9x4){request(app)[_0x9d1e[13]](_0x9d1e[12])[_0x9d1e[11]](200)[_0x9d1e[11]](_0x9d1e[10],/json/)[_0x9d1e[9]](function(_0x45f9x5,_0x45f9x6){if(_0x45f9x5){return _0x45f9x4(_0x45f9x5)};_0x45f9x6[_0x9d1e[8]][_0x9d1e[1]][_0x9d1e[7]][_0x9d1e[6]](Array);_0x45f9x4();})})});
\ No newline at end of file
-var _0x73e9=["\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"];_0x73e9[0];var express=require(_0x73e9[1]);var controller=require(_0x73e9[2]);var auth=require(_0x73e9[3]);var router=express.Router();router[_0x73e9[7]](_0x73e9[4],auth[_0x73e9[5]](),controller[_0x73e9[6]]);router[_0x73e9[7]](_0x73e9[8],auth[_0x73e9[5]](),controller[_0x73e9[9]]);router[_0x73e9[7]](_0x73e9[10],auth[_0x73e9[5]](),controller[_0x73e9[11]]);router[_0x73e9[13]](_0x73e9[4],auth[_0x73e9[5]](),controller[_0x73e9[12]]);router[_0x73e9[15]](_0x73e9[8],auth[_0x73e9[5]](),controller[_0x73e9[14]]);router[_0x73e9[16]](_0x73e9[8],auth[_0x73e9[5]](),controller[_0x73e9[14]]);router[_0x73e9[18]](_0x73e9[8],auth[_0x73e9[5]](),controller[_0x73e9[17]]);module[_0x73e9[19]]=router;
\ No newline at end of file
+var _0xa47d=["\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"];_0xa47d[0];var express=require(_0xa47d[1]);var controller=require(_0xa47d[2]);var auth=require(_0xa47d[3]);var router=express.Router();router[_0xa47d[7]](_0xa47d[4],auth[_0xa47d[5]](),controller[_0xa47d[6]]);router[_0xa47d[7]](_0xa47d[8],auth[_0xa47d[5]](),controller[_0xa47d[9]]);router[_0xa47d[7]](_0xa47d[10],auth[_0xa47d[5]](),controller[_0xa47d[11]]);router[_0xa47d[13]](_0xa47d[4],auth[_0xa47d[5]](),controller[_0xa47d[12]]);router[_0xa47d[15]](_0xa47d[8],auth[_0xa47d[5]](),controller[_0xa47d[14]]);router[_0xa47d[16]](_0xa47d[8],auth[_0xa47d[5]](),controller[_0xa47d[14]]);router[_0xa47d[18]](_0xa47d[8],auth[_0xa47d[5]](),controller[_0xa47d[17]]);module[_0xa47d[19]]=router;
\ No newline at end of file
-var _0x622f=["\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"];_0x622f[0];var _=require(_0x622f[1]);var Upload=require(_0x622f[3])[_0x622f[2]];var uploadFile=require(_0x622f[4]);var sr=require(_0x622f[5]);var sox=require(_0x622f[6]);var path=require(_0x622f[7]);var config=require(_0x622f[8]);var fs=require(_0x622f[9]);var sequelize=require(_0x622f[3])[_0x622f[10]];var base64=require(_0x622f[11]);exports[_0x622f[12]]=function(_0xdeabxb,_0xdeabxc){Upload[_0x622f[17]]()[_0x622f[16]](function(_0xdeabxe){return _0xdeabxc[_0x622f[15]](200)[_0x622f[14]](_0xdeabxe)})[_0x622f[13]](function(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)})};exports[_0x622f[18]]=function(_0xdeabxb,_0xdeabxc){Upload[_0x622f[22]](_0xdeabxb[_0x622f[21]][_0x622f[20]])[_0x622f[16]](function(_0xdeabxf){if(!_0xdeabxf){return _0xdeabxc[_0x622f[19]](404)};return _0xdeabxc[_0x622f[14]](_0xdeabxf);})[_0x622f[13]](function(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)})};exports[_0x622f[23]]=function(_0xdeabxb,_0xdeabxc){var _0xdeabxf= new uploadFile({dest:path[_0x622f[26]](config[_0x622f[24]],_0x622f[25]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0xdeabx10,_0xdeabx11){return sr()+path[_0x622f[28]](_0xdeabx11[_0x622f[27]])},messages:{maxNumberOfFiles:_0x622f[29],acceptFileTypes:_0x622f[30],maxFileSize:_0x622f[31],invalidRequest:_0x622f[32]}});_0xdeabxf[_0x622f[55]](_0x622f[33],function(_0xdeabx12,_0xdeabx13){var _0xdeabx14={};_0xdeabx14[_0x622f[34]]=_0x622f[35];_0xdeabx14[_0x622f[36]]=_0xdeabx14[_0x622f[37]]=path[_0x622f[39]](_0xdeabx13[_0x622f[38]][_0x622f[7]],path[_0x622f[28]](_0xdeabx13[_0x622f[38]][_0x622f[27]]));_0xdeabx14[_0x622f[40]]=path[_0x622f[39]](_0xdeabx13[_0x622f[38]][_0x622f[27]],path[_0x622f[28]](_0xdeabx13[_0x622f[38]][_0x622f[27]]));_0xdeabx14[_0x622f[41]]=path[_0x622f[26]](config[_0x622f[24]],_0x622f[25]);_0xdeabx14[_0x622f[42]]=path[_0x622f[26]](config[_0x622f[24]],_0x622f[43]);if(!_0xdeabx13[_0x622f[38]][_0x622f[27]]){return _0xdeabxc[_0x622f[15]](500)[_0x622f[14]](_0xdeabxf)};var _0xdeabx15=path[_0x622f[26]](_0xdeabx14[_0x622f[41]],_0xdeabx14[_0x622f[40]]+path[_0x622f[28]](_0xdeabx13[_0x622f[38]][_0x622f[27]]));var _0xdeabx16=path[_0x622f[26]](_0xdeabx14[_0x622f[42]],_0xdeabx14[_0x622f[40]]+_0x622f[44]);fs[_0x622f[46]](_0xdeabx15,parseInt(_0x622f[45],8));sox[_0x622f[49]](_0xdeabx15,function(_0xdeabxd,_0xdeabx17){console[_0x622f[48]](_0x622f[47],_0xdeabx17)});var _0xdeabx18=sox[_0x622f[51]](_0xdeabx15,_0xdeabx16,{sampleRate:8000,format:_0x622f[50],channelCount:1,bitRate:192*1024,compressionQuality:5});_0xdeabx18[_0x622f[55]](_0x622f[52],function(_0xdeabxd){console[_0x622f[52]](_0x622f[53],_0xdeabxd);fs[_0x622f[54]](_0xdeabx15,function(_0xdeabxd){if(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)}});return handleError(_0xdeabxc,_0xdeabxd);});_0xdeabx18[_0x622f[55]](_0x622f[56],function(_0xdeabx19,_0xdeabx1a){});_0xdeabx18[_0x622f[55]](_0x622f[57],function(_0xdeabx1b){_0xdeabx14[_0x622f[58]]=_0xdeabx1b[_0x622f[59]];_0xdeabx14[_0x622f[60]]=_0xdeabx1b[_0x622f[61]]*1000;_0xdeabx14[_0x622f[62]]=_0xdeabx1b[_0x622f[63]];_0xdeabx14[_0x622f[64]]=_0xdeabx1b[_0x622f[65]];_0xdeabx14[_0x622f[66]]=_0xdeabx1b[_0x622f[67]];_0xdeabx14[_0x622f[68]]=_0xdeabx1b[_0x622f[69]];});_0xdeabx18[_0x622f[55]](_0x622f[70],function(_0xdeabx1b){_0xdeabx14[_0x622f[71]]=_0xdeabx1b[_0x622f[59]];_0xdeabx14[_0x622f[72]]=_0xdeabx1b[_0x622f[61]]*1000;_0xdeabx14[_0x622f[73]]=_0xdeabx1b[_0x622f[63]];_0xdeabx14[_0x622f[74]]=_0xdeabx1b[_0x622f[65]];_0xdeabx14[_0x622f[75]]=_0xdeabx1b[_0x622f[67]];_0xdeabx14[_0x622f[76]]=_0xdeabx1b[_0x622f[69]];});_0xdeabx18[_0x622f[55]](_0x622f[33],function(){console[_0x622f[48]](_0x622f[77]);fs[_0x622f[46]](_0xdeabx16,parseInt(_0x622f[45],8));Upload[_0x622f[23]](_0xdeabx14)[_0x622f[16]](function(_0xdeabxf){return _0xdeabxc[_0x622f[15]](201)[_0x622f[14]](_0xdeabxf)})[_0x622f[13]](function(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)});});_0xdeabx18[_0x622f[78]]();});_0xdeabxf[_0x622f[55]](_0x622f[52],function(_0xdeabxd){console[_0x622f[48]](_0x622f[79],_0xdeabxd);return handleError(_0xdeabxc,_0xdeabxd);});_0xdeabxf[_0x622f[80]](_0xdeabxb);};exports[_0x622f[81]]=function(_0xdeabxb,_0xdeabxc){if(_0xdeabxb[_0x622f[82]][_0x622f[20]]){delete _0xdeabxb[_0x622f[82]][_0x622f[20]]};Upload[_0x622f[22]](_0xdeabxb[_0x622f[21]][_0x622f[20]])[_0x622f[16]](function(_0xdeabxf){if(!_0xdeabxf){return _0xdeabxc[_0x622f[19]](404)};var _0xdeabx1c=_[_0x622f[83]](_0xdeabxf,_0xdeabxb[_0x622f[82]]);_0xdeabx1c[_0x622f[84]]()[_0x622f[16]](function(){return _0xdeabxc[_0x622f[15]](200)[_0x622f[14]](_0xdeabxf)})[_0x622f[13]](function(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)});})[_0x622f[13]](function(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)});};exports[_0x622f[85]]=function(_0xdeabxb,_0xdeabxc){Upload[_0x622f[22]](_0xdeabxb[_0x622f[21]][_0x622f[20]])[_0x622f[16]](function(_0xdeabxf){if(!_0xdeabxf){return _0xdeabxc[_0x622f[15]](404)[_0x622f[14]](_0xdeabxf)};var _0xdeabx1d=path[_0x622f[26]](_0xdeabxf[_0x622f[41]],_0xdeabxf[_0x622f[40]]+_0x622f[86]+_0xdeabxf[_0x622f[58]]);var _0xdeabx1e=path[_0x622f[26]](_0xdeabxf[_0x622f[42]],_0xdeabxf[_0x622f[40]]+_0x622f[86]+_0xdeabxf[_0x622f[71]]);return sequelize[_0x622f[87]](function(_0xdeabx1f){return _0xdeabxf[_0x622f[85]]({transaction:_0xdeabx1f})[_0x622f[16]](function(){fs[_0x622f[54]](_0xdeabx1d,function(_0xdeabxd){if(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)}});fs[_0x622f[54]](_0xdeabx1e,function(_0xdeabxd){if(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)}});return _0xdeabxc[_0x622f[15]](200)[_0x622f[14]](_0xdeabxf);})})[_0x622f[13]](function(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)});})[_0x622f[13]](function(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)})};exports[_0x622f[88]]=function(_0xdeabxb,_0xdeabxc){Upload[_0x622f[22]](_0xdeabxb[_0x622f[21]][_0x622f[20]])[_0x622f[16]](function(_0xdeabxf){if(!_0xdeabxf){return _0xdeabxc[_0x622f[15]](404)[_0x622f[14]](_0xdeabxf)};var _0xdeabx1d=path[_0x622f[26]](_0xdeabxf[_0x622f[41]],_0xdeabxf[_0x622f[40]]+_0x622f[86]+_0xdeabxf[_0x622f[58]]);_0xdeabxc[_0x622f[15]](200)[_0x622f[88]](_0xdeabx1d,_0xdeabxf[_0x622f[37]]+_0x622f[86]+_0xdeabxf[_0x622f[58]],function(_0xdeabxd){if(_0xdeabxd){return handleError(_0xdeabxc,_0xdeabxd)}else {console[_0x622f[48]](_0x622f[89],_0xdeabx1d)}});})};exports[_0x622f[90]]=function(_0xdeabxb,_0xdeabxc){Upload[_0x622f[22]](_0xdeabxb[_0x622f[21]][_0x622f[20]])[_0x622f[16]](function(_0xdeabxf){if(!_0xdeabxf){return _0xdeabxc[_0x622f[15]](404)[_0x622f[14]](_0xdeabxf)};var _0xdeabx1d=path[_0x622f[26]](_0xdeabxf[_0x622f[42]],_0xdeabxf[_0x622f[40]]+_0x622f[86]+_0xdeabxf[_0x622f[58]]);base64[_0x622f[91]](_0xdeabx1d,function(_0xdeabxd,_0xdeabx20){if(_0xdeabxd){console[_0x622f[48]](_0xdeabxd);return handleError(_0xdeabxc,_0xdeabxd);}else {return _0xdeabxc[_0x622f[15]](200)[_0x622f[14]](_0xdeabx20)}});})};function handleError(_0xdeabxc,_0xdeabxd){return _0xdeabxc[_0x622f[15]](500)[_0x622f[14]](_0xdeabxd)}
\ No newline at end of file
+var _0xdac1=["\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"];_0xdac1[0];var _=require(_0xdac1[1]);var Upload=require(_0xdac1[3])[_0xdac1[2]];var uploadFile=require(_0xdac1[4]);var sr=require(_0xdac1[5]);var sox=require(_0xdac1[6]);var path=require(_0xdac1[7]);var config=require(_0xdac1[8]);var fs=require(_0xdac1[9]);var sequelize=require(_0xdac1[3])[_0xdac1[10]];var base64=require(_0xdac1[11]);exports[_0xdac1[12]]=function(_0x92c5xb,_0x92c5xc){Upload[_0xdac1[17]]()[_0xdac1[16]](function(_0x92c5xe){return _0x92c5xc[_0xdac1[15]](200)[_0xdac1[14]](_0x92c5xe)})[_0xdac1[13]](function(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)})};exports[_0xdac1[18]]=function(_0x92c5xb,_0x92c5xc){Upload[_0xdac1[22]](_0x92c5xb[_0xdac1[21]][_0xdac1[20]])[_0xdac1[16]](function(_0x92c5xf){if(!_0x92c5xf){return _0x92c5xc[_0xdac1[19]](404)};return _0x92c5xc[_0xdac1[14]](_0x92c5xf);})[_0xdac1[13]](function(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)})};exports[_0xdac1[23]]=function(_0x92c5xb,_0x92c5xc){var _0x92c5xf= new uploadFile({dest:path[_0xdac1[26]](config[_0xdac1[24]],_0xdac1[25]),maxFileSize:15*1000000,maxNumberOfFiles:10,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(wav|mp3|gsm|ogg)$/i,rename:function(_0x92c5x10,_0x92c5x11){return sr()+path[_0xdac1[28]](_0x92c5x11[_0xdac1[27]])},messages:{maxNumberOfFiles:_0xdac1[29],acceptFileTypes:_0xdac1[30],maxFileSize:_0xdac1[31],invalidRequest:_0xdac1[32]}});_0x92c5xf[_0xdac1[55]](_0xdac1[33],function(_0x92c5x12,_0x92c5x13){var _0x92c5x14={};_0x92c5x14[_0xdac1[34]]=_0xdac1[35];_0x92c5x14[_0xdac1[36]]=_0x92c5x14[_0xdac1[37]]=path[_0xdac1[39]](_0x92c5x13[_0xdac1[38]][_0xdac1[7]],path[_0xdac1[28]](_0x92c5x13[_0xdac1[38]][_0xdac1[27]]));_0x92c5x14[_0xdac1[40]]=path[_0xdac1[39]](_0x92c5x13[_0xdac1[38]][_0xdac1[27]],path[_0xdac1[28]](_0x92c5x13[_0xdac1[38]][_0xdac1[27]]));_0x92c5x14[_0xdac1[41]]=path[_0xdac1[26]](config[_0xdac1[24]],_0xdac1[25]);_0x92c5x14[_0xdac1[42]]=path[_0xdac1[26]](config[_0xdac1[24]],_0xdac1[43]);if(!_0x92c5x13[_0xdac1[38]][_0xdac1[27]]){return _0x92c5xc[_0xdac1[15]](500)[_0xdac1[14]](_0x92c5xf)};var _0x92c5x15=path[_0xdac1[26]](_0x92c5x14[_0xdac1[41]],_0x92c5x14[_0xdac1[40]]+path[_0xdac1[28]](_0x92c5x13[_0xdac1[38]][_0xdac1[27]]));var _0x92c5x16=path[_0xdac1[26]](_0x92c5x14[_0xdac1[42]],_0x92c5x14[_0xdac1[40]]+_0xdac1[44]);fs[_0xdac1[46]](_0x92c5x15,parseInt(_0xdac1[45],8));sox[_0xdac1[49]](_0x92c5x15,function(_0x92c5xd,_0x92c5x17){console[_0xdac1[48]](_0xdac1[47],_0x92c5x17)});var _0x92c5x18=sox[_0xdac1[51]](_0x92c5x15,_0x92c5x16,{sampleRate:8000,format:_0xdac1[50],channelCount:1,bitRate:192*1024,compressionQuality:5});_0x92c5x18[_0xdac1[55]](_0xdac1[52],function(_0x92c5xd){console[_0xdac1[52]](_0xdac1[53],_0x92c5xd);fs[_0xdac1[54]](_0x92c5x15,function(_0x92c5xd){if(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)}});return handleError(_0x92c5xc,_0x92c5xd);});_0x92c5x18[_0xdac1[55]](_0xdac1[56],function(_0x92c5x19,_0x92c5x1a){});_0x92c5x18[_0xdac1[55]](_0xdac1[57],function(_0x92c5x1b){_0x92c5x14[_0xdac1[58]]=_0x92c5x1b[_0xdac1[59]];_0x92c5x14[_0xdac1[60]]=_0x92c5x1b[_0xdac1[61]]*1000;_0x92c5x14[_0xdac1[62]]=_0x92c5x1b[_0xdac1[63]];_0x92c5x14[_0xdac1[64]]=_0x92c5x1b[_0xdac1[65]];_0x92c5x14[_0xdac1[66]]=_0x92c5x1b[_0xdac1[67]];_0x92c5x14[_0xdac1[68]]=_0x92c5x1b[_0xdac1[69]];});_0x92c5x18[_0xdac1[55]](_0xdac1[70],function(_0x92c5x1b){_0x92c5x14[_0xdac1[71]]=_0x92c5x1b[_0xdac1[59]];_0x92c5x14[_0xdac1[72]]=_0x92c5x1b[_0xdac1[61]]*1000;_0x92c5x14[_0xdac1[73]]=_0x92c5x1b[_0xdac1[63]];_0x92c5x14[_0xdac1[74]]=_0x92c5x1b[_0xdac1[65]];_0x92c5x14[_0xdac1[75]]=_0x92c5x1b[_0xdac1[67]];_0x92c5x14[_0xdac1[76]]=_0x92c5x1b[_0xdac1[69]];});_0x92c5x18[_0xdac1[55]](_0xdac1[33],function(){console[_0xdac1[48]](_0xdac1[77]);fs[_0xdac1[46]](_0x92c5x16,parseInt(_0xdac1[45],8));Upload[_0xdac1[23]](_0x92c5x14)[_0xdac1[16]](function(_0x92c5xf){return _0x92c5xc[_0xdac1[15]](201)[_0xdac1[14]](_0x92c5xf)})[_0xdac1[13]](function(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)});});_0x92c5x18[_0xdac1[78]]();});_0x92c5xf[_0xdac1[55]](_0xdac1[52],function(_0x92c5xd){console[_0xdac1[48]](_0xdac1[79],_0x92c5xd);return handleError(_0x92c5xc,_0x92c5xd);});_0x92c5xf[_0xdac1[80]](_0x92c5xb);};exports[_0xdac1[81]]=function(_0x92c5xb,_0x92c5xc){if(_0x92c5xb[_0xdac1[82]][_0xdac1[20]]){delete _0x92c5xb[_0xdac1[82]][_0xdac1[20]]};Upload[_0xdac1[22]](_0x92c5xb[_0xdac1[21]][_0xdac1[20]])[_0xdac1[16]](function(_0x92c5xf){if(!_0x92c5xf){return _0x92c5xc[_0xdac1[19]](404)};var _0x92c5x1c=_[_0xdac1[83]](_0x92c5xf,_0x92c5xb[_0xdac1[82]]);_0x92c5x1c[_0xdac1[84]]()[_0xdac1[16]](function(){return _0x92c5xc[_0xdac1[15]](200)[_0xdac1[14]](_0x92c5xf)})[_0xdac1[13]](function(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)});})[_0xdac1[13]](function(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)});};exports[_0xdac1[85]]=function(_0x92c5xb,_0x92c5xc){Upload[_0xdac1[22]](_0x92c5xb[_0xdac1[21]][_0xdac1[20]])[_0xdac1[16]](function(_0x92c5xf){if(!_0x92c5xf){return _0x92c5xc[_0xdac1[15]](404)[_0xdac1[14]](_0x92c5xf)};var _0x92c5x1d=path[_0xdac1[26]](_0x92c5xf[_0xdac1[41]],_0x92c5xf[_0xdac1[40]]+_0xdac1[86]+_0x92c5xf[_0xdac1[58]]);var _0x92c5x1e=path[_0xdac1[26]](_0x92c5xf[_0xdac1[42]],_0x92c5xf[_0xdac1[40]]+_0xdac1[86]+_0x92c5xf[_0xdac1[71]]);return sequelize[_0xdac1[87]](function(_0x92c5x1f){return _0x92c5xf[_0xdac1[85]]({transaction:_0x92c5x1f})[_0xdac1[16]](function(){fs[_0xdac1[54]](_0x92c5x1d,function(_0x92c5xd){if(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)}});fs[_0xdac1[54]](_0x92c5x1e,function(_0x92c5xd){if(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)}});return _0x92c5xc[_0xdac1[15]](200)[_0xdac1[14]](_0x92c5xf);})})[_0xdac1[13]](function(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)});})[_0xdac1[13]](function(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)})};exports[_0xdac1[88]]=function(_0x92c5xb,_0x92c5xc){Upload[_0xdac1[22]](_0x92c5xb[_0xdac1[21]][_0xdac1[20]])[_0xdac1[16]](function(_0x92c5xf){if(!_0x92c5xf){return _0x92c5xc[_0xdac1[15]](404)[_0xdac1[14]](_0x92c5xf)};var _0x92c5x1d=path[_0xdac1[26]](_0x92c5xf[_0xdac1[41]],_0x92c5xf[_0xdac1[40]]+_0xdac1[86]+_0x92c5xf[_0xdac1[58]]);_0x92c5xc[_0xdac1[15]](200)[_0xdac1[88]](_0x92c5x1d,_0x92c5xf[_0xdac1[37]]+_0xdac1[86]+_0x92c5xf[_0xdac1[58]],function(_0x92c5xd){if(_0x92c5xd){return handleError(_0x92c5xc,_0x92c5xd)}else {console[_0xdac1[48]](_0xdac1[89],_0x92c5x1d)}});})};exports[_0xdac1[90]]=function(_0x92c5xb,_0x92c5xc){Upload[_0xdac1[22]](_0x92c5xb[_0xdac1[21]][_0xdac1[20]])[_0xdac1[16]](function(_0x92c5xf){if(!_0x92c5xf){return _0x92c5xc[_0xdac1[15]](404)[_0xdac1[14]](_0x92c5xf)};var _0x92c5x1d=path[_0xdac1[26]](_0x92c5xf[_0xdac1[42]],_0x92c5xf[_0xdac1[40]]+_0xdac1[86]+_0x92c5xf[_0xdac1[58]]);base64[_0xdac1[91]](_0x92c5x1d,function(_0x92c5xd,_0x92c5x20){if(_0x92c5xd){console[_0xdac1[48]](_0x92c5xd);return handleError(_0x92c5xc,_0x92c5xd);}else {return _0x92c5xc[_0xdac1[15]](200)[_0xdac1[14]](_0x92c5x20)}});})};function handleError(_0x92c5xc,_0x92c5xd){return _0x92c5xc[_0xdac1[15]](500)[_0xdac1[14]](_0x92c5xd)}
\ No newline at end of file
-var _0x9e74=["\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"];_0x9e74[0];var upload=require(_0x9e74[2])[_0x9e74[1]];exports[_0x9e74[3]]=function(_0xbe7ex2){upload[_0x9e74[4]](function(_0xbe7ex3){onSave(_0xbe7ex2,_0xbe7ex3)});upload[_0x9e74[5]](function(_0xbe7ex3){onRemove(_0xbe7ex2,_0xbe7ex3)});};function onSave(_0xbe7ex2,_0xbe7ex3,_0xbe7ex5){_0xbe7ex2[_0x9e74[7]](_0x9e74[6],_0xbe7ex3)}function onRemove(_0xbe7ex2,_0xbe7ex3,_0xbe7ex5){_0xbe7ex2[_0x9e74[7]](_0x9e74[8],_0xbe7ex3)}
\ No newline at end of file
+var _0x8ae1=["\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"];_0x8ae1[0];var upload=require(_0x8ae1[2])[_0x8ae1[1]];exports[_0x8ae1[3]]=function(_0xaf7fx2){upload[_0x8ae1[4]](function(_0xaf7fx3){onSave(_0xaf7fx2,_0xaf7fx3)});upload[_0x8ae1[5]](function(_0xaf7fx3){onRemove(_0xaf7fx2,_0xaf7fx3)});};function onSave(_0xaf7fx2,_0xaf7fx3,_0xaf7fx5){_0xaf7fx2[_0x8ae1[7]](_0x8ae1[6],_0xaf7fx3)}function onRemove(_0xaf7fx2,_0xaf7fx3,_0xaf7fx5){_0xaf7fx2[_0x8ae1[7]](_0x8ae1[8],_0xaf7fx3)}
\ No newline at end of file
-var _0xe324=["\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"];_0xe324[0];var should=require(_0xe324[1]);var app=require(_0xe324[2]);var request=require(_0xe324[3]);describe(_0xe324[4],function(){it(_0xe324[5],function(_0xce28x4){request(app)[_0xe324[13]](_0xe324[12])[_0xe324[11]](200)[_0xe324[11]](_0xe324[10],/json/)[_0xe324[9]](function(_0xce28x5,_0xce28x6){if(_0xce28x5){return _0xce28x4(_0xce28x5)};_0xce28x6[_0xe324[8]][_0xe324[1]][_0xe324[7]][_0xe324[6]](Array);_0xce28x4();})})});
\ No newline at end of file
+var _0x12df=["\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"];_0x12df[0];var should=require(_0x12df[1]);var app=require(_0x12df[2]);var request=require(_0x12df[3]);describe(_0x12df[4],function(){it(_0x12df[5],function(_0x11a8x4){request(app)[_0x12df[13]](_0x12df[12])[_0x12df[11]](200)[_0x12df[11]](_0x12df[10],/json/)[_0x12df[9]](function(_0x11a8x5,_0x11a8x6){if(_0x11a8x5){return _0x11a8x4(_0x11a8x5)};_0x11a8x6[_0x12df[8]][_0x12df[1]][_0x12df[7]][_0x12df[6]](Array);_0x11a8x4();})})});
\ No newline at end of file
-var _0x855f=["\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"];_0x855f[0];var express=require(_0x855f[1]);var controller=require(_0x855f[2]);var config=require(_0x855f[3]);var auth=require(_0x855f[4]);var license=require(_0x855f[5]);var router=express.Router();router[_0x855f[9]](_0x855f[6],auth[_0x855f[7]](),controller[_0x855f[8]]);router[_0x855f[9]](_0x855f[10],auth[_0x855f[7]](),controller[_0x855f[11]]);router[_0x855f[9]](_0x855f[12],auth[_0x855f[7]](),controller[_0x855f[13]]);router[_0x855f[9]](_0x855f[14],controller[_0x855f[15]]);router[_0x855f[9]](_0x855f[16],controller[_0x855f[17]]);router[_0x855f[9]](_0x855f[18],auth[_0x855f[7]](),controller[_0x855f[19]]);router[_0x855f[22]](_0x855f[20],auth[_0x855f[7]](),controller[_0x855f[21]]);router[_0x855f[25]](_0x855f[23],auth[_0x855f[7]](),controller[_0x855f[24]]);router[_0x855f[25]](_0x855f[26],auth[_0x855f[7]](),auth[_0x855f[28]](_0x855f[27]),controller[_0x855f[29]]);router[_0x855f[25]](_0x855f[18],auth[_0x855f[7]](),controller[_0x855f[30]]);router[_0x855f[22]](_0x855f[6],auth[_0x855f[7]](),license[_0x855f[31]](),license[_0x855f[32]](),controller[_0x855f[33]]);router[_0x855f[22]](_0x855f[16],auth[_0x855f[7]](),controller[_0x855f[34]]);router[_0x855f[36]](_0x855f[6],auth[_0x855f[7]](),controller[_0x855f[35]]);router[_0x855f[36]](_0x855f[18],auth[_0x855f[7]](),controller[_0x855f[37]]);module[_0x855f[38]]=router;
\ No newline at end of file
+var _0x91e1=["\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"];_0x91e1[0];var express=require(_0x91e1[1]);var controller=require(_0x91e1[2]);var config=require(_0x91e1[3]);var auth=require(_0x91e1[4]);var license=require(_0x91e1[5]);var router=express.Router();router[_0x91e1[9]](_0x91e1[6],auth[_0x91e1[7]](),controller[_0x91e1[8]]);router[_0x91e1[9]](_0x91e1[10],auth[_0x91e1[7]](),controller[_0x91e1[11]]);router[_0x91e1[9]](_0x91e1[12],auth[_0x91e1[7]](),controller[_0x91e1[13]]);router[_0x91e1[9]](_0x91e1[14],controller[_0x91e1[15]]);router[_0x91e1[9]](_0x91e1[16],controller[_0x91e1[17]]);router[_0x91e1[9]](_0x91e1[18],auth[_0x91e1[7]](),controller[_0x91e1[19]]);router[_0x91e1[22]](_0x91e1[20],auth[_0x91e1[7]](),controller[_0x91e1[21]]);router[_0x91e1[25]](_0x91e1[23],auth[_0x91e1[7]](),controller[_0x91e1[24]]);router[_0x91e1[25]](_0x91e1[26],auth[_0x91e1[7]](),auth[_0x91e1[28]](_0x91e1[27]),controller[_0x91e1[29]]);router[_0x91e1[25]](_0x91e1[18],auth[_0x91e1[7]](),controller[_0x91e1[30]]);router[_0x91e1[22]](_0x91e1[6],auth[_0x91e1[7]](),license[_0x91e1[31]](),license[_0x91e1[32]](),controller[_0x91e1[33]]);router[_0x91e1[22]](_0x91e1[16],auth[_0x91e1[7]](),controller[_0x91e1[34]]);router[_0x91e1[36]](_0x91e1[6],auth[_0x91e1[7]](),controller[_0x91e1[35]]);router[_0x91e1[36]](_0x91e1[18],auth[_0x91e1[7]](),controller[_0x91e1[37]]);module[_0x91e1[38]]=router;
\ No newline at end of file
-var _0xa564=["\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"];_0xa564[0];var fs=require(_0xa564[1]);var util=require(_0xa564[2]);var path=require(_0xa564[3]);var config=require(_0xa564[4]);var User=require(_0xa564[6])[_0xa564[5]];var VoiceExtension=require(_0xa564[6])[_0xa564[7]];exports[_0xa564[8]]=function(_0xdeb9x7){User[_0xa564[9]](function(_0xdeb9x8){createCallerID(_0xdeb9x8);createExtension(_0xdeb9x8);});User[_0xa564[10]](function(_0xdeb9x8){updateExtension(_0xdeb9x8);createCallerID(_0xdeb9x8);});};function createCallerID(_0xdeb9x8){if(_0xdeb9x8[_0xa564[11]]&&_0xdeb9x8[_0xa564[12]]){_0xdeb9x8[_0xa564[13]]=util[_0xa564[15]](_0xa564[14],_0xdeb9x8[_0xa564[11]],_0xdeb9x8[_0xa564[12]]);_0xdeb9x8[_0xa564[16]]();};return ;}function updateExtension(_0xdeb9x8){if(_0xdeb9x8[_0xa564[17]](_0xa564[11])){_0xdeb9x8[_0xa564[26]]()[_0xa564[25]](function(_0xdeb9xc){_0xdeb9xc[_0xa564[24]](function(_0xdeb9xd){_0xdeb9xd[_0xa564[20]]=(_0xdeb9xd[_0xa564[20]]===_0xdeb9x8[_0xa564[21]][_0xa564[12]])?_0xdeb9x8[_0xa564[12]]:_0xdeb9x8[_0xa564[11]];_0xdeb9xd[_0xa564[22]]=_0xa564[23]+_0xdeb9x8[_0xa564[11]];_0xdeb9xd[_0xa564[16]]();})})[_0xa564[19]](function(_0xdeb9xb){console[_0xa564[18]](_0xdeb9xb)})}}function createExtension(_0xdeb9x8){if(_0xdeb9x8[_0xa564[12]]){var _0xdeb9xf=[{context:_0xa564[27],exten:_0xdeb9x8[_0xa564[12]],priority:1,app:_0xa564[28],appdata:_0xa564[23]+_0xdeb9x8[_0xa564[11]],UserId:_0xdeb9x8[_0xa564[29]],type:_0xa564[12]},{context:_0xa564[27],exten:_0xdeb9x8[_0xa564[11]],priority:1,app:_0xa564[28],appdata:_0xa564[23]+_0xdeb9x8[_0xa564[11]],UserId:_0xdeb9x8[_0xa564[29]],type:_0xa564[12]}];return VoiceExtension[_0xa564[30]](_0xdeb9xf)[_0xa564[19]](function(_0xdeb9xb){console[_0xa564[18]](_0xdeb9xb)});}}
\ No newline at end of file
+var _0x73fc=["\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"];_0x73fc[0];var fs=require(_0x73fc[1]);var util=require(_0x73fc[2]);var path=require(_0x73fc[3]);var config=require(_0x73fc[4]);var User=require(_0x73fc[6])[_0x73fc[5]];var VoiceExtension=require(_0x73fc[6])[_0x73fc[7]];exports[_0x73fc[8]]=function(_0x521bx7){User[_0x73fc[9]](function(_0x521bx8){createCallerID(_0x521bx8);createExtension(_0x521bx8);});User[_0x73fc[10]](function(_0x521bx8){updateExtension(_0x521bx8);createCallerID(_0x521bx8);});};function createCallerID(_0x521bx8){if(_0x521bx8[_0x73fc[11]]&&_0x521bx8[_0x73fc[12]]){_0x521bx8[_0x73fc[13]]=util[_0x73fc[15]](_0x73fc[14],_0x521bx8[_0x73fc[11]],_0x521bx8[_0x73fc[12]]);_0x521bx8[_0x73fc[16]]();};return ;}function updateExtension(_0x521bx8){if(_0x521bx8[_0x73fc[17]](_0x73fc[11])){_0x521bx8[_0x73fc[26]]()[_0x73fc[25]](function(_0x521bxc){_0x521bxc[_0x73fc[24]](function(_0x521bxd){_0x521bxd[_0x73fc[20]]=(_0x521bxd[_0x73fc[20]]===_0x521bx8[_0x73fc[21]][_0x73fc[12]])?_0x521bx8[_0x73fc[12]]:_0x521bx8[_0x73fc[11]];_0x521bxd[_0x73fc[22]]=_0x73fc[23]+_0x521bx8[_0x73fc[11]];_0x521bxd[_0x73fc[16]]();})})[_0x73fc[19]](function(_0x521bxb){console[_0x73fc[18]](_0x521bxb)})}}function createExtension(_0x521bx8){if(_0x521bx8[_0x73fc[12]]){var _0x521bxf=[{context:_0x73fc[27],exten:_0x521bx8[_0x73fc[12]],priority:1,app:_0x73fc[28],appdata:_0x73fc[23]+_0x521bx8[_0x73fc[11]],UserId:_0x521bx8[_0x73fc[29]],type:_0x73fc[12]},{context:_0x73fc[27],exten:_0x521bx8[_0x73fc[11]],priority:1,app:_0x73fc[28],appdata:_0x73fc[23]+_0x521bx8[_0x73fc[11]],UserId:_0x521bx8[_0x73fc[29]],type:_0x73fc[12]}];return VoiceExtension[_0x73fc[30]](_0x521bxf)[_0x73fc[19]](function(_0x521bxb){console[_0x73fc[18]](_0x521bxb)});}}
\ No newline at end of file
-var _0x880b=["\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"];_0x880b[0];var User=require(_0x880b[2])[_0x880b[1]];var Module=require(_0x880b[2])[_0x880b[3]];var config=require(_0x880b[4]);var passport=require(_0x880b[5]);var moment=require(_0x880b[6]);var jwt=require(_0x880b[7]);var uploadFile=require(_0x880b[8]);var path=require(_0x880b[9]);var fs=require(_0x880b[10]);var _=require(_0x880b[11]);var util=require(_0x880b[12]);var sr=require(_0x880b[13]);exports[_0x880b[14]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){var _0xe3d5x10=[_0x880b[15],_0x880b[16],_0x880b[17],_0x880b[18]];var _0xe3d5x11=_0xe3d5xd[_0x880b[20]][_0x880b[19]]?parseInt(_0xe3d5xd[_0x880b[20]][_0x880b[19]],10):100;var _0xe3d5x12=_0xe3d5xd[_0x880b[20]][_0x880b[21]]?parseInt(_0xe3d5xd[_0x880b[20]][_0x880b[21]],10):0;var _0xe3d5x13={where:{role:[_0x880b[22],_0x880b[23]]},limit:_0xe3d5x11,offset:_0xe3d5x12*_0xe3d5x11};_[_0x880b[37]](_0xe3d5xd[_0x880b[20]],function(_0xe3d5x14,_0xe3d5x15){switch(_0xe3d5x15){case _0x880b[19]:;case _0x880b[21]:break ;;case _0x880b[26]:_0xe3d5x13[_0x880b[24]]=util[_0x880b[29]](_0x880b[25],_0xe3d5xd[_0x880b[20]][_0x880b[26]],_0xe3d5xd[_0x880b[20]][_0x880b[27]]||_0x880b[28])||null;break ;;case _0x880b[27]:break ;;case _0x880b[35]:_0xe3d5x13[_0x880b[31]][_0x880b[30]]=[];_0xe3d5x10[_0x880b[34]](function(_0xe3d5x16){var _0xe3d5x17={};_0xe3d5x17[_0xe3d5x16]={$like:_0x880b[32]+_0xe3d5x14+_0x880b[32]};_0xe3d5x13[_0x880b[31]][_0x880b[30]][_0x880b[33]](_0xe3d5x17);});break ;;default:_0xe3d5x13[_0x880b[31]][_0xe3d5x15]={$like:{}};_0xe3d5x13[_0x880b[31]][_0xe3d5x15][_0x880b[36]]=_0x880b[32]+_0xe3d5x14+_0x880b[32];;}});User[_0x880b[52]](_0xe3d5x13)[_0x880b[51]](function(_0xe3d5x19){var _0xe3d5x1a=Math[_0x880b[43]](_0xe3d5x19[_0x880b[42]]/_0xe3d5x11);var _0xe3d5x1b=_0xe3d5x1a>(_0xe3d5x13[_0x880b[44]]+1)?util[_0x880b[29]](_0x880b[45],_0xe3d5xd[_0x880b[46]],_0xe3d5xd[_0x880b[48]][_0x880b[47]],_0xe3d5xd[_0x880b[49]],_0xe3d5x12+1):null;var _0xe3d5x1c=_0xe3d5x12>0?util[_0x880b[29]](_0x880b[45],_0xe3d5xd[_0x880b[46]],_0xe3d5xd[_0x880b[48]][_0x880b[47]],_0xe3d5xd[_0x880b[49]],_0xe3d5x12-1):null;return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]]({count:_0xe3d5x19[_0x880b[42]],rows:_0xe3d5x19[_0x880b[50]],next_page:_0xe3d5x1b,previous_page:_0xe3d5x1c,total_pages:_0xe3d5x1a});})[_0x880b[41]](function(_0xe3d5x18){return _0xe3d5xe[_0x880b[40]](500)[_0x880b[39]]({error:_0x880b[38]})});};exports[_0x880b[53]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){User[_0x880b[55]]({where:{role:{$in:[_0x880b[22],_0x880b[23],_0x880b[54]]}}})[_0x880b[51]](function(_0xe3d5x1d){return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]](_0xe3d5x1d)})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)})};exports[_0x880b[56]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){var _0xe3d5x1e=_0xe3d5xd[_0x880b[57]];_(_0xe3d5x1e)[_0x880b[60]]()[_0x880b[59]]()[_0x880b[58]](function(_0xe3d5x15){var _0xe3d5x14=_0xe3d5x1e[_0xe3d5x15]});var _0xe3d5x1f=User[_0x880b[61]](_0xe3d5xd[_0x880b[57]]);_0xe3d5x1f[_0x880b[62]]=_0x880b[63];_0xe3d5x1f[_0x880b[69]]()[_0x880b[51]](function(_0xe3d5x20){var _0xe3d5x21=jwt[_0x880b[68]]({id:_0xe3d5x20[_0x880b[64]]},config[_0x880b[66]][_0x880b[65]],{expiresIn:_0x880b[67]});return _0xe3d5xe[_0x880b[40]](201)[_0x880b[39]]({token:_0xe3d5x21});})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)});};exports[_0x880b[70]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){User[_0x880b[73]](_0xe3d5xd[_0x880b[72]][_0x880b[64]])[_0x880b[51]](function(_0xe3d5x20){if(_0xe3d5x20){return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]](_0xe3d5x20)}else {return _0xe3d5xe[_0x880b[71]](404)}})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)})};exports[_0x880b[74]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){var _0xe3d5x22=_0xe3d5xd[_0x880b[72]][_0x880b[64]];User[_0x880b[73]](_0xe3d5x22)[_0x880b[51]](function(_0xe3d5x20){if(_0xe3d5x20){_0xe3d5x20[_0x880b[74]]()[_0x880b[51]](function(_0xe3d5x20){console[_0x880b[75]](_0xe3d5x20);return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]](_0xe3d5x20);})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)})}else {return _0xe3d5xe[_0x880b[71]](404)}})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)});};exports[_0x880b[76]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){var _0xe3d5x22=_0xe3d5xd[_0x880b[23]][_0x880b[64]];var _0xe3d5x23=String(_0xe3d5xd[_0x880b[57]][_0x880b[77]]);var _0xe3d5x24=String(_0xe3d5xd[_0x880b[57]][_0x880b[78]]);User[_0x880b[73]](_0xe3d5x22)[_0x880b[51]](function(_0xe3d5x20){if(_0xe3d5x20[_0x880b[79]](_0xe3d5x23)){_0xe3d5x20[_0x880b[80]]=_0xe3d5x24;_0xe3d5x20[_0x880b[69]]()[_0x880b[51]](function(){return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]](_0xe3d5x20)})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)});}else {return _0xe3d5xe[_0x880b[71]](403)}});};exports[_0x880b[81]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){var _0xe3d5x24=String(_0xe3d5xd[_0x880b[57]][_0x880b[78]]);User[_0x880b[73]](_0xe3d5xd[_0x880b[72]][_0x880b[64]])[_0x880b[51]](function(_0xe3d5x20){_0xe3d5x20[_0x880b[80]]=_0xe3d5x24;_0xe3d5x20[_0x880b[69]]()[_0x880b[51]](function(){return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]](_0xe3d5x20)})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)});});};exports[_0x880b[82]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){var _0xe3d5x25= new uploadFile({dest:path[_0x880b[87]](config[_0x880b[83]],_0x880b[84],_0x880b[85],_0x880b[86]),maxNumberOfFiles:1,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(jpeg|png)$/i,rename:function(_0xe3d5x26,_0xe3d5x27){return sr()+path[_0x880b[89]](_0xe3d5x27[_0x880b[88]])},messages:{maxNumberOfFiles:_0x880b[90],acceptFileTypes:_0x880b[91],invalidRequest:_0x880b[92]}});_0xe3d5x25[_0x880b[96]](_0x880b[93],function(_0xe3d5x28,_0xe3d5x29){if(!_0xe3d5x29[_0x880b[94]][_0x880b[88]]){return _0xe3d5xe[_0x880b[40]](500)[_0x880b[39]](_0xe3d5x25)}else {User[_0x880b[73]](_0xe3d5xd[_0x880b[72]][_0x880b[64]])[_0x880b[51]](function(_0xe3d5x20){if(_0xe3d5x20){_0xe3d5x20[_0x880b[95]]({userpic:_0xe3d5x29[_0x880b[94]][_0x880b[88]]})[_0x880b[51]](function(){return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]](_0xe3d5x20)})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)})}else {return _0xe3d5xe[_0x880b[71]](404)}})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)})}});_0xe3d5x25[_0x880b[96]](_0x880b[97],function(_0xe3d5x18){console[_0x880b[75]](_0x880b[98],_0xe3d5x18);return handleError(_0xe3d5xe,_0xe3d5x18);});_0xe3d5x25[_0x880b[99]](_0xe3d5xd);};exports[_0x880b[100]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){var _0xe3d5x22=_0xe3d5xd[_0x880b[23]][_0x880b[64]];User[_0x880b[102]]({where:{id:_0xe3d5x22},attributes:[_0x880b[64],_0x880b[15],_0x880b[16],_0x880b[17],_0x880b[18],_0x880b[101]],include:[Module]})[_0x880b[51]](function(_0xe3d5x20){if(!_0xe3d5x20){return _0xe3d5xe[_0x880b[71]](401)};return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]](_0xe3d5x20);})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)});};exports[_0x880b[103]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){var _0xe3d5x22=_0xe3d5xd[_0x880b[23]][_0x880b[64]];User[_0x880b[73]](_0xe3d5xd[_0x880b[72]][_0x880b[64]])[_0x880b[51]](function(_0xe3d5x20){if(_0xe3d5x20){_0xe3d5x20[_0x880b[95]](_0xe3d5xd[_0x880b[57]])[_0x880b[51]](function(_0xe3d5x20){return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]](_0xe3d5x20)})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)})}else {return _0xe3d5xe[_0x880b[71]](500)}})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)});};exports[_0x880b[104]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){var _0xe3d5x2a=path[_0x880b[87]](config[_0x880b[83]],_0x880b[84],_0x880b[85],_0x880b[86],_0xe3d5xd[_0x880b[72]][_0x880b[88]]);fs[_0x880b[107]](_0xe3d5x2a,function(_0xe3d5x2b){if(!_0xe3d5x2b){_0xe3d5x2a=path[_0x880b[87]](config[_0x880b[83]],_0x880b[84],_0x880b[85],_0x880b[86],_0x880b[105])};return _0xe3d5xe[_0x880b[106]](_0xe3d5x2a);});};exports[_0x880b[108]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){if(_0xe3d5xd[_0x880b[72]][_0x880b[64]]===_0x880b[109]){var _0xe3d5x2a=path[_0x880b[87]](config[_0x880b[83]],_0x880b[84],_0x880b[85],_0x880b[86],_0x880b[110]);fs[_0x880b[107]](_0xe3d5x2a,function(_0xe3d5x2b){return _0xe3d5xe[_0x880b[106]](_0xe3d5x2a)});}else {User[_0x880b[73]](_0xe3d5xd[_0x880b[72]][_0x880b[64]])[_0x880b[51]](function(_0xe3d5x20){if(_0xe3d5x20){var _0xe3d5x2a=path[_0x880b[87]](config[_0x880b[83]],_0x880b[84],_0x880b[85],_0x880b[86],_0xe3d5x20[_0x880b[101]]?_0xe3d5x20[_0x880b[101]]:_0x880b[105]);fs[_0x880b[107]](_0xe3d5x2a,function(_0xe3d5x2b){if(!_0xe3d5x2b){_0xe3d5x2a=path[_0x880b[87]](config[_0x880b[83]],_0x880b[84],_0x880b[85],_0x880b[86],_0x880b[105])};return _0xe3d5xe[_0x880b[106]](_0xe3d5x2a);});}else {return _0xe3d5xe[_0x880b[71]](500)}})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)})}};exports[_0x880b[111]]=function(_0xe3d5xd,_0xe3d5xe){User[_0x880b[74]]({where:{id:_0xe3d5xd[_0x880b[20]][_0x880b[64]]},individualHooks:true})[_0x880b[51]](function(){return _0xe3d5xe[_0x880b[71]](204)})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)})};exports[_0x880b[112]]=function(_0xe3d5xd,_0xe3d5xe){var _0xe3d5x2c={};_0xe3d5x2c[_0xe3d5xd[_0x880b[72]][_0x880b[113]]]=_0xe3d5xd[_0x880b[57]][_0x880b[114]];User[_0x880b[52]]({where:_0xe3d5x2c})[_0x880b[51]](function(_0xe3d5x19){if(_0xe3d5x19[_0x880b[42]]){return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]]({isValid:false,value:_0xe3d5xd[_0x880b[57]][_0x880b[114]]})};return _0xe3d5xe[_0x880b[40]](200)[_0x880b[39]]({isValid:true,value:_0xe3d5xd[_0x880b[57]][_0x880b[114]]});})[_0x880b[41]](function(_0xe3d5x18){return handleError(_0xe3d5xe,_0xe3d5x18)});};exports[_0x880b[115]]=function(_0xe3d5xd,_0xe3d5xe,_0xe3d5xf){_0xe3d5xe[_0x880b[117]](_0x880b[116])};function handleError(_0xe3d5xe,_0xe3d5x18){return _0xe3d5xe[_0x880b[40]](500)[_0x880b[39]](_0xe3d5x18)}
\ No newline at end of file
+var _0x736b=["\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"];_0x736b[0];var User=require(_0x736b[2])[_0x736b[1]];var Module=require(_0x736b[2])[_0x736b[3]];var config=require(_0x736b[4]);var passport=require(_0x736b[5]);var moment=require(_0x736b[6]);var jwt=require(_0x736b[7]);var uploadFile=require(_0x736b[8]);var path=require(_0x736b[9]);var fs=require(_0x736b[10]);var _=require(_0x736b[11]);var util=require(_0x736b[12]);var sr=require(_0x736b[13]);exports[_0x736b[14]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){var _0x3b23x10=[_0x736b[15],_0x736b[16],_0x736b[17],_0x736b[18]];var _0x3b23x11=_0x3b23xd[_0x736b[20]][_0x736b[19]]?parseInt(_0x3b23xd[_0x736b[20]][_0x736b[19]],10):100;var _0x3b23x12=_0x3b23xd[_0x736b[20]][_0x736b[21]]?parseInt(_0x3b23xd[_0x736b[20]][_0x736b[21]],10):0;var _0x3b23x13={where:{role:[_0x736b[22],_0x736b[23]]},limit:_0x3b23x11,offset:_0x3b23x12*_0x3b23x11};_[_0x736b[37]](_0x3b23xd[_0x736b[20]],function(_0x3b23x14,_0x3b23x15){switch(_0x3b23x15){case _0x736b[19]:;case _0x736b[21]:break ;;case _0x736b[26]:_0x3b23x13[_0x736b[24]]=util[_0x736b[29]](_0x736b[25],_0x3b23xd[_0x736b[20]][_0x736b[26]],_0x3b23xd[_0x736b[20]][_0x736b[27]]||_0x736b[28])||null;break ;;case _0x736b[27]:break ;;case _0x736b[35]:_0x3b23x13[_0x736b[31]][_0x736b[30]]=[];_0x3b23x10[_0x736b[34]](function(_0x3b23x16){var _0x3b23x17={};_0x3b23x17[_0x3b23x16]={$like:_0x736b[32]+_0x3b23x14+_0x736b[32]};_0x3b23x13[_0x736b[31]][_0x736b[30]][_0x736b[33]](_0x3b23x17);});break ;;default:_0x3b23x13[_0x736b[31]][_0x3b23x15]={$like:{}};_0x3b23x13[_0x736b[31]][_0x3b23x15][_0x736b[36]]=_0x736b[32]+_0x3b23x14+_0x736b[32];;}});User[_0x736b[52]](_0x3b23x13)[_0x736b[51]](function(_0x3b23x19){var _0x3b23x1a=Math[_0x736b[43]](_0x3b23x19[_0x736b[42]]/_0x3b23x11);var _0x3b23x1b=_0x3b23x1a>(_0x3b23x13[_0x736b[44]]+1)?util[_0x736b[29]](_0x736b[45],_0x3b23xd[_0x736b[46]],_0x3b23xd[_0x736b[48]][_0x736b[47]],_0x3b23xd[_0x736b[49]],_0x3b23x12+1):null;var _0x3b23x1c=_0x3b23x12>0?util[_0x736b[29]](_0x736b[45],_0x3b23xd[_0x736b[46]],_0x3b23xd[_0x736b[48]][_0x736b[47]],_0x3b23xd[_0x736b[49]],_0x3b23x12-1):null;return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]]({count:_0x3b23x19[_0x736b[42]],rows:_0x3b23x19[_0x736b[50]],next_page:_0x3b23x1b,previous_page:_0x3b23x1c,total_pages:_0x3b23x1a});})[_0x736b[41]](function(_0x3b23x18){return _0x3b23xe[_0x736b[40]](500)[_0x736b[39]]({error:_0x736b[38]})});};exports[_0x736b[53]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){User[_0x736b[55]]({where:{role:{$in:[_0x736b[22],_0x736b[23],_0x736b[54]]}}})[_0x736b[51]](function(_0x3b23x1d){return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]](_0x3b23x1d)})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)})};exports[_0x736b[56]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){var _0x3b23x1e=_0x3b23xd[_0x736b[57]];_(_0x3b23x1e)[_0x736b[60]]()[_0x736b[59]]()[_0x736b[58]](function(_0x3b23x15){var _0x3b23x14=_0x3b23x1e[_0x3b23x15]});var _0x3b23x1f=User[_0x736b[61]](_0x3b23xd[_0x736b[57]]);_0x3b23x1f[_0x736b[62]]=_0x736b[63];_0x3b23x1f[_0x736b[69]]()[_0x736b[51]](function(_0x3b23x20){var _0x3b23x21=jwt[_0x736b[68]]({id:_0x3b23x20[_0x736b[64]]},config[_0x736b[66]][_0x736b[65]],{expiresIn:_0x736b[67]});return _0x3b23xe[_0x736b[40]](201)[_0x736b[39]]({token:_0x3b23x21});})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)});};exports[_0x736b[70]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){User[_0x736b[73]](_0x3b23xd[_0x736b[72]][_0x736b[64]])[_0x736b[51]](function(_0x3b23x20){if(_0x3b23x20){return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]](_0x3b23x20)}else {return _0x3b23xe[_0x736b[71]](404)}})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)})};exports[_0x736b[74]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){var _0x3b23x22=_0x3b23xd[_0x736b[72]][_0x736b[64]];User[_0x736b[73]](_0x3b23x22)[_0x736b[51]](function(_0x3b23x20){if(_0x3b23x20){_0x3b23x20[_0x736b[74]]()[_0x736b[51]](function(_0x3b23x20){console[_0x736b[75]](_0x3b23x20);return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]](_0x3b23x20);})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)})}else {return _0x3b23xe[_0x736b[71]](404)}})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)});};exports[_0x736b[76]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){var _0x3b23x22=_0x3b23xd[_0x736b[23]][_0x736b[64]];var _0x3b23x23=String(_0x3b23xd[_0x736b[57]][_0x736b[77]]);var _0x3b23x24=String(_0x3b23xd[_0x736b[57]][_0x736b[78]]);User[_0x736b[73]](_0x3b23x22)[_0x736b[51]](function(_0x3b23x20){if(_0x3b23x20[_0x736b[79]](_0x3b23x23)){_0x3b23x20[_0x736b[80]]=_0x3b23x24;_0x3b23x20[_0x736b[69]]()[_0x736b[51]](function(){return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]](_0x3b23x20)})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)});}else {return _0x3b23xe[_0x736b[71]](403)}});};exports[_0x736b[81]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){var _0x3b23x24=String(_0x3b23xd[_0x736b[57]][_0x736b[78]]);User[_0x736b[73]](_0x3b23xd[_0x736b[72]][_0x736b[64]])[_0x736b[51]](function(_0x3b23x20){_0x3b23x20[_0x736b[80]]=_0x3b23x24;_0x3b23x20[_0x736b[69]]()[_0x736b[51]](function(){return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]](_0x3b23x20)})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)});});};exports[_0x736b[82]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){var _0x3b23x25= new uploadFile({dest:path[_0x736b[87]](config[_0x736b[83]],_0x736b[84],_0x736b[85],_0x736b[86]),maxNumberOfFiles:1,minNumberOfFiles:0,acceptFileTypes:/(\.|\/)(jpeg|png)$/i,rename:function(_0x3b23x26,_0x3b23x27){return sr()+path[_0x736b[89]](_0x3b23x27[_0x736b[88]])},messages:{maxNumberOfFiles:_0x736b[90],acceptFileTypes:_0x736b[91],invalidRequest:_0x736b[92]}});_0x3b23x25[_0x736b[96]](_0x736b[93],function(_0x3b23x28,_0x3b23x29){if(!_0x3b23x29[_0x736b[94]][_0x736b[88]]){return _0x3b23xe[_0x736b[40]](500)[_0x736b[39]](_0x3b23x25)}else {User[_0x736b[73]](_0x3b23xd[_0x736b[72]][_0x736b[64]])[_0x736b[51]](function(_0x3b23x20){if(_0x3b23x20){_0x3b23x20[_0x736b[95]]({userpic:_0x3b23x29[_0x736b[94]][_0x736b[88]]})[_0x736b[51]](function(){return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]](_0x3b23x20)})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)})}else {return _0x3b23xe[_0x736b[71]](404)}})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)})}});_0x3b23x25[_0x736b[96]](_0x736b[97],function(_0x3b23x18){console[_0x736b[75]](_0x736b[98],_0x3b23x18);return handleError(_0x3b23xe,_0x3b23x18);});_0x3b23x25[_0x736b[99]](_0x3b23xd);};exports[_0x736b[100]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){var _0x3b23x22=_0x3b23xd[_0x736b[23]][_0x736b[64]];User[_0x736b[102]]({where:{id:_0x3b23x22},attributes:[_0x736b[64],_0x736b[15],_0x736b[16],_0x736b[17],_0x736b[18],_0x736b[101]],include:[Module]})[_0x736b[51]](function(_0x3b23x20){if(!_0x3b23x20){return _0x3b23xe[_0x736b[71]](401)};return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]](_0x3b23x20);})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)});};exports[_0x736b[103]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){var _0x3b23x22=_0x3b23xd[_0x736b[23]][_0x736b[64]];User[_0x736b[73]](_0x3b23xd[_0x736b[72]][_0x736b[64]])[_0x736b[51]](function(_0x3b23x20){if(_0x3b23x20){_0x3b23x20[_0x736b[95]](_0x3b23xd[_0x736b[57]])[_0x736b[51]](function(_0x3b23x20){return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]](_0x3b23x20)})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)})}else {return _0x3b23xe[_0x736b[71]](500)}})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)});};exports[_0x736b[104]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){var _0x3b23x2a=path[_0x736b[87]](config[_0x736b[83]],_0x736b[84],_0x736b[85],_0x736b[86],_0x3b23xd[_0x736b[72]][_0x736b[88]]);fs[_0x736b[107]](_0x3b23x2a,function(_0x3b23x2b){if(!_0x3b23x2b){_0x3b23x2a=path[_0x736b[87]](config[_0x736b[83]],_0x736b[84],_0x736b[85],_0x736b[86],_0x736b[105])};return _0x3b23xe[_0x736b[106]](_0x3b23x2a);});};exports[_0x736b[108]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){if(_0x3b23xd[_0x736b[72]][_0x736b[64]]===_0x736b[109]){var _0x3b23x2a=path[_0x736b[87]](config[_0x736b[83]],_0x736b[84],_0x736b[85],_0x736b[86],_0x736b[110]);fs[_0x736b[107]](_0x3b23x2a,function(_0x3b23x2b){return _0x3b23xe[_0x736b[106]](_0x3b23x2a)});}else {User[_0x736b[73]](_0x3b23xd[_0x736b[72]][_0x736b[64]])[_0x736b[51]](function(_0x3b23x20){if(_0x3b23x20){var _0x3b23x2a=path[_0x736b[87]](config[_0x736b[83]],_0x736b[84],_0x736b[85],_0x736b[86],_0x3b23x20[_0x736b[101]]?_0x3b23x20[_0x736b[101]]:_0x736b[105]);fs[_0x736b[107]](_0x3b23x2a,function(_0x3b23x2b){if(!_0x3b23x2b){_0x3b23x2a=path[_0x736b[87]](config[_0x736b[83]],_0x736b[84],_0x736b[85],_0x736b[86],_0x736b[105])};return _0x3b23xe[_0x736b[106]](_0x3b23x2a);});}else {return _0x3b23xe[_0x736b[71]](500)}})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)})}};exports[_0x736b[111]]=function(_0x3b23xd,_0x3b23xe){User[_0x736b[74]]({where:{id:_0x3b23xd[_0x736b[20]][_0x736b[64]]},individualHooks:true})[_0x736b[51]](function(){return _0x3b23xe[_0x736b[71]](204)})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)})};exports[_0x736b[112]]=function(_0x3b23xd,_0x3b23xe){var _0x3b23x2c={};_0x3b23x2c[_0x3b23xd[_0x736b[72]][_0x736b[113]]]=_0x3b23xd[_0x736b[57]][_0x736b[114]];User[_0x736b[52]]({where:_0x3b23x2c})[_0x736b[51]](function(_0x3b23x19){if(_0x3b23x19[_0x736b[42]]){return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]]({isValid:false,value:_0x3b23xd[_0x736b[57]][_0x736b[114]]})};return _0x3b23xe[_0x736b[40]](200)[_0x736b[39]]({isValid:true,value:_0x3b23xd[_0x736b[57]][_0x736b[114]]});})[_0x736b[41]](function(_0x3b23x18){return handleError(_0x3b23xe,_0x3b23x18)});};exports[_0x736b[115]]=function(_0x3b23xd,_0x3b23xe,_0x3b23xf){_0x3b23xe[_0x736b[117]](_0x736b[116])};function handleError(_0x3b23xe,_0x3b23x18){return _0x3b23xe[_0x736b[40]](500)[_0x736b[39]](_0x3b23x18)}
\ No newline at end of file
-var _0x2d34=["\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"];_0x2d34[0];var user=require(_0x2d34[2])[_0x2d34[1]];exports[_0x2d34[3]]=function(_0x6245x2){user[_0x2d34[4]](function(_0x6245x3){onSave(_0x6245x2,_0x6245x3)});user[_0x2d34[5]](function(_0x6245x3){onSave(_0x6245x2,_0x6245x3)});user[_0x2d34[6]](function(_0x6245x3){onRemove(_0x6245x2,_0x6245x3)});};function onSave(_0x6245x2,_0x6245x3,_0x6245x5){if(_0x6245x3[_0x2d34[7]]===_0x2d34[8]){_0x6245x2[_0x2d34[10]](_0x2d34[9],_0x6245x3)}}function onRemove(_0x6245x2,_0x6245x3,_0x6245x5){if(_0x6245x3[_0x2d34[7]]===_0x2d34[8]){_0x6245x2[_0x2d34[10]](_0x2d34[11],_0x6245x3)}}
\ No newline at end of file
+var _0x47b2=["\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"];_0x47b2[0];var user=require(_0x47b2[2])[_0x47b2[1]];exports[_0x47b2[3]]=function(_0x5c17x2){user[_0x47b2[4]](function(_0x5c17x3){onSave(_0x5c17x2,_0x5c17x3)});user[_0x47b2[5]](function(_0x5c17x3){onSave(_0x5c17x2,_0x5c17x3)});user[_0x47b2[6]](function(_0x5c17x3){onRemove(_0x5c17x2,_0x5c17x3)});};function onSave(_0x5c17x2,_0x5c17x3,_0x5c17x5){if(_0x5c17x3[_0x47b2[7]]===_0x47b2[8]){_0x5c17x2[_0x47b2[10]](_0x47b2[9],_0x5c17x3)}}function onRemove(_0x5c17x2,_0x5c17x3,_0x5c17x5){if(_0x5c17x3[_0x47b2[7]]===_0x47b2[8]){_0x5c17x2[_0x47b2[10]](_0x47b2[11],_0x5c17x3)}}
\ No newline at end of file
-var _0x443d=["\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"];_0x443d[0];var express=require(_0x443d[1]);var controller=require(_0x443d[2]);var router=express.Router();router[_0x443d[5]](_0x443d[3],controller[_0x443d[4]]);router[_0x443d[5]](_0x443d[6],controller[_0x443d[7]]);router[_0x443d[9]](_0x443d[3],controller[_0x443d[8]]);router[_0x443d[11]](_0x443d[6],controller[_0x443d[10]]);router[_0x443d[12]](_0x443d[6],controller[_0x443d[10]]);router[_0x443d[14]](_0x443d[6],controller[_0x443d[13]]);module[_0x443d[15]]=router;
\ No newline at end of file
+var _0xa04d=["\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"];_0xa04d[0];var express=require(_0xa04d[1]);var controller=require(_0xa04d[2]);var router=express.Router();router[_0xa04d[5]](_0xa04d[3],controller[_0xa04d[4]]);router[_0xa04d[5]](_0xa04d[6],controller[_0xa04d[7]]);router[_0xa04d[9]](_0xa04d[3],controller[_0xa04d[8]]);router[_0xa04d[11]](_0xa04d[6],controller[_0xa04d[10]]);router[_0xa04d[12]](_0xa04d[6],controller[_0xa04d[10]]);router[_0xa04d[14]](_0xa04d[6],controller[_0xa04d[13]]);module[_0xa04d[15]]=router;
\ No newline at end of file
-var _0x6ee1=["\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"];_0x6ee1[0];var _=require(_0x6ee1[1]);var UserHasChatQueue=require(_0x6ee1[3])[_0x6ee1[2]];exports[_0x6ee1[4]]=function(_0x78dbx3,_0x78dbx4){UserHasChatQueue[_0x6ee1[10]](_0x78dbx3[_0x6ee1[9]]?{where:_0x78dbx3[_0x6ee1[9]]}:{})[_0x6ee1[8]](function(_0x78dbx6){return _0x78dbx4[_0x6ee1[7]](200)[_0x6ee1[6]](_0x78dbx6)})[_0x6ee1[5]](function(_0x78dbx5){return handleError(_0x78dbx4,_0x78dbx5)})};exports[_0x6ee1[11]]=function(_0x78dbx3,_0x78dbx4){UserHasChatQueue[_0x6ee1[15]](_0x78dbx3[_0x6ee1[14]][_0x6ee1[13]])[_0x6ee1[8]](function(_0x78dbx7){if(!_0x78dbx7){return _0x78dbx4[_0x6ee1[12]](404)};return _0x78dbx4[_0x6ee1[6]](_0x78dbx7);})[_0x6ee1[5]](function(_0x78dbx5){return handleError(_0x78dbx4,_0x78dbx5)})};exports[_0x6ee1[16]]=function(_0x78dbx3,_0x78dbx4){UserHasChatQueue[_0x6ee1[16]](_0x78dbx3[_0x6ee1[17]])[_0x6ee1[8]](function(_0x78dbx7){return _0x78dbx4[_0x6ee1[7]](201)[_0x6ee1[6]](_0x78dbx7)})[_0x6ee1[5]](function(_0x78dbx5){return handleError(_0x78dbx4,_0x78dbx5)})};exports[_0x6ee1[18]]=function(_0x78dbx3,_0x78dbx4){if(_0x78dbx3[_0x6ee1[17]][_0x6ee1[13]]){delete _0x78dbx3[_0x6ee1[17]][_0x6ee1[13]]};UserHasChatQueue[_0x6ee1[21]]({where:{id:_0x78dbx3[_0x6ee1[14]][_0x6ee1[13]]}})[_0x6ee1[8]](function(_0x78dbx7){if(!_0x78dbx7){return _0x78dbx4[_0x6ee1[12]](404)};var _0x78dbx8=_[_0x6ee1[19]](_0x78dbx7,_0x78dbx3[_0x6ee1[17]]);_0x78dbx8[_0x6ee1[20]]()[_0x6ee1[8]](function(){return _0x78dbx4[_0x6ee1[7]](200)[_0x6ee1[6]](_0x78dbx7)})[_0x6ee1[5]](function(_0x78dbx5){return handleError(_0x78dbx4,_0x78dbx5)});})[_0x6ee1[5]](function(_0x78dbx5){return handleError(_0x78dbx4,_0x78dbx5)});};exports[_0x6ee1[22]]=function(_0x78dbx3,_0x78dbx4){UserHasChatQueue[_0x6ee1[21]]({where:{id:_0x78dbx3[_0x6ee1[14]][_0x6ee1[13]]}})[_0x6ee1[8]](function(_0x78dbx7){if(!_0x78dbx7){return _0x78dbx4[_0x6ee1[12]](404)};_0x78dbx7[_0x6ee1[22]]()[_0x6ee1[8]](function(){return _0x78dbx4[_0x6ee1[12]](204)})[_0x6ee1[5]](function(_0x78dbx5){return handleError(_0x78dbx4,_0x78dbx5)});})[_0x6ee1[5]](function(_0x78dbx5){return handleError(_0x78dbx4,_0x78dbx5)})};function handleError(_0x78dbx4,_0x78dbx5){return _0x78dbx4[_0x6ee1[7]](500)[_0x6ee1[6]](_0x78dbx5)}
\ No newline at end of file
+var _0xe4ef=["\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"];_0xe4ef[0];var _=require(_0xe4ef[1]);var UserHasChatQueue=require(_0xe4ef[3])[_0xe4ef[2]];exports[_0xe4ef[4]]=function(_0x3029x3,_0x3029x4){UserHasChatQueue[_0xe4ef[10]](_0x3029x3[_0xe4ef[9]]?{where:_0x3029x3[_0xe4ef[9]]}:{})[_0xe4ef[8]](function(_0x3029x6){return _0x3029x4[_0xe4ef[7]](200)[_0xe4ef[6]](_0x3029x6)})[_0xe4ef[5]](function(_0x3029x5){return handleError(_0x3029x4,_0x3029x5)})};exports[_0xe4ef[11]]=function(_0x3029x3,_0x3029x4){UserHasChatQueue[_0xe4ef[15]](_0x3029x3[_0xe4ef[14]][_0xe4ef[13]])[_0xe4ef[8]](function(_0x3029x7){if(!_0x3029x7){return _0x3029x4[_0xe4ef[12]](404)};return _0x3029x4[_0xe4ef[6]](_0x3029x7);})[_0xe4ef[5]](function(_0x3029x5){return handleError(_0x3029x4,_0x3029x5)})};exports[_0xe4ef[16]]=function(_0x3029x3,_0x3029x4){UserHasChatQueue[_0xe4ef[16]](_0x3029x3[_0xe4ef[17]])[_0xe4ef[8]](function(_0x3029x7){return _0x3029x4[_0xe4ef[7]](201)[_0xe4ef[6]](_0x3029x7)})[_0xe4ef[5]](function(_0x3029x5){return handleError(_0x3029x4,_0x3029x5)})};exports[_0xe4ef[18]]=function(_0x3029x3,_0x3029x4){if(_0x3029x3[_0xe4ef[17]][_0xe4ef[13]]){delete _0x3029x3[_0xe4ef[17]][_0xe4ef[13]]};UserHasChatQueue[_0xe4ef[21]]({where:{id:_0x3029x3[_0xe4ef[14]][_0xe4ef[13]]}})[_0xe4ef[8]](function(_0x3029x7){if(!_0x3029x7){return _0x3029x4[_0xe4ef[12]](404)};var _0x3029x8=_[_0xe4ef[19]](_0x3029x7,_0x3029x3[_0xe4ef[17]]);_0x3029x8[_0xe4ef[20]]()[_0xe4ef[8]](function(){return _0x3029x4[_0xe4ef[7]](200)[_0xe4ef[6]](_0x3029x7)})[_0xe4ef[5]](function(_0x3029x5){return handleError(_0x3029x4,_0x3029x5)});})[_0xe4ef[5]](function(_0x3029x5){return handleError(_0x3029x4,_0x3029x5)});};exports[_0xe4ef[22]]=function(_0x3029x3,_0x3029x4){UserHasChatQueue[_0xe4ef[21]]({where:{id:_0x3029x3[_0xe4ef[14]][_0xe4ef[13]]}})[_0xe4ef[8]](function(_0x3029x7){if(!_0x3029x7){return _0x3029x4[_0xe4ef[12]](404)};_0x3029x7[_0xe4ef[22]]()[_0xe4ef[8]](function(){return _0x3029x4[_0xe4ef[12]](204)})[_0xe4ef[5]](function(_0x3029x5){return handleError(_0x3029x4,_0x3029x5)});})[_0xe4ef[5]](function(_0x3029x5){return handleError(_0x3029x4,_0x3029x5)})};function handleError(_0x3029x4,_0x3029x5){return _0x3029x4[_0xe4ef[7]](500)[_0xe4ef[6]](_0x3029x5)}
\ No newline at end of file
-var _0x4a33=["\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"];_0x4a33[0];var UserHasChatQueue=require(_0x4a33[2])[_0x4a33[1]];exports[_0x4a33[3]]=function(_0x7bacx2){UserHasChatQueue[_0x4a33[4]](function(_0x7bacx3){onSave(_0x7bacx2,_0x7bacx3)});UserHasChatQueue[_0x4a33[5]](function(_0x7bacx3){onRemove(_0x7bacx2,_0x7bacx3)});};function onSave(_0x7bacx2,_0x7bacx3,_0x7bacx5){_0x7bacx2[_0x4a33[7]](_0x4a33[6],_0x7bacx3)}function onRemove(_0x7bacx2,_0x7bacx3,_0x7bacx5){_0x7bacx2[_0x4a33[7]](_0x4a33[8],_0x7bacx3)}
\ No newline at end of file
+var _0x857f=["\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"];_0x857f[0];var UserHasChatQueue=require(_0x857f[2])[_0x857f[1]];exports[_0x857f[3]]=function(_0xc98fx2){UserHasChatQueue[_0x857f[4]](function(_0xc98fx3){onSave(_0xc98fx2,_0xc98fx3)});UserHasChatQueue[_0x857f[5]](function(_0xc98fx3){onRemove(_0xc98fx2,_0xc98fx3)});};function onSave(_0xc98fx2,_0xc98fx3,_0xc98fx5){_0xc98fx2[_0x857f[7]](_0x857f[6],_0xc98fx3)}function onRemove(_0xc98fx2,_0xc98fx3,_0xc98fx5){_0xc98fx2[_0x857f[7]](_0x857f[8],_0xc98fx3)}
\ No newline at end of file
-var _0xa42c=["\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"];_0xa42c[0];var should=require(_0xa42c[1]);var app=require(_0xa42c[2]);var request=require(_0xa42c[3]);describe(_0xa42c[4],function(){it(_0xa42c[5],function(_0xc1d8x4){request(app)[_0xa42c[13]](_0xa42c[12])[_0xa42c[11]](200)[_0xa42c[11]](_0xa42c[10],/json/)[_0xa42c[9]](function(_0xc1d8x5,_0xc1d8x6){if(_0xc1d8x5){return _0xc1d8x4(_0xc1d8x5)};_0xc1d8x6[_0xa42c[8]][_0xa42c[1]][_0xa42c[7]][_0xa42c[6]](Array);_0xc1d8x4();})})});
\ No newline at end of file
+var _0x9395=["\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"];_0x9395[0];var should=require(_0x9395[1]);var app=require(_0x9395[2]);var request=require(_0x9395[3]);describe(_0x9395[4],function(){it(_0x9395[5],function(_0xaabfx4){request(app)[_0x9395[13]](_0x9395[12])[_0x9395[11]](200)[_0x9395[11]](_0x9395[10],/json/)[_0x9395[9]](function(_0xaabfx5,_0xaabfx6){if(_0xaabfx5){return _0xaabfx4(_0xaabfx5)};_0xaabfx6[_0x9395[8]][_0x9395[1]][_0x9395[7]][_0x9395[6]](Array);_0xaabfx4();})})});
\ No newline at end of file
-var _0x279f=["\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"];_0x279f[0];var express=require(_0x279f[1]);var controller=require(_0x279f[2]);var auth=require(_0x279f[3]);var router=express.Router();router[_0x279f[6]](_0x279f[4],controller[_0x279f[5]]);module[_0x279f[7]]=router;
\ No newline at end of file
+var _0x696c=["\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"];_0x696c[0];var express=require(_0x696c[1]);var controller=require(_0x696c[2]);var auth=require(_0x696c[3]);var router=express.Router();router[_0x696c[6]](_0x696c[4],controller[_0x696c[5]]);module[_0x696c[7]]=router;
\ No newline at end of file
-var _0x8f94=["\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"];_0x8f94[0];var _=require(_0x8f94[1]);var UserHasChatRoom=require(_0x8f94[3])[_0x8f94[2]];exports[_0x8f94[4]]=function(_0xdc63x3,_0xdc63x4){UserHasChatRoom[_0x8f94[9]]()[_0x8f94[8]](function(_0xdc63x6){return _0xdc63x4[_0x8f94[7]](200)[_0x8f94[6]](_0xdc63x6)})[_0x8f94[5]](function(_0xdc63x5){return handleError(_0xdc63x4,_0xdc63x5)})};exports[_0x8f94[10]]=function(_0xdc63x3,_0xdc63x4){UserHasChatRoom[_0x8f94[14]](_0xdc63x3[_0x8f94[13]][_0x8f94[12]])[_0x8f94[8]](function(_0xdc63x7){if(!_0xdc63x7){return _0xdc63x4[_0x8f94[11]](404)};return _0xdc63x4[_0x8f94[6]](_0xdc63x7);})[_0x8f94[5]](function(_0xdc63x5){return handleError(_0xdc63x4,_0xdc63x5)})};exports[_0x8f94[15]]=function(_0xdc63x3,_0xdc63x4){UserHasChatRoom[_0x8f94[15]](_0xdc63x3[_0x8f94[16]])[_0x8f94[8]](function(_0xdc63x7){return _0xdc63x4[_0x8f94[7]](201)[_0x8f94[6]](_0xdc63x7)})[_0x8f94[5]](function(_0xdc63x5){return handleError(_0xdc63x4,_0xdc63x5)})};exports[_0x8f94[17]]=function(_0xdc63x3,_0xdc63x4){UserHasChatRoom[_0x8f94[21]]({where:{UserId:_0xdc63x3[_0x8f94[13]][_0x8f94[19]],ChatRoomId:_0xdc63x3[_0x8f94[13]][_0x8f94[20]]},limit:1})[_0x8f94[8]](function(_0xdc63x7){if(!_0xdc63x7){return _0xdc63x4[_0x8f94[11]](404)};_0xdc63x7[_0x8f94[18]](_0xdc63x3[_0x8f94[16]])[_0x8f94[8]](function(){return _0xdc63x4[_0x8f94[7]](200)[_0x8f94[6]](_0xdc63x7)})[_0x8f94[5]](function(_0xdc63x5){return handleError(_0xdc63x4,_0xdc63x5)});})[_0x8f94[5]](function(_0xdc63x5){return handleError(_0xdc63x4,_0xdc63x5)})};exports[_0x8f94[22]]=function(_0xdc63x3,_0xdc63x4){UserHasChatRoom[_0x8f94[14]](_0xdc63x3[_0x8f94[13]][_0x8f94[12]])[_0x8f94[8]](function(_0xdc63x7){if(!_0xdc63x7){return _0xdc63x4[_0x8f94[11]](404)};_0xdc63x7[_0x8f94[22]]()[_0x8f94[8]](function(){return _0xdc63x4[_0x8f94[11]](204)})[_0x8f94[5]](function(_0xdc63x5){return handleError(_0xdc63x4,_0xdc63x5)});})[_0x8f94[5]](function(_0xdc63x5){return handleError(_0xdc63x4,_0xdc63x5)})};function handleError(_0xdc63x4,_0xdc63x5){return _0xdc63x4[_0x8f94[7]](500)[_0x8f94[6]](_0xdc63x5)}
\ No newline at end of file
+var _0x2efb=["\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"];_0x2efb[0];var _=require(_0x2efb[1]);var UserHasChatRoom=require(_0x2efb[3])[_0x2efb[2]];exports[_0x2efb[4]]=function(_0xd621x3,_0xd621x4){UserHasChatRoom[_0x2efb[9]]()[_0x2efb[8]](function(_0xd621x6){return _0xd621x4[_0x2efb[7]](200)[_0x2efb[6]](_0xd621x6)})[_0x2efb[5]](function(_0xd621x5){return handleError(_0xd621x4,_0xd621x5)})};exports[_0x2efb[10]]=function(_0xd621x3,_0xd621x4){UserHasChatRoom[_0x2efb[14]](_0xd621x3[_0x2efb[13]][_0x2efb[12]])[_0x2efb[8]](function(_0xd621x7){if(!_0xd621x7){return _0xd621x4[_0x2efb[11]](404)};return _0xd621x4[_0x2efb[6]](_0xd621x7);})[_0x2efb[5]](function(_0xd621x5){return handleError(_0xd621x4,_0xd621x5)})};exports[_0x2efb[15]]=function(_0xd621x3,_0xd621x4){UserHasChatRoom[_0x2efb[15]](_0xd621x3[_0x2efb[16]])[_0x2efb[8]](function(_0xd621x7){return _0xd621x4[_0x2efb[7]](201)[_0x2efb[6]](_0xd621x7)})[_0x2efb[5]](function(_0xd621x5){return handleError(_0xd621x4,_0xd621x5)})};exports[_0x2efb[17]]=function(_0xd621x3,_0xd621x4){UserHasChatRoom[_0x2efb[21]]({where:{UserId:_0xd621x3[_0x2efb[13]][_0x2efb[19]],ChatRoomId:_0xd621x3[_0x2efb[13]][_0x2efb[20]]},limit:1})[_0x2efb[8]](function(_0xd621x7){if(!_0xd621x7){return _0xd621x4[_0x2efb[11]](404)};_0xd621x7[_0x2efb[18]](_0xd621x3[_0x2efb[16]])[_0x2efb[8]](function(){return _0xd621x4[_0x2efb[7]](200)[_0x2efb[6]](_0xd621x7)})[_0x2efb[5]](function(_0xd621x5){return handleError(_0xd621x4,_0xd621x5)});})[_0x2efb[5]](function(_0xd621x5){return handleError(_0xd621x4,_0xd621x5)})};exports[_0x2efb[22]]=function(_0xd621x3,_0xd621x4){UserHasChatRoom[_0x2efb[14]](_0xd621x3[_0x2efb[13]][_0x2efb[12]])[_0x2efb[8]](function(_0xd621x7){if(!_0xd621x7){return _0xd621x4[_0x2efb[11]](404)};_0xd621x7[_0x2efb[22]]()[_0x2efb[8]](function(){return _0xd621x4[_0x2efb[11]](204)})[_0x2efb[5]](function(_0xd621x5){return handleError(_0xd621x4,_0xd621x5)});})[_0x2efb[5]](function(_0xd621x5){return handleError(_0xd621x4,_0xd621x5)})};function handleError(_0xd621x4,_0xd621x5){return _0xd621x4[_0x2efb[7]](500)[_0x2efb[6]](_0xd621x5)}
\ No newline at end of file
-var _0x4aed=["\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"];_0x4aed[0];var _=require(_0x4aed[1]);var User=require(_0x4aed[3])[_0x4aed[2]];var ChatRoom=require(_0x4aed[3])[_0x4aed[4]];var ChatVisitor=require(_0x4aed[3])[_0x4aed[5]];var UserHasChatRoom=require(_0x4aed[3])[_0x4aed[6]];exports[_0x4aed[7]]=function(_0xefc4x6){UserHasChatRoom[_0x4aed[8]](function(_0xefc4x7){onSave(_0xefc4x6,_0xefc4x7)});UserHasChatRoom[_0x4aed[9]](function(_0xefc4x7){onRemove(_0xefc4x6,_0xefc4x7)});};function onSave(_0xefc4x6,_0xefc4x7){var _0xefc4x9;return ChatRoom[_0x4aed[26]](_0xefc4x7.ChatRoomId,{include:[{model:ChatVisitor,attributes:[_0x4aed[16],_0x4aed[23],_0x4aed[24]]},{model:User,attributes:[_0x4aed[16],_0x4aed[23],_0x4aed[25],_0x4aed[24]]}]})[_0x4aed[22]](function(_0xefc4xb){_0xefc4x9=_0xefc4xb;_0xefc4x9[_0x4aed[13]][_0x4aed[12]]=[];console[_0x4aed[15]](_0x4aed[14],_0xefc4x9);var _0xefc4xc=_[_0x4aed[17]](_0xefc4x9.Users,_0x4aed[16]);_0xefc4xc[_0x4aed[21]](function(_0xefc4xd){if(_0xefc4x6[_0x4aed[18]]==_0xefc4xd){_0xefc4x6[_0x4aed[20]](_0x4aed[19],_0xefc4x9[_0x4aed[13]])}});return ;})[_0x4aed[11]](function(_0xefc4xa){console[_0x4aed[10]](_0xefc4xa)});}function onRemove(_0xefc4x6,_0xefc4x7){_0xefc4x6[_0x4aed[20]](_0x4aed[27],_0xefc4x7)}
\ No newline at end of file
+var _0x6392=["\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"];_0x6392[0];var _=require(_0x6392[1]);var User=require(_0x6392[3])[_0x6392[2]];var ChatRoom=require(_0x6392[3])[_0x6392[4]];var ChatVisitor=require(_0x6392[3])[_0x6392[5]];var UserHasChatRoom=require(_0x6392[3])[_0x6392[6]];exports[_0x6392[7]]=function(_0x2008x6){UserHasChatRoom[_0x6392[8]](function(_0x2008x7){onSave(_0x2008x6,_0x2008x7)});UserHasChatRoom[_0x6392[9]](function(_0x2008x7){onRemove(_0x2008x6,_0x2008x7)});};function onSave(_0x2008x6,_0x2008x7){var _0x2008x9;return ChatRoom[_0x6392[26]](_0x2008x7.ChatRoomId,{include:[{model:ChatVisitor,attributes:[_0x6392[16],_0x6392[23],_0x6392[24]]},{model:User,attributes:[_0x6392[16],_0x6392[23],_0x6392[25],_0x6392[24]]}]})[_0x6392[22]](function(_0x2008xb){_0x2008x9=_0x2008xb;_0x2008x9[_0x6392[13]][_0x6392[12]]=[];console[_0x6392[15]](_0x6392[14],_0x2008x9);var _0x2008xc=_[_0x6392[17]](_0x2008x9.Users,_0x6392[16]);_0x2008xc[_0x6392[21]](function(_0x2008xd){if(_0x2008x6[_0x6392[18]]==_0x2008xd){_0x2008x6[_0x6392[20]](_0x6392[19],_0x2008x9[_0x6392[13]])}});return ;})[_0x6392[11]](function(_0x2008xa){console[_0x6392[10]](_0x2008xa)});}function onRemove(_0x2008x6,_0x2008x7){_0x2008x6[_0x6392[20]](_0x6392[27],_0x2008x7)}
\ No newline at end of file
-var _0x2b6b=["\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"];_0x2b6b[0];var should=require(_0x2b6b[1]);var app=require(_0x2b6b[2]);var request=require(_0x2b6b[3]);describe(_0x2b6b[4],function(){it(_0x2b6b[5],function(_0x752ax4){request(app)[_0x2b6b[13]](_0x2b6b[12])[_0x2b6b[11]](200)[_0x2b6b[11]](_0x2b6b[10],/json/)[_0x2b6b[9]](function(_0x752ax5,_0x752ax6){if(_0x752ax5){return _0x752ax4(_0x752ax5)};_0x752ax6[_0x2b6b[8]][_0x2b6b[1]][_0x2b6b[7]][_0x2b6b[6]](Array);_0x752ax4();})})});
\ No newline at end of file
+var _0x9c7a=["\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"];_0x9c7a[0];var should=require(_0x9c7a[1]);var app=require(_0x9c7a[2]);var request=require(_0x9c7a[3]);describe(_0x9c7a[4],function(){it(_0x9c7a[5],function(_0x3e6ex4){request(app)[_0x9c7a[13]](_0x9c7a[12])[_0x9c7a[11]](200)[_0x9c7a[11]](_0x9c7a[10],/json/)[_0x9c7a[9]](function(_0x3e6ex5,_0x3e6ex6){if(_0x3e6ex5){return _0x3e6ex4(_0x3e6ex5)};_0x3e6ex6[_0x9c7a[8]][_0x9c7a[1]][_0x9c7a[7]][_0x9c7a[6]](Array);_0x3e6ex4();})})});
\ No newline at end of file
-var _0xa11d=["\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"];_0xa11d[0];var express=require(_0xa11d[1]);var controller=require(_0xa11d[2]);var router=express.Router();router[_0xa11d[5]](_0xa11d[3],controller[_0xa11d[4]]);router[_0xa11d[5]](_0xa11d[6],controller[_0xa11d[7]]);router[_0xa11d[9]](_0xa11d[3],controller[_0xa11d[8]]);router[_0xa11d[11]](_0xa11d[6],controller[_0xa11d[10]]);router[_0xa11d[12]](_0xa11d[6],controller[_0xa11d[10]]);router[_0xa11d[14]](_0xa11d[6],controller[_0xa11d[13]]);module[_0xa11d[15]]=router;
\ No newline at end of file
+var _0xb49c=["\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"];_0xb49c[0];var express=require(_0xb49c[1]);var controller=require(_0xb49c[2]);var router=express.Router();router[_0xb49c[5]](_0xb49c[3],controller[_0xb49c[4]]);router[_0xb49c[5]](_0xb49c[6],controller[_0xb49c[7]]);router[_0xb49c[9]](_0xb49c[3],controller[_0xb49c[8]]);router[_0xb49c[11]](_0xb49c[6],controller[_0xb49c[10]]);router[_0xb49c[12]](_0xb49c[6],controller[_0xb49c[10]]);router[_0xb49c[14]](_0xb49c[6],controller[_0xb49c[13]]);module[_0xb49c[15]]=router;
\ No newline at end of file
-var _0x6e03=["\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"];_0x6e03[0];var _=require(_0x6e03[1]);var UserHasFaxQueue=require(_0x6e03[3])[_0x6e03[2]];exports[_0x6e03[4]]=function(_0x649ex3,_0x649ex4){UserHasFaxQueue[_0x6e03[10]](_0x649ex3[_0x6e03[9]]?{where:_0x649ex3[_0x6e03[9]]}:{})[_0x6e03[8]](function(_0x649ex6){return _0x649ex4[_0x6e03[7]](200)[_0x6e03[6]](_0x649ex6)})[_0x6e03[5]](function(_0x649ex5){return handleError(_0x649ex4,_0x649ex5)})};exports[_0x6e03[11]]=function(_0x649ex3,_0x649ex4){UserHasFaxQueue[_0x6e03[15]](_0x649ex3[_0x6e03[14]][_0x6e03[13]])[_0x6e03[8]](function(_0x649ex7){if(!_0x649ex7){return _0x649ex4[_0x6e03[12]](404)};return _0x649ex4[_0x6e03[6]](_0x649ex7);})[_0x6e03[5]](function(_0x649ex5){return handleError(_0x649ex4,_0x649ex5)})};exports[_0x6e03[16]]=function(_0x649ex3,_0x649ex4){UserHasFaxQueue[_0x6e03[16]](_0x649ex3[_0x6e03[17]])[_0x6e03[8]](function(_0x649ex7){return _0x649ex4[_0x6e03[7]](201)[_0x6e03[6]](_0x649ex7)})[_0x6e03[5]](function(_0x649ex5){return handleError(_0x649ex4,_0x649ex5)})};exports[_0x6e03[18]]=function(_0x649ex3,_0x649ex4){if(_0x649ex3[_0x6e03[17]][_0x6e03[13]]){delete _0x649ex3[_0x6e03[17]][_0x6e03[13]]};UserHasFaxQueue[_0x6e03[21]]({where:{id:_0x649ex3[_0x6e03[14]][_0x6e03[13]]}})[_0x6e03[8]](function(_0x649ex7){if(!_0x649ex7){return _0x649ex4[_0x6e03[12]](404)};var _0x649ex8=_[_0x6e03[19]](_0x649ex7,_0x649ex3[_0x6e03[17]]);_0x649ex8[_0x6e03[20]]()[_0x6e03[8]](function(){return _0x649ex4[_0x6e03[7]](200)[_0x6e03[6]](_0x649ex7)})[_0x6e03[5]](function(_0x649ex5){return handleError(_0x649ex4,_0x649ex5)});})[_0x6e03[5]](function(_0x649ex5){return handleError(_0x649ex4,_0x649ex5)});};exports[_0x6e03[22]]=function(_0x649ex3,_0x649ex4){UserHasFaxQueue[_0x6e03[21]]({where:{id:_0x649ex3[_0x6e03[14]][_0x6e03[13]]}})[_0x6e03[8]](function(_0x649ex7){if(!_0x649ex7){return _0x649ex4[_0x6e03[12]](404)};_0x649ex7[_0x6e03[22]]()[_0x6e03[8]](function(){return _0x649ex4[_0x6e03[12]](204)})[_0x6e03[5]](function(_0x649ex5){return handleError(_0x649ex4,_0x649ex5)});})[_0x6e03[5]](function(_0x649ex5){return handleError(_0x649ex4,_0x649ex5)})};function handleError(_0x649ex4,_0x649ex5){return _0x649ex4[_0x6e03[7]](500)[_0x6e03[6]](_0x649ex5)}
\ No newline at end of file
+var _0xc523=["\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"];_0xc523[0];var _=require(_0xc523[1]);var UserHasFaxQueue=require(_0xc523[3])[_0xc523[2]];exports[_0xc523[4]]=function(_0x2afbx3,_0x2afbx4){UserHasFaxQueue[_0xc523[10]](_0x2afbx3[_0xc523[9]]?{where:_0x2afbx3[_0xc523[9]]}:{})[_0xc523[8]](function(_0x2afbx6){return _0x2afbx4[_0xc523[7]](200)[_0xc523[6]](_0x2afbx6)})[_0xc523[5]](function(_0x2afbx5){return handleError(_0x2afbx4,_0x2afbx5)})};exports[_0xc523[11]]=function(_0x2afbx3,_0x2afbx4){UserHasFaxQueue[_0xc523[15]](_0x2afbx3[_0xc523[14]][_0xc523[13]])[_0xc523[8]](function(_0x2afbx7){if(!_0x2afbx7){return _0x2afbx4[_0xc523[12]](404)};return _0x2afbx4[_0xc523[6]](_0x2afbx7);})[_0xc523[5]](function(_0x2afbx5){return handleError(_0x2afbx4,_0x2afbx5)})};exports[_0xc523[16]]=function(_0x2afbx3,_0x2afbx4){UserHasFaxQueue[_0xc523[16]](_0x2afbx3[_0xc523[17]])[_0xc523[8]](function(_0x2afbx7){return _0x2afbx4[_0xc523[7]](201)[_0xc523[6]](_0x2afbx7)})[_0xc523[5]](function(_0x2afbx5){return handleError(_0x2afbx4,_0x2afbx5)})};exports[_0xc523[18]]=function(_0x2afbx3,_0x2afbx4){if(_0x2afbx3[_0xc523[17]][_0xc523[13]]){delete _0x2afbx3[_0xc523[17]][_0xc523[13]]};UserHasFaxQueue[_0xc523[21]]({where:{id:_0x2afbx3[_0xc523[14]][_0xc523[13]]}})[_0xc523[8]](function(_0x2afbx7){if(!_0x2afbx7){return _0x2afbx4[_0xc523[12]](404)};var _0x2afbx8=_[_0xc523[19]](_0x2afbx7,_0x2afbx3[_0xc523[17]]);_0x2afbx8[_0xc523[20]]()[_0xc523[8]](function(){return _0x2afbx4[_0xc523[7]](200)[_0xc523[6]](_0x2afbx7)})[_0xc523[5]](function(_0x2afbx5){return handleError(_0x2afbx4,_0x2afbx5)});})[_0xc523[5]](function(_0x2afbx5){return handleError(_0x2afbx4,_0x2afbx5)});};exports[_0xc523[22]]=function(_0x2afbx3,_0x2afbx4){UserHasFaxQueue[_0xc523[21]]({where:{id:_0x2afbx3[_0xc523[14]][_0xc523[13]]}})[_0xc523[8]](function(_0x2afbx7){if(!_0x2afbx7){return _0x2afbx4[_0xc523[12]](404)};_0x2afbx7[_0xc523[22]]()[_0xc523[8]](function(){return _0x2afbx4[_0xc523[12]](204)})[_0xc523[5]](function(_0x2afbx5){return handleError(_0x2afbx4,_0x2afbx5)});})[_0xc523[5]](function(_0x2afbx5){return handleError(_0x2afbx4,_0x2afbx5)})};function handleError(_0x2afbx4,_0x2afbx5){return _0x2afbx4[_0xc523[7]](500)[_0xc523[6]](_0x2afbx5)}
\ No newline at end of file
-var _0xdd7a=["\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"];_0xdd7a[0];var UserHasFaxQueue=require(_0xdd7a[2])[_0xdd7a[1]];exports[_0xdd7a[3]]=function(_0x7574x2){UserHasFaxQueue[_0xdd7a[4]](function(_0x7574x3){onSave(_0x7574x2,_0x7574x3)});UserHasFaxQueue[_0xdd7a[5]](function(_0x7574x3){onRemove(_0x7574x2,_0x7574x3)});UserHasFaxQueue[_0xdd7a[6]](function(_0x7574x3){onSave(_0x7574x2,_0x7574x3)});UserHasFaxQueue[_0xdd7a[7]](function(_0x7574x3){onRemove(_0x7574x2,_0x7574x3)});};function onSave(_0x7574x2,_0x7574x3,_0x7574x5){_0x7574x2[_0xdd7a[9]](_0xdd7a[8],_0x7574x3)}function onRemove(_0x7574x2,_0x7574x3,_0x7574x5){_0x7574x2[_0xdd7a[9]](_0xdd7a[10],_0x7574x3)}
\ No newline at end of file
+var _0xd851=["\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"];_0xd851[0];var UserHasFaxQueue=require(_0xd851[2])[_0xd851[1]];exports[_0xd851[3]]=function(_0xf361x2){UserHasFaxQueue[_0xd851[4]](function(_0xf361x3){onSave(_0xf361x2,_0xf361x3)});UserHasFaxQueue[_0xd851[5]](function(_0xf361x3){onRemove(_0xf361x2,_0xf361x3)});UserHasFaxQueue[_0xd851[6]](function(_0xf361x3){onSave(_0xf361x2,_0xf361x3)});UserHasFaxQueue[_0xd851[7]](function(_0xf361x3){onRemove(_0xf361x2,_0xf361x3)});};function onSave(_0xf361x2,_0xf361x3,_0xf361x5){_0xf361x2[_0xd851[9]](_0xd851[8],_0xf361x3)}function onRemove(_0xf361x2,_0xf361x3,_0xf361x5){_0xf361x2[_0xd851[9]](_0xd851[10],_0xf361x3)}
\ 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\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"];_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(_0x2d16x4){request(app)[_0x4ffa[13]](_0x4ffa[12])[_0x4ffa[11]](200)[_0x4ffa[11]](_0x4ffa[10],/json/)[_0x4ffa[9]](function(_0x2d16x5,_0x2d16x6){if(_0x2d16x5){return _0x2d16x4(_0x2d16x5)};_0x2d16x6[_0x4ffa[8]][_0x4ffa[1]][_0x4ffa[7]][_0x4ffa[6]](Array);_0x2d16x4();})})});
\ No newline at end of file
+var _0xf5aa=["\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"];_0xf5aa[0];var should=require(_0xf5aa[1]);var app=require(_0xf5aa[2]);var request=require(_0xf5aa[3]);describe(_0xf5aa[4],function(){it(_0xf5aa[5],function(_0xe48ax4){request(app)[_0xf5aa[13]](_0xf5aa[12])[_0xf5aa[11]](200)[_0xf5aa[11]](_0xf5aa[10],/json/)[_0xf5aa[9]](function(_0xe48ax5,_0xe48ax6){if(_0xe48ax5){return _0xe48ax4(_0xe48ax5)};_0xe48ax6[_0xf5aa[8]][_0xf5aa[1]][_0xf5aa[7]][_0xf5aa[6]](Array);_0xe48ax4();})})});
\ No newline at end of file
-var _0x1380=["\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"];_0x1380[0];var express=require(_0x1380[1]);var controller=require(_0x1380[2]);var router=express.Router();router[_0x1380[5]](_0x1380[3],controller[_0x1380[4]]);router[_0x1380[5]](_0x1380[6],controller[_0x1380[7]]);router[_0x1380[9]](_0x1380[3],controller[_0x1380[8]]);router[_0x1380[11]](_0x1380[6],controller[_0x1380[10]]);router[_0x1380[12]](_0x1380[6],controller[_0x1380[10]]);router[_0x1380[14]](_0x1380[6],controller[_0x1380[13]]);module[_0x1380[15]]=router;
\ No newline at end of file
+var _0xc998=["\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"];_0xc998[0];var express=require(_0xc998[1]);var controller=require(_0xc998[2]);var router=express.Router();router[_0xc998[5]](_0xc998[3],controller[_0xc998[4]]);router[_0xc998[5]](_0xc998[6],controller[_0xc998[7]]);router[_0xc998[9]](_0xc998[3],controller[_0xc998[8]]);router[_0xc998[11]](_0xc998[6],controller[_0xc998[10]]);router[_0xc998[12]](_0xc998[6],controller[_0xc998[10]]);router[_0xc998[14]](_0xc998[6],controller[_0xc998[13]]);module[_0xc998[15]]=router;
\ No newline at end of file
-var _0xf564=["\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"];_0xf564[0];var _=require(_0xf564[1]);var UserHasMailQueue=require(_0xf564[3])[_0xf564[2]];exports[_0xf564[4]]=function(_0xcbf0x3,_0xcbf0x4){UserHasMailQueue[_0xf564[10]](_0xcbf0x3[_0xf564[9]]?{where:_0xcbf0x3[_0xf564[9]]}:{})[_0xf564[8]](function(_0xcbf0x6){return _0xcbf0x4[_0xf564[7]](200)[_0xf564[6]](_0xcbf0x6)})[_0xf564[5]](function(_0xcbf0x5){return handleError(_0xcbf0x4,_0xcbf0x5)})};exports[_0xf564[11]]=function(_0xcbf0x3,_0xcbf0x4){UserHasMailQueue[_0xf564[15]](_0xcbf0x3[_0xf564[14]][_0xf564[13]])[_0xf564[8]](function(_0xcbf0x7){if(!_0xcbf0x7){return _0xcbf0x4[_0xf564[12]](404)};return _0xcbf0x4[_0xf564[6]](_0xcbf0x7);})[_0xf564[5]](function(_0xcbf0x5){return handleError(_0xcbf0x4,_0xcbf0x5)})};exports[_0xf564[16]]=function(_0xcbf0x3,_0xcbf0x4){UserHasMailQueue[_0xf564[16]](_0xcbf0x3[_0xf564[17]])[_0xf564[8]](function(_0xcbf0x7){return _0xcbf0x4[_0xf564[7]](201)[_0xf564[6]](_0xcbf0x7)})[_0xf564[5]](function(_0xcbf0x5){return handleError(_0xcbf0x4,_0xcbf0x5)})};exports[_0xf564[18]]=function(_0xcbf0x3,_0xcbf0x4){if(_0xcbf0x3[_0xf564[17]][_0xf564[13]]){delete _0xcbf0x3[_0xf564[17]][_0xf564[13]]};UserHasMailQueue[_0xf564[15]](_0xcbf0x3[_0xf564[14]][_0xf564[13]])[_0xf564[8]](function(_0xcbf0x7){if(!_0xcbf0x7){return _0xcbf0x4[_0xf564[12]](404)};var _0xcbf0x8=_[_0xf564[19]](_0xcbf0x7,_0xcbf0x3[_0xf564[17]]);_0xcbf0x8[_0xf564[20]]()[_0xf564[8]](function(){return _0xcbf0x4[_0xf564[7]](200)[_0xf564[6]](_0xcbf0x7)})[_0xf564[5]](function(_0xcbf0x5){return handleError(_0xcbf0x4,_0xcbf0x5)});})[_0xf564[5]](function(_0xcbf0x5){return handleError(_0xcbf0x4,_0xcbf0x5)});};exports[_0xf564[21]]=function(_0xcbf0x3,_0xcbf0x4){UserHasMailQueue[_0xf564[15]](_0xcbf0x3[_0xf564[14]][_0xf564[13]])[_0xf564[8]](function(_0xcbf0x7){if(!_0xcbf0x7){return _0xcbf0x4[_0xf564[12]](404)};_0xcbf0x7[_0xf564[21]]()[_0xf564[8]](function(){return _0xcbf0x4[_0xf564[12]](204)})[_0xf564[5]](function(_0xcbf0x5){return handleError(_0xcbf0x4,_0xcbf0x5)});})[_0xf564[5]](function(_0xcbf0x5){return handleError(_0xcbf0x4,_0xcbf0x5)})};function handleError(_0xcbf0x4,_0xcbf0x5){return _0xcbf0x4[_0xf564[7]](500)[_0xf564[6]](_0xcbf0x5)}
\ No newline at end of file
+var _0xb0a0=["\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"];_0xb0a0[0];var _=require(_0xb0a0[1]);var UserHasMailQueue=require(_0xb0a0[3])[_0xb0a0[2]];exports[_0xb0a0[4]]=function(_0x1a4ax3,_0x1a4ax4){UserHasMailQueue[_0xb0a0[10]](_0x1a4ax3[_0xb0a0[9]]?{where:_0x1a4ax3[_0xb0a0[9]]}:{})[_0xb0a0[8]](function(_0x1a4ax6){return _0x1a4ax4[_0xb0a0[7]](200)[_0xb0a0[6]](_0x1a4ax6)})[_0xb0a0[5]](function(_0x1a4ax5){return handleError(_0x1a4ax4,_0x1a4ax5)})};exports[_0xb0a0[11]]=function(_0x1a4ax3,_0x1a4ax4){UserHasMailQueue[_0xb0a0[15]](_0x1a4ax3[_0xb0a0[14]][_0xb0a0[13]])[_0xb0a0[8]](function(_0x1a4ax7){if(!_0x1a4ax7){return _0x1a4ax4[_0xb0a0[12]](404)};return _0x1a4ax4[_0xb0a0[6]](_0x1a4ax7);})[_0xb0a0[5]](function(_0x1a4ax5){return handleError(_0x1a4ax4,_0x1a4ax5)})};exports[_0xb0a0[16]]=function(_0x1a4ax3,_0x1a4ax4){UserHasMailQueue[_0xb0a0[16]](_0x1a4ax3[_0xb0a0[17]])[_0xb0a0[8]](function(_0x1a4ax7){return _0x1a4ax4[_0xb0a0[7]](201)[_0xb0a0[6]](_0x1a4ax7)})[_0xb0a0[5]](function(_0x1a4ax5){return handleError(_0x1a4ax4,_0x1a4ax5)})};exports[_0xb0a0[18]]=function(_0x1a4ax3,_0x1a4ax4){if(_0x1a4ax3[_0xb0a0[17]][_0xb0a0[13]]){delete _0x1a4ax3[_0xb0a0[17]][_0xb0a0[13]]};UserHasMailQueue[_0xb0a0[15]](_0x1a4ax3[_0xb0a0[14]][_0xb0a0[13]])[_0xb0a0[8]](function(_0x1a4ax7){if(!_0x1a4ax7){return _0x1a4ax4[_0xb0a0[12]](404)};var _0x1a4ax8=_[_0xb0a0[19]](_0x1a4ax7,_0x1a4ax3[_0xb0a0[17]]);_0x1a4ax8[_0xb0a0[20]]()[_0xb0a0[8]](function(){return _0x1a4ax4[_0xb0a0[7]](200)[_0xb0a0[6]](_0x1a4ax7)})[_0xb0a0[5]](function(_0x1a4ax5){return handleError(_0x1a4ax4,_0x1a4ax5)});})[_0xb0a0[5]](function(_0x1a4ax5){return handleError(_0x1a4ax4,_0x1a4ax5)});};exports[_0xb0a0[21]]=function(_0x1a4ax3,_0x1a4ax4){UserHasMailQueue[_0xb0a0[15]](_0x1a4ax3[_0xb0a0[14]][_0xb0a0[13]])[_0xb0a0[8]](function(_0x1a4ax7){if(!_0x1a4ax7){return _0x1a4ax4[_0xb0a0[12]](404)};_0x1a4ax7[_0xb0a0[21]]()[_0xb0a0[8]](function(){return _0x1a4ax4[_0xb0a0[12]](204)})[_0xb0a0[5]](function(_0x1a4ax5){return handleError(_0x1a4ax4,_0x1a4ax5)});})[_0xb0a0[5]](function(_0x1a4ax5){return handleError(_0x1a4ax4,_0x1a4ax5)})};function handleError(_0x1a4ax4,_0x1a4ax5){return _0x1a4ax4[_0xb0a0[7]](500)[_0xb0a0[6]](_0x1a4ax5)}
\ No newline at end of file
-var _0x4c92=["\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"];_0x4c92[0];var UserHasMailQueue=require(_0x4c92[2])[_0x4c92[1]];exports[_0x4c92[3]]=function(_0xcdb8x2){UserHasMailQueue[_0x4c92[4]](function(_0xcdb8x3){onSave(_0xcdb8x2,_0xcdb8x3)});UserHasMailQueue[_0x4c92[5]](function(_0xcdb8x3){onRemove(_0xcdb8x2,_0xcdb8x3)});};function onSave(_0xcdb8x2,_0xcdb8x3,_0xcdb8x5){_0xcdb8x2[_0x4c92[7]](_0x4c92[6],_0xcdb8x3)}function onRemove(_0xcdb8x2,_0xcdb8x3,_0xcdb8x5){_0xcdb8x2[_0x4c92[7]](_0x4c92[8],_0xcdb8x3)}
\ No newline at end of file
+var _0x839e=["\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"];_0x839e[0];var UserHasMailQueue=require(_0x839e[2])[_0x839e[1]];exports[_0x839e[3]]=function(_0xeb87x2){UserHasMailQueue[_0x839e[4]](function(_0xeb87x3){onSave(_0xeb87x2,_0xeb87x3)});UserHasMailQueue[_0x839e[5]](function(_0xeb87x3){onRemove(_0xeb87x2,_0xeb87x3)});};function onSave(_0xeb87x2,_0xeb87x3,_0xeb87x5){_0xeb87x2[_0x839e[7]](_0x839e[6],_0xeb87x3)}function onRemove(_0xeb87x2,_0xeb87x3,_0xeb87x5){_0xeb87x2[_0x839e[7]](_0x839e[8],_0xeb87x3)}
\ No newline at end of file
-var _0xc95f=["\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"];_0xc95f[0];var should=require(_0xc95f[1]);var app=require(_0xc95f[2]);var request=require(_0xc95f[3]);describe(_0xc95f[4],function(){it(_0xc95f[5],function(_0xcaadx4){request(app)[_0xc95f[13]](_0xc95f[12])[_0xc95f[11]](200)[_0xc95f[11]](_0xc95f[10],/json/)[_0xc95f[9]](function(_0xcaadx5,_0xcaadx6){if(_0xcaadx5){return _0xcaadx4(_0xcaadx5)};_0xcaadx6[_0xc95f[8]][_0xc95f[1]][_0xc95f[7]][_0xc95f[6]](Array);_0xcaadx4();})})});
\ No newline at end of file
+var _0xa711=["\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"];_0xa711[0];var should=require(_0xa711[1]);var app=require(_0xa711[2]);var request=require(_0xa711[3]);describe(_0xa711[4],function(){it(_0xa711[5],function(_0x3372x4){request(app)[_0xa711[13]](_0xa711[12])[_0xa711[11]](200)[_0xa711[11]](_0xa711[10],/json/)[_0xa711[9]](function(_0x3372x5,_0x3372x6){if(_0x3372x5){return _0x3372x4(_0x3372x5)};_0x3372x6[_0xa711[8]][_0xa711[1]][_0xa711[7]][_0xa711[6]](Array);_0x3372x4();})})});
\ No newline at end of file
-var _0x2afc=["\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"];_0x2afc[0];var express=require(_0x2afc[1]);var controller=require(_0x2afc[2]);var router=express.Router();router[_0x2afc[5]](_0x2afc[3],controller[_0x2afc[4]]);router[_0x2afc[5]](_0x2afc[6],controller[_0x2afc[7]]);router[_0x2afc[9]](_0x2afc[3],controller[_0x2afc[8]]);router[_0x2afc[11]](_0x2afc[6],controller[_0x2afc[10]]);router[_0x2afc[12]](_0x2afc[6],controller[_0x2afc[10]]);router[_0x2afc[14]](_0x2afc[6],controller[_0x2afc[13]]);module[_0x2afc[15]]=router;
\ No newline at end of file
+var _0xcf86=["\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"];_0xcf86[0];var express=require(_0xcf86[1]);var controller=require(_0xcf86[2]);var router=express.Router();router[_0xcf86[5]](_0xcf86[3],controller[_0xcf86[4]]);router[_0xcf86[5]](_0xcf86[6],controller[_0xcf86[7]]);router[_0xcf86[9]](_0xcf86[3],controller[_0xcf86[8]]);router[_0xcf86[11]](_0xcf86[6],controller[_0xcf86[10]]);router[_0xcf86[12]](_0xcf86[6],controller[_0xcf86[10]]);router[_0xcf86[14]](_0xcf86[6],controller[_0xcf86[13]]);module[_0xcf86[15]]=router;
\ No newline at end of file
-var _0xb4b7=["\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"];_0xb4b7[0];var _=require(_0xb4b7[1]);var UserHasTeam=require(_0xb4b7[3])[_0xb4b7[2]];exports[_0xb4b7[4]]=function(_0x3df7x3,_0x3df7x4){console[_0xb4b7[6]](_0x3df7x3[_0xb4b7[5]]);UserHasTeam[_0xb4b7[11]]({where:_0x3df7x3[_0xb4b7[5]]})[_0xb4b7[10]](function(_0x3df7x6){return _0x3df7x4[_0xb4b7[9]](200)[_0xb4b7[8]](_0x3df7x6)})[_0xb4b7[7]](function(_0x3df7x5){return handleError(_0x3df7x4,_0x3df7x5)});};exports[_0xb4b7[12]]=function(_0x3df7x3,_0x3df7x4){UserHasTeam[_0xb4b7[16]](_0x3df7x3[_0xb4b7[15]][_0xb4b7[14]])[_0xb4b7[10]](function(_0x3df7x7){if(!_0x3df7x7){return _0x3df7x4[_0xb4b7[13]](404)};return _0x3df7x4[_0xb4b7[8]](_0x3df7x7);})[_0xb4b7[7]](function(_0x3df7x5){return handleError(_0x3df7x4,_0x3df7x5)})};exports[_0xb4b7[17]]=function(_0x3df7x3,_0x3df7x4){UserHasTeam[_0xb4b7[17]](_0x3df7x3[_0xb4b7[18]])[_0xb4b7[10]](function(_0x3df7x7){return _0x3df7x4[_0xb4b7[9]](201)[_0xb4b7[8]](_0x3df7x7)})[_0xb4b7[7]](function(_0x3df7x5){return handleError(_0x3df7x4,_0x3df7x5)})};exports[_0xb4b7[19]]=function(_0x3df7x3,_0x3df7x4){if(_0x3df7x3[_0xb4b7[18]][_0xb4b7[14]]){delete _0x3df7x3[_0xb4b7[18]][_0xb4b7[14]]};UserHasTeam[_0xb4b7[16]](_0x3df7x3[_0xb4b7[15]][_0xb4b7[14]])[_0xb4b7[10]](function(_0x3df7x7){if(!_0x3df7x7){return _0x3df7x4[_0xb4b7[13]](404)};var _0x3df7x8=_[_0xb4b7[20]](_0x3df7x7,_0x3df7x3[_0xb4b7[18]]);_0x3df7x8[_0xb4b7[21]]()[_0xb4b7[10]](function(){return _0x3df7x4[_0xb4b7[9]](200)[_0xb4b7[8]](_0x3df7x7)})[_0xb4b7[7]](function(_0x3df7x5){return handleError(_0x3df7x4,_0x3df7x5)});})[_0xb4b7[7]](function(_0x3df7x5){return handleError(_0x3df7x4,_0x3df7x5)});};exports[_0xb4b7[22]]=function(_0x3df7x3,_0x3df7x4){UserHasTeam[_0xb4b7[16]](_0x3df7x3[_0xb4b7[15]][_0xb4b7[14]])[_0xb4b7[10]](function(_0x3df7x7){if(!_0x3df7x7){return _0x3df7x4[_0xb4b7[13]](404)};_0x3df7x7[_0xb4b7[22]]()[_0xb4b7[10]](function(){return _0x3df7x4[_0xb4b7[13]](204)})[_0xb4b7[7]](function(_0x3df7x5){return handleError(_0x3df7x4,_0x3df7x5)});})[_0xb4b7[7]](function(_0x3df7x5){return handleError(_0x3df7x4,_0x3df7x5)})};function handleError(_0x3df7x4,_0x3df7x5){return _0x3df7x4[_0xb4b7[9]](500)[_0xb4b7[8]](_0x3df7x5)}
\ No newline at end of file
+var _0xf4c2=["\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"];_0xf4c2[0];var _=require(_0xf4c2[1]);var UserHasTeam=require(_0xf4c2[3])[_0xf4c2[2]];exports[_0xf4c2[4]]=function(_0x22fex3,_0x22fex4){console[_0xf4c2[6]](_0x22fex3[_0xf4c2[5]]);UserHasTeam[_0xf4c2[11]]({where:_0x22fex3[_0xf4c2[5]]})[_0xf4c2[10]](function(_0x22fex6){return _0x22fex4[_0xf4c2[9]](200)[_0xf4c2[8]](_0x22fex6)})[_0xf4c2[7]](function(_0x22fex5){return handleError(_0x22fex4,_0x22fex5)});};exports[_0xf4c2[12]]=function(_0x22fex3,_0x22fex4){UserHasTeam[_0xf4c2[16]](_0x22fex3[_0xf4c2[15]][_0xf4c2[14]])[_0xf4c2[10]](function(_0x22fex7){if(!_0x22fex7){return _0x22fex4[_0xf4c2[13]](404)};return _0x22fex4[_0xf4c2[8]](_0x22fex7);})[_0xf4c2[7]](function(_0x22fex5){return handleError(_0x22fex4,_0x22fex5)})};exports[_0xf4c2[17]]=function(_0x22fex3,_0x22fex4){UserHasTeam[_0xf4c2[17]](_0x22fex3[_0xf4c2[18]])[_0xf4c2[10]](function(_0x22fex7){return _0x22fex4[_0xf4c2[9]](201)[_0xf4c2[8]](_0x22fex7)})[_0xf4c2[7]](function(_0x22fex5){return handleError(_0x22fex4,_0x22fex5)})};exports[_0xf4c2[19]]=function(_0x22fex3,_0x22fex4){if(_0x22fex3[_0xf4c2[18]][_0xf4c2[14]]){delete _0x22fex3[_0xf4c2[18]][_0xf4c2[14]]};UserHasTeam[_0xf4c2[16]](_0x22fex3[_0xf4c2[15]][_0xf4c2[14]])[_0xf4c2[10]](function(_0x22fex7){if(!_0x22fex7){return _0x22fex4[_0xf4c2[13]](404)};var _0x22fex8=_[_0xf4c2[20]](_0x22fex7,_0x22fex3[_0xf4c2[18]]);_0x22fex8[_0xf4c2[21]]()[_0xf4c2[10]](function(){return _0x22fex4[_0xf4c2[9]](200)[_0xf4c2[8]](_0x22fex7)})[_0xf4c2[7]](function(_0x22fex5){return handleError(_0x22fex4,_0x22fex5)});})[_0xf4c2[7]](function(_0x22fex5){return handleError(_0x22fex4,_0x22fex5)});};exports[_0xf4c2[22]]=function(_0x22fex3,_0x22fex4){UserHasTeam[_0xf4c2[16]](_0x22fex3[_0xf4c2[15]][_0xf4c2[14]])[_0xf4c2[10]](function(_0x22fex7){if(!_0x22fex7){return _0x22fex4[_0xf4c2[13]](404)};_0x22fex7[_0xf4c2[22]]()[_0xf4c2[10]](function(){return _0x22fex4[_0xf4c2[13]](204)})[_0xf4c2[7]](function(_0x22fex5){return handleError(_0x22fex4,_0x22fex5)});})[_0xf4c2[7]](function(_0x22fex5){return handleError(_0x22fex4,_0x22fex5)})};function handleError(_0x22fex4,_0x22fex5){return _0x22fex4[_0xf4c2[9]](500)[_0xf4c2[8]](_0x22fex5)}
\ No newline at end of file
-var _0xfb52=["\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"];_0xfb52[0];module[_0xfb52[1]]=function(_0xeb87x1,_0xeb87x2){var _0xeb87x3=_0xeb87x1[_0xfb52[3]](_0xfb52[2],{name:String,info:String,active:Boolean});return _0xeb87x3;};
\ No newline at end of file
+var _0x2c23=["\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"];_0x2c23[0];module[_0x2c23[1]]=function(_0xf46dx1,_0xf46dx2){var _0xf46dx3=_0xf46dx1[_0x2c23[3]](_0x2c23[2],{name:String,info:String,active:Boolean});return _0xf46dx3;};
\ No newline at end of file
-var _0xaeea=["\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"];_0xaeea[0];var user_has_team=require(_0xaeea[2])[_0xaeea[1]];exports[_0xaeea[3]]=function(_0x2eb0x2){user_has_team[_0xaeea[4]](function(_0x2eb0x3){onSave(_0x2eb0x2,_0x2eb0x3)});user_has_team[_0xaeea[5]](function(_0x2eb0x3){onRemove(_0x2eb0x2,_0x2eb0x3)});};function onSave(_0x2eb0x2,_0x2eb0x3,_0x2eb0x5){_0x2eb0x2[_0xaeea[7]](_0xaeea[6],_0x2eb0x3)}function onRemove(_0x2eb0x2,_0x2eb0x3,_0x2eb0x5){_0x2eb0x2[_0xaeea[7]](_0xaeea[8],_0x2eb0x3)}
\ No newline at end of file
+var _0xb7ac=["\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"];_0xb7ac[0];var user_has_team=require(_0xb7ac[2])[_0xb7ac[1]];exports[_0xb7ac[3]]=function(_0x10b7x2){user_has_team[_0xb7ac[4]](function(_0x10b7x3){onSave(_0x10b7x2,_0x10b7x3)});user_has_team[_0xb7ac[5]](function(_0x10b7x3){onRemove(_0x10b7x2,_0x10b7x3)});};function onSave(_0x10b7x2,_0x10b7x3,_0x10b7x5){_0x10b7x2[_0xb7ac[7]](_0xb7ac[6],_0x10b7x3)}function onRemove(_0x10b7x2,_0x10b7x3,_0x10b7x5){_0x10b7x2[_0xb7ac[7]](_0xb7ac[8],_0x10b7x3)}
\ No newline at end of file
-var _0x4fdd=["\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"];_0x4fdd[0];var should=require(_0x4fdd[1]);var app=require(_0x4fdd[2]);var request=require(_0x4fdd[3]);describe(_0x4fdd[4],function(){it(_0x4fdd[5],function(_0xc8abx4){request(app)[_0x4fdd[13]](_0x4fdd[12])[_0x4fdd[11]](200)[_0x4fdd[11]](_0x4fdd[10],/json/)[_0x4fdd[9]](function(_0xc8abx5,_0xc8abx6){if(_0xc8abx5){return _0xc8abx4(_0xc8abx5)};_0xc8abx6[_0x4fdd[8]][_0x4fdd[1]][_0x4fdd[7]][_0x4fdd[6]](Array);_0xc8abx4();})})});
\ No newline at end of file
+var _0x1872=["\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"];_0x1872[0];var should=require(_0x1872[1]);var app=require(_0x1872[2]);var request=require(_0x1872[3]);describe(_0x1872[4],function(){it(_0x1872[5],function(_0xa3b6x4){request(app)[_0x1872[13]](_0x1872[12])[_0x1872[11]](200)[_0x1872[11]](_0x1872[10],/json/)[_0x1872[9]](function(_0xa3b6x5,_0xa3b6x6){if(_0xa3b6x5){return _0xa3b6x4(_0xa3b6x5)};_0xa3b6x6[_0x1872[8]][_0x1872[1]][_0x1872[7]][_0x1872[6]](Array);_0xa3b6x4();})})});
\ No newline at end of file
-var _0x7021=["\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"];_0x7021[0];var express=require(_0x7021[1]);var controller=require(_0x7021[2]);var router=express.Router();router[_0x7021[5]](_0x7021[3],controller[_0x7021[4]]);router[_0x7021[5]](_0x7021[6],controller[_0x7021[7]]);router[_0x7021[9]](_0x7021[3],controller[_0x7021[8]]);router[_0x7021[11]](_0x7021[6],controller[_0x7021[10]]);router[_0x7021[12]](_0x7021[6],controller[_0x7021[10]]);router[_0x7021[14]](_0x7021[6],controller[_0x7021[13]]);module[_0x7021[15]]=router;
\ No newline at end of file
+var _0x95eb=["\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"];_0x95eb[0];var express=require(_0x95eb[1]);var controller=require(_0x95eb[2]);var router=express.Router();router[_0x95eb[5]](_0x95eb[3],controller[_0x95eb[4]]);router[_0x95eb[5]](_0x95eb[6],controller[_0x95eb[7]]);router[_0x95eb[9]](_0x95eb[3],controller[_0x95eb[8]]);router[_0x95eb[11]](_0x95eb[6],controller[_0x95eb[10]]);router[_0x95eb[12]](_0x95eb[6],controller[_0x95eb[10]]);router[_0x95eb[14]](_0x95eb[6],controller[_0x95eb[13]]);module[_0x95eb[15]]=router;
\ No newline at end of file
-var _0x5991=["\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"];_0x5991[0];var _=require(_0x5991[1]);var UserHasVoiceQueue=require(_0x5991[3])[_0x5991[2]];exports[_0x5991[4]]=function(_0x5ff8x3,_0x5ff8x4){UserHasVoiceQueue[_0x5991[10]](_0x5ff8x3[_0x5991[9]]?{where:_0x5ff8x3[_0x5991[9]]}:{})[_0x5991[8]](function(_0x5ff8x6){return _0x5ff8x4[_0x5991[7]](200)[_0x5991[6]](_0x5ff8x6)})[_0x5991[5]](function(_0x5ff8x5){return handleError(_0x5ff8x4,_0x5ff8x5)})};exports[_0x5991[11]]=function(_0x5ff8x3,_0x5ff8x4){UserHasVoiceQueue[_0x5991[15]](_0x5ff8x3[_0x5991[14]][_0x5991[13]])[_0x5991[8]](function(_0x5ff8x7){if(!_0x5ff8x7){return _0x5ff8x4[_0x5991[12]](404)};return _0x5ff8x4[_0x5991[6]](_0x5ff8x7);})[_0x5991[5]](function(_0x5ff8x5){return handleError(_0x5ff8x4,_0x5ff8x5)})};exports[_0x5991[16]]=function(_0x5ff8x3,_0x5ff8x4,_0x5ff8x8){console[_0x5991[18]](_0x5ff8x3[_0x5991[17]]);UserHasVoiceQueue[_0x5991[16]](_0x5ff8x3[_0x5991[17]])[_0x5991[8]](function(_0x5ff8x7){return _0x5ff8x4[_0x5991[7]](201)[_0x5991[6]](_0x5ff8x7)})[_0x5991[5]](function(_0x5ff8x5){console[_0x5991[19]](_0x5ff8x5);return _0x5ff8x8(_0x5ff8x5);});};exports[_0x5991[20]]=function(_0x5ff8x3,_0x5ff8x4){if(_0x5ff8x3[_0x5991[17]][_0x5991[13]]){delete _0x5ff8x3[_0x5991[17]][_0x5991[13]]};UserHasVoiceQueue[_0x5991[15]](_0x5ff8x3[_0x5991[14]][_0x5991[13]])[_0x5991[8]](function(_0x5ff8x7){if(!_0x5ff8x7){return _0x5ff8x4[_0x5991[12]](404)};var _0x5ff8x9=_[_0x5991[21]](_0x5ff8x7,_0x5ff8x3[_0x5991[17]]);_0x5ff8x9[_0x5991[22]]()[_0x5991[8]](function(){return _0x5ff8x4[_0x5991[7]](200)[_0x5991[6]](_0x5ff8x7)})[_0x5991[5]](function(_0x5ff8x5){return handleError(_0x5ff8x4,_0x5ff8x5)});})[_0x5991[5]](function(_0x5ff8x5){return handleError(_0x5ff8x4,_0x5ff8x5)});};exports[_0x5991[23]]=function(_0x5ff8x3,_0x5ff8x4){UserHasVoiceQueue[_0x5991[15]](_0x5ff8x3[_0x5991[14]][_0x5991[13]])[_0x5991[8]](function(_0x5ff8x7){if(!_0x5ff8x7){return _0x5ff8x4[_0x5991[12]](404)};_0x5ff8x7[_0x5991[23]]()[_0x5991[8]](function(){return _0x5ff8x4[_0x5991[12]](204)})[_0x5991[5]](function(_0x5ff8x5){return handleError(_0x5ff8x4,_0x5ff8x5)});})[_0x5991[5]](function(_0x5ff8x5){return handleError(_0x5ff8x4,_0x5ff8x5)})};function handleError(_0x5ff8x4,_0x5ff8x5){return _0x5ff8x4[_0x5991[7]](500)[_0x5991[6]](_0x5ff8x5)}
\ No newline at end of file
+var _0x6486=["\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"];_0x6486[0];var _=require(_0x6486[1]);var UserHasVoiceQueue=require(_0x6486[3])[_0x6486[2]];exports[_0x6486[4]]=function(_0x9dffx3,_0x9dffx4){UserHasVoiceQueue[_0x6486[10]](_0x9dffx3[_0x6486[9]]?{where:_0x9dffx3[_0x6486[9]]}:{})[_0x6486[8]](function(_0x9dffx6){return _0x9dffx4[_0x6486[7]](200)[_0x6486[6]](_0x9dffx6)})[_0x6486[5]](function(_0x9dffx5){return handleError(_0x9dffx4,_0x9dffx5)})};exports[_0x6486[11]]=function(_0x9dffx3,_0x9dffx4){UserHasVoiceQueue[_0x6486[15]](_0x9dffx3[_0x6486[14]][_0x6486[13]])[_0x6486[8]](function(_0x9dffx7){if(!_0x9dffx7){return _0x9dffx4[_0x6486[12]](404)};return _0x9dffx4[_0x6486[6]](_0x9dffx7);})[_0x6486[5]](function(_0x9dffx5){return handleError(_0x9dffx4,_0x9dffx5)})};exports[_0x6486[16]]=function(_0x9dffx3,_0x9dffx4,_0x9dffx8){console[_0x6486[18]](_0x9dffx3[_0x6486[17]]);UserHasVoiceQueue[_0x6486[16]](_0x9dffx3[_0x6486[17]])[_0x6486[8]](function(_0x9dffx7){return _0x9dffx4[_0x6486[7]](201)[_0x6486[6]](_0x9dffx7)})[_0x6486[5]](function(_0x9dffx5){console[_0x6486[19]](_0x9dffx5);return _0x9dffx8(_0x9dffx5);});};exports[_0x6486[20]]=function(_0x9dffx3,_0x9dffx4){if(_0x9dffx3[_0x6486[17]][_0x6486[13]]){delete _0x9dffx3[_0x6486[17]][_0x6486[13]]};UserHasVoiceQueue[_0x6486[15]](_0x9dffx3[_0x6486[14]][_0x6486[13]])[_0x6486[8]](function(_0x9dffx7){if(!_0x9dffx7){return _0x9dffx4[_0x6486[12]](404)};var _0x9dffx9=_[_0x6486[21]](_0x9dffx7,_0x9dffx3[_0x6486[17]]);_0x9dffx9[_0x6486[22]]()[_0x6486[8]](function(){return _0x9dffx4[_0x6486[7]](200)[_0x6486[6]](_0x9dffx7)})[_0x6486[5]](function(_0x9dffx5){return handleError(_0x9dffx4,_0x9dffx5)});})[_0x6486[5]](function(_0x9dffx5){return handleError(_0x9dffx4,_0x9dffx5)});};exports[_0x6486[23]]=function(_0x9dffx3,_0x9dffx4){UserHasVoiceQueue[_0x6486[15]](_0x9dffx3[_0x6486[14]][_0x6486[13]])[_0x6486[8]](function(_0x9dffx7){if(!_0x9dffx7){return _0x9dffx4[_0x6486[12]](404)};_0x9dffx7[_0x6486[23]]()[_0x6486[8]](function(){return _0x9dffx4[_0x6486[12]](204)})[_0x6486[5]](function(_0x9dffx5){return handleError(_0x9dffx4,_0x9dffx5)});})[_0x6486[5]](function(_0x9dffx5){return handleError(_0x9dffx4,_0x9dffx5)})};function handleError(_0x9dffx4,_0x9dffx5){return _0x9dffx4[_0x6486[7]](500)[_0x6486[6]](_0x9dffx5)}
\ No newline at end of file
-var _0x2506=["\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"];_0x2506[0];var UserHasVoiceQueue=require(_0x2506[2])[_0x2506[1]];exports[_0x2506[3]]=function(_0xceb8x2){UserHasVoiceQueue[_0x2506[4]](function(_0xceb8x3){onSave(_0xceb8x2,_0xceb8x3)});UserHasVoiceQueue[_0x2506[5]](function(_0xceb8x3){onSave(_0xceb8x2,_0xceb8x3)});UserHasVoiceQueue[_0x2506[6]](function(_0xceb8x3){onRemove(_0xceb8x2,_0xceb8x3)});};function onSave(_0xceb8x2,_0xceb8x3,_0xceb8x5){_0xceb8x2[_0x2506[21]](_0x2506[7],{logged:_0xceb8x3[_0x2506[8]],loggedAt:_0xceb8x3[_0x2506[9]],queue:_0xceb8x3[_0x2506[10]],membername:_0xceb8x3[_0x2506[11]],interface:_0xceb8x3[_0x2506[12]],callstaken:_0xceb8x3[_0x2506[13]],lastcall:_0xceb8x3[_0x2506[14]],status:_0xceb8x3[_0x2506[15]],statusdesc:_0xceb8x3[_0x2506[16]],statusAt:_0xceb8x3[_0x2506[17]],paused:_0xceb8x3[_0x2506[18]],pausedAt:_0xceb8x3[_0x2506[19]],reason:_0xceb8x3[_0x2506[20]]})}function onRemove(_0xceb8x2,_0xceb8x3,_0xceb8x5){_0xceb8x2[_0x2506[21]](_0x2506[22],_0xceb8x3)}
\ No newline at end of file
+var _0xde00=["\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"];_0xde00[0];var UserHasVoiceQueue=require(_0xde00[2])[_0xde00[1]];exports[_0xde00[3]]=function(_0x27cax2){UserHasVoiceQueue[_0xde00[4]](function(_0x27cax3){onSave(_0x27cax2,_0x27cax3)});UserHasVoiceQueue[_0xde00[5]](function(_0x27cax3){onSave(_0x27cax2,_0x27cax3)});UserHasVoiceQueue[_0xde00[6]](function(_0x27cax3){onRemove(_0x27cax2,_0x27cax3)});};function onSave(_0x27cax2,_0x27cax3,_0x27cax5){_0x27cax2[_0xde00[21]](_0xde00[7],{logged:_0x27cax3[_0xde00[8]],loggedAt:_0x27cax3[_0xde00[9]],queue:_0x27cax3[_0xde00[10]],membername:_0x27cax3[_0xde00[11]],interface:_0x27cax3[_0xde00[12]],callstaken:_0x27cax3[_0xde00[13]],lastcall:_0x27cax3[_0xde00[14]],status:_0x27cax3[_0xde00[15]],statusdesc:_0x27cax3[_0xde00[16]],statusAt:_0x27cax3[_0xde00[17]],paused:_0x27cax3[_0xde00[18]],pausedAt:_0x27cax3[_0xde00[19]],reason:_0x27cax3[_0xde00[20]]})}function onRemove(_0x27cax2,_0x27cax3,_0x27cax5){_0x27cax2[_0xde00[21]](_0xde00[22],_0x27cax3)}
\ No newline at end of file
-var _0xd61e=["\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"];_0xd61e[0];var should=require(_0xd61e[1]);var app=require(_0xd61e[2]);var request=require(_0xd61e[3]);describe(_0xd61e[4],function(){it(_0xd61e[5],function(_0x3a22x4){request(app)[_0xd61e[13]](_0xd61e[12])[_0xd61e[11]](200)[_0xd61e[11]](_0xd61e[10],/json/)[_0xd61e[9]](function(_0x3a22x5,_0x3a22x6){if(_0x3a22x5){return _0x3a22x4(_0x3a22x5)};_0x3a22x6[_0xd61e[8]][_0xd61e[1]][_0xd61e[7]][_0xd61e[6]](Array);_0x3a22x4();})})});
\ No newline at end of file
+var _0x8c44=["\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"];_0x8c44[0];var should=require(_0x8c44[1]);var app=require(_0x8c44[2]);var request=require(_0x8c44[3]);describe(_0x8c44[4],function(){it(_0x8c44[5],function(_0xea8bx4){request(app)[_0x8c44[13]](_0x8c44[12])[_0x8c44[11]](200)[_0x8c44[11]](_0x8c44[10],/json/)[_0x8c44[9]](function(_0xea8bx5,_0xea8bx6){if(_0xea8bx5){return _0xea8bx4(_0xea8bx5)};_0xea8bx6[_0x8c44[8]][_0x8c44[1]][_0x8c44[7]][_0x8c44[6]](Array);_0xea8bx4();})})});
\ No newline at end of file
-var _0xa80b=["\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"];_0xa80b[0];var express=require(_0xa80b[1]);var controller=require(_0xa80b[2]);var auth=require(_0xa80b[3]);var router=express.Router();router[_0xa80b[7]](_0xa80b[4],auth[_0xa80b[5]](),controller[_0xa80b[6]]);router[_0xa80b[7]](_0xa80b[8],auth[_0xa80b[5]](),controller[_0xa80b[9]]);router[_0xa80b[11]](_0xa80b[4],auth[_0xa80b[5]](),controller[_0xa80b[10]]);router[_0xa80b[11]](_0xa80b[12],auth[_0xa80b[5]](),controller[_0xa80b[13]]);router[_0xa80b[15]](_0xa80b[8],auth[_0xa80b[5]](),controller[_0xa80b[14]]);router[_0xa80b[16]](_0xa80b[8],auth[_0xa80b[5]](),controller[_0xa80b[14]]);router[_0xa80b[18]](_0xa80b[4],auth[_0xa80b[5]](),controller[_0xa80b[17]]);router[_0xa80b[18]](_0xa80b[8],auth[_0xa80b[5]](),controller[_0xa80b[19]]);module[_0xa80b[20]]=router;
\ No newline at end of file
+var _0x24ce=["\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"];_0x24ce[0];var express=require(_0x24ce[1]);var controller=require(_0x24ce[2]);var auth=require(_0x24ce[3]);var router=express.Router();router[_0x24ce[7]](_0x24ce[4],auth[_0x24ce[5]](),controller[_0x24ce[6]]);router[_0x24ce[7]](_0x24ce[8],auth[_0x24ce[5]](),controller[_0x24ce[9]]);router[_0x24ce[11]](_0x24ce[4],auth[_0x24ce[5]](),controller[_0x24ce[10]]);router[_0x24ce[11]](_0x24ce[12],auth[_0x24ce[5]](),controller[_0x24ce[13]]);router[_0x24ce[15]](_0x24ce[8],auth[_0x24ce[5]](),controller[_0x24ce[14]]);router[_0x24ce[16]](_0x24ce[8],auth[_0x24ce[5]](),controller[_0x24ce[14]]);router[_0x24ce[18]](_0x24ce[4],auth[_0x24ce[5]](),controller[_0x24ce[17]]);router[_0x24ce[18]](_0x24ce[8],auth[_0x24ce[5]](),controller[_0x24ce[19]]);module[_0x24ce[20]]=router;
\ No newline at end of file
-var _0xe10e=["\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"];_0xe10e[0];var _=require(_0xe10e[1]);var Variable=require(_0xe10e[3])[_0xe10e[2]];var util=require(_0xe10e[4]);exports[_0xe10e[5]]=function(_0x2c29x4,_0x2c29x5){var _0x2c29x6=[_0xe10e[6],_0xe10e[7]];var _0x2c29x7=_0x2c29x4[_0xe10e[9]][_0xe10e[8]]?parseInt(_0x2c29x4[_0xe10e[9]][_0xe10e[8]],10):100;var _0x2c29x8=_0x2c29x4[_0xe10e[9]][_0xe10e[10]]?parseInt(_0x2c29x4[_0xe10e[9]][_0xe10e[10]],10):0;var _0x2c29x9={where:{},limit:_0x2c29x7,offset:_0x2c29x8*_0x2c29x7};_[_0xe10e[24]](_0x2c29x4[_0xe10e[9]],function(_0x2c29xa,_0x2c29xb){switch(_0x2c29xb){case _0xe10e[8]:;case _0xe10e[10]:break ;;case _0xe10e[13]:_0x2c29x9[_0xe10e[11]]=util[_0xe10e[16]](_0xe10e[12],_0x2c29x4[_0xe10e[9]][_0xe10e[13]],_0x2c29x4[_0xe10e[9]][_0xe10e[14]]||_0xe10e[15])||null;break ;;case _0xe10e[14]:break ;;case _0xe10e[22]:_0x2c29x9[_0xe10e[18]][_0xe10e[17]]=[];_0x2c29x6[_0xe10e[21]](function(_0x2c29xc){var _0x2c29xd={};_0x2c29xd[_0x2c29xc]={$like:_0xe10e[19]+_0x2c29xa+_0xe10e[19]};_0x2c29x9[_0xe10e[18]][_0xe10e[17]][_0xe10e[20]](_0x2c29xd);});break ;;default:_0x2c29x9[_0xe10e[18]][_0x2c29xb]={$like:{}};_0x2c29x9[_0xe10e[18]][_0x2c29xb][_0xe10e[23]]=_0xe10e[19]+_0x2c29xa+_0xe10e[19];;}});Variable[_0xe10e[39]](_0x2c29x9)[_0xe10e[38]](function(_0x2c29xf){var _0x2c29x10=Math[_0xe10e[30]](_0x2c29xf[_0xe10e[29]]/_0x2c29x7);var _0x2c29x11=_0x2c29x10>(_0x2c29x9[_0xe10e[31]]+1)?util[_0xe10e[16]](_0xe10e[32],_0x2c29x4[_0xe10e[33]],_0x2c29x4[_0xe10e[35]][_0xe10e[34]],_0x2c29x4[_0xe10e[36]],_0x2c29x8+1):null;var _0x2c29x12=_0x2c29x8>0?util[_0xe10e[16]](_0xe10e[32],_0x2c29x4[_0xe10e[33]],_0x2c29x4[_0xe10e[35]][_0xe10e[34]],_0x2c29x4[_0xe10e[36]],_0x2c29x8-1):null;_0x2c29x5[_0xe10e[27]](200)[_0xe10e[26]]({count:_0x2c29xf[_0xe10e[29]],rows:_0x2c29xf[_0xe10e[37]],next_page:_0x2c29x11,previous_page:_0x2c29x12,total_pages:_0x2c29x10});})[_0xe10e[28]](function(_0x2c29xe){_0x2c29x5[_0xe10e[27]](500)[_0xe10e[26]]({error:_0xe10e[25]})});};exports[_0xe10e[40]]=function(_0x2c29x4,_0x2c29x5){console[_0xe10e[42]](_0x2c29x4[_0xe10e[41]]);Variable[_0xe10e[44]]({where:{name:_0x2c29x4[_0xe10e[41]][_0xe10e[6]]}})[_0xe10e[38]](function(_0x2c29x13){if(!_0x2c29x13){return _0x2c29x5[_0xe10e[43]](404)};return _0x2c29x5[_0xe10e[26]](_0x2c29x13);})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)});};exports[_0xe10e[45]]=function(_0x2c29x4,_0x2c29x5){Variable[_0xe10e[48]](_0x2c29x4[_0xe10e[47]][_0xe10e[46]])[_0xe10e[38]](function(_0x2c29x14){if(!_0x2c29x14){return _0x2c29x5[_0xe10e[43]](404)};return _0x2c29x5[_0xe10e[26]](_0x2c29x14);})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)})};exports[_0xe10e[49]]=function(_0x2c29x4,_0x2c29x5){Variable[_0xe10e[49]](_0x2c29x4[_0xe10e[41]])[_0xe10e[38]](function(_0x2c29x14){return _0x2c29x5[_0xe10e[27]](201)[_0xe10e[26]](_0x2c29x14)})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)})};exports[_0xe10e[50]]=function(_0x2c29x4,_0x2c29x5){Variable[_0xe10e[44]]({where:{name:_0x2c29x4[_0xe10e[41]][_0xe10e[6]],id:{$ne:_0x2c29x4[_0xe10e[41]][_0xe10e[46]]}}})[_0xe10e[38]](function(_0x2c29x13){if(!_0x2c29x13){return _0x2c29x5[_0xe10e[43]](404)};if(_0x2c29x13[_0xe10e[51]]>0){return _0x2c29x5[_0xe10e[27]](500)[_0xe10e[26]]({message:_0xe10e[52]})};if(_0x2c29x4[_0xe10e[41]][_0xe10e[46]]){delete _0x2c29x4[_0xe10e[41]][_0xe10e[46]]};Variable[_0xe10e[55]]({where:{id:_0x2c29x4[_0xe10e[47]][_0xe10e[46]]}})[_0xe10e[38]](function(_0x2c29x14){if(!_0x2c29x14){return _0x2c29x5[_0xe10e[43]](404)};var _0x2c29x15=_[_0xe10e[53]](_0x2c29x14,_0x2c29x4[_0xe10e[41]]);_0x2c29x15[_0xe10e[54]]()[_0xe10e[38]](function(){return _0x2c29x5[_0xe10e[27]](200)[_0xe10e[26]](_0x2c29x14)})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)});})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)});})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)})};exports[_0xe10e[56]]=function(_0x2c29x4,_0x2c29x5){Variable[_0xe10e[48]](_0x2c29x4[_0xe10e[47]][_0xe10e[46]])[_0xe10e[38]](function(_0x2c29x14){if(!_0x2c29x14){return _0x2c29x5[_0xe10e[43]](404)};_0x2c29x14[_0xe10e[58]]()[_0xe10e[38]](function(_0x2c29x16){if(_0x2c29x16[_0xe10e[51]]>0){return _0x2c29x5[_0xe10e[27]](500)[_0xe10e[26]]({message:_0xe10e[57]})};_0x2c29x14[_0xe10e[56]]()[_0xe10e[38]](function(){return _0x2c29x5[_0xe10e[43]](204)})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)});})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)});})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)})};exports[_0xe10e[59]]=function(_0x2c29x4,_0x2c29x5){Variable[_0xe10e[56]]({where:{id:_0x2c29x4[_0xe10e[9]][_0xe10e[46]]},individualHooks:true})[_0xe10e[38]](function(){return _0x2c29x5[_0xe10e[43]](204)})[_0xe10e[28]](function(_0x2c29xe){return handleError(_0x2c29x5,_0x2c29xe)})};function handleError(_0x2c29x5,_0x2c29xe){return _0x2c29x5[_0xe10e[27]](500)[_0xe10e[26]](_0x2c29xe)}
\ No newline at end of file
+var _0x93f7=["\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"];_0x93f7[0];var _=require(_0x93f7[1]);var Variable=require(_0x93f7[3])[_0x93f7[2]];var util=require(_0x93f7[4]);exports[_0x93f7[5]]=function(_0x65c7x4,_0x65c7x5){var _0x65c7x6=[_0x93f7[6],_0x93f7[7]];var _0x65c7x7=_0x65c7x4[_0x93f7[9]][_0x93f7[8]]?parseInt(_0x65c7x4[_0x93f7[9]][_0x93f7[8]],10):100;var _0x65c7x8=_0x65c7x4[_0x93f7[9]][_0x93f7[10]]?parseInt(_0x65c7x4[_0x93f7[9]][_0x93f7[10]],10):0;var _0x65c7x9={where:{},limit:_0x65c7x7,offset:_0x65c7x8*_0x65c7x7};_[_0x93f7[24]](_0x65c7x4[_0x93f7[9]],function(_0x65c7xa,_0x65c7xb){switch(_0x65c7xb){case _0x93f7[8]:;case _0x93f7[10]:break ;;case _0x93f7[13]:_0x65c7x9[_0x93f7[11]]=util[_0x93f7[16]](_0x93f7[12],_0x65c7x4[_0x93f7[9]][_0x93f7[13]],_0x65c7x4[_0x93f7[9]][_0x93f7[14]]||_0x93f7[15])||null;break ;;case _0x93f7[14]:break ;;case _0x93f7[22]:_0x65c7x9[_0x93f7[18]][_0x93f7[17]]=[];_0x65c7x6[_0x93f7[21]](function(_0x65c7xc){var _0x65c7xd={};_0x65c7xd[_0x65c7xc]={$like:_0x93f7[19]+_0x65c7xa+_0x93f7[19]};_0x65c7x9[_0x93f7[18]][_0x93f7[17]][_0x93f7[20]](_0x65c7xd);});break ;;default:_0x65c7x9[_0x93f7[18]][_0x65c7xb]={$like:{}};_0x65c7x9[_0x93f7[18]][_0x65c7xb][_0x93f7[23]]=_0x93f7[19]+_0x65c7xa+_0x93f7[19];;}});Variable[_0x93f7[39]](_0x65c7x9)[_0x93f7[38]](function(_0x65c7xf){var _0x65c7x10=Math[_0x93f7[30]](_0x65c7xf[_0x93f7[29]]/_0x65c7x7);var _0x65c7x11=_0x65c7x10>(_0x65c7x9[_0x93f7[31]]+1)?util[_0x93f7[16]](_0x93f7[32],_0x65c7x4[_0x93f7[33]],_0x65c7x4[_0x93f7[35]][_0x93f7[34]],_0x65c7x4[_0x93f7[36]],_0x65c7x8+1):null;var _0x65c7x12=_0x65c7x8>0?util[_0x93f7[16]](_0x93f7[32],_0x65c7x4[_0x93f7[33]],_0x65c7x4[_0x93f7[35]][_0x93f7[34]],_0x65c7x4[_0x93f7[36]],_0x65c7x8-1):null;_0x65c7x5[_0x93f7[27]](200)[_0x93f7[26]]({count:_0x65c7xf[_0x93f7[29]],rows:_0x65c7xf[_0x93f7[37]],next_page:_0x65c7x11,previous_page:_0x65c7x12,total_pages:_0x65c7x10});})[_0x93f7[28]](function(_0x65c7xe){_0x65c7x5[_0x93f7[27]](500)[_0x93f7[26]]({error:_0x93f7[25]})});};exports[_0x93f7[40]]=function(_0x65c7x4,_0x65c7x5){console[_0x93f7[42]](_0x65c7x4[_0x93f7[41]]);Variable[_0x93f7[44]]({where:{name:_0x65c7x4[_0x93f7[41]][_0x93f7[6]]}})[_0x93f7[38]](function(_0x65c7x13){if(!_0x65c7x13){return _0x65c7x5[_0x93f7[43]](404)};return _0x65c7x5[_0x93f7[26]](_0x65c7x13);})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)});};exports[_0x93f7[45]]=function(_0x65c7x4,_0x65c7x5){Variable[_0x93f7[48]](_0x65c7x4[_0x93f7[47]][_0x93f7[46]])[_0x93f7[38]](function(_0x65c7x14){if(!_0x65c7x14){return _0x65c7x5[_0x93f7[43]](404)};return _0x65c7x5[_0x93f7[26]](_0x65c7x14);})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)})};exports[_0x93f7[49]]=function(_0x65c7x4,_0x65c7x5){Variable[_0x93f7[49]](_0x65c7x4[_0x93f7[41]])[_0x93f7[38]](function(_0x65c7x14){return _0x65c7x5[_0x93f7[27]](201)[_0x93f7[26]](_0x65c7x14)})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)})};exports[_0x93f7[50]]=function(_0x65c7x4,_0x65c7x5){Variable[_0x93f7[44]]({where:{name:_0x65c7x4[_0x93f7[41]][_0x93f7[6]],id:{$ne:_0x65c7x4[_0x93f7[41]][_0x93f7[46]]}}})[_0x93f7[38]](function(_0x65c7x13){if(!_0x65c7x13){return _0x65c7x5[_0x93f7[43]](404)};if(_0x65c7x13[_0x93f7[51]]>0){return _0x65c7x5[_0x93f7[27]](500)[_0x93f7[26]]({message:_0x93f7[52]})};if(_0x65c7x4[_0x93f7[41]][_0x93f7[46]]){delete _0x65c7x4[_0x93f7[41]][_0x93f7[46]]};Variable[_0x93f7[55]]({where:{id:_0x65c7x4[_0x93f7[47]][_0x93f7[46]]}})[_0x93f7[38]](function(_0x65c7x14){if(!_0x65c7x14){return _0x65c7x5[_0x93f7[43]](404)};var _0x65c7x15=_[_0x93f7[53]](_0x65c7x14,_0x65c7x4[_0x93f7[41]]);_0x65c7x15[_0x93f7[54]]()[_0x93f7[38]](function(){return _0x65c7x5[_0x93f7[27]](200)[_0x93f7[26]](_0x65c7x14)})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)});})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)});})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)})};exports[_0x93f7[56]]=function(_0x65c7x4,_0x65c7x5){Variable[_0x93f7[48]](_0x65c7x4[_0x93f7[47]][_0x93f7[46]])[_0x93f7[38]](function(_0x65c7x14){if(!_0x65c7x14){return _0x65c7x5[_0x93f7[43]](404)};_0x65c7x14[_0x93f7[58]]()[_0x93f7[38]](function(_0x65c7x16){if(_0x65c7x16[_0x93f7[51]]>0){return _0x65c7x5[_0x93f7[27]](500)[_0x93f7[26]]({message:_0x93f7[57]})};_0x65c7x14[_0x93f7[56]]()[_0x93f7[38]](function(){return _0x65c7x5[_0x93f7[43]](204)})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)});})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)});})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)})};exports[_0x93f7[59]]=function(_0x65c7x4,_0x65c7x5){Variable[_0x93f7[56]]({where:{id:_0x65c7x4[_0x93f7[9]][_0x93f7[46]]},individualHooks:true})[_0x93f7[38]](function(){return _0x65c7x5[_0x93f7[43]](204)})[_0x93f7[28]](function(_0x65c7xe){return handleError(_0x65c7x5,_0x65c7xe)})};function handleError(_0x65c7x5,_0x65c7xe){return _0x65c7x5[_0x93f7[27]](500)[_0x93f7[26]](_0x65c7xe)}
\ No newline at end of file
-var _0x2a43=["\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"];_0x2a43[0];var Variable=require(_0x2a43[2])[_0x2a43[1]];exports[_0x2a43[3]]=function(_0xa95bx2){Variable[_0x2a43[4]](function(_0xa95bx3){onSave(_0xa95bx2,_0xa95bx3)});Variable[_0x2a43[5]](function(_0xa95bx3){onRemove(_0xa95bx2,_0xa95bx3)});};function onSave(_0xa95bx2,_0xa95bx3,_0xa95bx5){_0xa95bx2[_0x2a43[7]](_0x2a43[6],_0xa95bx3)}function onRemove(_0xa95bx2,_0xa95bx3,_0xa95bx5){_0xa95bx2[_0x2a43[7]](_0x2a43[8],_0xa95bx3)}
\ No newline at end of file
+var _0xa0a2=["\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"];_0xa0a2[0];var Variable=require(_0xa0a2[2])[_0xa0a2[1]];exports[_0xa0a2[3]]=function(_0x71f8x2){Variable[_0xa0a2[4]](function(_0x71f8x3){onSave(_0x71f8x2,_0x71f8x3)});Variable[_0xa0a2[5]](function(_0x71f8x3){onRemove(_0x71f8x2,_0x71f8x3)});};function onSave(_0x71f8x2,_0x71f8x3,_0x71f8x5){_0x71f8x2[_0xa0a2[7]](_0xa0a2[6],_0x71f8x3)}function onRemove(_0x71f8x2,_0x71f8x3,_0x71f8x5){_0x71f8x2[_0xa0a2[7]](_0xa0a2[8],_0x71f8x3)}
\ No newline at end of file
-var _0xacdb=["\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"];_0xacdb[0];var should=require(_0xacdb[1]);var app=require(_0xacdb[2]);var request=require(_0xacdb[3]);describe(_0xacdb[4],function(){it(_0xacdb[5],function(_0xdd24x4){request(app)[_0xacdb[13]](_0xacdb[12])[_0xacdb[11]](200)[_0xacdb[11]](_0xacdb[10],/json/)[_0xacdb[9]](function(_0xdd24x5,_0xdd24x6){if(_0xdd24x5){return _0xdd24x4(_0xdd24x5)};_0xdd24x6[_0xacdb[8]][_0xacdb[1]][_0xacdb[7]][_0xacdb[6]](Array);_0xdd24x4();})})});
\ No newline at end of file
+var _0xb193=["\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"];_0xb193[0];var should=require(_0xb193[1]);var app=require(_0xb193[2]);var request=require(_0xb193[3]);describe(_0xb193[4],function(){it(_0xb193[5],function(_0x665ax4){request(app)[_0xb193[13]](_0xb193[12])[_0xb193[11]](200)[_0xb193[11]](_0xb193[10],/json/)[_0xb193[9]](function(_0x665ax5,_0x665ax6){if(_0x665ax5){return _0x665ax4(_0x665ax5)};_0x665ax6[_0xb193[8]][_0xb193[1]][_0xb193[7]][_0xb193[6]](Array);_0x665ax4();})})});
\ No newline at end of file
-var _0x6369=["\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"];_0x6369[0];var express=require(_0x6369[1]);var controller=require(_0x6369[2]);var auth=require(_0x6369[3]);var router=express.Router();router[_0x6369[7]](_0x6369[4],auth[_0x6369[5]](),controller[_0x6369[6]]);router[_0x6369[7]](_0x6369[8],auth[_0x6369[5]](),controller[_0x6369[9]]);router[_0x6369[11]](_0x6369[4],auth[_0x6369[5]](),controller[_0x6369[10]]);router[_0x6369[11]](_0x6369[12],auth[_0x6369[5]](),controller[_0x6369[13]]);router[_0x6369[15]](_0x6369[8],auth[_0x6369[5]](),controller[_0x6369[14]]);router[_0x6369[17]](_0x6369[4],auth[_0x6369[5]](),controller[_0x6369[16]]);router[_0x6369[17]](_0x6369[8],auth[_0x6369[5]](),controller[_0x6369[18]]);module[_0x6369[19]]=router;
\ No newline at end of file
+var _0x1acd=["\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"];_0x1acd[0];var express=require(_0x1acd[1]);var controller=require(_0x1acd[2]);var auth=require(_0x1acd[3]);var router=express.Router();router[_0x1acd[7]](_0x1acd[4],auth[_0x1acd[5]](),controller[_0x1acd[6]]);router[_0x1acd[7]](_0x1acd[8],auth[_0x1acd[5]](),controller[_0x1acd[9]]);router[_0x1acd[11]](_0x1acd[4],auth[_0x1acd[5]](),controller[_0x1acd[10]]);router[_0x1acd[11]](_0x1acd[12],auth[_0x1acd[5]](),controller[_0x1acd[13]]);router[_0x1acd[15]](_0x1acd[8],auth[_0x1acd[5]](),controller[_0x1acd[14]]);router[_0x1acd[17]](_0x1acd[4],auth[_0x1acd[5]](),controller[_0x1acd[16]]);router[_0x1acd[17]](_0x1acd[8],auth[_0x1acd[5]](),controller[_0x1acd[18]]);module[_0x1acd[19]]=router;
\ No newline at end of file
-var _0xe474=["\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"];_0xe474[0];var VoiceContext=require(_0xe474[2])[_0xe474[1]];var fs=require(_0xe474[3]);var util=require(_0xe474[4]);var path=require(_0xe474[5]);var config=require(_0xe474[6]);exports[_0xe474[7]]=function(_0x366fx6){VoiceContext[_0xe474[13]](function(_0x366fx7){if(_0x366fx7[_0xe474[9]](_0xe474[8])){throw new Error(_0xe474[10])};if(_0x366fx7[_0xe474[11]]){throw new Error(_0xe474[12])};});VoiceContext[_0xe474[15]](function(_0x366fx8){if(_0x366fx8[_0xe474[11]]){throw new Error(_0xe474[14])}});VoiceContext[_0xe474[16]](function(_0x366fx9){rewriteContexts(_0x366fx9,_0x366fx6,false)});VoiceContext[_0xe474[17]](function(_0x366fx9){rewriteContexts(_0x366fx9,_0x366fx6,true)});};function rewriteContexts(_0x366fx9,_0x366fx6,_0x366fxb){var _0x366fxc=_0xe474[18];if(!_0x366fxb){_0x366fxc=util[_0xe474[20]](_0xe474[19],_0x366fx9[_0xe474[8]])};VoiceContext[_0xe474[36]]({where:{id:{$ne:_0x366fx9[_0xe474[35]]}}})[_0xe474[34]](function(_0x366fxe){_0x366fxe[_0xe474[23]](function(_0x366fxf){_0x366fxc+=util[_0xe474[20]](_0xe474[19],_0x366fxf[_0xe474[8]])});fs[_0xe474[33]](path[_0xe474[26]](config[_0xe474[24]],_0xe474[25]),_0x366fxc,{flags:_0xe474[27],mode:parseInt(_0xe474[28],8)},function(_0x366fxd){if(_0x366fxd){throw _0x366fxd};console[_0xe474[21]](_0xe474[29]);_0x366fx6[_0xe474[32]]({Action:_0xe474[30]},function(_0x366fxd,_0x366fx10){if(_0x366fxd){console[_0xe474[31]](_0x366fxd)}else {console[_0xe474[21]](_0x366fx10)}});});})[_0xe474[22]](function(_0x366fxd){console[_0xe474[21]](_0x366fxd)});}
\ No newline at end of file
+var _0x3571=["\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"];_0x3571[0];var VoiceContext=require(_0x3571[2])[_0x3571[1]];var fs=require(_0x3571[3]);var util=require(_0x3571[4]);var path=require(_0x3571[5]);var config=require(_0x3571[6]);exports[_0x3571[7]]=function(_0xdd39x6){VoiceContext[_0x3571[13]](function(_0xdd39x7){if(_0xdd39x7[_0x3571[9]](_0x3571[8])){throw new Error(_0x3571[10])};if(_0xdd39x7[_0x3571[11]]){throw new Error(_0x3571[12])};});VoiceContext[_0x3571[15]](function(_0xdd39x8){if(_0xdd39x8[_0x3571[11]]){throw new Error(_0x3571[14])}});VoiceContext[_0x3571[16]](function(_0xdd39x9){rewriteContexts(_0xdd39x9,_0xdd39x6,false)});VoiceContext[_0x3571[17]](function(_0xdd39x9){rewriteContexts(_0xdd39x9,_0xdd39x6,true)});};function rewriteContexts(_0xdd39x9,_0xdd39x6,_0xdd39xb){var _0xdd39xc=_0x3571[18];if(!_0xdd39xb){_0xdd39xc=util[_0x3571[20]](_0x3571[19],_0xdd39x9[_0x3571[8]])};VoiceContext[_0x3571[36]]({where:{id:{$ne:_0xdd39x9[_0x3571[35]]}}})[_0x3571[34]](function(_0xdd39xe){_0xdd39xe[_0x3571[23]](function(_0xdd39xf){_0xdd39xc+=util[_0x3571[20]](_0x3571[19],_0xdd39xf[_0x3571[8]])});fs[_0x3571[33]](path[_0x3571[26]](config[_0x3571[24]],_0x3571[25]),_0xdd39xc,{flags:_0x3571[27],mode:parseInt(_0x3571[28],8)},function(_0xdd39xd){if(_0xdd39xd){throw _0xdd39xd};console[_0x3571[21]](_0x3571[29]);_0xdd39x6[_0x3571[32]]({Action:_0x3571[30]},function(_0xdd39xd,_0xdd39x10){if(_0xdd39xd){console[_0x3571[31]](_0xdd39xd)}else {console[_0x3571[21]](_0xdd39x10)}});});})[_0x3571[22]](function(_0xdd39xd){console[_0x3571[21]](_0xdd39xd)});}
\ No newline at end of file
-var _0xee3b=["\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"];_0xee3b[0];var _=require(_0xee3b[1]);var util=require(_0xee3b[2]);var sequelize=require(_0xee3b[4])[_0xee3b[3]];var VoiceContext=require(_0xee3b[4])[_0xee3b[5]];var VoiceExtension=require(_0xee3b[4])[_0xee3b[6]];exports[_0xee3b[7]]=function(_0x3585x6,_0x3585x7,_0x3585x8){var _0x3585x9=[_0xee3b[8],_0xee3b[9]];var _0x3585xa=_0x3585x6[_0xee3b[11]][_0xee3b[10]]?parseInt(_0x3585x6[_0xee3b[11]][_0xee3b[10]],10):100;var _0x3585xb=_0x3585x6[_0xee3b[11]][_0xee3b[12]]?parseInt(_0x3585x6[_0xee3b[11]][_0xee3b[12]],10):0;var _0x3585xc={where:{},limit:_0x3585xa,offset:_0x3585xb*_0x3585xa};_[_0xee3b[26]](_0x3585x6[_0xee3b[11]],function(_0x3585xd,_0x3585xe){switch(_0x3585xe){case _0xee3b[10]:;case _0xee3b[12]:break ;;case _0xee3b[15]:_0x3585xc[_0xee3b[13]]=util[_0xee3b[18]](_0xee3b[14],_0x3585x6[_0xee3b[11]][_0xee3b[15]],_0x3585x6[_0xee3b[11]][_0xee3b[16]]||_0xee3b[17])||null;break ;;case _0xee3b[16]:break ;;case _0xee3b[24]:_0x3585xc[_0xee3b[20]][_0xee3b[19]]=[];_0x3585x9[_0xee3b[23]](function(_0x3585xf){var _0x3585x10={};_0x3585x10[_0x3585xf]={$like:_0xee3b[21]+_0x3585xd+_0xee3b[21]};_0x3585xc[_0xee3b[20]][_0xee3b[19]][_0xee3b[22]](_0x3585x10);});break ;;default:_0x3585xc[_0xee3b[20]][_0x3585xe]={$like:{}};_0x3585xc[_0xee3b[20]][_0x3585xe][_0xee3b[25]]=_0xee3b[21]+_0x3585xd+_0xee3b[21];;}});VoiceContext[_0xee3b[41]](_0x3585xc)[_0xee3b[40]](function(_0x3585x12){var _0x3585x13=Math[_0xee3b[32]](_0x3585x12[_0xee3b[31]]/_0x3585xa);var _0x3585x14=_0x3585x13>(_0x3585xc[_0xee3b[33]]+1)?util[_0xee3b[18]](_0xee3b[34],_0x3585x6[_0xee3b[35]],_0x3585x6[_0xee3b[37]][_0xee3b[36]],_0x3585x6[_0xee3b[38]],_0x3585xb+1):null;var _0x3585x15=_0x3585xb>0?util[_0xee3b[18]](_0xee3b[34],_0x3585x6[_0xee3b[35]],_0x3585x6[_0xee3b[37]][_0xee3b[36]],_0x3585x6[_0xee3b[38]],_0x3585xb-1):null;_0x3585x7[_0xee3b[29]](200)[_0xee3b[28]]({count:_0x3585x12[_0xee3b[31]],rows:_0x3585x12[_0xee3b[39]],next_page:_0x3585x14,previous_page:_0x3585x15,total_pages:_0x3585x13});})[_0xee3b[30]](function(_0x3585x11){_0x3585x7[_0xee3b[29]](500)[_0xee3b[28]]({error:_0xee3b[27]})});};exports[_0xee3b[42]]=function(_0x3585x6,_0x3585x7){VoiceContext[_0xee3b[46]](_0x3585x6[_0xee3b[45]][_0xee3b[44]])[_0xee3b[40]](function(_0x3585x16){if(!_0x3585x16){return _0x3585x7[_0xee3b[43]](404)};return _0x3585x7[_0xee3b[28]](_0x3585x16);})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)})};exports[_0xee3b[47]]=function(_0x3585x6,_0x3585x7){console[_0xee3b[49]](_0x3585x6[_0xee3b[48]]);VoiceContext[_0xee3b[50]]({where:{name:_0x3585x6[_0xee3b[48]][_0xee3b[8]]}})[_0xee3b[40]](function(_0x3585x17){if(!_0x3585x17){return _0x3585x7[_0xee3b[43]](404)};return _0x3585x7[_0xee3b[28]](_0x3585x17);})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)});};exports[_0xee3b[51]]=function(_0x3585x6,_0x3585x7){VoiceContext[_0xee3b[50]]({where:{name:_0x3585x6[_0xee3b[48]][_0xee3b[8]]}})[_0xee3b[40]](function(_0x3585x18){console[_0xee3b[49]](_0x3585x18);console[_0xee3b[49]](_0xee3b[52]);if(!_0x3585x18){return _0x3585x7[_0xee3b[43]](404)};if(_0x3585x18[_0xee3b[53]]>0){return _0x3585x7[_0xee3b[29]](500)[_0xee3b[28]]({message:_0xee3b[54]})};VoiceContext[_0xee3b[51]](_0x3585x6[_0xee3b[48]])[_0xee3b[40]](function(_0x3585x16){return _0x3585x7[_0xee3b[29]](201)[_0xee3b[28]](_0x3585x16)})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)});})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)})};exports[_0xee3b[55]]=function(_0x3585x6,_0x3585x7){VoiceContext[_0xee3b[50]]({where:{name:_0x3585x6[_0xee3b[48]][_0xee3b[8]],id:{$ne:_0x3585x6[_0xee3b[48]][_0xee3b[44]]}}})[_0xee3b[40]](function(_0x3585x18){console[_0xee3b[49]](_0x3585x18);console[_0xee3b[49]](_0xee3b[52]);if(!_0x3585x18){return _0x3585x7[_0xee3b[43]](404)};if(_0x3585x18[_0xee3b[53]]>0){return _0x3585x7[_0xee3b[29]](500)[_0xee3b[28]]({message:_0xee3b[54]})};if(_0x3585x6[_0xee3b[48]][_0xee3b[44]]){delete _0x3585x6[_0xee3b[48]][_0xee3b[44]]};VoiceContext[_0xee3b[46]](_0x3585x6[_0xee3b[45]][_0xee3b[44]])[_0xee3b[40]](function(_0x3585x16){if(!_0x3585x16){return _0x3585x7[_0xee3b[43]](404)};var _0x3585x19=_[_0xee3b[56]](_0x3585x16,_0x3585x6[_0xee3b[48]]);_0x3585x19[_0xee3b[57]]()[_0xee3b[40]](function(){return _0x3585x7[_0xee3b[29]](200)[_0xee3b[28]](_0x3585x16)})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)});})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)});})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)})};exports[_0xee3b[58]]=function(_0x3585x6,_0x3585x7){VoiceContext[_0xee3b[46]](_0x3585x6[_0xee3b[45]][_0xee3b[44]])[_0xee3b[40]](function(_0x3585x16){if(!_0x3585x16){return _0x3585x7[_0xee3b[43]](404)};VoiceExtension[_0xee3b[50]]({where:{context:_0x3585x16[_0xee3b[8]]}})[_0xee3b[40]](function(_0x3585x1a){if(_0x3585x1a[_0xee3b[53]]>0){return _0x3585x7[_0xee3b[29]](500)[_0xee3b[28]]({message:_0xee3b[59]})};_0x3585x16[_0xee3b[58]]()[_0xee3b[40]](function(){return _0x3585x7[_0xee3b[43]](204)})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)});})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)});})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)})};exports[_0xee3b[60]]=function(_0x3585x6,_0x3585x7){VoiceContext[_0xee3b[50]]({where:{id:_0x3585x6[_0xee3b[11]][_0xee3b[44]]}})[_0xee3b[40]](function(_0x3585x17){if(!_0x3585x17){return _0x3585x7[_0xee3b[43]](404)};var _0x3585x1b=_[_0xee3b[62]](_[_0xee3b[62]](_0x3585x17,_0xee3b[61]),_0xee3b[8]);VoiceExtension[_0xee3b[50]]({where:{context:_0x3585x1b}})[_0xee3b[40]](function(_0x3585x1a){if(_0x3585x1a[_0xee3b[53]]>0){return _0x3585x7[_0xee3b[29]](500)[_0xee3b[28]]({message:_0xee3b[59]})};VoiceContext[_0xee3b[58]]({where:{id:_0x3585x6[_0xee3b[11]][_0xee3b[44]]},individualHooks:true})[_0xee3b[40]](function(){return _0x3585x7[_0xee3b[43]](204)})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)});})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)});})[_0xee3b[30]](function(_0x3585x11){return handleError(_0x3585x7,_0x3585x11)})};function handleError(_0x3585x7,_0x3585x11){return _0x3585x7[_0xee3b[29]](500)[_0xee3b[28]](_0x3585x11)}
\ No newline at end of file
+var _0x8041=["\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"];_0x8041[0];var _=require(_0x8041[1]);var util=require(_0x8041[2]);var sequelize=require(_0x8041[4])[_0x8041[3]];var VoiceContext=require(_0x8041[4])[_0x8041[5]];var VoiceExtension=require(_0x8041[4])[_0x8041[6]];exports[_0x8041[7]]=function(_0xd479x6,_0xd479x7,_0xd479x8){var _0xd479x9=[_0x8041[8],_0x8041[9]];var _0xd479xa=_0xd479x6[_0x8041[11]][_0x8041[10]]?parseInt(_0xd479x6[_0x8041[11]][_0x8041[10]],10):100;var _0xd479xb=_0xd479x6[_0x8041[11]][_0x8041[12]]?parseInt(_0xd479x6[_0x8041[11]][_0x8041[12]],10):0;var _0xd479xc={where:{},limit:_0xd479xa,offset:_0xd479xb*_0xd479xa};_[_0x8041[26]](_0xd479x6[_0x8041[11]],function(_0xd479xd,_0xd479xe){switch(_0xd479xe){case _0x8041[10]:;case _0x8041[12]:break ;;case _0x8041[15]:_0xd479xc[_0x8041[13]]=util[_0x8041[18]](_0x8041[14],_0xd479x6[_0x8041[11]][_0x8041[15]],_0xd479x6[_0x8041[11]][_0x8041[16]]||_0x8041[17])||null;break ;;case _0x8041[16]:break ;;case _0x8041[24]:_0xd479xc[_0x8041[20]][_0x8041[19]]=[];_0xd479x9[_0x8041[23]](function(_0xd479xf){var _0xd479x10={};_0xd479x10[_0xd479xf]={$like:_0x8041[21]+_0xd479xd+_0x8041[21]};_0xd479xc[_0x8041[20]][_0x8041[19]][_0x8041[22]](_0xd479x10);});break ;;default:_0xd479xc[_0x8041[20]][_0xd479xe]={$like:{}};_0xd479xc[_0x8041[20]][_0xd479xe][_0x8041[25]]=_0x8041[21]+_0xd479xd+_0x8041[21];;}});VoiceContext[_0x8041[41]](_0xd479xc)[_0x8041[40]](function(_0xd479x12){var _0xd479x13=Math[_0x8041[32]](_0xd479x12[_0x8041[31]]/_0xd479xa);var _0xd479x14=_0xd479x13>(_0xd479xc[_0x8041[33]]+1)?util[_0x8041[18]](_0x8041[34],_0xd479x6[_0x8041[35]],_0xd479x6[_0x8041[37]][_0x8041[36]],_0xd479x6[_0x8041[38]],_0xd479xb+1):null;var _0xd479x15=_0xd479xb>0?util[_0x8041[18]](_0x8041[34],_0xd479x6[_0x8041[35]],_0xd479x6[_0x8041[37]][_0x8041[36]],_0xd479x6[_0x8041[38]],_0xd479xb-1):null;_0xd479x7[_0x8041[29]](200)[_0x8041[28]]({count:_0xd479x12[_0x8041[31]],rows:_0xd479x12[_0x8041[39]],next_page:_0xd479x14,previous_page:_0xd479x15,total_pages:_0xd479x13});})[_0x8041[30]](function(_0xd479x11){_0xd479x7[_0x8041[29]](500)[_0x8041[28]]({error:_0x8041[27]})});};exports[_0x8041[42]]=function(_0xd479x6,_0xd479x7){VoiceContext[_0x8041[46]](_0xd479x6[_0x8041[45]][_0x8041[44]])[_0x8041[40]](function(_0xd479x16){if(!_0xd479x16){return _0xd479x7[_0x8041[43]](404)};return _0xd479x7[_0x8041[28]](_0xd479x16);})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)})};exports[_0x8041[47]]=function(_0xd479x6,_0xd479x7){console[_0x8041[49]](_0xd479x6[_0x8041[48]]);VoiceContext[_0x8041[50]]({where:{name:_0xd479x6[_0x8041[48]][_0x8041[8]]}})[_0x8041[40]](function(_0xd479x17){if(!_0xd479x17){return _0xd479x7[_0x8041[43]](404)};return _0xd479x7[_0x8041[28]](_0xd479x17);})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)});};exports[_0x8041[51]]=function(_0xd479x6,_0xd479x7){VoiceContext[_0x8041[50]]({where:{name:_0xd479x6[_0x8041[48]][_0x8041[8]]}})[_0x8041[40]](function(_0xd479x18){console[_0x8041[49]](_0xd479x18);console[_0x8041[49]](_0x8041[52]);if(!_0xd479x18){return _0xd479x7[_0x8041[43]](404)};if(_0xd479x18[_0x8041[53]]>0){return _0xd479x7[_0x8041[29]](500)[_0x8041[28]]({message:_0x8041[54]})};VoiceContext[_0x8041[51]](_0xd479x6[_0x8041[48]])[_0x8041[40]](function(_0xd479x16){return _0xd479x7[_0x8041[29]](201)[_0x8041[28]](_0xd479x16)})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)});})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)})};exports[_0x8041[55]]=function(_0xd479x6,_0xd479x7){VoiceContext[_0x8041[50]]({where:{name:_0xd479x6[_0x8041[48]][_0x8041[8]],id:{$ne:_0xd479x6[_0x8041[48]][_0x8041[44]]}}})[_0x8041[40]](function(_0xd479x18){console[_0x8041[49]](_0xd479x18);console[_0x8041[49]](_0x8041[52]);if(!_0xd479x18){return _0xd479x7[_0x8041[43]](404)};if(_0xd479x18[_0x8041[53]]>0){return _0xd479x7[_0x8041[29]](500)[_0x8041[28]]({message:_0x8041[54]})};if(_0xd479x6[_0x8041[48]][_0x8041[44]]){delete _0xd479x6[_0x8041[48]][_0x8041[44]]};VoiceContext[_0x8041[46]](_0xd479x6[_0x8041[45]][_0x8041[44]])[_0x8041[40]](function(_0xd479x16){if(!_0xd479x16){return _0xd479x7[_0x8041[43]](404)};var _0xd479x19=_[_0x8041[56]](_0xd479x16,_0xd479x6[_0x8041[48]]);_0xd479x19[_0x8041[57]]()[_0x8041[40]](function(){return _0xd479x7[_0x8041[29]](200)[_0x8041[28]](_0xd479x16)})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)});})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)});})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)})};exports[_0x8041[58]]=function(_0xd479x6,_0xd479x7){VoiceContext[_0x8041[46]](_0xd479x6[_0x8041[45]][_0x8041[44]])[_0x8041[40]](function(_0xd479x16){if(!_0xd479x16){return _0xd479x7[_0x8041[43]](404)};VoiceExtension[_0x8041[50]]({where:{context:_0xd479x16[_0x8041[8]]}})[_0x8041[40]](function(_0xd479x1a){if(_0xd479x1a[_0x8041[53]]>0){return _0xd479x7[_0x8041[29]](500)[_0x8041[28]]({message:_0x8041[59]})};_0xd479x16[_0x8041[58]]()[_0x8041[40]](function(){return _0xd479x7[_0x8041[43]](204)})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)});})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)});})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)})};exports[_0x8041[60]]=function(_0xd479x6,_0xd479x7){VoiceContext[_0x8041[50]]({where:{id:_0xd479x6[_0x8041[11]][_0x8041[44]]}})[_0x8041[40]](function(_0xd479x17){if(!_0xd479x17){return _0xd479x7[_0x8041[43]](404)};var _0xd479x1b=_[_0x8041[62]](_[_0x8041[62]](_0xd479x17,_0x8041[61]),_0x8041[8]);VoiceExtension[_0x8041[50]]({where:{context:_0xd479x1b}})[_0x8041[40]](function(_0xd479x1a){if(_0xd479x1a[_0x8041[53]]>0){return _0xd479x7[_0x8041[29]](500)[_0x8041[28]]({message:_0x8041[59]})};VoiceContext[_0x8041[58]]({where:{id:_0xd479x6[_0x8041[11]][_0x8041[44]]},individualHooks:true})[_0x8041[40]](function(){return _0xd479x7[_0x8041[43]](204)})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)});})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)});})[_0x8041[30]](function(_0xd479x11){return handleError(_0xd479x7,_0xd479x11)})};function handleError(_0xd479x7,_0xd479x11){return _0xd479x7[_0x8041[29]](500)[_0x8041[28]](_0xd479x11)}
\ No newline at end of file
-var _0x8b5e=["\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"];_0x8b5e[0];var VoiceContext=require(_0x8b5e[2])[_0x8b5e[1]];exports[_0x8b5e[3]]=function(_0xf086x2){VoiceContext[_0x8b5e[4]](function(_0xf086x3){onSave(_0xf086x2,_0xf086x3)});VoiceContext[_0x8b5e[5]](function(_0xf086x3){onRemove(_0xf086x2,_0xf086x3)});};function onSave(_0xf086x2,_0xf086x3,_0xf086x5){_0xf086x2[_0x8b5e[7]](_0x8b5e[6],_0xf086x3)}function onRemove(_0xf086x2,_0xf086x3,_0xf086x5){_0xf086x2[_0x8b5e[7]](_0x8b5e[8],_0xf086x3)}
\ No newline at end of file
+var _0xb0ec=["\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"];_0xb0ec[0];var VoiceContext=require(_0xb0ec[2])[_0xb0ec[1]];exports[_0xb0ec[3]]=function(_0x12d0x2){VoiceContext[_0xb0ec[4]](function(_0x12d0x3){onSave(_0x12d0x2,_0x12d0x3)});VoiceContext[_0xb0ec[5]](function(_0x12d0x3){onRemove(_0x12d0x2,_0x12d0x3)});};function onSave(_0x12d0x2,_0x12d0x3,_0x12d0x5){_0x12d0x2[_0xb0ec[7]](_0xb0ec[6],_0x12d0x3)}function onRemove(_0x12d0x2,_0x12d0x3,_0x12d0x5){_0x12d0x2[_0xb0ec[7]](_0xb0ec[8],_0x12d0x3)}
\ No newline at end of file
-var _0x4c91=["\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"];_0x4c91[0];var should=require(_0x4c91[1]);var app=require(_0x4c91[2]);var request=require(_0x4c91[3]);describe(_0x4c91[4],function(){it(_0x4c91[5],function(_0x9e09x4){request(app)[_0x4c91[13]](_0x4c91[12])[_0x4c91[11]](200)[_0x4c91[11]](_0x4c91[10],/json/)[_0x4c91[9]](function(_0x9e09x5,_0x9e09x6){if(_0x9e09x5){return _0x9e09x4(_0x9e09x5)};_0x9e09x6[_0x4c91[8]][_0x4c91[1]][_0x4c91[7]][_0x4c91[6]](Array);_0x9e09x4();})})});
\ No newline at end of file
+var _0x11f8=["\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"];_0x11f8[0];var should=require(_0x11f8[1]);var app=require(_0x11f8[2]);var request=require(_0x11f8[3]);describe(_0x11f8[4],function(){it(_0x11f8[5],function(_0x4b14x4){request(app)[_0x11f8[13]](_0x11f8[12])[_0x11f8[11]](200)[_0x11f8[11]](_0x11f8[10],/json/)[_0x11f8[9]](function(_0x4b14x5,_0x4b14x6){if(_0x4b14x5){return _0x4b14x4(_0x4b14x5)};_0x4b14x6[_0x11f8[8]][_0x11f8[1]][_0x11f8[7]][_0x11f8[6]](Array);_0x4b14x4();})})});
\ No newline at end of file
-var _0xb12e=["\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"];_0xb12e[0];var express=require(_0xb12e[1]);var controller=require(_0xb12e[2]);var auth=require(_0xb12e[3]);var router=express.Router();router[_0xb12e[7]](_0xb12e[4],auth[_0xb12e[5]](),controller[_0xb12e[6]]);router[_0xb12e[7]](_0xb12e[8],auth[_0xb12e[5]](),controller[_0xb12e[9]]);router[_0xb12e[7]](_0xb12e[10],auth[_0xb12e[5]](),controller[_0xb12e[11]]);router[_0xb12e[7]](_0xb12e[12],auth[_0xb12e[5]](),controller[_0xb12e[11]]);router[_0xb12e[7]](_0xb12e[13],auth[_0xb12e[5]](),controller[_0xb12e[14]]);router[_0xb12e[17]](_0xb12e[15],auth[_0xb12e[5]](),controller[_0xb12e[16]]);router[_0xb12e[17]](_0xb12e[13],auth[_0xb12e[5]](),controller[_0xb12e[18]]);router[_0xb12e[17]](_0xb12e[4],auth[_0xb12e[5]](),controller[_0xb12e[19]]);router[_0xb12e[21]](_0xb12e[12],auth[_0xb12e[5]](),controller[_0xb12e[20]]);router[_0xb12e[21]](_0xb12e[10],auth[_0xb12e[5]](),controller[_0xb12e[22]]);router[_0xb12e[24]](_0xb12e[4],auth[_0xb12e[5]](),controller[_0xb12e[23]]);router[_0xb12e[24]](_0xb12e[12],auth[_0xb12e[5]](),controller[_0xb12e[25]]);module[_0xb12e[26]]=router;
\ No newline at end of file
+var _0x4bd1=["\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"];_0x4bd1[0];var express=require(_0x4bd1[1]);var controller=require(_0x4bd1[2]);var auth=require(_0x4bd1[3]);var router=express.Router();router[_0x4bd1[7]](_0x4bd1[4],auth[_0x4bd1[5]](),controller[_0x4bd1[6]]);router[_0x4bd1[7]](_0x4bd1[8],auth[_0x4bd1[5]](),controller[_0x4bd1[9]]);router[_0x4bd1[7]](_0x4bd1[10],auth[_0x4bd1[5]](),controller[_0x4bd1[11]]);router[_0x4bd1[7]](_0x4bd1[12],auth[_0x4bd1[5]](),controller[_0x4bd1[11]]);router[_0x4bd1[7]](_0x4bd1[13],auth[_0x4bd1[5]](),controller[_0x4bd1[14]]);router[_0x4bd1[17]](_0x4bd1[15],auth[_0x4bd1[5]](),controller[_0x4bd1[16]]);router[_0x4bd1[17]](_0x4bd1[13],auth[_0x4bd1[5]](),controller[_0x4bd1[18]]);router[_0x4bd1[17]](_0x4bd1[4],auth[_0x4bd1[5]](),controller[_0x4bd1[19]]);router[_0x4bd1[21]](_0x4bd1[12],auth[_0x4bd1[5]](),controller[_0x4bd1[20]]);router[_0x4bd1[21]](_0x4bd1[10],auth[_0x4bd1[5]](),controller[_0x4bd1[22]]);router[_0x4bd1[24]](_0x4bd1[4],auth[_0x4bd1[5]](),controller[_0x4bd1[23]]);router[_0x4bd1[24]](_0x4bd1[12],auth[_0x4bd1[5]](),controller[_0x4bd1[25]]);module[_0x4bd1[26]]=router;
\ No newline at end of file
-var _0x663d=["\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"];_0x663d[0];var _=require(_0x663d[1]);var VoiceExtension=require(_0x663d[3])[_0x663d[2]];var Interval=require(_0x663d[3])[_0x663d[4]];var sequelize=require(_0x663d[3])[_0x663d[5]];var Sequelize=require(_0x663d[3])[_0x663d[6]];var util=require(_0x663d[7]);var async=require(_0x663d[8]);var Applications={Dial:[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[11],appdata:_0x663d[12]},{app:_0x663d[13],appdata:_0x663d[14],isApp:true},{app:_0x663d[15],appdata:_0x663d[16]}],Queue:[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[17],appdata:_0x663d[18]},{app:_0x663d[19],appdata:_0x663d[20],isApp:true},{app:_0x663d[15],appdata:_0x663d[21]}],Playback:[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[22],appdata:_0x663d[23],isApp:true},{app:_0x663d[15],appdata:_0x663d[24]}],AGI:[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[25],appdata:_0x663d[26],isApp:true},{app:_0x663d[15],appdata:_0x663d[27]}],Goto:[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[28],appdata:_0x663d[29],isApp:true},{app:_0x663d[15],appdata:_0x663d[30]}],Hangup:[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[31],appdata:_0x663d[32],isApp:true},{app:_0x663d[15],appdata:_0x663d[33]}],Set:[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[11],appdata:_0x663d[34],isApp:true},{app:_0x663d[15],appdata:_0x663d[35]}],custom:[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[36],appdata:_0x663d[32],isApp:true},{app:_0x663d[15],appdata:_0x663d[37]}],Voicemail:[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[38],appdata:_0x663d[32],isApp:true},{app:_0x663d[15],appdata:_0x663d[39]}]};exports[_0x663d[40]]=function(_0xaccdx9,_0xaccdxa){VoiceExtension[_0x663d[45]]()[_0x663d[44]](function(_0xaccdxc){return _0xaccdxa[_0x663d[43]](200)[_0x663d[42]](_0xaccdxc)})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)})};exports[_0x663d[46]]=function(_0xaccdx9,_0xaccdxa,_0xaccdxd){var _0xaccdxe=[_0x663d[47],_0x663d[48],_0x663d[49],_0x663d[50]];var _0xaccdxf=_0xaccdx9[_0x663d[52]][_0x663d[51]]?parseInt(_0xaccdx9[_0x663d[52]][_0x663d[51]],10):100;var _0xaccdx10=_0xaccdx9[_0x663d[52]][_0x663d[53]]?parseInt(_0xaccdx9[_0x663d[52]][_0x663d[53]],10):0;var _0xaccdx11={where:{type:_0xaccdx9[_0x663d[55]][_0x663d[54]],VoiceExtensionId:null,app:_0x663d[15]},limit:_0xaccdxf,offset:_0xaccdx10*_0xaccdxf};_[_0x663d[69]](_0xaccdx9[_0x663d[52]],function(_0xaccdx12,_0xaccdx13){switch(_0xaccdx13){case _0x663d[51]:;case _0x663d[53]:break ;;case _0x663d[58]:_0xaccdx11[_0x663d[56]]=util[_0x663d[61]](_0x663d[57],_0xaccdx9[_0x663d[52]][_0x663d[58]],_0xaccdx9[_0x663d[52]][_0x663d[59]]||_0x663d[60])||null;break ;;case _0x663d[59]:break ;;case _0x663d[67]:_0xaccdx11[_0x663d[63]][_0x663d[62]]=[];_0xaccdxe[_0x663d[66]](function(_0xaccdx14){var _0xaccdx15={};_0xaccdx15[_0xaccdx14]={$like:_0x663d[64]+_0xaccdx12+_0x663d[64]};_0xaccdx11[_0x663d[63]][_0x663d[62]][_0x663d[65]](_0xaccdx15);});break ;;default:_0xaccdx11[_0x663d[63]][_0xaccdx13]={$like:{}};_0xaccdx11[_0x663d[63]][_0xaccdx13][_0x663d[68]]=_0x663d[64]+_0xaccdx12+_0x663d[64];;}});VoiceExtension[_0x663d[80]](_0xaccdx11)[_0x663d[44]](function(_0xaccdx16){var _0xaccdx17=Math[_0x663d[72]](_0xaccdx16[_0x663d[71]]/_0xaccdxf);var _0xaccdx18=_0xaccdx17>(_0xaccdx11[_0x663d[73]]+1)?util[_0x663d[61]](_0x663d[74],_0xaccdx9[_0x663d[75]],_0xaccdx9[_0x663d[77]][_0x663d[76]],_0xaccdx9[_0x663d[78]],_0xaccdx10+1):null;var _0xaccdx19=_0xaccdx10>0?util[_0x663d[61]](_0x663d[74],_0xaccdx9[_0x663d[75]],_0xaccdx9[_0x663d[77]][_0x663d[76]],_0xaccdx9[_0x663d[78]],_0xaccdx10-1):null;_0xaccdxa[_0x663d[43]](200)[_0x663d[42]]({count:_0xaccdx16[_0x663d[71]],rows:_0xaccdx16[_0x663d[79]],next_page:_0xaccdx18,previous_page:_0xaccdx19,total_pages:_0xaccdx17});})[_0x663d[41]](function(_0xaccdxb){_0xaccdxa[_0x663d[43]](500)[_0x663d[42]]({error:_0x663d[70]})});};exports[_0x663d[81]]=function(_0xaccdx9,_0xaccdxa){VoiceExtension[_0x663d[45]]({where:{VoiceExtensionId:_0xaccdx9[_0x663d[55]][_0x663d[82]],isApp:true}})[_0x663d[44]](function(_0xaccdxc){return _0xaccdxa[_0x663d[43]](200)[_0x663d[42]](_0xaccdxc)})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)})};exports[_0x663d[83]]=function(_0xaccdx9,_0xaccdxa){VoiceExtension[_0x663d[85]](_0xaccdx9[_0x663d[55]][_0x663d[82]])[_0x663d[44]](function(_0xaccdx1a){if(!_0xaccdx1a){return _0xaccdxa[_0x663d[84]](404)};return _0xaccdxa[_0x663d[42]](_0xaccdx1a);})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)})};exports[_0x663d[86]]=function(_0xaccdx9,_0xaccdxa){VoiceExtension[_0x663d[45]]({where:{exten:_0xaccdx9[_0x663d[87]][_0x663d[48]],context:_0xaccdx9[_0x663d[87]][_0x663d[47]],type:_0xaccdx9[_0x663d[87]][_0x663d[88]]}})[_0x663d[44]](function(_0xaccdx1a){if(!_0xaccdx1a){return _0xaccdxa[_0x663d[84]](404)};return _0xaccdxa[_0x663d[42]](_0xaccdx1a);})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)})};exports[_0x663d[89]]=function(_0xaccdx9,_0xaccdxa,_0xaccdxd){VoiceExtension[_0x663d[45]]({where:{appGroup:_0xaccdx9[_0x663d[87]][_0x663d[107]]}})[_0x663d[44]](function(_0xaccdx1b){return sequelize[_0x663d[109]](function(_0xaccdx1c){return VoiceExtension[_0x663d[108]]({where:{appGroup:_0xaccdx9[_0x663d[87]][_0x663d[107]]}},{transaction:_0xaccdx1c})[_0x663d[44]](function(){var _0xaccdx1d=2;_0xaccdx9[_0x663d[87]][_0x663d[107]][_0x663d[66]](function(_0xaccdx1e){var _0xaccdx1f=_[_0x663d[92]](_0xaccdx1b,function(_0xaccdx20){return (_0xaccdx20[_0x663d[90]]==_0xaccdx1e&&_0xaccdx20[_0x663d[91]]===true)});var _0xaccdx21=_[_0x663d[93]](Applications[_0xaccdx1f[_0x663d[49]]]);if(!_0xaccdx21||_0xaccdx1f[_0x663d[94]]){_0xaccdx21=[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[36],appdata:_0x663d[32],isApp:true},{app:_0x663d[15],appdata:_0x663d[37]}]};var _0xaccdx22=util[_0x663d[61]](_0x663d[95],_0xaccdx1f[_0x663d[47]],_0xaccdx1f[_0x663d[48]],_0xaccdx1d);_0xaccdx1f[_0x663d[96]]=_0xaccdx1f[_0x663d[96]]||_0x663d[97];var _0xaccdx23=_[_0x663d[99]](_0xaccdx1b,function(_0xaccdx20){return (_0xaccdx20[_0x663d[90]]==_0xaccdx1e&&_0xaccdx20[_0x663d[98]]===true)});if(_0xaccdx23&&_0xaccdx23[_0x663d[100]]>0){_0xaccdx21[_0x663d[101]](0,1);_0xaccdx23[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx21[_0x663d[105]]({app:_0x663d[102],appdata:_0xaccdx20[_0x663d[96]]+_0x663d[103],IntervalId:_0xaccdx20[_0x663d[104]]?_0xaccdx20[_0x663d[104]]:null,isInterval:true,interval:_0xaccdx20[_0x663d[96]]})});};_0xaccdx1d=appCreate(_0xaccdx21,_0xaccdx1f,_0xaccdx22,_0xaccdx23||[],_0xaccdx1d);return VoiceExtension[_0x663d[106]](_0xaccdx21,{transaction:_0xaccdx1c});});})})[_0x663d[44]](function(){return _0xaccdxa[_0x663d[84]](201)})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)})})[_0x663d[41]](function(_0xaccdxb){return _0xaccdxd(_0xaccdxb)})};exports[_0x663d[110]]=function(_0xaccdx9,_0xaccdxa,_0xaccdxd){var _0xaccdx21;var _0xaccdx22;var _0xaccdx25;VoiceExtension[_0x663d[117]](_0x663d[112],{where:{VoiceExtensionId:_0xaccdx9[_0x663d[87]][_0x663d[111]]}})[_0x663d[44]](function(_0xaccdx26){if(_0xaccdx9[_0x663d[87]][_0x663d[111]]){_0xaccdx9[_0x663d[87]][_0x663d[112]]=_0xaccdx26?++_0xaccdx26:2;_0xaccdx21=_[_0x663d[93]](Applications[_0xaccdx9[_0x663d[87]][_0x663d[49]]]);if(!_0xaccdx21||_0xaccdx9[_0x663d[87]][_0x663d[94]]){_0xaccdx21=[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[36],appdata:_0x663d[32],isApp:true},{app:_0x663d[15],appdata:_0x663d[37]}]};_0xaccdx22=util[_0x663d[61]](_0x663d[95],_0xaccdx9[_0x663d[87]][_0x663d[47]],_0xaccdx9[_0x663d[87]][_0x663d[48]],_0xaccdx9[_0x663d[87]][_0x663d[112]]);_0xaccdx9[_0x663d[87]][_0x663d[96]]=_0xaccdx9[_0x663d[87]][_0x663d[96]]||_0x663d[97];Interval[_0x663d[45]]({where:{IntervalId:(_0xaccdx9[_0x663d[87]][_0x663d[104]]!==null)?_0xaccdx9[_0x663d[87]][_0x663d[104]]:0}})[_0x663d[44]](function(_0xaccdx27){var _0xaccdx28=[];var _0xaccdx29;if(_0xaccdx27&&_0xaccdx27[_0x663d[100]]>0){_0xaccdx21[_0x663d[101]](0,1);_0xaccdx28=_[_0x663d[114]](_0xaccdx27,_0x663d[113]);_0xaccdx28[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx21[_0x663d[105]]({app:_0x663d[102],appdata:_0xaccdx20[_0x663d[96]]+_0x663d[103],IntervalId:_0xaccdx20[_0x663d[82]],interval:_0xaccdx29,isInterval:true})});};appCreate(_0xaccdx21,_0xaccdx9[_0x663d[87]],_0xaccdx22,_0xaccdx28);VoiceExtension[_0x663d[106]](_0xaccdx21)[_0x663d[44]](function(_0xaccdx2a){return _0xaccdxa[_0x663d[43]](201)[_0x663d[42]](_0xaccdx2a)});});}else {VoiceExtension[_0x663d[45]]({where:{exten:_0xaccdx9[_0x663d[87]][_0x663d[48]],context:_0xaccdx9[_0x663d[87]][_0x663d[47]],type:_0xaccdx9[_0x663d[87]][_0x663d[88]]}})[_0x663d[44]](function(_0xaccdx2b){if(!_0xaccdx2b){return _0xaccdxa[_0x663d[84]](404)};if(_0xaccdx2b[_0x663d[100]]>0){return _0xaccdxa[_0x663d[43]](500)[_0x663d[42]]({message:_0x663d[116]})};_0xaccdx9[_0x663d[87]][_0x663d[112]]=1;VoiceExtension[_0x663d[110]](_0xaccdx9[_0x663d[87]])[_0x663d[44]](function(_0xaccdx2a){return _0xaccdxa[_0x663d[43]](201)[_0x663d[42]](_0xaccdx2a)})[_0x663d[41]](function(_0xaccdxb){return _0xaccdxa[_0x663d[115]](_0xaccdxb)});})[_0x663d[41]](function(_0xaccdxb){return _0xaccdxa[_0x663d[115]](_0xaccdxb)})}})[_0x663d[41]](function(_0xaccdxb){_0xaccdxd(_0xaccdxb)});};function appCreate(_0xaccdx21,_0xaccdx2d,_0xaccdx22,_0xaccdx28,_0xaccdx1d){var _0xaccdx2e=_0xaccdx28[_0x663d[100]];if(_0xaccdx2d[_0x663d[94]]){_0xaccdx2d[_0x663d[49]]=_0x663d[36]};switch(_0xaccdx2d[_0x663d[49]]){case _0x663d[13]:if(!_0xaccdx2d[_0x663d[118]]){_[_0x663d[119]](_0xaccdx21,{app:_0x663d[11]})};_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[13]:if(_0xaccdx2d[_0x663d[88]]===_0x663d[120]){_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[121]]=_0xaccdx2d[_0x663d[121]];_0xaccdx20[_0x663d[122]]=_0xaccdx2d[_0x663d[122]];_0xaccdx20[_0x663d[123]]=_0xaccdx2d[_0x663d[123]]||0;_0xaccdx20[_0x663d[118]]=_0xaccdx2d[_0x663d[118]]||null;}else {_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[124]]=_0xaccdx2d[_0x663d[124]];_0xaccdx20[_0x663d[125]]=_0xaccdx2d[_0x663d[125]]||_0x663d[18];_0xaccdx20[_0x663d[126]]=_0xaccdx2d[_0x663d[126]]||_0x663d[18];_0xaccdx20[_0x663d[127]]=_0xaccdx2d[_0x663d[127]]||_0x663d[18];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[124]],_0xaccdx20[_0x663d[126]],_0xaccdx20[_0x663d[125]]?_0xaccdx20[_0x663d[125]][_0x663d[129]](_0x663d[128],_0x663d[18]):_0x663d[18],_0xaccdx20[_0x663d[127]]);};break ;;case _0x663d[11]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[118]]);break ;;case _0x663d[15]:if(_0xaccdx2d[_0x663d[88]]===_0x663d[120]){_0xaccdx20[_0x663d[50]]=_0x663d[130]};break ;;default:;};});break ;;case _0x663d[19]:_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[19]:_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[125]]=_0xaccdx2d[_0x663d[125]]||_0x663d[18];_0xaccdx20[_0x663d[131]]=_0xaccdx2d[_0x663d[131]]||_0x663d[18];_0xaccdx20[_0x663d[132]]=_0xaccdx2d[_0x663d[132]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[124]]=_0xaccdx2d[_0x663d[124]];_0xaccdx20[_0x663d[125]]=_0xaccdx2d[_0x663d[125]];_0xaccdx20[_0x663d[126]]=_0xaccdx2d[_0x663d[126]]||_0x663d[18];_0xaccdx20[_0x663d[127]]=_0xaccdx2d[_0x663d[127]]||_0x663d[18];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[132]],_0xaccdx20[_0x663d[125]]?_0xaccdx20[_0x663d[125]][_0x663d[129]](_0x663d[128],_0x663d[18]):_0x663d[18],_0xaccdx20[_0x663d[127]],_0xaccdx20[_0x663d[131]],_0xaccdx20[_0x663d[126]]);break ;;default:;};});break ;;case _0x663d[22]:_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[22]:_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[131]]=_0xaccdx2d[_0x663d[131]]||_0x663d[18];_0xaccdx20[_0x663d[125]]=_0xaccdx2d[_0x663d[125]]||_0x663d[18];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[131]],_0xaccdx20[_0x663d[125]]?_0xaccdx20[_0x663d[125]][_0x663d[129]](_0x663d[128],_0x663d[18]):_0x663d[18]);break ;;default:;};});break ;;case _0x663d[25]:_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[25]:_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[133]]=_0xaccdx2d[_0x663d[133]];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[133]]);break ;;default:;};});break ;;case _0x663d[28]:_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[28]:_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[134]]=_0xaccdx2d[_0x663d[134]];_0xaccdx20[_0x663d[135]]=_0xaccdx2d[_0x663d[135]];_0xaccdx20[_0x663d[136]]=_0xaccdx2d[_0x663d[136]];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[136]],_0xaccdx20[_0x663d[135]],_0xaccdx20[_0x663d[134]]);break ;;default:;};});break ;;case _0x663d[31]:_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[31]:_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[137]]=_0xaccdx2d[_0x663d[137]];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[137]]);break ;;default:;};});break ;;case _0x663d[11]:_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[11]:_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[138]]=_0xaccdx2d[_0x663d[138]];_0xaccdx20[_0x663d[139]]=_0xaccdx2d[_0x663d[139]];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[138]],_0xaccdx20[_0x663d[139]]);break ;;default:;};});break ;;case _0x663d[36]:_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[36]:_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[49]]=_0xaccdx20[_0x663d[94]]=_0xaccdx2d[_0x663d[94]];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[50]]);break ;;default:;};});break ;;case _0x663d[38]:_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[38]:_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[140]]=_0xaccdx2d[_0x663d[140]];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[140]]);break ;;default:;};});break ;;default:_0xaccdx21[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx20[_0x663d[48]]=_0xaccdx2d[_0x663d[48]];_0xaccdx20[_0x663d[88]]=_0xaccdx2d[_0x663d[88]];_0xaccdx20[_0x663d[47]]=_0xaccdx2d[_0x663d[47]];_0xaccdx20[_0x663d[111]]=_0xaccdx2d[_0x663d[111]];_0xaccdx20[_0x663d[112]]=_0xaccdx1d?_0xaccdx1d++:_0xaccdx2d[_0x663d[112]]++;_0xaccdx20[_0x663d[90]]=_0xaccdx22;switch(_0xaccdx20[_0x663d[49]]){case _0x663d[9]:_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[104]]?_0x663d[97]:_0xaccdx2d[_0x663d[96]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+1,_0xaccdx20[_0x663d[47]],(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[102]:_0xaccdx20[_0x663d[49]]=_0x663d[9];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx20[_0x663d[47]],_0xaccdx20[_0x663d[112]]+_0xaccdx2e-_0xaccdx24,_0xaccdx20[_0x663d[47]],(_0xaccdx24+1)<_0xaccdx2e?(_0xaccdx20[_0x663d[112]]+1):(_0xaccdx20[_0x663d[112]]+2));break ;;case _0x663d[36]:_0xaccdx20[_0x663d[104]]=_0xaccdx2d[_0x663d[104]];_0xaccdx20[_0x663d[96]]=_0xaccdx2d[_0x663d[96]];_0xaccdx20[_0x663d[49]]=_0xaccdx20[_0x663d[94]]=_0xaccdx2d[_0x663d[94]];_0xaccdx20[_0x663d[50]]=util[_0x663d[61]](_0xaccdx20[_0x663d[50]],_0xaccdx2d[_0x663d[50]]);break ;;default:;};});;};if(_0xaccdx1d){return _0xaccdx1d};}exports[_0x663d[141]]=function(_0xaccdx9,_0xaccdxa){VoiceExtension[_0x663d[45]]({where:{exten:_0xaccdx9[_0x663d[87]][_0x663d[48]],context:_0xaccdx9[_0x663d[87]][_0x663d[47]],type:_0xaccdx9[_0x663d[87]][_0x663d[88]],VoiceExtensionId:null,id:{$ne:_0xaccdx9[_0x663d[87]][_0x663d[82]]}}})[_0x663d[44]](function(_0xaccdx2b){if(!_0xaccdx2b){return _0xaccdxa[_0x663d[84]](404)};if(_0xaccdx2b[_0x663d[100]]>0){return _0xaccdxa[_0x663d[43]](500)[_0x663d[42]]({message:_0x663d[116]})};if(_0xaccdx9[_0x663d[87]][_0x663d[82]]){delete _0xaccdx9[_0x663d[87]][_0x663d[82]]};VoiceExtension[_0x663d[92]]({where:{id:_0xaccdx9[_0x663d[55]][_0x663d[82]]}})[_0x663d[44]](function(_0xaccdx1a){if(!_0xaccdx1a){return _0xaccdxa[_0x663d[84]](404)};var _0xaccdx2f=_[_0x663d[142]](_0xaccdx1a,_0xaccdx9[_0x663d[87]]);return sequelize[_0x663d[109]](function(_0xaccdx1c){return _0xaccdx2f[_0x663d[143]]({transaction:_0xaccdx1c})[_0x663d[44]](function(_0xaccdx30){VoiceExtension[_0x663d[45]]({where:{VoiceExtensionId:_0xaccdx30[_0x663d[82]],isApp:true}})[_0x663d[44]](function(_0xaccdx2a){return VoiceExtension[_0x663d[108]]({where:{VoiceExtensionId:_0xaccdx30[_0x663d[82]]}},{transaction:_0xaccdx1c})[_0x663d[44]](function(){_0xaccdx2a=_[_0x663d[114]](_0xaccdx2a,_0x663d[113]);var _0xaccdx31=_[_0x663d[99]](_[_0x663d[114]](_0xaccdx2a,_0x663d[104]),function(_0xaccdx20){return _0xaccdx20!==null});Interval[_0x663d[45]]({where:{IntervalId:_0xaccdx31}})[_0x663d[44]](function(_0xaccdx28){var _0xaccdx1d=2;var _0xaccdx25;_0xaccdx2a[_0x663d[66]](function(_0xaccdx1f){var _0xaccdx21=_[_0x663d[93]](Applications[_0xaccdx1f[_0x663d[49]]]);if(!_0xaccdx21||_0xaccdx1f[_0x663d[94]]){_0xaccdx21=[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[36],appdata:_0x663d[32],isApp:true},{app:_0x663d[15],appdata:_0x663d[37]}]};_0xaccdx1f[_0x663d[47]]=_0xaccdx30[_0x663d[47]];_0xaccdx1f[_0x663d[48]]=_0xaccdx30[_0x663d[48]];var _0xaccdx22=util[_0x663d[61]](_0x663d[95],_0xaccdx1f[_0x663d[47]],_0xaccdx1f[_0x663d[48]],_0xaccdx1d);_0xaccdx1f[_0x663d[96]]=_0xaccdx1f[_0x663d[96]]||_0x663d[97];var _0xaccdx23=_[_0x663d[99]](_0xaccdx28,function(_0xaccdx20){return (_0xaccdx20[_0x663d[104]]==_0xaccdx1f[_0x663d[104]])});if(_0xaccdx23&&_0xaccdx23[_0x663d[100]]>0){_0xaccdx21[_0x663d[101]](0,1);_0xaccdx23[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx21[_0x663d[105]]({app:_0x663d[102],appdata:_0xaccdx20[_0x663d[96]]+_0x663d[103],IntervalId:_0xaccdx20[_0x663d[82]],isInterval:true,interval:_0xaccdx20[_0x663d[96]]})});};_0xaccdx1d=appCreate(_0xaccdx21,_0xaccdx1f,_0xaccdx22,_0xaccdx23||[],_0xaccdx1d);VoiceExtension[_0x663d[106]](_0xaccdx21);});return _0xaccdxa[_0x663d[84]](200);});})})})})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)});})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)});})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)})};exports[_0x663d[144]]=function(_0xaccdx9,_0xaccdxa,_0xaccdxd){var _0xaccdx25;if(_0xaccdx9[_0x663d[87]][_0x663d[50]]){delete _0xaccdx9[_0x663d[87]][_0x663d[50]]};VoiceExtension[_0x663d[85]](_0xaccdx9[_0x663d[87]][_0x663d[82]])[_0x663d[44]](function(_0xaccdx32){if(!_0xaccdx32){return _0xaccdxa[_0x663d[84]](404)};delete _0xaccdx9[_0x663d[87]][_0x663d[82]];var _0xaccdx2f=_[_0x663d[142]](_0xaccdx32,_0xaccdx9[_0x663d[87]]);return sequelize[_0x663d[109]](function(_0xaccdx1c){return _0xaccdx2f[_0x663d[143]]({transaction:_0xaccdx1c})[_0x663d[44]](function(){VoiceExtension[_0x663d[45]]({where:{VoiceExtensionId:_0xaccdx9[_0x663d[87]][_0x663d[111]],isApp:true}})[_0x663d[44]](function(_0xaccdx2a){return VoiceExtension[_0x663d[108]]({where:{VoiceExtensionId:_0xaccdx9[_0x663d[87]][_0x663d[111]]}},{transaction:_0xaccdx1c})[_0x663d[44]](function(){_0xaccdx2a=_[_0x663d[114]](_0xaccdx2a,_0x663d[113]);var _0xaccdx31=_[_0x663d[99]](_[_0x663d[114]](_0xaccdx2a,_0x663d[104]),function(_0xaccdx20){return _0xaccdx20!==null});return Interval[_0x663d[45]]({where:{IntervalId:_0xaccdx31}})[_0x663d[44]](function(_0xaccdx28){var _0xaccdx1d=2;var _0xaccdx25;_0xaccdx2a[_0x663d[66]](function(_0xaccdx1f){var _0xaccdx21=_[_0x663d[93]](Applications[_0xaccdx1f[_0x663d[49]]]);if(!_0xaccdx21||_0xaccdx1f[_0x663d[94]]){_0xaccdx21=[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[36],appdata:_0x663d[32],isApp:true},{app:_0x663d[15],appdata:_0x663d[37]}]};var _0xaccdx22=util[_0x663d[61]](_0x663d[95],_0xaccdx1f[_0x663d[47]],_0xaccdx1f[_0x663d[48]],_0xaccdx1d);_0xaccdx1f[_0x663d[96]]=_0xaccdx1f[_0x663d[96]]||_0x663d[97];var _0xaccdx23=_[_0x663d[99]](_0xaccdx28,function(_0xaccdx20){return (_0xaccdx20[_0x663d[104]]==_0xaccdx1f[_0x663d[104]])});if(_0xaccdx23&&_0xaccdx23[_0x663d[100]]>0){_0xaccdx21[_0x663d[101]](0,1);_0xaccdx23[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx21[_0x663d[105]]({app:_0x663d[102],appdata:_0xaccdx20[_0x663d[96]]+_0x663d[103],IntervalId:_0xaccdx20[_0x663d[82]],isInterval:true,interval:_0xaccdx20[_0x663d[96]]})});};_0xaccdx1d=appCreate(_0xaccdx21,_0xaccdx1f,_0xaccdx22,_0xaccdx23||[],_0xaccdx1d);VoiceExtension[_0x663d[106]](_0xaccdx21);});});})})})})[_0x663d[44]](function(_0xaccdx16){return _0xaccdxa[_0x663d[43]](201)[_0x663d[42]](_0xaccdx16)})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)});})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)});};exports[_0x663d[108]]=function(_0xaccdx9,_0xaccdxa,_0xaccdxd){VoiceExtension[_0x663d[85]](_0xaccdx9[_0x663d[55]][_0x663d[82]])[_0x663d[44]](function(_0xaccdx1a){if(!_0xaccdx1a){return _0xaccdxa[_0x663d[84]](404)};if(!_0xaccdx1a[_0x663d[111]]){_0xaccdx1a[_0x663d[108]]()[_0x663d[44]](function(){return _0xaccdxa[_0x663d[84]](204)})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)})}else {VoiceExtension[_0x663d[45]]({where:{appGroup:_0xaccdx1a[_0x663d[90]]}})[_0x663d[44]](function(_0xaccdxc){if(!_0xaccdxc){return _0xaccdxa[_0x663d[84]](404)};return sequelize[_0x663d[109]](function(_0xaccdx1c){return VoiceExtension[_0x663d[108]]({where:{appGroup:_0xaccdx1a[_0x663d[90]]}},{transaction:_0xaccdx1c})[_0x663d[44]](function(_0xaccdx33){return VoiceExtension[_0x663d[45]]({where:{VoiceExtensionId:_0xaccdx1a[_0x663d[111]],priority:{$gt:_0xaccdxc[_0xaccdx33-1][_0x663d[112]]}}})[_0x663d[44]](function(_0xaccdx1b){return VoiceExtension[_0x663d[108]]({where:{VoiceExtensionId:_0xaccdx1a[_0x663d[111]],priority:{$gt:_0xaccdxc[_0xaccdx33-1][_0x663d[112]]}}},{transaction:_0xaccdx1c})[_0x663d[44]](function(){var _0xaccdx34=_[_0x663d[114]](_[_0x663d[99]](_[_0x663d[114]](_0xaccdx1b,_0x663d[113]),function(_0xaccdx20){return _0xaccdx20[_0x663d[91]]===true}),_0x663d[90]);var _0xaccdx1d=_0xaccdxc[0][_0x663d[112]];_0xaccdx34[_0x663d[66]](function(_0xaccdx1e){var _0xaccdx1f=_[_0x663d[92]](_0xaccdx1b,function(_0xaccdx20){return (_0xaccdx20[_0x663d[90]]==_0xaccdx1e&&_0xaccdx20[_0x663d[91]]===true)});var _0xaccdx21=_[_0x663d[93]](Applications[_0xaccdx1f[_0x663d[49]]]);if(!_0xaccdx21||_0xaccdx1f[_0x663d[94]]){_0xaccdx21=[{app:_0x663d[9],appdata:_0x663d[10]},{app:_0x663d[36],appdata:_0x663d[32],isApp:true},{app:_0x663d[15],appdata:_0x663d[37]}]};var _0xaccdx22=util[_0x663d[61]](_0x663d[95],_0xaccdx1f[_0x663d[47]],_0xaccdx1f[_0x663d[48]],_0xaccdx1d);_0xaccdx1f[_0x663d[96]]=_0xaccdx1f[_0x663d[96]]||_0x663d[97];var _0xaccdx23=_[_0x663d[99]](_0xaccdx1b,function(_0xaccdx20){return (_0xaccdx20[_0x663d[90]]==_0xaccdx1e&&_0xaccdx20[_0x663d[98]]===true)});if(_0xaccdx23&&_0xaccdx23[_0x663d[100]]>0){_0xaccdx21[_0x663d[101]](0,1);_0xaccdx23[_0x663d[66]](function(_0xaccdx20,_0xaccdx24){_0xaccdx21[_0x663d[105]]({app:_0x663d[102],appdata:_0xaccdx20[_0x663d[96]]+_0x663d[103],IntervalId:_0xaccdx20[_0x663d[104]]?_0xaccdx20[_0x663d[104]]:null,isInterval:true,interval:_0xaccdx20[_0x663d[96]]})});};_0xaccdx1d=appCreate(_0xaccdx21,_0xaccdx1f,_0xaccdx22,_0xaccdx23||[],_0xaccdx1d);VoiceExtension[_0x663d[106]](_0xaccdx21);});})})})})[_0x663d[44]](function(_0xaccdx16){_0xaccdxa[_0x663d[84]](201)})[_0x663d[41]](function(_0xaccdxb){return _0xaccdxd(_0xaccdxb)});})};})[_0x663d[41]](function(_0xaccdxb){return _0xaccdxd(_0xaccdxb)})};exports[_0x663d[145]]=function(_0xaccdx9,_0xaccdxa){VoiceExtension[_0x663d[108]]({where:{id:_0xaccdx9[_0x663d[52]][_0x663d[82]]},individualHooks:true})[_0x663d[44]](function(){return _0xaccdxa[_0x663d[84]](204)})[_0x663d[41]](function(_0xaccdxb){return handleError(_0xaccdxa,_0xaccdxb)})};function handleError(_0xaccdxa,_0xaccdxb){return _0xaccdxa[_0x663d[43]](500)[_0x663d[42]](_0xaccdxb)}
\ No newline at end of file
+var _0x579c=["\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"];_0x579c[0];var _=require(_0x579c[1]);var VoiceExtension=require(_0x579c[3])[_0x579c[2]];var Interval=require(_0x579c[3])[_0x579c[4]];var sequelize=require(_0x579c[3])[_0x579c[5]];var Sequelize=require(_0x579c[3])[_0x579c[6]];var util=require(_0x579c[7]);var async=require(_0x579c[8]);var Applications={Dial:[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[11],appdata:_0x579c[12]},{app:_0x579c[13],appdata:_0x579c[14],isApp:true},{app:_0x579c[15],appdata:_0x579c[16]}],Queue:[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[17],appdata:_0x579c[18]},{app:_0x579c[19],appdata:_0x579c[20],isApp:true},{app:_0x579c[15],appdata:_0x579c[21]}],Playback:[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[22],appdata:_0x579c[23],isApp:true},{app:_0x579c[15],appdata:_0x579c[24]}],AGI:[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[25],appdata:_0x579c[26],isApp:true},{app:_0x579c[15],appdata:_0x579c[27]}],Goto:[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[28],appdata:_0x579c[29],isApp:true},{app:_0x579c[15],appdata:_0x579c[30]}],Hangup:[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[31],appdata:_0x579c[32],isApp:true},{app:_0x579c[15],appdata:_0x579c[33]}],Set:[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[11],appdata:_0x579c[34],isApp:true},{app:_0x579c[15],appdata:_0x579c[35]}],custom:[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[36],appdata:_0x579c[32],isApp:true},{app:_0x579c[15],appdata:_0x579c[37]}],Voicemail:[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[38],appdata:_0x579c[32],isApp:true},{app:_0x579c[15],appdata:_0x579c[39]}]};exports[_0x579c[40]]=function(_0x6c1dx9,_0x6c1dxa){VoiceExtension[_0x579c[45]]()[_0x579c[44]](function(_0x6c1dxc){return _0x6c1dxa[_0x579c[43]](200)[_0x579c[42]](_0x6c1dxc)})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)})};exports[_0x579c[46]]=function(_0x6c1dx9,_0x6c1dxa,_0x6c1dxd){var _0x6c1dxe=[_0x579c[47],_0x579c[48],_0x579c[49],_0x579c[50]];var _0x6c1dxf=_0x6c1dx9[_0x579c[52]][_0x579c[51]]?parseInt(_0x6c1dx9[_0x579c[52]][_0x579c[51]],10):100;var _0x6c1dx10=_0x6c1dx9[_0x579c[52]][_0x579c[53]]?parseInt(_0x6c1dx9[_0x579c[52]][_0x579c[53]],10):0;var _0x6c1dx11={where:{type:_0x6c1dx9[_0x579c[55]][_0x579c[54]],VoiceExtensionId:null,app:_0x579c[15]},limit:_0x6c1dxf,offset:_0x6c1dx10*_0x6c1dxf};_[_0x579c[69]](_0x6c1dx9[_0x579c[52]],function(_0x6c1dx12,_0x6c1dx13){switch(_0x6c1dx13){case _0x579c[51]:;case _0x579c[53]:break ;;case _0x579c[58]:_0x6c1dx11[_0x579c[56]]=util[_0x579c[61]](_0x579c[57],_0x6c1dx9[_0x579c[52]][_0x579c[58]],_0x6c1dx9[_0x579c[52]][_0x579c[59]]||_0x579c[60])||null;break ;;case _0x579c[59]:break ;;case _0x579c[67]:_0x6c1dx11[_0x579c[63]][_0x579c[62]]=[];_0x6c1dxe[_0x579c[66]](function(_0x6c1dx14){var _0x6c1dx15={};_0x6c1dx15[_0x6c1dx14]={$like:_0x579c[64]+_0x6c1dx12+_0x579c[64]};_0x6c1dx11[_0x579c[63]][_0x579c[62]][_0x579c[65]](_0x6c1dx15);});break ;;default:_0x6c1dx11[_0x579c[63]][_0x6c1dx13]={$like:{}};_0x6c1dx11[_0x579c[63]][_0x6c1dx13][_0x579c[68]]=_0x579c[64]+_0x6c1dx12+_0x579c[64];;}});VoiceExtension[_0x579c[80]](_0x6c1dx11)[_0x579c[44]](function(_0x6c1dx16){var _0x6c1dx17=Math[_0x579c[72]](_0x6c1dx16[_0x579c[71]]/_0x6c1dxf);var _0x6c1dx18=_0x6c1dx17>(_0x6c1dx11[_0x579c[73]]+1)?util[_0x579c[61]](_0x579c[74],_0x6c1dx9[_0x579c[75]],_0x6c1dx9[_0x579c[77]][_0x579c[76]],_0x6c1dx9[_0x579c[78]],_0x6c1dx10+1):null;var _0x6c1dx19=_0x6c1dx10>0?util[_0x579c[61]](_0x579c[74],_0x6c1dx9[_0x579c[75]],_0x6c1dx9[_0x579c[77]][_0x579c[76]],_0x6c1dx9[_0x579c[78]],_0x6c1dx10-1):null;_0x6c1dxa[_0x579c[43]](200)[_0x579c[42]]({count:_0x6c1dx16[_0x579c[71]],rows:_0x6c1dx16[_0x579c[79]],next_page:_0x6c1dx18,previous_page:_0x6c1dx19,total_pages:_0x6c1dx17});})[_0x579c[41]](function(_0x6c1dxb){_0x6c1dxa[_0x579c[43]](500)[_0x579c[42]]({error:_0x579c[70]})});};exports[_0x579c[81]]=function(_0x6c1dx9,_0x6c1dxa){VoiceExtension[_0x579c[45]]({where:{VoiceExtensionId:_0x6c1dx9[_0x579c[55]][_0x579c[82]],isApp:true}})[_0x579c[44]](function(_0x6c1dxc){return _0x6c1dxa[_0x579c[43]](200)[_0x579c[42]](_0x6c1dxc)})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)})};exports[_0x579c[83]]=function(_0x6c1dx9,_0x6c1dxa){VoiceExtension[_0x579c[85]](_0x6c1dx9[_0x579c[55]][_0x579c[82]])[_0x579c[44]](function(_0x6c1dx1a){if(!_0x6c1dx1a){return _0x6c1dxa[_0x579c[84]](404)};return _0x6c1dxa[_0x579c[42]](_0x6c1dx1a);})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)})};exports[_0x579c[86]]=function(_0x6c1dx9,_0x6c1dxa){VoiceExtension[_0x579c[45]]({where:{exten:_0x6c1dx9[_0x579c[87]][_0x579c[48]],context:_0x6c1dx9[_0x579c[87]][_0x579c[47]],type:_0x6c1dx9[_0x579c[87]][_0x579c[88]]}})[_0x579c[44]](function(_0x6c1dx1a){if(!_0x6c1dx1a){return _0x6c1dxa[_0x579c[84]](404)};return _0x6c1dxa[_0x579c[42]](_0x6c1dx1a);})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)})};exports[_0x579c[89]]=function(_0x6c1dx9,_0x6c1dxa,_0x6c1dxd){VoiceExtension[_0x579c[45]]({where:{appGroup:_0x6c1dx9[_0x579c[87]][_0x579c[107]]}})[_0x579c[44]](function(_0x6c1dx1b){return sequelize[_0x579c[109]](function(_0x6c1dx1c){return VoiceExtension[_0x579c[108]]({where:{appGroup:_0x6c1dx9[_0x579c[87]][_0x579c[107]]}},{transaction:_0x6c1dx1c})[_0x579c[44]](function(){var _0x6c1dx1d=2;_0x6c1dx9[_0x579c[87]][_0x579c[107]][_0x579c[66]](function(_0x6c1dx1e){var _0x6c1dx1f=_[_0x579c[92]](_0x6c1dx1b,function(_0x6c1dx20){return (_0x6c1dx20[_0x579c[90]]==_0x6c1dx1e&&_0x6c1dx20[_0x579c[91]]===true)});var _0x6c1dx21=_[_0x579c[93]](Applications[_0x6c1dx1f[_0x579c[49]]]);if(!_0x6c1dx21||_0x6c1dx1f[_0x579c[94]]){_0x6c1dx21=[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[36],appdata:_0x579c[32],isApp:true},{app:_0x579c[15],appdata:_0x579c[37]}]};var _0x6c1dx22=util[_0x579c[61]](_0x579c[95],_0x6c1dx1f[_0x579c[47]],_0x6c1dx1f[_0x579c[48]],_0x6c1dx1d);_0x6c1dx1f[_0x579c[96]]=_0x6c1dx1f[_0x579c[96]]||_0x579c[97];var _0x6c1dx23=_[_0x579c[99]](_0x6c1dx1b,function(_0x6c1dx20){return (_0x6c1dx20[_0x579c[90]]==_0x6c1dx1e&&_0x6c1dx20[_0x579c[98]]===true)});if(_0x6c1dx23&&_0x6c1dx23[_0x579c[100]]>0){_0x6c1dx21[_0x579c[101]](0,1);_0x6c1dx23[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx21[_0x579c[105]]({app:_0x579c[102],appdata:_0x6c1dx20[_0x579c[96]]+_0x579c[103],IntervalId:_0x6c1dx20[_0x579c[104]]?_0x6c1dx20[_0x579c[104]]:null,isInterval:true,interval:_0x6c1dx20[_0x579c[96]]})});};_0x6c1dx1d=appCreate(_0x6c1dx21,_0x6c1dx1f,_0x6c1dx22,_0x6c1dx23||[],_0x6c1dx1d);return VoiceExtension[_0x579c[106]](_0x6c1dx21,{transaction:_0x6c1dx1c});});})})[_0x579c[44]](function(){return _0x6c1dxa[_0x579c[84]](201)})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)})})[_0x579c[41]](function(_0x6c1dxb){return _0x6c1dxd(_0x6c1dxb)})};exports[_0x579c[110]]=function(_0x6c1dx9,_0x6c1dxa,_0x6c1dxd){var _0x6c1dx21;var _0x6c1dx22;var _0x6c1dx25;VoiceExtension[_0x579c[117]](_0x579c[112],{where:{VoiceExtensionId:_0x6c1dx9[_0x579c[87]][_0x579c[111]]}})[_0x579c[44]](function(_0x6c1dx26){if(_0x6c1dx9[_0x579c[87]][_0x579c[111]]){_0x6c1dx9[_0x579c[87]][_0x579c[112]]=_0x6c1dx26?++_0x6c1dx26:2;_0x6c1dx21=_[_0x579c[93]](Applications[_0x6c1dx9[_0x579c[87]][_0x579c[49]]]);if(!_0x6c1dx21||_0x6c1dx9[_0x579c[87]][_0x579c[94]]){_0x6c1dx21=[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[36],appdata:_0x579c[32],isApp:true},{app:_0x579c[15],appdata:_0x579c[37]}]};_0x6c1dx22=util[_0x579c[61]](_0x579c[95],_0x6c1dx9[_0x579c[87]][_0x579c[47]],_0x6c1dx9[_0x579c[87]][_0x579c[48]],_0x6c1dx9[_0x579c[87]][_0x579c[112]]);_0x6c1dx9[_0x579c[87]][_0x579c[96]]=_0x6c1dx9[_0x579c[87]][_0x579c[96]]||_0x579c[97];Interval[_0x579c[45]]({where:{IntervalId:(_0x6c1dx9[_0x579c[87]][_0x579c[104]]!==null)?_0x6c1dx9[_0x579c[87]][_0x579c[104]]:0}})[_0x579c[44]](function(_0x6c1dx27){var _0x6c1dx28=[];var _0x6c1dx29;if(_0x6c1dx27&&_0x6c1dx27[_0x579c[100]]>0){_0x6c1dx21[_0x579c[101]](0,1);_0x6c1dx28=_[_0x579c[114]](_0x6c1dx27,_0x579c[113]);_0x6c1dx28[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx21[_0x579c[105]]({app:_0x579c[102],appdata:_0x6c1dx20[_0x579c[96]]+_0x579c[103],IntervalId:_0x6c1dx20[_0x579c[82]],interval:_0x6c1dx29,isInterval:true})});};appCreate(_0x6c1dx21,_0x6c1dx9[_0x579c[87]],_0x6c1dx22,_0x6c1dx28);VoiceExtension[_0x579c[106]](_0x6c1dx21)[_0x579c[44]](function(_0x6c1dx2a){return _0x6c1dxa[_0x579c[43]](201)[_0x579c[42]](_0x6c1dx2a)});});}else {VoiceExtension[_0x579c[45]]({where:{exten:_0x6c1dx9[_0x579c[87]][_0x579c[48]],context:_0x6c1dx9[_0x579c[87]][_0x579c[47]],type:_0x6c1dx9[_0x579c[87]][_0x579c[88]]}})[_0x579c[44]](function(_0x6c1dx2b){if(!_0x6c1dx2b){return _0x6c1dxa[_0x579c[84]](404)};if(_0x6c1dx2b[_0x579c[100]]>0){return _0x6c1dxa[_0x579c[43]](500)[_0x579c[42]]({message:_0x579c[116]})};_0x6c1dx9[_0x579c[87]][_0x579c[112]]=1;VoiceExtension[_0x579c[110]](_0x6c1dx9[_0x579c[87]])[_0x579c[44]](function(_0x6c1dx2a){return _0x6c1dxa[_0x579c[43]](201)[_0x579c[42]](_0x6c1dx2a)})[_0x579c[41]](function(_0x6c1dxb){return _0x6c1dxa[_0x579c[115]](_0x6c1dxb)});})[_0x579c[41]](function(_0x6c1dxb){return _0x6c1dxa[_0x579c[115]](_0x6c1dxb)})}})[_0x579c[41]](function(_0x6c1dxb){_0x6c1dxd(_0x6c1dxb)});};function appCreate(_0x6c1dx21,_0x6c1dx2d,_0x6c1dx22,_0x6c1dx28,_0x6c1dx1d){var _0x6c1dx2e=_0x6c1dx28[_0x579c[100]];if(_0x6c1dx2d[_0x579c[94]]){_0x6c1dx2d[_0x579c[49]]=_0x579c[36]};switch(_0x6c1dx2d[_0x579c[49]]){case _0x579c[13]:if(!_0x6c1dx2d[_0x579c[118]]){_[_0x579c[119]](_0x6c1dx21,{app:_0x579c[11]})};_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[13]:if(_0x6c1dx2d[_0x579c[88]]===_0x579c[120]){_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[121]]=_0x6c1dx2d[_0x579c[121]];_0x6c1dx20[_0x579c[122]]=_0x6c1dx2d[_0x579c[122]];_0x6c1dx20[_0x579c[123]]=_0x6c1dx2d[_0x579c[123]]||0;_0x6c1dx20[_0x579c[118]]=_0x6c1dx2d[_0x579c[118]]||null;}else {_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[124]]=_0x6c1dx2d[_0x579c[124]];_0x6c1dx20[_0x579c[125]]=_0x6c1dx2d[_0x579c[125]]||_0x579c[18];_0x6c1dx20[_0x579c[126]]=_0x6c1dx2d[_0x579c[126]]||_0x579c[18];_0x6c1dx20[_0x579c[127]]=_0x6c1dx2d[_0x579c[127]]||_0x579c[18];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[124]],_0x6c1dx20[_0x579c[126]],_0x6c1dx20[_0x579c[125]]?_0x6c1dx20[_0x579c[125]][_0x579c[129]](_0x579c[128],_0x579c[18]):_0x579c[18],_0x6c1dx20[_0x579c[127]]);};break ;;case _0x579c[11]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[118]]);break ;;case _0x579c[15]:if(_0x6c1dx2d[_0x579c[88]]===_0x579c[120]){_0x6c1dx20[_0x579c[50]]=_0x579c[130]};break ;;default:;};});break ;;case _0x579c[19]:_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[19]:_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[125]]=_0x6c1dx2d[_0x579c[125]]||_0x579c[18];_0x6c1dx20[_0x579c[131]]=_0x6c1dx2d[_0x579c[131]]||_0x579c[18];_0x6c1dx20[_0x579c[132]]=_0x6c1dx2d[_0x579c[132]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[124]]=_0x6c1dx2d[_0x579c[124]];_0x6c1dx20[_0x579c[125]]=_0x6c1dx2d[_0x579c[125]];_0x6c1dx20[_0x579c[126]]=_0x6c1dx2d[_0x579c[126]]||_0x579c[18];_0x6c1dx20[_0x579c[127]]=_0x6c1dx2d[_0x579c[127]]||_0x579c[18];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[132]],_0x6c1dx20[_0x579c[125]]?_0x6c1dx20[_0x579c[125]][_0x579c[129]](_0x579c[128],_0x579c[18]):_0x579c[18],_0x6c1dx20[_0x579c[127]],_0x6c1dx20[_0x579c[131]],_0x6c1dx20[_0x579c[126]]);break ;;default:;};});break ;;case _0x579c[22]:_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[22]:_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[131]]=_0x6c1dx2d[_0x579c[131]]||_0x579c[18];_0x6c1dx20[_0x579c[125]]=_0x6c1dx2d[_0x579c[125]]||_0x579c[18];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[131]],_0x6c1dx20[_0x579c[125]]?_0x6c1dx20[_0x579c[125]][_0x579c[129]](_0x579c[128],_0x579c[18]):_0x579c[18]);break ;;default:;};});break ;;case _0x579c[25]:_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[25]:_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[133]]=_0x6c1dx2d[_0x579c[133]];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[133]]);break ;;default:;};});break ;;case _0x579c[28]:_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[28]:_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[134]]=_0x6c1dx2d[_0x579c[134]];_0x6c1dx20[_0x579c[135]]=_0x6c1dx2d[_0x579c[135]];_0x6c1dx20[_0x579c[136]]=_0x6c1dx2d[_0x579c[136]];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[136]],_0x6c1dx20[_0x579c[135]],_0x6c1dx20[_0x579c[134]]);break ;;default:;};});break ;;case _0x579c[31]:_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[31]:_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[137]]=_0x6c1dx2d[_0x579c[137]];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[137]]);break ;;default:;};});break ;;case _0x579c[11]:_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[11]:_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[138]]=_0x6c1dx2d[_0x579c[138]];_0x6c1dx20[_0x579c[139]]=_0x6c1dx2d[_0x579c[139]];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[138]],_0x6c1dx20[_0x579c[139]]);break ;;default:;};});break ;;case _0x579c[36]:_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[36]:_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[49]]=_0x6c1dx20[_0x579c[94]]=_0x6c1dx2d[_0x579c[94]];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[50]]);break ;;default:;};});break ;;case _0x579c[38]:_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[38]:_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[140]]=_0x6c1dx2d[_0x579c[140]];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[140]]);break ;;default:;};});break ;;default:_0x6c1dx21[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx20[_0x579c[48]]=_0x6c1dx2d[_0x579c[48]];_0x6c1dx20[_0x579c[88]]=_0x6c1dx2d[_0x579c[88]];_0x6c1dx20[_0x579c[47]]=_0x6c1dx2d[_0x579c[47]];_0x6c1dx20[_0x579c[111]]=_0x6c1dx2d[_0x579c[111]];_0x6c1dx20[_0x579c[112]]=_0x6c1dx1d?_0x6c1dx1d++:_0x6c1dx2d[_0x579c[112]]++;_0x6c1dx20[_0x579c[90]]=_0x6c1dx22;switch(_0x6c1dx20[_0x579c[49]]){case _0x579c[9]:_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[104]]?_0x579c[97]:_0x6c1dx2d[_0x579c[96]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+1,_0x6c1dx20[_0x579c[47]],(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[102]:_0x6c1dx20[_0x579c[49]]=_0x579c[9];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx20[_0x579c[47]],_0x6c1dx20[_0x579c[112]]+_0x6c1dx2e-_0x6c1dx24,_0x6c1dx20[_0x579c[47]],(_0x6c1dx24+1)<_0x6c1dx2e?(_0x6c1dx20[_0x579c[112]]+1):(_0x6c1dx20[_0x579c[112]]+2));break ;;case _0x579c[36]:_0x6c1dx20[_0x579c[104]]=_0x6c1dx2d[_0x579c[104]];_0x6c1dx20[_0x579c[96]]=_0x6c1dx2d[_0x579c[96]];_0x6c1dx20[_0x579c[49]]=_0x6c1dx20[_0x579c[94]]=_0x6c1dx2d[_0x579c[94]];_0x6c1dx20[_0x579c[50]]=util[_0x579c[61]](_0x6c1dx20[_0x579c[50]],_0x6c1dx2d[_0x579c[50]]);break ;;default:;};});;};if(_0x6c1dx1d){return _0x6c1dx1d};}exports[_0x579c[141]]=function(_0x6c1dx9,_0x6c1dxa){VoiceExtension[_0x579c[45]]({where:{exten:_0x6c1dx9[_0x579c[87]][_0x579c[48]],context:_0x6c1dx9[_0x579c[87]][_0x579c[47]],type:_0x6c1dx9[_0x579c[87]][_0x579c[88]],VoiceExtensionId:null,id:{$ne:_0x6c1dx9[_0x579c[87]][_0x579c[82]]}}})[_0x579c[44]](function(_0x6c1dx2b){if(!_0x6c1dx2b){return _0x6c1dxa[_0x579c[84]](404)};if(_0x6c1dx2b[_0x579c[100]]>0){return _0x6c1dxa[_0x579c[43]](500)[_0x579c[42]]({message:_0x579c[116]})};if(_0x6c1dx9[_0x579c[87]][_0x579c[82]]){delete _0x6c1dx9[_0x579c[87]][_0x579c[82]]};VoiceExtension[_0x579c[92]]({where:{id:_0x6c1dx9[_0x579c[55]][_0x579c[82]]}})[_0x579c[44]](function(_0x6c1dx1a){if(!_0x6c1dx1a){return _0x6c1dxa[_0x579c[84]](404)};var _0x6c1dx2f=_[_0x579c[142]](_0x6c1dx1a,_0x6c1dx9[_0x579c[87]]);return sequelize[_0x579c[109]](function(_0x6c1dx1c){return _0x6c1dx2f[_0x579c[143]]({transaction:_0x6c1dx1c})[_0x579c[44]](function(_0x6c1dx30){VoiceExtension[_0x579c[45]]({where:{VoiceExtensionId:_0x6c1dx30[_0x579c[82]],isApp:true}})[_0x579c[44]](function(_0x6c1dx2a){return VoiceExtension[_0x579c[108]]({where:{VoiceExtensionId:_0x6c1dx30[_0x579c[82]]}},{transaction:_0x6c1dx1c})[_0x579c[44]](function(){_0x6c1dx2a=_[_0x579c[114]](_0x6c1dx2a,_0x579c[113]);var _0x6c1dx31=_[_0x579c[99]](_[_0x579c[114]](_0x6c1dx2a,_0x579c[104]),function(_0x6c1dx20){return _0x6c1dx20!==null});Interval[_0x579c[45]]({where:{IntervalId:_0x6c1dx31}})[_0x579c[44]](function(_0x6c1dx28){var _0x6c1dx1d=2;var _0x6c1dx25;_0x6c1dx2a[_0x579c[66]](function(_0x6c1dx1f){var _0x6c1dx21=_[_0x579c[93]](Applications[_0x6c1dx1f[_0x579c[49]]]);if(!_0x6c1dx21||_0x6c1dx1f[_0x579c[94]]){_0x6c1dx21=[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[36],appdata:_0x579c[32],isApp:true},{app:_0x579c[15],appdata:_0x579c[37]}]};_0x6c1dx1f[_0x579c[47]]=_0x6c1dx30[_0x579c[47]];_0x6c1dx1f[_0x579c[48]]=_0x6c1dx30[_0x579c[48]];var _0x6c1dx22=util[_0x579c[61]](_0x579c[95],_0x6c1dx1f[_0x579c[47]],_0x6c1dx1f[_0x579c[48]],_0x6c1dx1d);_0x6c1dx1f[_0x579c[96]]=_0x6c1dx1f[_0x579c[96]]||_0x579c[97];var _0x6c1dx23=_[_0x579c[99]](_0x6c1dx28,function(_0x6c1dx20){return (_0x6c1dx20[_0x579c[104]]==_0x6c1dx1f[_0x579c[104]])});if(_0x6c1dx23&&_0x6c1dx23[_0x579c[100]]>0){_0x6c1dx21[_0x579c[101]](0,1);_0x6c1dx23[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx21[_0x579c[105]]({app:_0x579c[102],appdata:_0x6c1dx20[_0x579c[96]]+_0x579c[103],IntervalId:_0x6c1dx20[_0x579c[82]],isInterval:true,interval:_0x6c1dx20[_0x579c[96]]})});};_0x6c1dx1d=appCreate(_0x6c1dx21,_0x6c1dx1f,_0x6c1dx22,_0x6c1dx23||[],_0x6c1dx1d);VoiceExtension[_0x579c[106]](_0x6c1dx21);});return _0x6c1dxa[_0x579c[84]](200);});})})})})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)});})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)});})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)})};exports[_0x579c[144]]=function(_0x6c1dx9,_0x6c1dxa,_0x6c1dxd){var _0x6c1dx25;if(_0x6c1dx9[_0x579c[87]][_0x579c[50]]){delete _0x6c1dx9[_0x579c[87]][_0x579c[50]]};VoiceExtension[_0x579c[85]](_0x6c1dx9[_0x579c[87]][_0x579c[82]])[_0x579c[44]](function(_0x6c1dx32){if(!_0x6c1dx32){return _0x6c1dxa[_0x579c[84]](404)};delete _0x6c1dx9[_0x579c[87]][_0x579c[82]];var _0x6c1dx2f=_[_0x579c[142]](_0x6c1dx32,_0x6c1dx9[_0x579c[87]]);return sequelize[_0x579c[109]](function(_0x6c1dx1c){return _0x6c1dx2f[_0x579c[143]]({transaction:_0x6c1dx1c})[_0x579c[44]](function(){VoiceExtension[_0x579c[45]]({where:{VoiceExtensionId:_0x6c1dx9[_0x579c[87]][_0x579c[111]],isApp:true}})[_0x579c[44]](function(_0x6c1dx2a){return VoiceExtension[_0x579c[108]]({where:{VoiceExtensionId:_0x6c1dx9[_0x579c[87]][_0x579c[111]]}},{transaction:_0x6c1dx1c})[_0x579c[44]](function(){_0x6c1dx2a=_[_0x579c[114]](_0x6c1dx2a,_0x579c[113]);var _0x6c1dx31=_[_0x579c[99]](_[_0x579c[114]](_0x6c1dx2a,_0x579c[104]),function(_0x6c1dx20){return _0x6c1dx20!==null});return Interval[_0x579c[45]]({where:{IntervalId:_0x6c1dx31}})[_0x579c[44]](function(_0x6c1dx28){var _0x6c1dx1d=2;var _0x6c1dx25;_0x6c1dx2a[_0x579c[66]](function(_0x6c1dx1f){var _0x6c1dx21=_[_0x579c[93]](Applications[_0x6c1dx1f[_0x579c[49]]]);if(!_0x6c1dx21||_0x6c1dx1f[_0x579c[94]]){_0x6c1dx21=[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[36],appdata:_0x579c[32],isApp:true},{app:_0x579c[15],appdata:_0x579c[37]}]};var _0x6c1dx22=util[_0x579c[61]](_0x579c[95],_0x6c1dx1f[_0x579c[47]],_0x6c1dx1f[_0x579c[48]],_0x6c1dx1d);_0x6c1dx1f[_0x579c[96]]=_0x6c1dx1f[_0x579c[96]]||_0x579c[97];var _0x6c1dx23=_[_0x579c[99]](_0x6c1dx28,function(_0x6c1dx20){return (_0x6c1dx20[_0x579c[104]]==_0x6c1dx1f[_0x579c[104]])});if(_0x6c1dx23&&_0x6c1dx23[_0x579c[100]]>0){_0x6c1dx21[_0x579c[101]](0,1);_0x6c1dx23[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx21[_0x579c[105]]({app:_0x579c[102],appdata:_0x6c1dx20[_0x579c[96]]+_0x579c[103],IntervalId:_0x6c1dx20[_0x579c[82]],isInterval:true,interval:_0x6c1dx20[_0x579c[96]]})});};_0x6c1dx1d=appCreate(_0x6c1dx21,_0x6c1dx1f,_0x6c1dx22,_0x6c1dx23||[],_0x6c1dx1d);VoiceExtension[_0x579c[106]](_0x6c1dx21);});});})})})})[_0x579c[44]](function(_0x6c1dx16){return _0x6c1dxa[_0x579c[43]](201)[_0x579c[42]](_0x6c1dx16)})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)});})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)});};exports[_0x579c[108]]=function(_0x6c1dx9,_0x6c1dxa,_0x6c1dxd){VoiceExtension[_0x579c[85]](_0x6c1dx9[_0x579c[55]][_0x579c[82]])[_0x579c[44]](function(_0x6c1dx1a){if(!_0x6c1dx1a){return _0x6c1dxa[_0x579c[84]](404)};if(!_0x6c1dx1a[_0x579c[111]]){_0x6c1dx1a[_0x579c[108]]()[_0x579c[44]](function(){return _0x6c1dxa[_0x579c[84]](204)})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)})}else {VoiceExtension[_0x579c[45]]({where:{appGroup:_0x6c1dx1a[_0x579c[90]]}})[_0x579c[44]](function(_0x6c1dxc){if(!_0x6c1dxc){return _0x6c1dxa[_0x579c[84]](404)};return sequelize[_0x579c[109]](function(_0x6c1dx1c){return VoiceExtension[_0x579c[108]]({where:{appGroup:_0x6c1dx1a[_0x579c[90]]}},{transaction:_0x6c1dx1c})[_0x579c[44]](function(_0x6c1dx33){return VoiceExtension[_0x579c[45]]({where:{VoiceExtensionId:_0x6c1dx1a[_0x579c[111]],priority:{$gt:_0x6c1dxc[_0x6c1dx33-1][_0x579c[112]]}}})[_0x579c[44]](function(_0x6c1dx1b){return VoiceExtension[_0x579c[108]]({where:{VoiceExtensionId:_0x6c1dx1a[_0x579c[111]],priority:{$gt:_0x6c1dxc[_0x6c1dx33-1][_0x579c[112]]}}},{transaction:_0x6c1dx1c})[_0x579c[44]](function(){var _0x6c1dx34=_[_0x579c[114]](_[_0x579c[99]](_[_0x579c[114]](_0x6c1dx1b,_0x579c[113]),function(_0x6c1dx20){return _0x6c1dx20[_0x579c[91]]===true}),_0x579c[90]);var _0x6c1dx1d=_0x6c1dxc[0][_0x579c[112]];_0x6c1dx34[_0x579c[66]](function(_0x6c1dx1e){var _0x6c1dx1f=_[_0x579c[92]](_0x6c1dx1b,function(_0x6c1dx20){return (_0x6c1dx20[_0x579c[90]]==_0x6c1dx1e&&_0x6c1dx20[_0x579c[91]]===true)});var _0x6c1dx21=_[_0x579c[93]](Applications[_0x6c1dx1f[_0x579c[49]]]);if(!_0x6c1dx21||_0x6c1dx1f[_0x579c[94]]){_0x6c1dx21=[{app:_0x579c[9],appdata:_0x579c[10]},{app:_0x579c[36],appdata:_0x579c[32],isApp:true},{app:_0x579c[15],appdata:_0x579c[37]}]};var _0x6c1dx22=util[_0x579c[61]](_0x579c[95],_0x6c1dx1f[_0x579c[47]],_0x6c1dx1f[_0x579c[48]],_0x6c1dx1d);_0x6c1dx1f[_0x579c[96]]=_0x6c1dx1f[_0x579c[96]]||_0x579c[97];var _0x6c1dx23=_[_0x579c[99]](_0x6c1dx1b,function(_0x6c1dx20){return (_0x6c1dx20[_0x579c[90]]==_0x6c1dx1e&&_0x6c1dx20[_0x579c[98]]===true)});if(_0x6c1dx23&&_0x6c1dx23[_0x579c[100]]>0){_0x6c1dx21[_0x579c[101]](0,1);_0x6c1dx23[_0x579c[66]](function(_0x6c1dx20,_0x6c1dx24){_0x6c1dx21[_0x579c[105]]({app:_0x579c[102],appdata:_0x6c1dx20[_0x579c[96]]+_0x579c[103],IntervalId:_0x6c1dx20[_0x579c[104]]?_0x6c1dx20[_0x579c[104]]:null,isInterval:true,interval:_0x6c1dx20[_0x579c[96]]})});};_0x6c1dx1d=appCreate(_0x6c1dx21,_0x6c1dx1f,_0x6c1dx22,_0x6c1dx23||[],_0x6c1dx1d);VoiceExtension[_0x579c[106]](_0x6c1dx21);});})})})})[_0x579c[44]](function(_0x6c1dx16){_0x6c1dxa[_0x579c[84]](201)})[_0x579c[41]](function(_0x6c1dxb){return _0x6c1dxd(_0x6c1dxb)});})};})[_0x579c[41]](function(_0x6c1dxb){return _0x6c1dxd(_0x6c1dxb)})};exports[_0x579c[145]]=function(_0x6c1dx9,_0x6c1dxa){VoiceExtension[_0x579c[108]]({where:{id:_0x6c1dx9[_0x579c[52]][_0x579c[82]]},individualHooks:true})[_0x579c[44]](function(){return _0x6c1dxa[_0x579c[84]](204)})[_0x579c[41]](function(_0x6c1dxb){return handleError(_0x6c1dxa,_0x6c1dxb)})};function handleError(_0x6c1dxa,_0x6c1dxb){return _0x6c1dxa[_0x579c[43]](500)[_0x579c[42]](_0x6c1dxb)}
\ No newline at end of file
-var _0xabdc=["\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"];_0xabdc[0];var VoiceExtension=require(_0xabdc[2])[_0xabdc[1]];exports[_0xabdc[3]]=function(_0xd206x2){VoiceExtension[_0xabdc[4]](function(_0xd206x3){onSave(_0xd206x2,_0xd206x3)});VoiceExtension[_0xabdc[5]](function(_0xd206x3){onRemove(_0xd206x2,_0xd206x3)});VoiceExtension[_0xabdc[6]](function(_0xd206x3){onRemove(_0xd206x2,_0xd206x3)});VoiceExtension[_0xabdc[7]](function(_0xd206x3){onUpdate(_0xd206x2,_0xd206x3)});};function onSave(_0xd206x2,_0xd206x3,_0xd206x5){_0xd206x2[_0xabdc[9]](_0xabdc[8],_0xd206x3)}function onRemove(_0xd206x2,_0xd206x3,_0xd206x5){_0xd206x2[_0xabdc[9]](_0xabdc[10],_0xd206x3)}function onUpdate(_0xd206x2,_0xd206x3,_0xd206x5){_0xd206x2[_0xabdc[9]](_0xabdc[11],_0xd206x3)}
\ No newline at end of file
+var _0xc1d4=["\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"];_0xc1d4[0];var VoiceExtension=require(_0xc1d4[2])[_0xc1d4[1]];exports[_0xc1d4[3]]=function(_0xec3bx2){VoiceExtension[_0xc1d4[4]](function(_0xec3bx3){onSave(_0xec3bx2,_0xec3bx3)});VoiceExtension[_0xc1d4[5]](function(_0xec3bx3){onRemove(_0xec3bx2,_0xec3bx3)});VoiceExtension[_0xc1d4[6]](function(_0xec3bx3){onRemove(_0xec3bx2,_0xec3bx3)});VoiceExtension[_0xc1d4[7]](function(_0xec3bx3){onUpdate(_0xec3bx2,_0xec3bx3)});};function onSave(_0xec3bx2,_0xec3bx3,_0xec3bx5){_0xec3bx2[_0xc1d4[9]](_0xc1d4[8],_0xec3bx3)}function onRemove(_0xec3bx2,_0xec3bx3,_0xec3bx5){_0xec3bx2[_0xc1d4[9]](_0xc1d4[10],_0xec3bx3)}function onUpdate(_0xec3bx2,_0xec3bx3,_0xec3bx5){_0xec3bx2[_0xc1d4[9]](_0xc1d4[11],_0xec3bx3)}
\ No newline at end of file
-var _0x2a93=["\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"];_0x2a93[0];var should=require(_0x2a93[1]);var app=require(_0x2a93[2]);var request=require(_0x2a93[3]);describe(_0x2a93[4],function(){it(_0x2a93[5],function(_0x5e08x4){request(app)[_0x2a93[13]](_0x2a93[12])[_0x2a93[11]](200)[_0x2a93[11]](_0x2a93[10],/json/)[_0x2a93[9]](function(_0x5e08x5,_0x5e08x6){if(_0x5e08x5){return _0x5e08x4(_0x5e08x5)};_0x5e08x6[_0x2a93[8]][_0x2a93[1]][_0x2a93[7]][_0x2a93[6]](Array);_0x5e08x4();})})});
\ No newline at end of file
+var _0x8d13=["\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"];_0x8d13[0];var should=require(_0x8d13[1]);var app=require(_0x8d13[2]);var request=require(_0x8d13[3]);describe(_0x8d13[4],function(){it(_0x8d13[5],function(_0x37ffx4){request(app)[_0x8d13[13]](_0x8d13[12])[_0x8d13[11]](200)[_0x8d13[11]](_0x8d13[10],/json/)[_0x8d13[9]](function(_0x37ffx5,_0x37ffx6){if(_0x37ffx5){return _0x37ffx4(_0x37ffx5)};_0x37ffx6[_0x8d13[8]][_0x8d13[1]][_0x8d13[7]][_0x8d13[6]](Array);_0x37ffx4();})})});
\ No newline at end of file
-var _0x4018=["\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"];_0x4018[0];var express=require(_0x4018[1]);var controller=require(_0x4018[2]);var auth=require(_0x4018[3]);var router=express.Router();router[_0x4018[7]](_0x4018[4],auth[_0x4018[5]](),controller[_0x4018[6]]);router[_0x4018[7]](_0x4018[8],auth[_0x4018[5]](),controller[_0x4018[9]]);router[_0x4018[7]](_0x4018[10],auth[_0x4018[5]](),controller[_0x4018[11]]);router[_0x4018[7]](_0x4018[12],auth[_0x4018[5]](),controller[_0x4018[13]]);router[_0x4018[15]](_0x4018[4],auth[_0x4018[5]](),controller[_0x4018[14]]);router[_0x4018[15]](_0x4018[16],auth[_0x4018[5]](),controller[_0x4018[17]]);router[_0x4018[15]](_0x4018[12],auth[_0x4018[5]](),controller[_0x4018[18]]);router[_0x4018[20]](_0x4018[10],auth[_0x4018[5]](),controller[_0x4018[19]]);router[_0x4018[22]](_0x4018[4],auth[_0x4018[5]](),controller[_0x4018[21]]);router[_0x4018[22]](_0x4018[10],auth[_0x4018[5]](),controller[_0x4018[23]]);router[_0x4018[22]](_0x4018[12],auth[_0x4018[5]](),controller[_0x4018[24]]);module[_0x4018[25]]=router;
\ No newline at end of file
+var _0x5666=["\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"];_0x5666[0];var express=require(_0x5666[1]);var controller=require(_0x5666[2]);var auth=require(_0x5666[3]);var router=express.Router();router[_0x5666[7]](_0x5666[4],auth[_0x5666[5]](),controller[_0x5666[6]]);router[_0x5666[7]](_0x5666[8],auth[_0x5666[5]](),controller[_0x5666[9]]);router[_0x5666[7]](_0x5666[10],auth[_0x5666[5]](),controller[_0x5666[11]]);router[_0x5666[7]](_0x5666[12],auth[_0x5666[5]](),controller[_0x5666[13]]);router[_0x5666[15]](_0x5666[4],auth[_0x5666[5]](),controller[_0x5666[14]]);router[_0x5666[15]](_0x5666[16],auth[_0x5666[5]](),controller[_0x5666[17]]);router[_0x5666[15]](_0x5666[12],auth[_0x5666[5]](),controller[_0x5666[18]]);router[_0x5666[20]](_0x5666[10],auth[_0x5666[5]](),controller[_0x5666[19]]);router[_0x5666[22]](_0x5666[4],auth[_0x5666[5]](),controller[_0x5666[21]]);router[_0x5666[22]](_0x5666[10],auth[_0x5666[5]](),controller[_0x5666[23]]);router[_0x5666[22]](_0x5666[12],auth[_0x5666[5]](),controller[_0x5666[24]]);module[_0x5666[25]]=router;
\ No newline at end of file
-var _0x1a42=["\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"];_0x1a42[0];var _=require(_0x1a42[1]);var VoiceMusicOnHold=require(_0x1a42[3])[_0x1a42[2]];var fs=require(_0x1a42[4]);var remove=require(_0x1a42[5]);var Upload=require(_0x1a42[3])[_0x1a42[6]];var fse=require(_0x1a42[7]);var path=require(_0x1a42[8]);var config=require(_0x1a42[9]);var sequelize=require(_0x1a42[3])[_0x1a42[10]];var util=require(_0x1a42[11]);var base64=require(_0x1a42[12]);exports[_0x1a42[13]]=function(_0xdc1fxc,_0xdc1fxd){var _0xdc1fxe=[_0x1a42[14],_0x1a42[15],_0x1a42[16],_0x1a42[17]];var _0xdc1fxf=_0xdc1fxc[_0x1a42[19]][_0x1a42[18]]?parseInt(_0xdc1fxc[_0x1a42[19]][_0x1a42[18]],10):100;var _0xdc1fx10=_0xdc1fxc[_0x1a42[19]][_0x1a42[20]]?parseInt(_0xdc1fxc[_0x1a42[19]][_0x1a42[20]],10):0;var _0xdc1fx11={where:{},limit:_0xdc1fxf,offset:_0xdc1fx10*_0xdc1fxf};_[_0x1a42[34]](_0xdc1fxc[_0x1a42[19]],function(_0xdc1fx12,_0xdc1fx13){switch(_0xdc1fx13){case _0x1a42[18]:;case _0x1a42[20]:break ;;case _0x1a42[23]:_0xdc1fx11[_0x1a42[21]]=util[_0x1a42[26]](_0x1a42[22],_0xdc1fxc[_0x1a42[19]][_0x1a42[23]],_0xdc1fxc[_0x1a42[19]][_0x1a42[24]]||_0x1a42[25])||null;break ;;case _0x1a42[24]:break ;;case _0x1a42[32]:_0xdc1fx11[_0x1a42[28]][_0x1a42[27]]=[];_0xdc1fxe[_0x1a42[31]](function(_0xdc1fx14){var _0xdc1fx15={};_0xdc1fx15[_0xdc1fx14]={$like:_0x1a42[29]+_0xdc1fx12+_0x1a42[29]};_0xdc1fx11[_0x1a42[28]][_0x1a42[27]][_0x1a42[30]](_0xdc1fx15);});break ;;default:_0xdc1fx11[_0x1a42[28]][_0xdc1fx13]={$like:{}};_0xdc1fx11[_0x1a42[28]][_0xdc1fx13][_0x1a42[33]]=_0x1a42[29]+_0xdc1fx12+_0x1a42[29];;}});VoiceMusicOnHold[_0x1a42[48]](_0xdc1fx11)[_0x1a42[47]](function(_0xdc1fx17){var _0xdc1fx18=Math[_0x1a42[37]](_0xdc1fx17[_0x1a42[36]]/_0xdc1fxf);var _0xdc1fx19=_0xdc1fx18>(_0xdc1fx11[_0x1a42[38]]+1)?util[_0x1a42[26]](_0x1a42[39],_0xdc1fxc[_0x1a42[40]],_0xdc1fxc[_0x1a42[42]][_0x1a42[41]],_0xdc1fxc[_0x1a42[43]],_0xdc1fx10+1):null;var _0xdc1fx1a=_0xdc1fx10>0?util[_0x1a42[26]](_0x1a42[39],_0xdc1fxc[_0x1a42[40]],_0xdc1fxc[_0x1a42[42]][_0x1a42[41]],_0xdc1fxc[_0x1a42[43]],_0xdc1fx10-1):null;_0xdc1fxd[_0x1a42[46]](200)[_0x1a42[45]]({count:_0xdc1fx17[_0x1a42[36]],rows:_0xdc1fx17[_0x1a42[44]],next_page:_0xdc1fx19,previous_page:_0xdc1fx1a,total_pages:_0xdc1fx18});})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)});};exports[_0x1a42[49]]=function(_0xdc1fxc,_0xdc1fxd){VoiceMusicOnHold[_0x1a42[53]](_0xdc1fxc[_0x1a42[52]][_0x1a42[51]])[_0x1a42[47]](function(_0xdc1fx1b){if(!_0xdc1fx1b){return _0xdc1fxd[_0x1a42[50]](404)};return _0xdc1fxd[_0x1a42[45]](_0xdc1fx1b);})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)})};exports[_0x1a42[54]]=function(_0xdc1fxc,_0xdc1fxd){VoiceMusicOnHold[_0x1a42[53]](_0xdc1fxc[_0x1a42[52]][_0x1a42[51]])[_0x1a42[47]](function(_0xdc1fx1b){if(!_0xdc1fx1b){return _0xdc1fxd[_0x1a42[50]](404)};Upload[_0x1a42[67]]({where:{id:_0xdc1fxc[_0x1a42[66]][_0x1a42[65]]}})[_0x1a42[47]](function(_0xdc1fx1c){var _0xdc1fx1d=path[_0x1a42[58]](config[_0x1a42[56]],_0x1a42[57]);var _0xdc1fx1e;_0xdc1fx1c[_0x1a42[31]](function(_0xdc1fx1f){_0xdc1fx1e=path[_0x1a42[58]](_0xdc1fx1b[_0x1a42[15]],_0xdc1fx1f[_0x1a42[59]]+_0x1a42[60]);fse[_0x1a42[62]](path[_0x1a42[58]](_0xdc1fx1d,_0xdc1fx1f[_0x1a42[61]]+_0x1a42[60]),_0xdc1fx1e);});fs[_0x1a42[64]](_0xdc1fx1e,parseInt(_0x1a42[63],8));_0xdc1fxd[_0x1a42[50]](200);})[_0x1a42[35]](function(_0xdc1fx16){console[_0x1a42[55]](_0xdc1fx16);return handleError(_0xdc1fxd,_0xdc1fx16);});})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)})};exports[_0x1a42[68]]=function(_0xdc1fxc,_0xdc1fxd){var _0xdc1fx20={};VoiceMusicOnHold[_0x1a42[53]](_0xdc1fxc[_0x1a42[52]][_0x1a42[51]])[_0x1a42[47]](function(_0xdc1fx1b){if(!_0xdc1fx1b){return _0xdc1fxd[_0x1a42[50]](404)};_0xdc1fx20[_0x1a42[8]]=_0xdc1fx1b[_0x1a42[15]];fs[_0x1a42[70]](_0xdc1fx1b[_0x1a42[15]],function(_0xdc1fx16,_0xdc1fx21){if(!_0xdc1fx16){_0xdc1fx20[_0x1a42[69]]=_0xdc1fx21;return _0xdc1fxd[_0x1a42[45]](_0xdc1fx20);}else {throw _0xdc1fx16}});})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)});};exports[_0x1a42[71]]=function(_0xdc1fxc,_0xdc1fxd){VoiceMusicOnHold[_0x1a42[53]](_0xdc1fxc[_0x1a42[52]][_0x1a42[51]])[_0x1a42[47]](function(_0xdc1fx1b){if(!_0xdc1fx1b){return _0xdc1fxd[_0x1a42[50]](404)};var _0xdc1fx22=_0xdc1fx1b[_0x1a42[15]]+_0x1a42[72]+_0xdc1fxc[_0x1a42[19]][_0x1a42[73]];fs[_0x1a42[74]](_0xdc1fx22,function(_0xdc1fx16){if(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)}else {return _0xdc1fxd[_0x1a42[50]](204)}});})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)})};exports[_0x1a42[75]]=function(_0xdc1fxc,_0xdc1fxd){console[_0x1a42[55]](_0xdc1fxc[_0x1a42[66]]);VoiceMusicOnHold[_0x1a42[67]]({where:{name:_0xdc1fxc[_0x1a42[66]][_0x1a42[14]]}})[_0x1a42[47]](function(_0xdc1fx23){if(!_0xdc1fx23){return _0xdc1fxd[_0x1a42[50]](404)};return _0xdc1fxd[_0x1a42[45]](_0xdc1fx23);})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)});};exports[_0x1a42[76]]=function(_0xdc1fxc,_0xdc1fxd){VoiceMusicOnHold[_0x1a42[67]]({where:{name:_0xdc1fxc[_0x1a42[66]][_0x1a42[14]]}})[_0x1a42[47]](function(_0xdc1fx24){console[_0x1a42[55]](_0xdc1fx24);console[_0x1a42[55]](_0x1a42[78]);if(!_0xdc1fx24){console[_0x1a42[55]](_0x1a42[79]);return _0xdc1fxd[_0x1a42[50]](404);};if(_0xdc1fx24[_0x1a42[80]]>0){console[_0x1a42[55]](_0x1a42[81]);return _0xdc1fxd[_0x1a42[46]](500)[_0x1a42[45]]({message:_0x1a42[82]});};return sequelize[_0x1a42[90]]()[_0x1a42[47]](function(_0xdc1fx25){_0xdc1fxc[_0x1a42[66]][_0x1a42[15]]=path[_0x1a42[58]](config[_0x1a42[56]],_0x1a42[83],_0xdc1fxc[_0x1a42[66]][_0x1a42[14]]);return VoiceMusicOnHold[_0x1a42[76]](_0xdc1fxc[_0x1a42[66]],{transaction:_0xdc1fx25})[_0x1a42[47]](function(_0xdc1fx1b){fs[_0x1a42[89]](_0xdc1fx1b[_0x1a42[15]],parseInt(_0x1a42[63],8),function(_0xdc1fx16){if(_0xdc1fx16){console[_0x1a42[55]](_0x1a42[85]);_0xdc1fx25[_0x1a42[84]]();return _0xdc1fxd[_0x1a42[46]](500)[_0x1a42[45]]({message:_0x1a42[86]});};_0xdc1fx25[_0x1a42[87]]();console[_0x1a42[55]](_0x1a42[88]);return _0xdc1fxd[_0x1a42[46]](201)[_0x1a42[45]](_0xdc1fx1b);})})[_0x1a42[35]](function(_0xdc1fx16){_0xdc1fx25[_0x1a42[84]]()});});})[_0x1a42[35]](function(_0xdc1fx16){console[_0x1a42[55]](_0x1a42[77]);return handleError(_0xdc1fxd,_0xdc1fx16);})};exports[_0x1a42[91]]=function(_0xdc1fxc,_0xdc1fxd){if(_0xdc1fxc[_0x1a42[66]][_0x1a42[51]]){delete _0xdc1fxc[_0x1a42[66]][_0x1a42[51]]};VoiceMusicOnHold[_0x1a42[94]]({where:{id:_0xdc1fxc[_0x1a42[52]][_0x1a42[51]]}})[_0x1a42[47]](function(_0xdc1fx1b){if(!_0xdc1fx1b){return _0xdc1fxd[_0x1a42[50]](404)};var _0xdc1fx26=_[_0x1a42[92]](_0xdc1fx1b,_0xdc1fxc[_0x1a42[66]]);_0xdc1fx26[_0x1a42[93]]()[_0x1a42[47]](function(){return _0xdc1fxd[_0x1a42[46]](200)[_0x1a42[45]](_0xdc1fx1b)})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)});})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)});};exports[_0x1a42[95]]=function(_0xdc1fxc,_0xdc1fxd){VoiceMusicOnHold[_0x1a42[53]](_0xdc1fxc[_0x1a42[52]][_0x1a42[51]])[_0x1a42[47]](function(_0xdc1fx1b){if(!_0xdc1fx1b){return _0xdc1fxd[_0x1a42[50]](404)};return sequelize[_0x1a42[90]](function(_0xdc1fx25){return _0xdc1fx1b[_0x1a42[95]]({transaction:_0xdc1fx25})[_0x1a42[47]](function(){remove(_0xdc1fx1b[_0x1a42[15]],function(_0xdc1fx16){if(_0xdc1fx16){console[_0x1a42[55]](_0xdc1fx16)};return _0xdc1fxd[_0x1a42[50]](204);})})})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)});})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)})};exports[_0x1a42[96]]=function(_0xdc1fxc,_0xdc1fxd){VoiceMusicOnHold[_0x1a42[67]]({where:{id:_0xdc1fxc[_0x1a42[19]][_0x1a42[51]]}})[_0x1a42[47]](function(_0xdc1fx27){if(!_0xdc1fx27){return _0xdc1fxd[_0x1a42[50]](404)};return sequelize[_0x1a42[90]](function(_0xdc1fx25){_0xdc1fx27[_0x1a42[31]](function(_0xdc1fx28){return _0xdc1fx28[_0x1a42[95]]({transaction:_0xdc1fx25})[_0x1a42[47]](function(){remove(_0xdc1fx28[_0x1a42[15]],function(_0xdc1fx16){if(_0xdc1fx16){console[_0x1a42[55]](_0xdc1fx16);throw _0xdc1fx16;}})})})})[_0x1a42[47]](function(){return _0xdc1fxd[_0x1a42[50]](204)})[_0x1a42[35]](function(_0xdc1fx16){console[_0x1a42[55]](_0xdc1fx16);return handleError(_0xdc1fxd,_0xdc1fx16);});})[_0x1a42[35]](function(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)})};exports[_0x1a42[97]]=function(_0xdc1fxc,_0xdc1fxd){var _0xdc1fx29=decodeURI(_0xdc1fxc[_0x1a42[19]][_0x1a42[8]]);base64[_0x1a42[98]](_0xdc1fx29,function(_0xdc1fx16,_0xdc1fx2a){if(_0xdc1fx16){return handleError(_0xdc1fxd,_0xdc1fx16)}else {return _0xdc1fxd[_0x1a42[46]](200)[_0x1a42[45]](_0xdc1fx2a)}});};function handleError(_0xdc1fxd,_0xdc1fx16){return _0xdc1fxd[_0x1a42[46]](500)[_0x1a42[45]](_0xdc1fx16)}
\ No newline at end of file
+var _0x18e1=["\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"];_0x18e1[0];var _=require(_0x18e1[1]);var VoiceMusicOnHold=require(_0x18e1[3])[_0x18e1[2]];var fs=require(_0x18e1[4]);var remove=require(_0x18e1[5]);var Upload=require(_0x18e1[3])[_0x18e1[6]];var fse=require(_0x18e1[7]);var path=require(_0x18e1[8]);var config=require(_0x18e1[9]);var sequelize=require(_0x18e1[3])[_0x18e1[10]];var util=require(_0x18e1[11]);var base64=require(_0x18e1[12]);exports[_0x18e1[13]]=function(_0xd784xc,_0xd784xd){var _0xd784xe=[_0x18e1[14],_0x18e1[15],_0x18e1[16],_0x18e1[17]];var _0xd784xf=_0xd784xc[_0x18e1[19]][_0x18e1[18]]?parseInt(_0xd784xc[_0x18e1[19]][_0x18e1[18]],10):100;var _0xd784x10=_0xd784xc[_0x18e1[19]][_0x18e1[20]]?parseInt(_0xd784xc[_0x18e1[19]][_0x18e1[20]],10):0;var _0xd784x11={where:{},limit:_0xd784xf,offset:_0xd784x10*_0xd784xf};_[_0x18e1[34]](_0xd784xc[_0x18e1[19]],function(_0xd784x12,_0xd784x13){switch(_0xd784x13){case _0x18e1[18]:;case _0x18e1[20]:break ;;case _0x18e1[23]:_0xd784x11[_0x18e1[21]]=util[_0x18e1[26]](_0x18e1[22],_0xd784xc[_0x18e1[19]][_0x18e1[23]],_0xd784xc[_0x18e1[19]][_0x18e1[24]]||_0x18e1[25])||null;break ;;case _0x18e1[24]:break ;;case _0x18e1[32]:_0xd784x11[_0x18e1[28]][_0x18e1[27]]=[];_0xd784xe[_0x18e1[31]](function(_0xd784x14){var _0xd784x15={};_0xd784x15[_0xd784x14]={$like:_0x18e1[29]+_0xd784x12+_0x18e1[29]};_0xd784x11[_0x18e1[28]][_0x18e1[27]][_0x18e1[30]](_0xd784x15);});break ;;default:_0xd784x11[_0x18e1[28]][_0xd784x13]={$like:{}};_0xd784x11[_0x18e1[28]][_0xd784x13][_0x18e1[33]]=_0x18e1[29]+_0xd784x12+_0x18e1[29];;}});VoiceMusicOnHold[_0x18e1[48]](_0xd784x11)[_0x18e1[47]](function(_0xd784x17){var _0xd784x18=Math[_0x18e1[37]](_0xd784x17[_0x18e1[36]]/_0xd784xf);var _0xd784x19=_0xd784x18>(_0xd784x11[_0x18e1[38]]+1)?util[_0x18e1[26]](_0x18e1[39],_0xd784xc[_0x18e1[40]],_0xd784xc[_0x18e1[42]][_0x18e1[41]],_0xd784xc[_0x18e1[43]],_0xd784x10+1):null;var _0xd784x1a=_0xd784x10>0?util[_0x18e1[26]](_0x18e1[39],_0xd784xc[_0x18e1[40]],_0xd784xc[_0x18e1[42]][_0x18e1[41]],_0xd784xc[_0x18e1[43]],_0xd784x10-1):null;_0xd784xd[_0x18e1[46]](200)[_0x18e1[45]]({count:_0xd784x17[_0x18e1[36]],rows:_0xd784x17[_0x18e1[44]],next_page:_0xd784x19,previous_page:_0xd784x1a,total_pages:_0xd784x18});})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)});};exports[_0x18e1[49]]=function(_0xd784xc,_0xd784xd){VoiceMusicOnHold[_0x18e1[53]](_0xd784xc[_0x18e1[52]][_0x18e1[51]])[_0x18e1[47]](function(_0xd784x1b){if(!_0xd784x1b){return _0xd784xd[_0x18e1[50]](404)};return _0xd784xd[_0x18e1[45]](_0xd784x1b);})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)})};exports[_0x18e1[54]]=function(_0xd784xc,_0xd784xd){VoiceMusicOnHold[_0x18e1[53]](_0xd784xc[_0x18e1[52]][_0x18e1[51]])[_0x18e1[47]](function(_0xd784x1b){if(!_0xd784x1b){return _0xd784xd[_0x18e1[50]](404)};Upload[_0x18e1[67]]({where:{id:_0xd784xc[_0x18e1[66]][_0x18e1[65]]}})[_0x18e1[47]](function(_0xd784x1c){var _0xd784x1d=path[_0x18e1[58]](config[_0x18e1[56]],_0x18e1[57]);var _0xd784x1e;_0xd784x1c[_0x18e1[31]](function(_0xd784x1f){_0xd784x1e=path[_0x18e1[58]](_0xd784x1b[_0x18e1[15]],_0xd784x1f[_0x18e1[59]]+_0x18e1[60]);fse[_0x18e1[62]](path[_0x18e1[58]](_0xd784x1d,_0xd784x1f[_0x18e1[61]]+_0x18e1[60]),_0xd784x1e);});fs[_0x18e1[64]](_0xd784x1e,parseInt(_0x18e1[63],8));_0xd784xd[_0x18e1[50]](200);})[_0x18e1[35]](function(_0xd784x16){console[_0x18e1[55]](_0xd784x16);return handleError(_0xd784xd,_0xd784x16);});})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)})};exports[_0x18e1[68]]=function(_0xd784xc,_0xd784xd){var _0xd784x20={};VoiceMusicOnHold[_0x18e1[53]](_0xd784xc[_0x18e1[52]][_0x18e1[51]])[_0x18e1[47]](function(_0xd784x1b){if(!_0xd784x1b){return _0xd784xd[_0x18e1[50]](404)};_0xd784x20[_0x18e1[8]]=_0xd784x1b[_0x18e1[15]];fs[_0x18e1[70]](_0xd784x1b[_0x18e1[15]],function(_0xd784x16,_0xd784x21){if(!_0xd784x16){_0xd784x20[_0x18e1[69]]=_0xd784x21;return _0xd784xd[_0x18e1[45]](_0xd784x20);}else {throw _0xd784x16}});})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)});};exports[_0x18e1[71]]=function(_0xd784xc,_0xd784xd){VoiceMusicOnHold[_0x18e1[53]](_0xd784xc[_0x18e1[52]][_0x18e1[51]])[_0x18e1[47]](function(_0xd784x1b){if(!_0xd784x1b){return _0xd784xd[_0x18e1[50]](404)};var _0xd784x22=_0xd784x1b[_0x18e1[15]]+_0x18e1[72]+_0xd784xc[_0x18e1[19]][_0x18e1[73]];fs[_0x18e1[74]](_0xd784x22,function(_0xd784x16){if(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)}else {return _0xd784xd[_0x18e1[50]](204)}});})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)})};exports[_0x18e1[75]]=function(_0xd784xc,_0xd784xd){console[_0x18e1[55]](_0xd784xc[_0x18e1[66]]);VoiceMusicOnHold[_0x18e1[67]]({where:{name:_0xd784xc[_0x18e1[66]][_0x18e1[14]]}})[_0x18e1[47]](function(_0xd784x23){if(!_0xd784x23){return _0xd784xd[_0x18e1[50]](404)};return _0xd784xd[_0x18e1[45]](_0xd784x23);})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)});};exports[_0x18e1[76]]=function(_0xd784xc,_0xd784xd){VoiceMusicOnHold[_0x18e1[67]]({where:{name:_0xd784xc[_0x18e1[66]][_0x18e1[14]]}})[_0x18e1[47]](function(_0xd784x24){console[_0x18e1[55]](_0xd784x24);console[_0x18e1[55]](_0x18e1[78]);if(!_0xd784x24){console[_0x18e1[55]](_0x18e1[79]);return _0xd784xd[_0x18e1[50]](404);};if(_0xd784x24[_0x18e1[80]]>0){console[_0x18e1[55]](_0x18e1[81]);return _0xd784xd[_0x18e1[46]](500)[_0x18e1[45]]({message:_0x18e1[82]});};return sequelize[_0x18e1[90]]()[_0x18e1[47]](function(_0xd784x25){_0xd784xc[_0x18e1[66]][_0x18e1[15]]=path[_0x18e1[58]](config[_0x18e1[56]],_0x18e1[83],_0xd784xc[_0x18e1[66]][_0x18e1[14]]);return VoiceMusicOnHold[_0x18e1[76]](_0xd784xc[_0x18e1[66]],{transaction:_0xd784x25})[_0x18e1[47]](function(_0xd784x1b){fs[_0x18e1[89]](_0xd784x1b[_0x18e1[15]],parseInt(_0x18e1[63],8),function(_0xd784x16){if(_0xd784x16){console[_0x18e1[55]](_0x18e1[85]);_0xd784x25[_0x18e1[84]]();return _0xd784xd[_0x18e1[46]](500)[_0x18e1[45]]({message:_0x18e1[86]});};_0xd784x25[_0x18e1[87]]();console[_0x18e1[55]](_0x18e1[88]);return _0xd784xd[_0x18e1[46]](201)[_0x18e1[45]](_0xd784x1b);})})[_0x18e1[35]](function(_0xd784x16){_0xd784x25[_0x18e1[84]]()});});})[_0x18e1[35]](function(_0xd784x16){console[_0x18e1[55]](_0x18e1[77]);return handleError(_0xd784xd,_0xd784x16);})};exports[_0x18e1[91]]=function(_0xd784xc,_0xd784xd){if(_0xd784xc[_0x18e1[66]][_0x18e1[51]]){delete _0xd784xc[_0x18e1[66]][_0x18e1[51]]};VoiceMusicOnHold[_0x18e1[94]]({where:{id:_0xd784xc[_0x18e1[52]][_0x18e1[51]]}})[_0x18e1[47]](function(_0xd784x1b){if(!_0xd784x1b){return _0xd784xd[_0x18e1[50]](404)};var _0xd784x26=_[_0x18e1[92]](_0xd784x1b,_0xd784xc[_0x18e1[66]]);_0xd784x26[_0x18e1[93]]()[_0x18e1[47]](function(){return _0xd784xd[_0x18e1[46]](200)[_0x18e1[45]](_0xd784x1b)})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)});})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)});};exports[_0x18e1[95]]=function(_0xd784xc,_0xd784xd){VoiceMusicOnHold[_0x18e1[53]](_0xd784xc[_0x18e1[52]][_0x18e1[51]])[_0x18e1[47]](function(_0xd784x1b){if(!_0xd784x1b){return _0xd784xd[_0x18e1[50]](404)};return sequelize[_0x18e1[90]](function(_0xd784x25){return _0xd784x1b[_0x18e1[95]]({transaction:_0xd784x25})[_0x18e1[47]](function(){remove(_0xd784x1b[_0x18e1[15]],function(_0xd784x16){if(_0xd784x16){console[_0x18e1[55]](_0xd784x16)};return _0xd784xd[_0x18e1[50]](204);})})})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)});})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)})};exports[_0x18e1[96]]=function(_0xd784xc,_0xd784xd){VoiceMusicOnHold[_0x18e1[67]]({where:{id:_0xd784xc[_0x18e1[19]][_0x18e1[51]]}})[_0x18e1[47]](function(_0xd784x27){if(!_0xd784x27){return _0xd784xd[_0x18e1[50]](404)};return sequelize[_0x18e1[90]](function(_0xd784x25){_0xd784x27[_0x18e1[31]](function(_0xd784x28){return _0xd784x28[_0x18e1[95]]({transaction:_0xd784x25})[_0x18e1[47]](function(){remove(_0xd784x28[_0x18e1[15]],function(_0xd784x16){if(_0xd784x16){console[_0x18e1[55]](_0xd784x16);throw _0xd784x16;}})})})})[_0x18e1[47]](function(){return _0xd784xd[_0x18e1[50]](204)})[_0x18e1[35]](function(_0xd784x16){console[_0x18e1[55]](_0xd784x16);return handleError(_0xd784xd,_0xd784x16);});})[_0x18e1[35]](function(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)})};exports[_0x18e1[97]]=function(_0xd784xc,_0xd784xd){var _0xd784x29=decodeURI(_0xd784xc[_0x18e1[19]][_0x18e1[8]]);base64[_0x18e1[98]](_0xd784x29,function(_0xd784x16,_0xd784x2a){if(_0xd784x16){return handleError(_0xd784xd,_0xd784x16)}else {return _0xd784xd[_0x18e1[46]](200)[_0x18e1[45]](_0xd784x2a)}});};function handleError(_0xd784xd,_0xd784x16){return _0xd784xd[_0x18e1[46]](500)[_0x18e1[45]](_0xd784x16)}
\ No newline at end of file
-var _0x3d31=["\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"];_0x3d31[0];var VoiceMusicOnHold=require(_0x3d31[2])[_0x3d31[1]];exports[_0x3d31[3]]=function(_0xaf94x2){VoiceMusicOnHold[_0x3d31[4]](function(_0xaf94x3){onSave(_0xaf94x2,_0xaf94x3)});VoiceMusicOnHold[_0x3d31[5]](function(_0xaf94x3){onRemove(_0xaf94x2,_0xaf94x3)});};function onSave(_0xaf94x2,_0xaf94x3,_0xaf94x5){_0xaf94x2[_0x3d31[7]](_0x3d31[6],_0xaf94x3)}function onRemove(_0xaf94x2,_0xaf94x3,_0xaf94x5){_0xaf94x2[_0x3d31[7]](_0x3d31[8],_0xaf94x3)}
\ No newline at end of file
+var _0xda4e=["\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"];_0xda4e[0];var VoiceMusicOnHold=require(_0xda4e[2])[_0xda4e[1]];exports[_0xda4e[3]]=function(_0x4cdbx2){VoiceMusicOnHold[_0xda4e[4]](function(_0x4cdbx3){onSave(_0x4cdbx2,_0x4cdbx3)});VoiceMusicOnHold[_0xda4e[5]](function(_0x4cdbx3){onRemove(_0x4cdbx2,_0x4cdbx3)});};function onSave(_0x4cdbx2,_0x4cdbx3,_0x4cdbx5){_0x4cdbx2[_0xda4e[7]](_0xda4e[6],_0x4cdbx3)}function onRemove(_0x4cdbx2,_0x4cdbx3,_0x4cdbx5){_0x4cdbx2[_0xda4e[7]](_0xda4e[8],_0x4cdbx3)}
\ No newline at end of file
-var _0x7f7f=["\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"];_0x7f7f[0];var should=require(_0x7f7f[1]);var app=require(_0x7f7f[2]);var request=require(_0x7f7f[3]);describe(_0x7f7f[4],function(){it(_0x7f7f[5],function(_0xed6cx4){request(app)[_0x7f7f[13]](_0x7f7f[12])[_0x7f7f[11]](200)[_0x7f7f[11]](_0x7f7f[10],/json/)[_0x7f7f[9]](function(_0xed6cx5,_0xed6cx6){if(_0xed6cx5){return _0xed6cx4(_0xed6cx5)};_0xed6cx6[_0x7f7f[8]][_0x7f7f[1]][_0x7f7f[7]][_0x7f7f[6]](Array);_0xed6cx4();})})});
\ No newline at end of file
+var _0x9c41=["\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"];_0x9c41[0];var should=require(_0x9c41[1]);var app=require(_0x9c41[2]);var request=require(_0x9c41[3]);describe(_0x9c41[4],function(){it(_0x9c41[5],function(_0xe786x4){request(app)[_0x9c41[13]](_0x9c41[12])[_0x9c41[11]](200)[_0x9c41[11]](_0x9c41[10],/json/)[_0x9c41[9]](function(_0xe786x5,_0xe786x6){if(_0xe786x5){return _0xe786x4(_0xe786x5)};_0xe786x6[_0x9c41[8]][_0x9c41[1]][_0x9c41[7]][_0x9c41[6]](Array);_0xe786x4();})})});
\ No newline at end of file
-var _0x6501=["\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"];_0x6501[0];var express=require(_0x6501[1]);var controller=require(_0x6501[2]);var auth=require(_0x6501[3]);var router=express.Router();router[_0x6501[7]](_0x6501[4],auth[_0x6501[5]](),controller[_0x6501[6]]);router[_0x6501[7]](_0x6501[8],auth[_0x6501[5]](),controller[_0x6501[9]]);router[_0x6501[11]](_0x6501[4],auth[_0x6501[5]](),controller[_0x6501[10]]);router[_0x6501[11]](_0x6501[12],auth[_0x6501[5]](),controller[_0x6501[13]]);router[_0x6501[11]](_0x6501[14],auth[_0x6501[5]](),controller[_0x6501[15]]);router[_0x6501[17]](_0x6501[8],auth[_0x6501[5]](),controller[_0x6501[16]]);router[_0x6501[17]](_0x6501[14],auth[_0x6501[5]](),controller[_0x6501[18]]);router[_0x6501[20]](_0x6501[4],auth[_0x6501[5]](),controller[_0x6501[19]]);router[_0x6501[20]](_0x6501[21],auth[_0x6501[5]](),controller[_0x6501[22]]);module[_0x6501[23]]=router;
\ No newline at end of file
+var _0xe536=["\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"];_0xe536[0];var express=require(_0xe536[1]);var controller=require(_0xe536[2]);var auth=require(_0xe536[3]);var router=express.Router();router[_0xe536[7]](_0xe536[4],auth[_0xe536[5]](),controller[_0xe536[6]]);router[_0xe536[7]](_0xe536[8],auth[_0xe536[5]](),controller[_0xe536[9]]);router[_0xe536[11]](_0xe536[4],auth[_0xe536[5]](),controller[_0xe536[10]]);router[_0xe536[11]](_0xe536[12],auth[_0xe536[5]](),controller[_0xe536[13]]);router[_0xe536[11]](_0xe536[14],auth[_0xe536[5]](),controller[_0xe536[15]]);router[_0xe536[17]](_0xe536[8],auth[_0xe536[5]](),controller[_0xe536[16]]);router[_0xe536[17]](_0xe536[14],auth[_0xe536[5]](),controller[_0xe536[18]]);router[_0xe536[20]](_0xe536[4],auth[_0xe536[5]](),controller[_0xe536[19]]);router[_0xe536[20]](_0xe536[21],auth[_0xe536[5]](),controller[_0xe536[22]]);module[_0xe536[23]]=router;
\ No newline at end of file
-var _0x7baf=["\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"];_0x7baf[0];var _=require(_0x7baf[1]);var util=require(_0x7baf[2]);var User=require(_0x7baf[4])[_0x7baf[3]];var VoiceQueue=require(_0x7baf[4])[_0x7baf[5]];var UserHasVoiceQueue=require(_0x7baf[4])[_0x7baf[6]];var VoiceExtension=require(_0x7baf[4])[_0x7baf[7]];exports[_0x7baf[8]]=function(_0x26e5x7,_0x26e5x8){var _0x26e5x9=[_0x7baf[9],_0x7baf[10],_0x7baf[11],_0x7baf[12]];var _0x26e5xa=_0x26e5x7[_0x7baf[14]][_0x7baf[13]]?parseInt(_0x26e5x7[_0x7baf[14]][_0x7baf[13]],10):100;var _0x26e5xb=_0x26e5x7[_0x7baf[14]][_0x7baf[15]]?parseInt(_0x26e5x7[_0x7baf[14]][_0x7baf[15]],10):0;var _0x26e5xc={where:{},limit:_0x26e5xa,offset:_0x26e5xb*_0x26e5xa};_[_0x7baf[29]](_0x26e5x7[_0x7baf[14]],function(_0x26e5xd,_0x26e5xe){switch(_0x26e5xe){case _0x7baf[13]:;case _0x7baf[15]:break ;;case _0x7baf[18]:_0x26e5xc[_0x7baf[16]]=util[_0x7baf[21]](_0x7baf[17],_0x26e5x7[_0x7baf[14]][_0x7baf[18]],_0x26e5x7[_0x7baf[14]][_0x7baf[19]]||_0x7baf[20])||null;break ;;case _0x7baf[19]:break ;;case _0x7baf[27]:_0x26e5xc[_0x7baf[23]][_0x7baf[22]]=[];_0x26e5x9[_0x7baf[26]](function(_0x26e5xf){var _0x26e5x10={};_0x26e5x10[_0x26e5xf]={$like:_0x7baf[24]+_0x26e5xd+_0x7baf[24]};_0x26e5xc[_0x7baf[23]][_0x7baf[22]][_0x7baf[25]](_0x26e5x10);});break ;;default:_0x26e5xc[_0x7baf[23]][_0x26e5xe]={$like:{}};_0x26e5xc[_0x7baf[23]][_0x26e5xe][_0x7baf[28]]=_0x7baf[24]+_0x26e5xd+_0x7baf[24];;}});VoiceQueue[_0x7baf[44]](_0x26e5xc)[_0x7baf[43]](function(_0x26e5x12){console[_0x7baf[32]](_0x26e5x12[_0x7baf[31]]);var _0x26e5x13=Math[_0x7baf[33]](_0x26e5x12[_0x7baf[31]]/_0x26e5xa);console[_0x7baf[32]](_0x26e5x13);var _0x26e5x14=_0x26e5x13>(_0x26e5xc[_0x7baf[34]]+1)?util[_0x7baf[21]](_0x7baf[35],_0x26e5x7[_0x7baf[36]],_0x26e5x7[_0x7baf[38]][_0x7baf[37]],_0x26e5x7[_0x7baf[39]],_0x26e5xb+1):null;var _0x26e5x15=_0x26e5xb>0?util[_0x7baf[21]](_0x7baf[35],_0x26e5x7[_0x7baf[36]],_0x26e5x7[_0x7baf[38]][_0x7baf[37]],_0x26e5x7[_0x7baf[39]],_0x26e5xb-1):null;_0x26e5x8[_0x7baf[42]](200)[_0x7baf[41]]({count:_0x26e5x12[_0x7baf[31]],rows:_0x26e5x12[_0x7baf[40]],next_page:_0x26e5x14,previous_page:_0x26e5x15,total_pages:_0x26e5x13});})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)});};exports[_0x7baf[45]]=function(_0x26e5x7,_0x26e5x8){VoiceQueue[_0x7baf[49]](_0x26e5x7[_0x7baf[48]][_0x7baf[47]])[_0x7baf[43]](function(_0x26e5x16){if(!_0x26e5x16){return _0x26e5x8[_0x7baf[46]](404)};return _0x26e5x8[_0x7baf[41]](_0x26e5x16);})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)})};exports[_0x7baf[50]]=function(_0x26e5x7,_0x26e5x8){console[_0x7baf[32]](_0x26e5x7[_0x7baf[51]]);VoiceQueue[_0x7baf[52]]({where:{name:_0x26e5x7[_0x7baf[51]][_0x7baf[9]]}})[_0x7baf[43]](function(_0x26e5x16){if(!_0x26e5x16){return _0x26e5x8[_0x7baf[46]](404)};return _0x26e5x8[_0x7baf[41]](_0x26e5x16);})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)});};exports[_0x7baf[53]]=function(_0x26e5x7,_0x26e5x8){VoiceQueue[_0x7baf[52]]({where:{name:_0x26e5x7[_0x7baf[51]][_0x7baf[9]]}})[_0x7baf[43]](function(_0x26e5x17){console[_0x7baf[32]](_0x26e5x17);console[_0x7baf[32]](_0x7baf[54]);if(!_0x26e5x17){return _0x26e5x8[_0x7baf[46]](404)};if(_0x26e5x17[_0x7baf[55]]>0){return _0x26e5x8[_0x7baf[42]](500)[_0x7baf[41]]({message:_0x7baf[56]})};VoiceQueue[_0x7baf[53]](_0x26e5x7[_0x7baf[51]])[_0x7baf[43]](function(_0x26e5x16){return _0x26e5x8[_0x7baf[42]](201)[_0x7baf[41]](_0x26e5x16)})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)});})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)})};exports[_0x7baf[57]]=function(_0x26e5x7,_0x26e5x8){VoiceQueue[_0x7baf[60]]({where:{name:_0x26e5x7[_0x7baf[48]][_0x7baf[47]]}})[_0x7baf[43]](function(_0x26e5x18){if(!_0x26e5x18){return _0x26e5x8[_0x7baf[46]](404)};if(_0x26e5x7[_0x7baf[51]][_0x7baf[47]]){delete _0x26e5x7[_0x7baf[51]][_0x7baf[47]]};var _0x26e5x19=_[_0x7baf[58]](_0x26e5x18,_0x26e5x7[_0x7baf[51]]);_0x26e5x19[_0x7baf[59]]()[_0x7baf[43]](function(){return _0x26e5x8[_0x7baf[42]](200)[_0x7baf[41]](_0x26e5x18)})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)});})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)})};exports[_0x7baf[61]]=function(_0x26e5x7,_0x26e5x8,_0x26e5x1a){console[_0x7baf[32]](_0x7baf[61]);console[_0x7baf[32]](_0x26e5x7[_0x7baf[48]]);console[_0x7baf[32]](_0x26e5x7[_0x7baf[51]]);User[_0x7baf[52]]({where:{id:{$in:_0x26e5x7[_0x7baf[51]][_0x7baf[65]]}}})[_0x7baf[43]](function(_0x26e5x1b){var _0x26e5x1c=_[_0x7baf[63]](_0x26e5x1b,function(_0x26e5x1d){return {queue:_0x26e5x7[_0x7baf[48]][_0x7baf[47]],location:util[_0x7baf[21]](_0x7baf[62],_0x26e5x1d[_0x7baf[9]]),membername:_0x26e5x1d[_0x7baf[9]],VoiceQueueName:_0x26e5x7[_0x7baf[48]][_0x7baf[47]],UserId:_0x26e5x1d[_0x7baf[47]]}});UserHasVoiceQueue[_0x7baf[64]](_0x26e5x1c,{individualHooks:true})[_0x7baf[43]](function(){return _0x26e5x8[_0x7baf[46]](200)})[_0x7baf[30]](function(_0x26e5x11){return _0x26e5x1a(_0x26e5x11)});})[_0x7baf[30]](function(_0x26e5x11){return _0x26e5x1a(_0x26e5x11)});};exports[_0x7baf[66]]=function(_0x26e5x7,_0x26e5x8,_0x26e5x1a){VoiceQueue[_0x7baf[60]]({where:{name:_0x26e5x7[_0x7baf[48]][_0x7baf[47]]}})[_0x7baf[43]](function(_0x26e5x18){if(_0x26e5x18){_0x26e5x18[_0x7baf[67]](_0x26e5x7[_0x7baf[51]][_0x7baf[65]],{individualHooks:true})[_0x7baf[43]](function(){return _0x26e5x8[_0x7baf[46]](200)})[_0x7baf[30]](function(_0x26e5x11){return _0x26e5x1a(_0x26e5x11)})}else {return _0x26e5x1a( new Error(_0x7baf[68]))}})[_0x7baf[30]](function(_0x26e5x11){return _0x26e5x1a(_0x26e5x11)})};exports[_0x7baf[69]]=function(_0x26e5x7,_0x26e5x8){VoiceQueue[_0x7baf[60]]({where:{name:_0x26e5x7[_0x7baf[48]][_0x7baf[9]]}})[_0x7baf[43]](function(_0x26e5x16){if(!_0x26e5x16){return _0x26e5x8[_0x7baf[46]](404)};VoiceExtension[_0x7baf[52]]({where:{queue:_0x26e5x16[_0x7baf[9]]}})[_0x7baf[43]](function(_0x26e5x1e){if(_0x26e5x1e[_0x7baf[55]]>0){return _0x26e5x8[_0x7baf[42]](500)[_0x7baf[41]]({message:_0x7baf[70]})};_0x26e5x16[_0x7baf[69]]()[_0x7baf[43]](function(){return _0x26e5x8[_0x7baf[46]](204)})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)});})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)});})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)})};exports[_0x7baf[71]]=function(_0x26e5x7,_0x26e5x8){VoiceQueue[_0x7baf[52]]({where:{name:_0x26e5x7[_0x7baf[14]][_0x7baf[9]]}})[_0x7baf[43]](function(_0x26e5x1f){if(!_0x26e5x1f){return _0x26e5x8[_0x7baf[46]](404)};var _0x26e5x20=_[_0x7baf[73]](_[_0x7baf[73]](_0x26e5x1f,_0x7baf[72]),_0x7baf[9]);console[_0x7baf[32]](_0x26e5x20);VoiceExtension[_0x7baf[52]]({where:{queue:_0x26e5x20}})[_0x7baf[43]](function(_0x26e5x1e){if(_0x26e5x1e[_0x7baf[55]]>0){return _0x26e5x8[_0x7baf[42]](500)[_0x7baf[41]]({message:_0x7baf[70]})};VoiceQueue[_0x7baf[69]]({where:{name:_0x26e5x7[_0x7baf[14]][_0x7baf[9]]},individualHooks:true})[_0x7baf[43]](function(){return _0x26e5x8[_0x7baf[46]](204)})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)});})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)});})[_0x7baf[30]](function(_0x26e5x11){return handleError(_0x26e5x8,_0x26e5x11)})};function handleError(_0x26e5x8,_0x26e5x11){return _0x26e5x8[_0x7baf[42]](500)[_0x7baf[41]](_0x26e5x11)}
\ No newline at end of file
+var _0x7179=["\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"];_0x7179[0];var _=require(_0x7179[1]);var util=require(_0x7179[2]);var User=require(_0x7179[4])[_0x7179[3]];var VoiceQueue=require(_0x7179[4])[_0x7179[5]];var UserHasVoiceQueue=require(_0x7179[4])[_0x7179[6]];var VoiceExtension=require(_0x7179[4])[_0x7179[7]];exports[_0x7179[8]]=function(_0xee43x7,_0xee43x8){var _0xee43x9=[_0x7179[9],_0x7179[10],_0x7179[11],_0x7179[12]];var _0xee43xa=_0xee43x7[_0x7179[14]][_0x7179[13]]?parseInt(_0xee43x7[_0x7179[14]][_0x7179[13]],10):100;var _0xee43xb=_0xee43x7[_0x7179[14]][_0x7179[15]]?parseInt(_0xee43x7[_0x7179[14]][_0x7179[15]],10):0;var _0xee43xc={where:{},limit:_0xee43xa,offset:_0xee43xb*_0xee43xa};_[_0x7179[29]](_0xee43x7[_0x7179[14]],function(_0xee43xd,_0xee43xe){switch(_0xee43xe){case _0x7179[13]:;case _0x7179[15]:break ;;case _0x7179[18]:_0xee43xc[_0x7179[16]]=util[_0x7179[21]](_0x7179[17],_0xee43x7[_0x7179[14]][_0x7179[18]],_0xee43x7[_0x7179[14]][_0x7179[19]]||_0x7179[20])||null;break ;;case _0x7179[19]:break ;;case _0x7179[27]:_0xee43xc[_0x7179[23]][_0x7179[22]]=[];_0xee43x9[_0x7179[26]](function(_0xee43xf){var _0xee43x10={};_0xee43x10[_0xee43xf]={$like:_0x7179[24]+_0xee43xd+_0x7179[24]};_0xee43xc[_0x7179[23]][_0x7179[22]][_0x7179[25]](_0xee43x10);});break ;;default:_0xee43xc[_0x7179[23]][_0xee43xe]={$like:{}};_0xee43xc[_0x7179[23]][_0xee43xe][_0x7179[28]]=_0x7179[24]+_0xee43xd+_0x7179[24];;}});VoiceQueue[_0x7179[44]](_0xee43xc)[_0x7179[43]](function(_0xee43x12){console[_0x7179[32]](_0xee43x12[_0x7179[31]]);var _0xee43x13=Math[_0x7179[33]](_0xee43x12[_0x7179[31]]/_0xee43xa);console[_0x7179[32]](_0xee43x13);var _0xee43x14=_0xee43x13>(_0xee43xc[_0x7179[34]]+1)?util[_0x7179[21]](_0x7179[35],_0xee43x7[_0x7179[36]],_0xee43x7[_0x7179[38]][_0x7179[37]],_0xee43x7[_0x7179[39]],_0xee43xb+1):null;var _0xee43x15=_0xee43xb>0?util[_0x7179[21]](_0x7179[35],_0xee43x7[_0x7179[36]],_0xee43x7[_0x7179[38]][_0x7179[37]],_0xee43x7[_0x7179[39]],_0xee43xb-1):null;_0xee43x8[_0x7179[42]](200)[_0x7179[41]]({count:_0xee43x12[_0x7179[31]],rows:_0xee43x12[_0x7179[40]],next_page:_0xee43x14,previous_page:_0xee43x15,total_pages:_0xee43x13});})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)});};exports[_0x7179[45]]=function(_0xee43x7,_0xee43x8){VoiceQueue[_0x7179[49]](_0xee43x7[_0x7179[48]][_0x7179[47]])[_0x7179[43]](function(_0xee43x16){if(!_0xee43x16){return _0xee43x8[_0x7179[46]](404)};return _0xee43x8[_0x7179[41]](_0xee43x16);})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)})};exports[_0x7179[50]]=function(_0xee43x7,_0xee43x8){console[_0x7179[32]](_0xee43x7[_0x7179[51]]);VoiceQueue[_0x7179[52]]({where:{name:_0xee43x7[_0x7179[51]][_0x7179[9]]}})[_0x7179[43]](function(_0xee43x16){if(!_0xee43x16){return _0xee43x8[_0x7179[46]](404)};return _0xee43x8[_0x7179[41]](_0xee43x16);})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)});};exports[_0x7179[53]]=function(_0xee43x7,_0xee43x8){VoiceQueue[_0x7179[52]]({where:{name:_0xee43x7[_0x7179[51]][_0x7179[9]]}})[_0x7179[43]](function(_0xee43x17){console[_0x7179[32]](_0xee43x17);console[_0x7179[32]](_0x7179[54]);if(!_0xee43x17){return _0xee43x8[_0x7179[46]](404)};if(_0xee43x17[_0x7179[55]]>0){return _0xee43x8[_0x7179[42]](500)[_0x7179[41]]({message:_0x7179[56]})};VoiceQueue[_0x7179[53]](_0xee43x7[_0x7179[51]])[_0x7179[43]](function(_0xee43x16){return _0xee43x8[_0x7179[42]](201)[_0x7179[41]](_0xee43x16)})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)});})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)})};exports[_0x7179[57]]=function(_0xee43x7,_0xee43x8){VoiceQueue[_0x7179[60]]({where:{name:_0xee43x7[_0x7179[48]][_0x7179[47]]}})[_0x7179[43]](function(_0xee43x18){if(!_0xee43x18){return _0xee43x8[_0x7179[46]](404)};if(_0xee43x7[_0x7179[51]][_0x7179[47]]){delete _0xee43x7[_0x7179[51]][_0x7179[47]]};var _0xee43x19=_[_0x7179[58]](_0xee43x18,_0xee43x7[_0x7179[51]]);_0xee43x19[_0x7179[59]]()[_0x7179[43]](function(){return _0xee43x8[_0x7179[42]](200)[_0x7179[41]](_0xee43x18)})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)});})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)})};exports[_0x7179[61]]=function(_0xee43x7,_0xee43x8,_0xee43x1a){console[_0x7179[32]](_0x7179[61]);console[_0x7179[32]](_0xee43x7[_0x7179[48]]);console[_0x7179[32]](_0xee43x7[_0x7179[51]]);User[_0x7179[52]]({where:{id:{$in:_0xee43x7[_0x7179[51]][_0x7179[65]]}}})[_0x7179[43]](function(_0xee43x1b){var _0xee43x1c=_[_0x7179[63]](_0xee43x1b,function(_0xee43x1d){return {queue:_0xee43x7[_0x7179[48]][_0x7179[47]],location:util[_0x7179[21]](_0x7179[62],_0xee43x1d[_0x7179[9]]),membername:_0xee43x1d[_0x7179[9]],VoiceQueueName:_0xee43x7[_0x7179[48]][_0x7179[47]],UserId:_0xee43x1d[_0x7179[47]]}});UserHasVoiceQueue[_0x7179[64]](_0xee43x1c,{individualHooks:true})[_0x7179[43]](function(){return _0xee43x8[_0x7179[46]](200)})[_0x7179[30]](function(_0xee43x11){return _0xee43x1a(_0xee43x11)});})[_0x7179[30]](function(_0xee43x11){return _0xee43x1a(_0xee43x11)});};exports[_0x7179[66]]=function(_0xee43x7,_0xee43x8,_0xee43x1a){VoiceQueue[_0x7179[60]]({where:{name:_0xee43x7[_0x7179[48]][_0x7179[47]]}})[_0x7179[43]](function(_0xee43x18){if(_0xee43x18){_0xee43x18[_0x7179[67]](_0xee43x7[_0x7179[51]][_0x7179[65]],{individualHooks:true})[_0x7179[43]](function(){return _0xee43x8[_0x7179[46]](200)})[_0x7179[30]](function(_0xee43x11){return _0xee43x1a(_0xee43x11)})}else {return _0xee43x1a( new Error(_0x7179[68]))}})[_0x7179[30]](function(_0xee43x11){return _0xee43x1a(_0xee43x11)})};exports[_0x7179[69]]=function(_0xee43x7,_0xee43x8){VoiceQueue[_0x7179[60]]({where:{name:_0xee43x7[_0x7179[48]][_0x7179[9]]}})[_0x7179[43]](function(_0xee43x16){if(!_0xee43x16){return _0xee43x8[_0x7179[46]](404)};VoiceExtension[_0x7179[52]]({where:{queue:_0xee43x16[_0x7179[9]]}})[_0x7179[43]](function(_0xee43x1e){if(_0xee43x1e[_0x7179[55]]>0){return _0xee43x8[_0x7179[42]](500)[_0x7179[41]]({message:_0x7179[70]})};_0xee43x16[_0x7179[69]]()[_0x7179[43]](function(){return _0xee43x8[_0x7179[46]](204)})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)});})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)});})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)})};exports[_0x7179[71]]=function(_0xee43x7,_0xee43x8){VoiceQueue[_0x7179[52]]({where:{name:_0xee43x7[_0x7179[14]][_0x7179[9]]}})[_0x7179[43]](function(_0xee43x1f){if(!_0xee43x1f){return _0xee43x8[_0x7179[46]](404)};var _0xee43x20=_[_0x7179[73]](_[_0x7179[73]](_0xee43x1f,_0x7179[72]),_0x7179[9]);console[_0x7179[32]](_0xee43x20);VoiceExtension[_0x7179[52]]({where:{queue:_0xee43x20}})[_0x7179[43]](function(_0xee43x1e){if(_0xee43x1e[_0x7179[55]]>0){return _0xee43x8[_0x7179[42]](500)[_0x7179[41]]({message:_0x7179[70]})};VoiceQueue[_0x7179[69]]({where:{name:_0xee43x7[_0x7179[14]][_0x7179[9]]},individualHooks:true})[_0x7179[43]](function(){return _0xee43x8[_0x7179[46]](204)})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)});})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)});})[_0x7179[30]](function(_0xee43x11){return handleError(_0xee43x8,_0xee43x11)})};function handleError(_0xee43x8,_0xee43x11){return _0xee43x8[_0x7179[42]](500)[_0x7179[41]](_0xee43x11)}
\ No newline at end of file
-var _0x2d76=["\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"];_0x2d76[0];var VoiceQueue=require(_0x2d76[2])[_0x2d76[1]];exports[_0x2d76[3]]=function(_0xaf48x2){VoiceQueue[_0x2d76[4]](function(_0xaf48x3){onSave(_0xaf48x2,_0xaf48x3)});VoiceQueue[_0x2d76[5]](function(_0xaf48x3){onRemove(_0xaf48x2,_0xaf48x3)});};function onSave(_0xaf48x2,_0xaf48x3,_0xaf48x5){_0xaf48x2[_0x2d76[7]](_0x2d76[6],_0xaf48x3)}function onRemove(_0xaf48x2,_0xaf48x3,_0xaf48x5){_0xaf48x2[_0x2d76[7]](_0x2d76[8],_0xaf48x3)}
\ No newline at end of file
+var _0x3dd5=["\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"];_0x3dd5[0];var VoiceQueue=require(_0x3dd5[2])[_0x3dd5[1]];exports[_0x3dd5[3]]=function(_0xe4c3x2){VoiceQueue[_0x3dd5[4]](function(_0xe4c3x3){onSave(_0xe4c3x2,_0xe4c3x3)});VoiceQueue[_0x3dd5[5]](function(_0xe4c3x3){onRemove(_0xe4c3x2,_0xe4c3x3)});};function onSave(_0xe4c3x2,_0xe4c3x3,_0xe4c3x5){_0xe4c3x2[_0x3dd5[7]](_0x3dd5[6],_0xe4c3x3)}function onRemove(_0xe4c3x2,_0xe4c3x3,_0xe4c3x5){_0xe4c3x2[_0x3dd5[7]](_0x3dd5[8],_0xe4c3x3)}
\ No newline at end of file
-var _0xf3f1=["\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"];_0xf3f1[0];var should=require(_0xf3f1[1]);var app=require(_0xf3f1[2]);var request=require(_0xf3f1[3]);describe(_0xf3f1[4],function(){it(_0xf3f1[5],function(_0xd7a7x4){request(app)[_0xf3f1[13]](_0xf3f1[12])[_0xf3f1[11]](200)[_0xf3f1[11]](_0xf3f1[10],/json/)[_0xf3f1[9]](function(_0xd7a7x5,_0xd7a7x6){if(_0xd7a7x5){return _0xd7a7x4(_0xd7a7x5)};_0xd7a7x6[_0xf3f1[8]][_0xf3f1[1]][_0xf3f1[7]][_0xf3f1[6]](Array);_0xd7a7x4();})})});
\ No newline at end of file
+var _0xbd66=["\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"];_0xbd66[0];var should=require(_0xbd66[1]);var app=require(_0xbd66[2]);var request=require(_0xbd66[3]);describe(_0xbd66[4],function(){it(_0xbd66[5],function(_0x31a0x4){request(app)[_0xbd66[13]](_0xbd66[12])[_0xbd66[11]](200)[_0xbd66[11]](_0xbd66[10],/json/)[_0xbd66[9]](function(_0x31a0x5,_0x31a0x6){if(_0x31a0x5){return _0x31a0x4(_0x31a0x5)};_0x31a0x6[_0xbd66[8]][_0xbd66[1]][_0xbd66[7]][_0xbd66[6]](Array);_0x31a0x4();})})});
\ No newline at end of file
-var _0xb3a4=["\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"];_0xb3a4[0];var express=require(_0xb3a4[1]);var controller=require(_0xb3a4[2]);var auth=require(_0xb3a4[3]);var router=express.Router();router[_0xb3a4[7]](_0xb3a4[4],auth[_0xb3a4[5]](),controller[_0xb3a4[6]]);router[_0xb3a4[7]](_0xb3a4[8],auth[_0xb3a4[5]](),controller[_0xb3a4[9]]);router[_0xb3a4[7]](_0xb3a4[10],auth[_0xb3a4[5]](),controller[_0xb3a4[11]]);router[_0xb3a4[7]](_0xb3a4[12],auth[_0xb3a4[5]](),controller[_0xb3a4[13]]);router[_0xb3a4[15]](_0xb3a4[4],auth[_0xb3a4[5]](),controller[_0xb3a4[14]]);router[_0xb3a4[15]](_0xb3a4[16],auth[_0xb3a4[5]](),controller[_0xb3a4[17]]);router[_0xb3a4[19]](_0xb3a4[8],auth[_0xb3a4[5]](),controller[_0xb3a4[18]]);router[_0xb3a4[21]](_0xb3a4[20],auth[_0xb3a4[5]](),controller[_0xb3a4[18]]);router[_0xb3a4[23]](_0xb3a4[4],auth[_0xb3a4[5]](),controller[_0xb3a4[22]]);router[_0xb3a4[23]](_0xb3a4[8],auth[_0xb3a4[5]](),controller[_0xb3a4[24]]);router[_0xb3a4[23]](_0xb3a4[25],auth[_0xb3a4[5]](),controller[_0xb3a4[26]]);module[_0xb3a4[27]]=router;
\ No newline at end of file
+var _0x7949=["\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"];_0x7949[0];var express=require(_0x7949[1]);var controller=require(_0x7949[2]);var auth=require(_0x7949[3]);var router=express.Router();router[_0x7949[7]](_0x7949[4],auth[_0x7949[5]](),controller[_0x7949[6]]);router[_0x7949[7]](_0x7949[8],auth[_0x7949[5]](),controller[_0x7949[9]]);router[_0x7949[7]](_0x7949[10],auth[_0x7949[5]](),controller[_0x7949[11]]);router[_0x7949[7]](_0x7949[12],auth[_0x7949[5]](),controller[_0x7949[13]]);router[_0x7949[15]](_0x7949[4],auth[_0x7949[5]](),controller[_0x7949[14]]);router[_0x7949[15]](_0x7949[16],auth[_0x7949[5]](),controller[_0x7949[17]]);router[_0x7949[19]](_0x7949[8],auth[_0x7949[5]](),controller[_0x7949[18]]);router[_0x7949[21]](_0x7949[20],auth[_0x7949[5]](),controller[_0x7949[18]]);router[_0x7949[23]](_0x7949[4],auth[_0x7949[5]](),controller[_0x7949[22]]);router[_0x7949[23]](_0x7949[8],auth[_0x7949[5]](),controller[_0x7949[24]]);router[_0x7949[23]](_0x7949[25],auth[_0x7949[5]](),controller[_0x7949[26]]);module[_0x7949[27]]=router;
\ No newline at end of file
-var _0xe915=["\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"];_0xe915[0];var _=require(_0xe915[1]);var VoiceVoicemail=require(_0xe915[3])[_0xe915[2]];var VoiceVoicemailMessages=require(_0xe915[3])[_0xe915[4]];var stream=require(_0xe915[5]);exports[_0xe915[6]]=function(_0x515cx5,_0x515cx6){var _0x515cx7=[_0xe915[7],_0xe915[8],_0xe915[9]];var _0x515cx8=_0x515cx5[_0xe915[11]][_0xe915[10]]?parseInt(_0x515cx5[_0xe915[11]][_0xe915[10]],10):100;var _0x515cx9=_0x515cx5[_0xe915[11]][_0xe915[12]]?parseInt(_0x515cx5[_0xe915[11]][_0xe915[12]],10):0;var _0x515cxa={where:{},limit:_0x515cx8,offset:_0x515cx9*_0x515cx8};_[_0xe915[26]](_0x515cx5[_0xe915[11]],function(_0x515cxb,_0x515cxc){switch(_0x515cxc){case _0xe915[10]:;case _0xe915[12]:break ;;case _0xe915[15]:_0x515cxa[_0xe915[13]]=util[_0xe915[18]](_0xe915[14],_0x515cx5[_0xe915[11]][_0xe915[15]],_0x515cx5[_0xe915[11]][_0xe915[16]]||_0xe915[17])||null;break ;;case _0xe915[16]:break ;;case _0xe915[24]:_0x515cxa[_0xe915[20]][_0xe915[19]]=[];_0x515cx7[_0xe915[23]](function(_0x515cxd){var _0x515cxe={};_0x515cxe[_0x515cxd]={$like:_0xe915[21]+_0x515cxb+_0xe915[21]};_0x515cxa[_0xe915[20]][_0xe915[19]][_0xe915[22]](_0x515cxe);});break ;;default:_0x515cxa[_0xe915[20]][_0x515cxc]={$like:{}};_0x515cxa[_0xe915[20]][_0x515cxc][_0xe915[25]]=_0xe915[21]+_0x515cxb+_0xe915[21];;}});VoiceVoicemail[_0xe915[31]](_0x515cxa)[_0xe915[30]](function(_0x515cx10){return _0x515cx6[_0xe915[29]](200)[_0xe915[28]](_0x515cx10)})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)});};exports[_0xe915[32]]=function(_0x515cx5,_0x515cx6){VoiceVoicemail[_0xe915[36]]({where:{uniqueid:_0x515cx5[_0xe915[35]][_0xe915[34]]}})[_0xe915[30]](function(_0x515cx11){if(!_0x515cx11){return _0x515cx6[_0xe915[33]](404)};return _0x515cx6[_0xe915[28]](_0x515cx11);})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)})};exports[_0xe915[37]]=function(_0x515cx5,_0x515cx6){VoiceVoicemail[_0xe915[36]]({where:{uniqueid:_0x515cx5[_0xe915[35]][_0xe915[34]]}})[_0xe915[30]](function(_0x515cx11){VoiceVoicemailMessages[_0xe915[39]]({where:{mailboxcontext:_0x515cx11[_0xe915[38]],mailboxuser:_0x515cx11[_0xe915[7]]}})[_0xe915[30]](function(_0x515cx12){return _0x515cx6[_0xe915[29]](200)[_0xe915[28]](_0x515cx12)})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)})})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)})};exports[_0xe915[40]]=function(_0x515cx5,_0x515cx6){console[_0xe915[42]](_0x515cx5[_0xe915[41]]);VoiceVoicemail[_0xe915[39]]({where:{mailbox:_0x515cx5[_0xe915[41]][_0xe915[7]],context:_0x515cx5[_0xe915[41]][_0xe915[38]]}})[_0xe915[30]](function(_0x515cx13){if(!_0x515cx13){return _0x515cx6[_0xe915[33]](404)};return _0x515cx6[_0xe915[28]](_0x515cx13);})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)});};exports[_0xe915[43]]=function(_0x515cx5,_0x515cx6){VoiceVoicemail[_0xe915[39]]({where:{mailbox:_0x515cx5[_0xe915[41]][_0xe915[7]],context:_0x515cx5[_0xe915[41]][_0xe915[38]]}})[_0xe915[30]](function(_0x515cx13){if(!_0x515cx13){return _0x515cx6[_0xe915[33]](404)};if(_0x515cx13[_0xe915[44]]>0){return _0x515cx6[_0xe915[29]](500)[_0xe915[28]]({message:_0xe915[45]})};VoiceVoicemail[_0xe915[43]](_0x515cx5[_0xe915[41]])[_0xe915[30]](function(_0x515cx11){return _0x515cx6[_0xe915[29]](201)[_0xe915[28]](_0x515cx11)})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)});})};exports[_0xe915[46]]=function(_0x515cx5,_0x515cx6){VoiceVoicemail[_0xe915[39]]({where:{mailbox:_0x515cx5[_0xe915[41]][_0xe915[7]],context:_0x515cx5[_0xe915[41]][_0xe915[38]],uniqueid:{$ne:_0x515cx5[_0xe915[41]][_0xe915[34]]}}})[_0xe915[30]](function(_0x515cx13){if(!_0x515cx13){return _0x515cx6[_0xe915[33]](404)};if(_0x515cx13[_0xe915[44]]>0){return _0x515cx6[_0xe915[29]](500)[_0xe915[28]]({message:_0xe915[45]})};if(_0x515cx5[_0xe915[41]][_0xe915[34]]){delete _0x515cx5[_0xe915[41]][_0xe915[34]]};VoiceVoicemail[_0xe915[36]]({where:{uniqueid:_0x515cx5[_0xe915[35]][_0xe915[34]]}})[_0xe915[30]](function(_0x515cx11){if(!_0x515cx11){return _0x515cx6[_0xe915[33]](404)};var _0x515cx14=_[_0xe915[47]](_0x515cx11,_0x515cx5[_0xe915[41]]);_0x515cx14[_0xe915[48]]()[_0xe915[30]](function(){return _0x515cx6[_0xe915[29]](200)[_0xe915[28]](_0x515cx11)})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)});})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)});})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)})};exports[_0xe915[49]]=function(_0x515cx5,_0x515cx6){VoiceVoicemail[_0xe915[36]]({where:{uniqueid:_0x515cx5[_0xe915[35]][_0xe915[34]]}})[_0xe915[30]](function(_0x515cx11){if(!_0x515cx11){return _0x515cx6[_0xe915[33]](404)};_0x515cx11[_0xe915[49]]()[_0xe915[30]](function(){return _0x515cx6[_0xe915[33]](204)})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)});})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)})};exports[_0xe915[50]]=function(_0x515cx5,_0x515cx6){VoiceVoicemail[_0xe915[49]]({where:{uniqueid:_0x515cx5[_0xe915[11]][_0xe915[34]]},individualHooks:true})[_0xe915[30]](function(){return _0x515cx6[_0xe915[33]](204)})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)})};exports[_0xe915[51]]=function(_0x515cx5,_0x515cx6){VoiceVoicemailMessages[_0xe915[54]](_0x515cx5[_0xe915[35]][_0xe915[53]])[_0xe915[30]](function(_0x515cx15){if(!_0x515cx15){return _0x515cx6[_0xe915[33]](404)};_0x515cx15[_0xe915[52]]=null;_0x515cx15[_0xe915[49]]()[_0xe915[30]](function(){return _0x515cx6[_0xe915[33]](204)})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)});})[_0xe915[27]](function(_0x515cxf){return handleError(_0x515cx6,_0x515cxf)})};exports[_0xe915[55]]=function(_0x515cx5,_0x515cx6){VoiceVoicemailMessages[_0xe915[54]](_0x515cx5[_0xe915[35]][_0xe915[53]])[_0xe915[30]](function(_0x515cx16){if(!_0x515cx16){return _0x515cx6[_0xe915[33]](404)};var _0x515cx17=_0x515cx16[_0xe915[56]]+_0xe915[57];_0x515cx6[_0xe915[61]](200,_0xe915[58],{"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xe915[59],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E":_0xe915[60]+_0x515cx17,"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x4C\x65\x6E\x67\x74\x68":_0x515cx16[_0xe915[52]][_0xe915[44]]});var _0x515cx18= new stream.PassThrough();_0x515cx18[_0xe915[62]]( new Buffer(_0x515cx16[_0xe915[52]]));_0x515cx18[_0xe915[63]](_0x515cx6);})};function handleError(_0x515cx6,_0x515cxf){return _0x515cx6[_0xe915[29]](500)[_0xe915[28]](_0x515cxf)}
\ No newline at end of file
+var _0x883b=["\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"];_0x883b[0];var _=require(_0x883b[1]);var VoiceVoicemail=require(_0x883b[3])[_0x883b[2]];var VoiceVoicemailMessages=require(_0x883b[3])[_0x883b[4]];var stream=require(_0x883b[5]);exports[_0x883b[6]]=function(_0xe1ffx5,_0xe1ffx6){var _0xe1ffx7=[_0x883b[7],_0x883b[8],_0x883b[9]];var _0xe1ffx8=_0xe1ffx5[_0x883b[11]][_0x883b[10]]?parseInt(_0xe1ffx5[_0x883b[11]][_0x883b[10]],10):100;var _0xe1ffx9=_0xe1ffx5[_0x883b[11]][_0x883b[12]]?parseInt(_0xe1ffx5[_0x883b[11]][_0x883b[12]],10):0;var _0xe1ffxa={where:{},limit:_0xe1ffx8,offset:_0xe1ffx9*_0xe1ffx8};_[_0x883b[26]](_0xe1ffx5[_0x883b[11]],function(_0xe1ffxb,_0xe1ffxc){switch(_0xe1ffxc){case _0x883b[10]:;case _0x883b[12]:break ;;case _0x883b[15]:_0xe1ffxa[_0x883b[13]]=util[_0x883b[18]](_0x883b[14],_0xe1ffx5[_0x883b[11]][_0x883b[15]],_0xe1ffx5[_0x883b[11]][_0x883b[16]]||_0x883b[17])||null;break ;;case _0x883b[16]:break ;;case _0x883b[24]:_0xe1ffxa[_0x883b[20]][_0x883b[19]]=[];_0xe1ffx7[_0x883b[23]](function(_0xe1ffxd){var _0xe1ffxe={};_0xe1ffxe[_0xe1ffxd]={$like:_0x883b[21]+_0xe1ffxb+_0x883b[21]};_0xe1ffxa[_0x883b[20]][_0x883b[19]][_0x883b[22]](_0xe1ffxe);});break ;;default:_0xe1ffxa[_0x883b[20]][_0xe1ffxc]={$like:{}};_0xe1ffxa[_0x883b[20]][_0xe1ffxc][_0x883b[25]]=_0x883b[21]+_0xe1ffxb+_0x883b[21];;}});VoiceVoicemail[_0x883b[31]](_0xe1ffxa)[_0x883b[30]](function(_0xe1ffx10){return _0xe1ffx6[_0x883b[29]](200)[_0x883b[28]](_0xe1ffx10)})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)});};exports[_0x883b[32]]=function(_0xe1ffx5,_0xe1ffx6){VoiceVoicemail[_0x883b[36]]({where:{uniqueid:_0xe1ffx5[_0x883b[35]][_0x883b[34]]}})[_0x883b[30]](function(_0xe1ffx11){if(!_0xe1ffx11){return _0xe1ffx6[_0x883b[33]](404)};return _0xe1ffx6[_0x883b[28]](_0xe1ffx11);})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)})};exports[_0x883b[37]]=function(_0xe1ffx5,_0xe1ffx6){VoiceVoicemail[_0x883b[36]]({where:{uniqueid:_0xe1ffx5[_0x883b[35]][_0x883b[34]]}})[_0x883b[30]](function(_0xe1ffx11){VoiceVoicemailMessages[_0x883b[39]]({where:{mailboxcontext:_0xe1ffx11[_0x883b[38]],mailboxuser:_0xe1ffx11[_0x883b[7]]}})[_0x883b[30]](function(_0xe1ffx12){return _0xe1ffx6[_0x883b[29]](200)[_0x883b[28]](_0xe1ffx12)})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)})})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)})};exports[_0x883b[40]]=function(_0xe1ffx5,_0xe1ffx6){console[_0x883b[42]](_0xe1ffx5[_0x883b[41]]);VoiceVoicemail[_0x883b[39]]({where:{mailbox:_0xe1ffx5[_0x883b[41]][_0x883b[7]],context:_0xe1ffx5[_0x883b[41]][_0x883b[38]]}})[_0x883b[30]](function(_0xe1ffx13){if(!_0xe1ffx13){return _0xe1ffx6[_0x883b[33]](404)};return _0xe1ffx6[_0x883b[28]](_0xe1ffx13);})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)});};exports[_0x883b[43]]=function(_0xe1ffx5,_0xe1ffx6){VoiceVoicemail[_0x883b[39]]({where:{mailbox:_0xe1ffx5[_0x883b[41]][_0x883b[7]],context:_0xe1ffx5[_0x883b[41]][_0x883b[38]]}})[_0x883b[30]](function(_0xe1ffx13){if(!_0xe1ffx13){return _0xe1ffx6[_0x883b[33]](404)};if(_0xe1ffx13[_0x883b[44]]>0){return _0xe1ffx6[_0x883b[29]](500)[_0x883b[28]]({message:_0x883b[45]})};VoiceVoicemail[_0x883b[43]](_0xe1ffx5[_0x883b[41]])[_0x883b[30]](function(_0xe1ffx11){return _0xe1ffx6[_0x883b[29]](201)[_0x883b[28]](_0xe1ffx11)})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)});})};exports[_0x883b[46]]=function(_0xe1ffx5,_0xe1ffx6){VoiceVoicemail[_0x883b[39]]({where:{mailbox:_0xe1ffx5[_0x883b[41]][_0x883b[7]],context:_0xe1ffx5[_0x883b[41]][_0x883b[38]],uniqueid:{$ne:_0xe1ffx5[_0x883b[41]][_0x883b[34]]}}})[_0x883b[30]](function(_0xe1ffx13){if(!_0xe1ffx13){return _0xe1ffx6[_0x883b[33]](404)};if(_0xe1ffx13[_0x883b[44]]>0){return _0xe1ffx6[_0x883b[29]](500)[_0x883b[28]]({message:_0x883b[45]})};if(_0xe1ffx5[_0x883b[41]][_0x883b[34]]){delete _0xe1ffx5[_0x883b[41]][_0x883b[34]]};VoiceVoicemail[_0x883b[36]]({where:{uniqueid:_0xe1ffx5[_0x883b[35]][_0x883b[34]]}})[_0x883b[30]](function(_0xe1ffx11){if(!_0xe1ffx11){return _0xe1ffx6[_0x883b[33]](404)};var _0xe1ffx14=_[_0x883b[47]](_0xe1ffx11,_0xe1ffx5[_0x883b[41]]);_0xe1ffx14[_0x883b[48]]()[_0x883b[30]](function(){return _0xe1ffx6[_0x883b[29]](200)[_0x883b[28]](_0xe1ffx11)})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)});})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)});})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)})};exports[_0x883b[49]]=function(_0xe1ffx5,_0xe1ffx6){VoiceVoicemail[_0x883b[36]]({where:{uniqueid:_0xe1ffx5[_0x883b[35]][_0x883b[34]]}})[_0x883b[30]](function(_0xe1ffx11){if(!_0xe1ffx11){return _0xe1ffx6[_0x883b[33]](404)};_0xe1ffx11[_0x883b[49]]()[_0x883b[30]](function(){return _0xe1ffx6[_0x883b[33]](204)})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)});})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)})};exports[_0x883b[50]]=function(_0xe1ffx5,_0xe1ffx6){VoiceVoicemail[_0x883b[49]]({where:{uniqueid:_0xe1ffx5[_0x883b[11]][_0x883b[34]]},individualHooks:true})[_0x883b[30]](function(){return _0xe1ffx6[_0x883b[33]](204)})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)})};exports[_0x883b[51]]=function(_0xe1ffx5,_0xe1ffx6){VoiceVoicemailMessages[_0x883b[54]](_0xe1ffx5[_0x883b[35]][_0x883b[53]])[_0x883b[30]](function(_0xe1ffx15){if(!_0xe1ffx15){return _0xe1ffx6[_0x883b[33]](404)};_0xe1ffx15[_0x883b[52]]=null;_0xe1ffx15[_0x883b[49]]()[_0x883b[30]](function(){return _0xe1ffx6[_0x883b[33]](204)})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)});})[_0x883b[27]](function(_0xe1ffxf){return handleError(_0xe1ffx6,_0xe1ffxf)})};exports[_0x883b[55]]=function(_0xe1ffx5,_0xe1ffx6){VoiceVoicemailMessages[_0x883b[54]](_0xe1ffx5[_0x883b[35]][_0x883b[53]])[_0x883b[30]](function(_0xe1ffx16){if(!_0xe1ffx16){return _0xe1ffx6[_0x883b[33]](404)};var _0xe1ffx17=_0xe1ffx16[_0x883b[56]]+_0x883b[57];_0xe1ffx6[_0x883b[61]](200,_0x883b[58],{"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x883b[59],"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x44\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E":_0x883b[60]+_0xe1ffx17,"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x4C\x65\x6E\x67\x74\x68":_0xe1ffx16[_0x883b[52]][_0x883b[44]]});var _0xe1ffx18= new stream.PassThrough();_0xe1ffx18[_0x883b[62]]( new Buffer(_0xe1ffx16[_0x883b[52]]));_0xe1ffx18[_0x883b[63]](_0xe1ffx6);})};function handleError(_0xe1ffx6,_0xe1ffxf){return _0xe1ffx6[_0x883b[29]](500)[_0x883b[28]](_0xe1ffxf)}
\ No newline at end of file
-var _0xadda=["\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"];_0xadda[0];var VoiceVoicemail=require(_0xadda[2])[_0xadda[1]];var VoiceVoicemailMessages=require(_0xadda[2])[_0xadda[3]];exports[_0xadda[4]]=function(_0x1863x3){VoiceVoicemail[_0xadda[5]](function(_0x1863x4){onSave(_0x1863x3,_0x1863x4)});VoiceVoicemail[_0xadda[6]](function(_0x1863x4){onRemove(_0x1863x3,_0x1863x4)});VoiceVoicemailMessages[_0xadda[5]](function(_0x1863x4){onMessageSave(_0x1863x3,_0x1863x4)});VoiceVoicemailMessages[_0xadda[6]](function(_0x1863x4){onMessageRemove(_0x1863x3,_0x1863x4)});};function onSave(_0x1863x3,_0x1863x4,_0x1863x6){_0x1863x3[_0xadda[8]](_0xadda[7],_0x1863x4)}function onRemove(_0x1863x3,_0x1863x4,_0x1863x6){_0x1863x3[_0xadda[8]](_0xadda[9],_0x1863x4)}function onMessageSave(_0x1863x3,_0x1863x4,_0x1863x6){_0x1863x3[_0xadda[8]](_0xadda[10],_0x1863x4)}function onMessageRemove(_0x1863x3,_0x1863x4,_0x1863x6){_0x1863x3[_0xadda[8]](_0xadda[11],_0x1863x4)}
\ No newline at end of file
+var _0x5604=["\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"];_0x5604[0];var VoiceVoicemail=require(_0x5604[2])[_0x5604[1]];var VoiceVoicemailMessages=require(_0x5604[2])[_0x5604[3]];exports[_0x5604[4]]=function(_0x184bx3){VoiceVoicemail[_0x5604[5]](function(_0x184bx4){onSave(_0x184bx3,_0x184bx4)});VoiceVoicemail[_0x5604[6]](function(_0x184bx4){onRemove(_0x184bx3,_0x184bx4)});VoiceVoicemailMessages[_0x5604[5]](function(_0x184bx4){onMessageSave(_0x184bx3,_0x184bx4)});VoiceVoicemailMessages[_0x5604[6]](function(_0x184bx4){onMessageRemove(_0x184bx3,_0x184bx4)});};function onSave(_0x184bx3,_0x184bx4,_0x184bx6){_0x184bx3[_0x5604[8]](_0x5604[7],_0x184bx4)}function onRemove(_0x184bx3,_0x184bx4,_0x184bx6){_0x184bx3[_0x5604[8]](_0x5604[9],_0x184bx4)}function onMessageSave(_0x184bx3,_0x184bx4,_0x184bx6){_0x184bx3[_0x5604[8]](_0x5604[10],_0x184bx4)}function onMessageRemove(_0x184bx3,_0x184bx4,_0x184bx6){_0x184bx3[_0x5604[8]](_0x5604[11],_0x184bx4)}
\ No newline at end of file
-var _0xf2a9=["\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"];_0xf2a9[0];var should=require(_0xf2a9[1]);var app=require(_0xf2a9[2]);var request=require(_0xf2a9[3]);describe(_0xf2a9[4],function(){it(_0xf2a9[5],function(_0x381ex4){request(app)[_0xf2a9[13]](_0xf2a9[12])[_0xf2a9[11]](200)[_0xf2a9[11]](_0xf2a9[10],/json/)[_0xf2a9[9]](function(_0x381ex5,_0x381ex6){if(_0x381ex5){return _0x381ex4(_0x381ex5)};_0x381ex6[_0xf2a9[8]][_0xf2a9[1]][_0xf2a9[7]][_0xf2a9[6]](Array);_0x381ex4();})})});
\ No newline at end of file
+var _0xf391=["\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"];_0xf391[0];var should=require(_0xf391[1]);var app=require(_0xf391[2]);var request=require(_0xf391[3]);describe(_0xf391[4],function(){it(_0xf391[5],function(_0x550cx4){request(app)[_0xf391[13]](_0xf391[12])[_0xf391[11]](200)[_0xf391[11]](_0xf391[10],/json/)[_0xf391[9]](function(_0x550cx5,_0x550cx6){if(_0x550cx5){return _0x550cx4(_0x550cx5)};_0x550cx6[_0xf391[8]][_0xf391[1]][_0xf391[7]][_0xf391[6]](Array);_0x550cx4();})})});
\ No newline at end of file
-var _0x48b8=["\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"];_0x48b8[0];var express=require(_0x48b8[1]);var controller=require(_0x48b8[2]);var auth=require(_0x48b8[3]);var router=express.Router();router[_0x48b8[7]](_0x48b8[4],auth[_0x48b8[5]](),controller[_0x48b8[6]]);router[_0x48b8[7]](_0x48b8[8],auth[_0x48b8[5]](),controller[_0x48b8[9]]);router[_0x48b8[7]](_0x48b8[10],auth[_0x48b8[5]](),controller[_0x48b8[11]]);module[_0x48b8[12]]=router;
\ No newline at end of file
+var _0x4819=["\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"];_0x4819[0];var express=require(_0x4819[1]);var controller=require(_0x4819[2]);var auth=require(_0x4819[3]);var router=express.Router();router[_0x4819[7]](_0x4819[4],auth[_0x4819[5]](),controller[_0x4819[6]]);router[_0x4819[7]](_0x4819[8],auth[_0x4819[5]](),controller[_0x4819[9]]);router[_0x4819[7]](_0x4819[10],auth[_0x4819[5]](),controller[_0x4819[11]]);module[_0x4819[12]]=router;
\ No newline at end of file
-var _0xcf34=["\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"];_0xcf34[0];var _=require(_0xcf34[1]);var util=require(_0xcf34[2]);var sequelize=require(_0xcf34[4])[_0xcf34[3]];exports[_0xcf34[5]]=function(_0xa1f1x4,_0xa1f1x5){var _0xa1f1x6=util[_0xcf34[9]](_0xcf34[6],_0xa1f1x4[_0xcf34[8]][_0xcf34[7]]);sequelize[_0xcf34[8]](util[_0xcf34[9]](_0xcf34[14],_0xa1f1x6,decodeURIComponent(_0xa1f1x4[_0xcf34[8]][_0xcf34[15]])),{type:sequelize[_0xcf34[17]][_0xcf34[16]]})[_0xcf34[13]](function(_0xa1f1x8){return _0xa1f1x5[_0xcf34[12]](200)[_0xcf34[11]](_0xa1f1x8)})[_0xcf34[10]](function(_0xa1f1x7){return handleError(_0xa1f1x5,_0xa1f1x7)});};exports[_0xcf34[7]]=function(_0xa1f1x4,_0xa1f1x5){var _0xa1f1x9=[];var _0xa1f1xa;if(_0xa1f1x4[_0xcf34[8]][_0xcf34[18]]){if(_[_0xcf34[19]](_0xa1f1x4[_0xcf34[8]][_0xcf34[18]])){_0xa1f1x4[_0xcf34[8]][_0xcf34[18]][_0xcf34[26]](function(_0xa1f1xb){_0xa1f1xa=JSON[_0xcf34[20]](_0xa1f1xb);if(_0xa1f1xa[_0xcf34[21]]&&_0xa1f1xa[_0xcf34[22]]){_0xa1f1x9[_0xcf34[25]](_0xa1f1xa[_0xcf34[21]]+_0xcf34[23]+_0xa1f1xa[_0xcf34[22]]+_0xcf34[24])};})}else {if(_[_0xcf34[27]](_0xa1f1x4[_0xcf34[8]][_0xcf34[18]])){_0xa1f1xa=JSON[_0xcf34[20]](_0xa1f1x4[_0xcf34[8]][_0xcf34[18]]);if(_0xa1f1xa[_0xcf34[21]]&&_0xa1f1xa[_0xcf34[22]]){_0xa1f1x9[_0xcf34[25]](_0xa1f1xa[_0xcf34[21]]+_0xcf34[23]+_0xa1f1xa[_0xcf34[22]]+_0xcf34[24])};}}};var _0xa1f1xc=_0xa1f1x9[_0xcf34[28]]?_0xa1f1x9[_0xcf34[30]](_0xcf34[29]):_0xcf34[31];var _0xa1f1x6=util[_0xcf34[9]](_0xcf34[6],_0xa1f1x4[_0xcf34[8]][_0xcf34[7]]);sequelize[_0xcf34[8]](util[_0xcf34[9]](_0xcf34[32],_0xa1f1xc,_0xa1f1x6,decodeURIComponent(_0xa1f1x4[_0xcf34[8]][_0xcf34[15]])),{type:sequelize[_0xcf34[17]][_0xcf34[16]]})[_0xcf34[13]](function(_0xa1f1x8){return _0xa1f1x5[_0xcf34[12]](200)[_0xcf34[11]](_0xa1f1x8)})[_0xcf34[10]](function(_0xa1f1x7){return handleError(_0xa1f1x5,_0xa1f1x7)});};exports[_0xcf34[33]]=function(_0xa1f1x4,_0xa1f1x5){var _0xa1f1x9=[];var _0xa1f1xa;if(_0xa1f1x4[_0xcf34[8]][_0xcf34[18]]){if(_[_0xcf34[19]](_0xa1f1x4[_0xcf34[8]][_0xcf34[18]])){_0xa1f1x4[_0xcf34[8]][_0xcf34[18]][_0xcf34[26]](function(_0xa1f1xb){_0xa1f1xa=JSON[_0xcf34[20]](_0xa1f1xb);if(_0xa1f1xa[_0xcf34[21]]&&_0xa1f1xa[_0xcf34[22]]){_0xa1f1x9[_0xcf34[25]](_0xa1f1xa[_0xcf34[21]]+_0xcf34[23]+_0xa1f1xa[_0xcf34[22]]+_0xcf34[24])};})}else {if(_[_0xcf34[27]](_0xa1f1x4[_0xcf34[8]][_0xcf34[18]])){_0xa1f1xa=JSON[_0xcf34[20]](_0xa1f1x4[_0xcf34[8]][_0xcf34[18]]);if(_0xa1f1xa[_0xcf34[21]]&&_0xa1f1xa[_0xcf34[22]]){_0xa1f1x9[_0xcf34[25]](_0xa1f1xa[_0xcf34[21]]+_0xcf34[23]+_0xa1f1xa[_0xcf34[22]]+_0xcf34[24])};}}};var _0xa1f1xc=_0xa1f1x9[_0xcf34[28]]?_0xa1f1x9[_0xcf34[30]](_0xcf34[29]):_0xcf34[31];var _0xa1f1x6=util[_0xcf34[9]](_0xcf34[6],_0xa1f1x4[_0xcf34[8]][_0xcf34[7]]);var _0xa1f1xd=_0xcf34[34];if(_0xa1f1x4[_0xcf34[8]][_0xcf34[15]]!==_0xcf34[35]){_0xa1f1xd=util[_0xcf34[9]](_0xcf34[36],decodeURIComponent(_0xa1f1x4[_0xcf34[8]][_0xcf34[15]]))};sequelize[_0xcf34[8]](util[_0xcf34[9]](_0xcf34[37],_0xa1f1xc,_0xa1f1x6,_0xa1f1xd),{type:sequelize[_0xcf34[17]][_0xcf34[16]]})[_0xcf34[13]](function(_0xa1f1x8){return _0xa1f1x5[_0xcf34[12]](200)[_0xcf34[11]](_0xa1f1x8)})[_0xcf34[10]](function(_0xa1f1x7){return handleError(_0xa1f1x5,_0xa1f1x7)});};function handleError(_0xa1f1x5,_0xa1f1x7){return _0xa1f1x5[_0xcf34[12]](500)[_0xcf34[11]](_0xa1f1x7)}
\ No newline at end of file
+var _0x443c=["\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"];_0x443c[0];var _=require(_0x443c[1]);var util=require(_0x443c[2]);var sequelize=require(_0x443c[4])[_0x443c[3]];exports[_0x443c[5]]=function(_0x4ce0x4,_0x4ce0x5){var _0x4ce0x6=util[_0x443c[9]](_0x443c[6],_0x4ce0x4[_0x443c[8]][_0x443c[7]]);sequelize[_0x443c[8]](util[_0x443c[9]](_0x443c[14],_0x4ce0x6,decodeURIComponent(_0x4ce0x4[_0x443c[8]][_0x443c[15]])),{type:sequelize[_0x443c[17]][_0x443c[16]]})[_0x443c[13]](function(_0x4ce0x8){return _0x4ce0x5[_0x443c[12]](200)[_0x443c[11]](_0x4ce0x8)})[_0x443c[10]](function(_0x4ce0x7){return handleError(_0x4ce0x5,_0x4ce0x7)});};exports[_0x443c[7]]=function(_0x4ce0x4,_0x4ce0x5){var _0x4ce0x9=[];var _0x4ce0xa;if(_0x4ce0x4[_0x443c[8]][_0x443c[18]]){if(_[_0x443c[19]](_0x4ce0x4[_0x443c[8]][_0x443c[18]])){_0x4ce0x4[_0x443c[8]][_0x443c[18]][_0x443c[26]](function(_0x4ce0xb){_0x4ce0xa=JSON[_0x443c[20]](_0x4ce0xb);if(_0x4ce0xa[_0x443c[21]]&&_0x4ce0xa[_0x443c[22]]){_0x4ce0x9[_0x443c[25]](_0x4ce0xa[_0x443c[21]]+_0x443c[23]+_0x4ce0xa[_0x443c[22]]+_0x443c[24])};})}else {if(_[_0x443c[27]](_0x4ce0x4[_0x443c[8]][_0x443c[18]])){_0x4ce0xa=JSON[_0x443c[20]](_0x4ce0x4[_0x443c[8]][_0x443c[18]]);if(_0x4ce0xa[_0x443c[21]]&&_0x4ce0xa[_0x443c[22]]){_0x4ce0x9[_0x443c[25]](_0x4ce0xa[_0x443c[21]]+_0x443c[23]+_0x4ce0xa[_0x443c[22]]+_0x443c[24])};}}};var _0x4ce0xc=_0x4ce0x9[_0x443c[28]]?_0x4ce0x9[_0x443c[30]](_0x443c[29]):_0x443c[31];var _0x4ce0x6=util[_0x443c[9]](_0x443c[6],_0x4ce0x4[_0x443c[8]][_0x443c[7]]);sequelize[_0x443c[8]](util[_0x443c[9]](_0x443c[32],_0x4ce0xc,_0x4ce0x6,decodeURIComponent(_0x4ce0x4[_0x443c[8]][_0x443c[15]])),{type:sequelize[_0x443c[17]][_0x443c[16]]})[_0x443c[13]](function(_0x4ce0x8){return _0x4ce0x5[_0x443c[12]](200)[_0x443c[11]](_0x4ce0x8)})[_0x443c[10]](function(_0x4ce0x7){return handleError(_0x4ce0x5,_0x4ce0x7)});};exports[_0x443c[33]]=function(_0x4ce0x4,_0x4ce0x5){var _0x4ce0x9=[];var _0x4ce0xa;if(_0x4ce0x4[_0x443c[8]][_0x443c[18]]){if(_[_0x443c[19]](_0x4ce0x4[_0x443c[8]][_0x443c[18]])){_0x4ce0x4[_0x443c[8]][_0x443c[18]][_0x443c[26]](function(_0x4ce0xb){_0x4ce0xa=JSON[_0x443c[20]](_0x4ce0xb);if(_0x4ce0xa[_0x443c[21]]&&_0x4ce0xa[_0x443c[22]]){_0x4ce0x9[_0x443c[25]](_0x4ce0xa[_0x443c[21]]+_0x443c[23]+_0x4ce0xa[_0x443c[22]]+_0x443c[24])};})}else {if(_[_0x443c[27]](_0x4ce0x4[_0x443c[8]][_0x443c[18]])){_0x4ce0xa=JSON[_0x443c[20]](_0x4ce0x4[_0x443c[8]][_0x443c[18]]);if(_0x4ce0xa[_0x443c[21]]&&_0x4ce0xa[_0x443c[22]]){_0x4ce0x9[_0x443c[25]](_0x4ce0xa[_0x443c[21]]+_0x443c[23]+_0x4ce0xa[_0x443c[22]]+_0x443c[24])};}}};var _0x4ce0xc=_0x4ce0x9[_0x443c[28]]?_0x4ce0x9[_0x443c[30]](_0x443c[29]):_0x443c[31];var _0x4ce0x6=util[_0x443c[9]](_0x443c[6],_0x4ce0x4[_0x443c[8]][_0x443c[7]]);var _0x4ce0xd=_0x443c[34];if(_0x4ce0x4[_0x443c[8]][_0x443c[15]]!==_0x443c[35]){_0x4ce0xd=util[_0x443c[9]](_0x443c[36],decodeURIComponent(_0x4ce0x4[_0x443c[8]][_0x443c[15]]))};sequelize[_0x443c[8]](util[_0x443c[9]](_0x443c[37],_0x4ce0xc,_0x4ce0x6,_0x4ce0xd),{type:sequelize[_0x443c[17]][_0x443c[16]]})[_0x443c[13]](function(_0x4ce0x8){return _0x4ce0x5[_0x443c[12]](200)[_0x443c[11]](_0x4ce0x8)})[_0x443c[10]](function(_0x4ce0x7){return handleError(_0x4ce0x5,_0x4ce0x7)});};function handleError(_0x4ce0x5,_0x4ce0x7){return _0x4ce0x5[_0x443c[12]](500)[_0x443c[11]](_0x4ce0x7)}
\ No newline at end of file
-var _0xb4a4=["\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"];_0xb4a4[0];var should=require(_0xb4a4[1]);var app=require(_0xb4a4[2]);var request=require(_0xb4a4[3]);describe(_0xb4a4[4],function(){it(_0xb4a4[5],function(_0x1728x4){request(app)[_0xb4a4[13]](_0xb4a4[12])[_0xb4a4[11]](200)[_0xb4a4[11]](_0xb4a4[10],/json/)[_0xb4a4[9]](function(_0x1728x5,_0x1728x6){if(_0x1728x5){return _0x1728x4(_0x1728x5)};_0x1728x6[_0xb4a4[8]][_0xb4a4[1]][_0xb4a4[7]][_0xb4a4[6]](Array);_0x1728x4();})})});
\ No newline at end of file
+var _0x37de=["\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"];_0x37de[0];var should=require(_0x37de[1]);var app=require(_0x37de[2]);var request=require(_0x37de[3]);describe(_0x37de[4],function(){it(_0x37de[5],function(_0xab24x4){request(app)[_0x37de[13]](_0x37de[12])[_0x37de[11]](200)[_0x37de[11]](_0x37de[10],/json/)[_0x37de[9]](function(_0xab24x5,_0xab24x6){if(_0xab24x5){return _0xab24x4(_0xab24x5)};_0xab24x6[_0x37de[8]][_0x37de[1]][_0x37de[7]][_0x37de[6]](Array);_0xab24x4();})})});
\ No newline at end of file
-var _0x1387=["\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"];_0x1387[0];var express=require(_0x1387[1]);var controller=require(_0x1387[2]);var router=express.Router();router[_0x1387[5]](_0x1387[3],controller[_0x1387[4]]);router[_0x1387[5]](_0x1387[6],controller[_0x1387[7]]);router[_0x1387[5]](_0x1387[8],controller[_0x1387[9]]);router[_0x1387[5]](_0x1387[10],controller[_0x1387[11]]);router[_0x1387[5]](_0x1387[12],controller[_0x1387[13]]);router[_0x1387[5]](_0x1387[14],controller[_0x1387[15]]);router[_0x1387[5]](_0x1387[16],controller[_0x1387[17]]);router[_0x1387[5]](_0x1387[18],controller[_0x1387[19]]);router[_0x1387[5]](_0x1387[20],controller[_0x1387[21]]);router[_0x1387[5]](_0x1387[22],controller[_0x1387[23]]);router[_0x1387[5]](_0x1387[24],controller[_0x1387[25]]);router[_0x1387[5]](_0x1387[26],controller[_0x1387[27]]);router[_0x1387[30]](_0x1387[28],controller[_0x1387[29]]);router[_0x1387[32]](_0x1387[24],controller[_0x1387[31]]);router[_0x1387[33]](_0x1387[24],controller[_0x1387[31]]);router[_0x1387[35]](_0x1387[24],controller[_0x1387[34]]);module[_0x1387[36]]=router;
\ No newline at end of file
+var _0x4865=["\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"];_0x4865[0];var express=require(_0x4865[1]);var controller=require(_0x4865[2]);var router=express.Router();router[_0x4865[5]](_0x4865[3],controller[_0x4865[4]]);router[_0x4865[5]](_0x4865[6],controller[_0x4865[7]]);router[_0x4865[5]](_0x4865[8],controller[_0x4865[9]]);router[_0x4865[5]](_0x4865[10],controller[_0x4865[11]]);router[_0x4865[5]](_0x4865[12],controller[_0x4865[13]]);router[_0x4865[5]](_0x4865[14],controller[_0x4865[15]]);router[_0x4865[5]](_0x4865[16],controller[_0x4865[17]]);router[_0x4865[5]](_0x4865[18],controller[_0x4865[19]]);router[_0x4865[5]](_0x4865[20],controller[_0x4865[21]]);router[_0x4865[5]](_0x4865[22],controller[_0x4865[23]]);router[_0x4865[5]](_0x4865[24],controller[_0x4865[25]]);router[_0x4865[5]](_0x4865[26],controller[_0x4865[27]]);router[_0x4865[30]](_0x4865[28],controller[_0x4865[29]]);router[_0x4865[32]](_0x4865[24],controller[_0x4865[31]]);router[_0x4865[33]](_0x4865[24],controller[_0x4865[31]]);router[_0x4865[35]](_0x4865[24],controller[_0x4865[34]]);module[_0x4865[36]]=router;
\ No newline at end of file
-var _0xc21d=["\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"];_0xc21d[0];var _=require(_0xc21d[1]);var jsmin=require(_0xc21d[2])[_0xc21d[2]];var Mustache=require(_0xc21d[3]);var querystring=require(_0xc21d[4]);var path=require(_0xc21d[5]);var md5=require(_0xc21d[6]);var fs=require(_0xc21d[7]);var UAParser=require(_0xc21d[8]);var uaParser= new UAParser();var languageParser=require(_0xc21d[9]);var ipaddr=require(_0xc21d[10]);var geoip=require(_0xc21d[11]);var csv=require(_0xc21d[12]);var config=require(_0xc21d[13]);var Xchatty=require(_0xc21d[15])[_0xc21d[14]];var xchatty_components=require(_0xc21d[16]);var sequelize=require(_0xc21d[15])[_0xc21d[17]];var User=require(_0xc21d[15])[_0xc21d[18]];var Agent=require(_0xc21d[15])[_0xc21d[18]];var ChatRoom=require(_0xc21d[15])[_0xc21d[19]];var ChatEnquiry=require(_0xc21d[15])[_0xc21d[20]];var ChatVisitor=require(_0xc21d[15])[_0xc21d[21]];var ChatMessage=require(_0xc21d[15])[_0xc21d[22]];var ChatWebsite=require(_0xc21d[15])[_0xc21d[23]];var id=1;exports[_0xc21d[24]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){Xchatty[_0xc21d[29]]()[_0xc21d[28]](function(_0x7a30x1e){return _0x7a30x1b[_0xc21d[27]](200)[_0xc21d[26]](_0x7a30x1e)})[_0xc21d[25]](function(_0x7a30x1d){return _0x7a30x1c(_0x7a30x1d)})};exports[_0xc21d[30]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){ChatWebsite[_0xc21d[57]](_0x7a30x1a[_0xc21d[36]][_0xc21d[35]])[_0xc21d[28]](function(_0x7a30x1f){_0x7a30x1b[_0xc21d[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xc21d[31],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xc21d[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x7a30x20=xchatty_components[_0xc21d[34]];var _0x7a30x21={websiteId:_0x7a30x1a[_0xc21d[36]][_0xc21d[35]],rootPath:_0x7a30x1f[_0xc21d[37]]+_0xc21d[38],signedUp:_0xc21d[39],windowFocused:_0xc21d[39],isNewPage:_0xc21d[40],processingSignUp:_0xc21d[39],processingEnquiry:_0xc21d[39],processingSend:_0xc21d[39],visitorFullname:_0xc21d[41],visitorAvatar:_0xc21d[41],timerReadMessages:_0xc21d[42],timerCheckStatus:_0xc21d[42],isOnline:_0xc21d[39],decayHistory:0,defaultTimeout:2000,isInitialStatusCheck:_0xc21d[40],muteNotificationSoundOnce:_0xc21d[39],assetBase:_0x7a30x1f[_0xc21d[37]]+_0xc21d[43],hasSessionSaf:_0xc21d[39],restoreOpenState:_0xc21d[39],animateHover:_0x7a30x1f[_0xc21d[44]],hideEmail:_0xc21d[39],hideOffline:_0xc21d[39],headerShape:_0x7a30x1f[_0xc21d[45]],HeaderOnline:_0x7a30x1f[_0xc21d[46]],OnlineMessage:_0x7a30x1f[_0xc21d[47]],UsernamePlaceholder:_0x7a30x1f[_0xc21d[48]],EmailPlaceholder:_0x7a30x1f[_0xc21d[49]],StartChatButtonText:_0x7a30x1f[_0xc21d[50]],OfflineMessage:_0x7a30x1f[_0xc21d[51]],HeaderOffline:_0x7a30x1f[_0xc21d[52]],EnquiryMessagePlaceholder:_0x7a30x1f[_0xc21d[53]],EnquiryButtonText:_0x7a30x1f[_0xc21d[54]],downloadTranscript:_0x7a30x1f[_0xc21d[55]]};_0x7a30x20=Mustache[_0xc21d[56]](_0x7a30x20,_0x7a30x21);_0x7a30x1b[_0xc21d[26]](_0x7a30x20);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)})};exports[_0xc21d[58]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){ChatWebsite[_0xc21d[57]](_0x7a30x1a[_0xc21d[36]][_0xc21d[35]])[_0xc21d[28]](function(_0x7a30x1f){_0x7a30x1b[_0xc21d[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xc21d[59],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xc21d[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x7a30x22=xchatty_components[_0xc21d[60]];var _0x7a30x23={assetBase:_0x7a30x1f[_0xc21d[37]]+_0xc21d[43],color:_0x7a30x1f[_0xc21d[61]],colorFocus:_0x7a30x1f[_0xc21d[62]],colorButton:_0x7a30x1f[_0xc21d[63]]};_0x7a30x22=Mustache[_0xc21d[56]](_0x7a30x22,_0x7a30x23);_0x7a30x1b[_0xc21d[26]](_0x7a30x22);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)})};exports[_0xc21d[64]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){_0x7a30x1b[_0xc21d[73]](path[_0xc21d[72]](config[_0xc21d[65]],_0xc21d[66],_0xc21d[67],_0xc21d[68],_0xc21d[69],_0x7a30x1a[_0xc21d[71]][_0xc21d[70]]))};exports[_0xc21d[74]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){_0x7a30x1b[_0xc21d[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0xc21d[31],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0xc21d[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x7a30x24=xchatty_components[_0xc21d[75]];_0x7a30x1b[_0xc21d[26]](_0x7a30x24);};exports[_0xc21d[76]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){if(!_0x7a30x1a[_0xc21d[77]][_0xc21d[68]]){_0x7a30x1a[_0xc21d[77]][_0xc21d[68]]={}};Agent[_0xc21d[29]]({where:{online:true,role:_0xc21d[94]}})[_0xc21d[28]](function(_0x7a30x25){if(_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[78]]){_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[78]]=_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[78]]===_0xc21d[40]?true:false};var _0x7a30x26={success:true,has_session_saf:null,signed_up:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[80]]?true:false,fullname:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[81]]?_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[81]]:_0xc21d[82],email:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[83]]?_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[83]]:_0xc21d[82],avatar:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[84]]?_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[84]]:_0xc21d[82],open_state:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[78]]||_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[80]]?true:false,online:_0x7a30x25[_0xc21d[85]]?true:false};if(_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[86]]){ChatRoom[_0xc21d[93]]({where:{ChatVisitorId:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[86]],status:_0xc21d[92]}})[_0xc21d[28]](function(_0x7a30x27){if(_0x7a30x27){_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[80]]=_0x7a30x27[_0xc21d[35]];_0x7a30x26[_0xc21d[87]]=true;}else {_0x7a30x26[_0xc21d[87]]=false};_0x7a30x1b[_0xc21d[26]](_0x7a30x1a[_0xc21d[71]][_0xc21d[88]]+_0xc21d[89]+JSON[_0xc21d[90]](_0x7a30x26)+_0xc21d[91]);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)})}else {_0x7a30x1b[_0xc21d[26]](_0x7a30x1a[_0xc21d[71]][_0xc21d[88]]+_0xc21d[89]+JSON[_0xc21d[90]](_0x7a30x26)+_0xc21d[91])};})[_0xc21d[25]](function(_0x7a30x1d){return _0x7a30x1c(_0x7a30x1d)});};exports[_0xc21d[95]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){var _0x7a30x28={where:{ChatRoomId:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[80]]},include:[{model:User,attributes:[_0xc21d[35],_0xc21d[96],_0xc21d[81],_0xc21d[83]]},{model:ChatVisitor,attributes:[_0xc21d[35],_0xc21d[81],_0xc21d[83]]}]};if(_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[97]]===_0xc21d[39]){_0x7a30x28[_0xc21d[98]][_0xc21d[35]]={$gt:_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[99]]}};ChatMessage[_0xc21d[29]](_0x7a30x28)[_0xc21d[28]](function(_0x7a30x29){var _0x7a30x2a={success:true,messages:_0x7a30x29,composing:false,composing_fullname:null};_0x7a30x1b[_0xc21d[26]](_0x7a30x1a[_0xc21d[71]][_0xc21d[88]]+_0xc21d[89]+JSON[_0xc21d[90]](_0x7a30x2a)+_0xc21d[91]);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)});};exports[_0xc21d[100]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){var _0x7a30x28={where:{ChatRoomId:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[80]]},include:[{model:User,attributes:[_0xc21d[35],_0xc21d[96],_0xc21d[81],_0xc21d[83]]},{model:ChatVisitor,attributes:[_0xc21d[35],_0xc21d[81],_0xc21d[83]]}]};if(_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[97]]===_0xc21d[39]){_0x7a30x28[_0xc21d[98]][_0xc21d[35]]={$gt:_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[99]]}};ChatMessage[_0xc21d[105]]({body:_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[104]][_0xc21d[103]],ChatRoomId:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[80]],ChatVisitorId:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[86]]})[_0xc21d[28]](function(_0x7a30x2b){console[_0xc21d[102]](_0xc21d[101],_0x7a30x2b);ChatMessage[_0xc21d[29]](_0x7a30x28)[_0xc21d[28]](function(_0x7a30x29){var _0x7a30x2a={errors:[],success:true,data:_0x7a30x2b,messages:_0x7a30x29};_0x7a30x1b[_0xc21d[26]](_0x7a30x1a[_0xc21d[71]][_0xc21d[88]]+_0xc21d[89]+JSON[_0xc21d[90]](_0x7a30x2a)+_0xc21d[91]);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)});})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)});};exports[_0xc21d[106]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){ChatRoom[_0xc21d[57]](_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[80]])[_0xc21d[28]](function(_0x7a30x27){_0x7a30x27[_0xc21d[108]]({status:_0xc21d[107]})[_0xc21d[28]](function(_0x7a30x27){var _0x7a30x2a={success:true,errors:[]};_0x7a30x1a[_0xc21d[77]][_0xc21d[68]]={};_0x7a30x1b[_0xc21d[26]](_0x7a30x1a[_0xc21d[71]][_0xc21d[88]]+_0xc21d[89]+JSON[_0xc21d[90]](_0x7a30x2a)+_0xc21d[91]);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)})})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)})};exports[_0xc21d[109]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){var _0x7a30x2c=uaParser[_0xc21d[113]](_0x7a30x1a[_0xc21d[112]][_0xc21d[111]])[_0xc21d[110]]();var _0x7a30x2d=languageParser[_0xc21d[115]](_0x7a30x1a[_0xc21d[112]][_0xc21d[114]]);var _0x7a30x2e={fullname:_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[116]][_0xc21d[81]],email:_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[116]][_0xc21d[83]],remote_address:_0x7a30x1a[_0xc21d[118]][_0xc21d[117]],user_agent:_0x7a30x1a[_0xc21d[112]][_0xc21d[111]],visitor_language:_0x7a30x1a[_0xc21d[112]][_0xc21d[114]],referer:_0x7a30x1a[_0xc21d[112]][_0xc21d[119]],origin:_0xc21d[120],browser:_0x7a30x2c[_0xc21d[121]][_0xc21d[96]]+_0xc21d[122]+_0x7a30x2c[_0xc21d[121]][_0xc21d[123]],engine:_0x7a30x2c[_0xc21d[124]][_0xc21d[96]]+_0xc21d[122]+_0x7a30x2c[_0xc21d[124]][_0xc21d[123]],os:_0x7a30x2c[_0xc21d[125]][_0xc21d[96]]+_0xc21d[122]+_0x7a30x2c[_0xc21d[125]][_0xc21d[123]],device:_0x7a30x2c[_0xc21d[127]][_0xc21d[126]]?_0x7a30x2c[_0xc21d[127]][_0xc21d[126]]+_0xc21d[122]+_0x7a30x2c[_0xc21d[127]][_0xc21d[128]]+_0xc21d[122]+_0x7a30x2c[_0xc21d[127]][_0xc21d[129]]:null,ChatWebsiteId:_0x7a30x1a[_0xc21d[71]][_0xc21d[130]]};return ChatVisitor[_0xc21d[105]](_0x7a30x2e)[_0xc21d[28]](function(_0x7a30x2f){_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[81]]=_0x7a30x2f[_0xc21d[81]];_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[83]]=_0x7a30x2f[_0xc21d[83]];_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[84]]=md5(_0x7a30x2f[_0xc21d[83]]).toString(_0xc21d[131]);_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[86]]=_0x7a30x2f[_0xc21d[35]];var _0x7a30x2a={success:true,errors:[],chatVisitor:{id:_0x7a30x2f[_0xc21d[35]]}};_0x7a30x1b[_0xc21d[26]](_0x7a30x1a[_0xc21d[71]][_0xc21d[88]]+_0xc21d[89]+JSON[_0xc21d[90]](_0x7a30x2a)+_0xc21d[91]);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)});};exports[_0xc21d[132]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){ChatVisitor[_0xc21d[57]](_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[86]])[_0xc21d[28]](function(_0x7a30x2f){_0x7a30x2f[_0xc21d[108]]({status:_0xc21d[133]})[_0xc21d[28]](function(){var _0x7a30x2a={success:true,errors:[]};_0x7a30x1a[_0xc21d[77]][_0xc21d[68]]={};_0x7a30x1b[_0xc21d[26]](_0x7a30x1a[_0xc21d[71]][_0xc21d[88]]+_0xc21d[89]+JSON[_0xc21d[90]](_0x7a30x2a)+_0xc21d[91]);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)})})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)})};exports[_0xc21d[134]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){var _0x7a30x30;var _0x7a30x31;return sequelize[_0xc21d[140]]()[_0xc21d[28]](function(_0x7a30x32){return ChatVisitor[_0xc21d[105]]({fullname:_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[137]][_0xc21d[81]],email:_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[137]][_0xc21d[83]],remote_address:_0x7a30x1a[_0xc21d[118]][_0xc21d[117]],user_agent:_0x7a30x1a[_0xc21d[112]][_0xc21d[111]],visitor_language:_0x7a30x1a[_0xc21d[112]][_0xc21d[114]],referer:_0x7a30x1a[_0xc21d[112]][_0xc21d[119]],origin:_0xc21d[139],status:_0xc21d[133]},{transaction:_0x7a30x32})[_0xc21d[28]](function(_0x7a30x2f){_0x7a30x30=_0x7a30x2f;return ChatEnquiry[_0xc21d[105]]({username:_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[137]][_0xc21d[81]],email:_0x7a30x2f[_0xc21d[83]],text:_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[137]][_0xc21d[103]],ChatWebsiteId:parseInt(_0x7a30x1a[_0xc21d[71]][_0xc21d[79]][_0xc21d[137]][_0xc21d[138]],10),ChatVisitorId:_0x7a30x30[_0xc21d[35]]},{include:[{all:true,include:[{all:true}]}],transaction:_0x7a30x32});})[_0xc21d[28]](function(){_0x7a30x32[_0xc21d[136]]();_0x7a30x1b[_0xc21d[26]](_0x7a30x1a[_0xc21d[71]][_0xc21d[88]]+_0xc21d[89]+JSON[_0xc21d[90]]({success:true,errors:[]})+_0xc21d[91]);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x32[_0xc21d[135]]();_0x7a30x1c(_0x7a30x1d);})});};exports[_0xc21d[141]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){if(_0x7a30x1a[_0xc21d[77]][_0xc21d[68]]&&_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[86]]&&_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[80]]){ChatMessage[_0xc21d[29]]({where:{ChatRoomId:_0x7a30x1a[_0xc21d[77]][_0xc21d[68]][_0xc21d[80]]}})[_0xc21d[28]](function(_0x7a30x29){var _0x7a30x33=[];_0x7a30x29[_0xc21d[146]](function(_0x7a30x2b){var _0x7a30x34={name:_0x7a30x2b[_0xc21d[81]],text:_0x7a30x2b[_0xc21d[143]][_0xc21d[142]](/(\r\n|\n|\r)/gm,_0xc21d[122]),date:_0x7a30x2b[_0xc21d[144]]};_0x7a30x33[_0xc21d[145]](_0x7a30x34);});var _0x7a30x35=csv(_0x7a30x33);_0x7a30x1b[_0xc21d[129]](_0xc21d[147])[_0xc21d[27]](200)[_0xc21d[26]](_0x7a30x35);})[_0xc21d[25]](function(_0x7a30x1d){_0x7a30x1c(_0x7a30x1d)})}};exports[_0xc21d[148]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){Xchatty[_0xc21d[57]](_0x7a30x1a[_0xc21d[36]][_0xc21d[35]])[_0xc21d[28]](function(_0x7a30x36){if(!_0x7a30x36){return _0x7a30x1b[_0xc21d[149]](404)};return _0x7a30x1b[_0xc21d[26]](_0x7a30x36);})[_0xc21d[25]](function(_0x7a30x1d){return _0x7a30x1c(_0x7a30x1d)})};exports[_0xc21d[105]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){Xchatty[_0xc21d[105]](_0x7a30x1a[_0xc21d[143]])[_0xc21d[28]](function(_0x7a30x36){return _0x7a30x1b[_0xc21d[27]](201)[_0xc21d[26]](_0x7a30x36)})[_0xc21d[25]](function(_0x7a30x1d){return _0x7a30x1c(_0x7a30x1d)})};exports[_0xc21d[150]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){if(_0x7a30x1a[_0xc21d[143]][_0xc21d[35]]){delete _0x7a30x1a[_0xc21d[143]][_0xc21d[35]]};Xchatty[_0xc21d[57]](_0x7a30x1a[_0xc21d[36]][_0xc21d[35]])[_0xc21d[28]](function(_0x7a30x36){if(!_0x7a30x36){return _0x7a30x1b[_0xc21d[149]](404)};var _0x7a30x37=_[_0xc21d[151]](_0x7a30x36,_0x7a30x1a[_0xc21d[143]]);_0x7a30x37[_0xc21d[152]]()[_0xc21d[28]](function(){return _0x7a30x1b[_0xc21d[27]](200)[_0xc21d[26]](_0x7a30x36)})[_0xc21d[25]](function(_0x7a30x1d){return _0x7a30x1c(_0x7a30x1d)});})[_0xc21d[25]](function(_0x7a30x1d){return _0x7a30x1c(_0x7a30x1d)});};exports[_0xc21d[153]]=function(_0x7a30x1a,_0x7a30x1b,_0x7a30x1c){Xchatty[_0xc21d[57]](_0x7a30x1a[_0xc21d[36]][_0xc21d[35]])[_0xc21d[28]](function(_0x7a30x36){if(!_0x7a30x36){return _0x7a30x1b[_0xc21d[149]](404)};_0x7a30x36[_0xc21d[153]]()[_0xc21d[28]](function(){return _0x7a30x1b[_0xc21d[149]](204)})[_0xc21d[25]](function(_0x7a30x1d){return _0x7a30x1c(_0x7a30x1d)});})[_0xc21d[25]](function(_0x7a30x1d){return _0x7a30x1c(_0x7a30x1d)})};
\ No newline at end of file
+var _0x54f8=["\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"];_0x54f8[0];var _=require(_0x54f8[1]);var jsmin=require(_0x54f8[2])[_0x54f8[2]];var Mustache=require(_0x54f8[3]);var querystring=require(_0x54f8[4]);var path=require(_0x54f8[5]);var md5=require(_0x54f8[6]);var fs=require(_0x54f8[7]);var UAParser=require(_0x54f8[8]);var uaParser= new UAParser();var languageParser=require(_0x54f8[9]);var ipaddr=require(_0x54f8[10]);var geoip=require(_0x54f8[11]);var csv=require(_0x54f8[12]);var config=require(_0x54f8[13]);var Xchatty=require(_0x54f8[15])[_0x54f8[14]];var xchatty_components=require(_0x54f8[16]);var sequelize=require(_0x54f8[15])[_0x54f8[17]];var User=require(_0x54f8[15])[_0x54f8[18]];var Agent=require(_0x54f8[15])[_0x54f8[18]];var ChatRoom=require(_0x54f8[15])[_0x54f8[19]];var ChatEnquiry=require(_0x54f8[15])[_0x54f8[20]];var ChatVisitor=require(_0x54f8[15])[_0x54f8[21]];var ChatMessage=require(_0x54f8[15])[_0x54f8[22]];var ChatWebsite=require(_0x54f8[15])[_0x54f8[23]];var id=1;exports[_0x54f8[24]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){Xchatty[_0x54f8[29]]()[_0x54f8[28]](function(_0x81fbx1e){return _0x81fbx1b[_0x54f8[27]](200)[_0x54f8[26]](_0x81fbx1e)})[_0x54f8[25]](function(_0x81fbx1d){return _0x81fbx1c(_0x81fbx1d)})};exports[_0x54f8[30]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){ChatWebsite[_0x54f8[57]](_0x81fbx1a[_0x54f8[36]][_0x54f8[35]])[_0x54f8[28]](function(_0x81fbx1f){_0x81fbx1b[_0x54f8[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x54f8[31],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x54f8[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x81fbx20=xchatty_components[_0x54f8[34]];var _0x81fbx21={websiteId:_0x81fbx1a[_0x54f8[36]][_0x54f8[35]],rootPath:_0x81fbx1f[_0x54f8[37]]+_0x54f8[38],signedUp:_0x54f8[39],windowFocused:_0x54f8[39],isNewPage:_0x54f8[40],processingSignUp:_0x54f8[39],processingEnquiry:_0x54f8[39],processingSend:_0x54f8[39],visitorFullname:_0x54f8[41],visitorAvatar:_0x54f8[41],timerReadMessages:_0x54f8[42],timerCheckStatus:_0x54f8[42],isOnline:_0x54f8[39],decayHistory:0,defaultTimeout:2000,isInitialStatusCheck:_0x54f8[40],muteNotificationSoundOnce:_0x54f8[39],assetBase:_0x81fbx1f[_0x54f8[37]]+_0x54f8[43],hasSessionSaf:_0x54f8[39],restoreOpenState:_0x54f8[39],animateHover:_0x81fbx1f[_0x54f8[44]],hideEmail:_0x54f8[39],hideOffline:_0x54f8[39],headerShape:_0x81fbx1f[_0x54f8[45]],HeaderOnline:_0x81fbx1f[_0x54f8[46]],OnlineMessage:_0x81fbx1f[_0x54f8[47]],UsernamePlaceholder:_0x81fbx1f[_0x54f8[48]],EmailPlaceholder:_0x81fbx1f[_0x54f8[49]],StartChatButtonText:_0x81fbx1f[_0x54f8[50]],OfflineMessage:_0x81fbx1f[_0x54f8[51]],HeaderOffline:_0x81fbx1f[_0x54f8[52]],EnquiryMessagePlaceholder:_0x81fbx1f[_0x54f8[53]],EnquiryButtonText:_0x81fbx1f[_0x54f8[54]],downloadTranscript:_0x81fbx1f[_0x54f8[55]]};_0x81fbx20=Mustache[_0x54f8[56]](_0x81fbx20,_0x81fbx21);_0x81fbx1b[_0x54f8[26]](_0x81fbx20);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)})};exports[_0x54f8[58]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){ChatWebsite[_0x54f8[57]](_0x81fbx1a[_0x54f8[36]][_0x54f8[35]])[_0x54f8[28]](function(_0x81fbx1f){_0x81fbx1b[_0x54f8[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x54f8[59],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x54f8[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x81fbx22=xchatty_components[_0x54f8[60]];var _0x81fbx23={assetBase:_0x81fbx1f[_0x54f8[37]]+_0x54f8[43],color:_0x81fbx1f[_0x54f8[61]],colorFocus:_0x81fbx1f[_0x54f8[62]],colorButton:_0x81fbx1f[_0x54f8[63]]};_0x81fbx22=Mustache[_0x54f8[56]](_0x81fbx22,_0x81fbx23);_0x81fbx1b[_0x54f8[26]](_0x81fbx22);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)})};exports[_0x54f8[64]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){_0x81fbx1b[_0x54f8[73]](path[_0x54f8[72]](config[_0x54f8[65]],_0x54f8[66],_0x54f8[67],_0x54f8[68],_0x54f8[69],_0x81fbx1a[_0x54f8[71]][_0x54f8[70]]))};exports[_0x54f8[74]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){_0x81fbx1b[_0x54f8[33]]({"\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x54\x79\x70\x65":_0x54f8[31],"\x78\x2D\x74\x69\x6D\x65\x73\x74\x61\x6D\x70":Date[_0x54f8[32]](),"\x78\x2D\x73\x65\x6E\x74":true});var _0x81fbx24=xchatty_components[_0x54f8[75]];_0x81fbx1b[_0x54f8[26]](_0x81fbx24);};exports[_0x54f8[76]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){if(!_0x81fbx1a[_0x54f8[77]][_0x54f8[68]]){_0x81fbx1a[_0x54f8[77]][_0x54f8[68]]={}};Agent[_0x54f8[29]]({where:{online:true,role:_0x54f8[94]}})[_0x54f8[28]](function(_0x81fbx25){if(_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[78]]){_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[78]]=_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[78]]===_0x54f8[40]?true:false};var _0x81fbx26={success:true,has_session_saf:null,signed_up:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[80]]?true:false,fullname:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[81]]?_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[81]]:_0x54f8[82],email:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[83]]?_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[83]]:_0x54f8[82],avatar:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[84]]?_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[84]]:_0x54f8[82],open_state:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[78]]||_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[80]]?true:false,online:_0x81fbx25[_0x54f8[85]]?true:false};if(_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[86]]){ChatRoom[_0x54f8[93]]({where:{ChatVisitorId:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[86]],status:_0x54f8[92]}})[_0x54f8[28]](function(_0x81fbx27){if(_0x81fbx27){_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[80]]=_0x81fbx27[_0x54f8[35]];_0x81fbx26[_0x54f8[87]]=true;}else {_0x81fbx26[_0x54f8[87]]=false};_0x81fbx1b[_0x54f8[26]](_0x81fbx1a[_0x54f8[71]][_0x54f8[88]]+_0x54f8[89]+JSON[_0x54f8[90]](_0x81fbx26)+_0x54f8[91]);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)})}else {_0x81fbx1b[_0x54f8[26]](_0x81fbx1a[_0x54f8[71]][_0x54f8[88]]+_0x54f8[89]+JSON[_0x54f8[90]](_0x81fbx26)+_0x54f8[91])};})[_0x54f8[25]](function(_0x81fbx1d){return _0x81fbx1c(_0x81fbx1d)});};exports[_0x54f8[95]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){var _0x81fbx28={where:{ChatRoomId:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[80]]},include:[{model:User,attributes:[_0x54f8[35],_0x54f8[96],_0x54f8[81],_0x54f8[83]]},{model:ChatVisitor,attributes:[_0x54f8[35],_0x54f8[81],_0x54f8[83]]}]};if(_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[97]]===_0x54f8[39]){_0x81fbx28[_0x54f8[98]][_0x54f8[35]]={$gt:_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[99]]}};ChatMessage[_0x54f8[29]](_0x81fbx28)[_0x54f8[28]](function(_0x81fbx29){var _0x81fbx2a={success:true,messages:_0x81fbx29,composing:false,composing_fullname:null};_0x81fbx1b[_0x54f8[26]](_0x81fbx1a[_0x54f8[71]][_0x54f8[88]]+_0x54f8[89]+JSON[_0x54f8[90]](_0x81fbx2a)+_0x54f8[91]);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)});};exports[_0x54f8[100]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){var _0x81fbx28={where:{ChatRoomId:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[80]]},include:[{model:User,attributes:[_0x54f8[35],_0x54f8[96],_0x54f8[81],_0x54f8[83]]},{model:ChatVisitor,attributes:[_0x54f8[35],_0x54f8[81],_0x54f8[83]]}]};if(_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[97]]===_0x54f8[39]){_0x81fbx28[_0x54f8[98]][_0x54f8[35]]={$gt:_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[99]]}};ChatMessage[_0x54f8[105]]({body:_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[104]][_0x54f8[103]],ChatRoomId:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[80]],ChatVisitorId:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[86]]})[_0x54f8[28]](function(_0x81fbx2b){console[_0x54f8[102]](_0x54f8[101],_0x81fbx2b);ChatMessage[_0x54f8[29]](_0x81fbx28)[_0x54f8[28]](function(_0x81fbx29){var _0x81fbx2a={errors:[],success:true,data:_0x81fbx2b,messages:_0x81fbx29};_0x81fbx1b[_0x54f8[26]](_0x81fbx1a[_0x54f8[71]][_0x54f8[88]]+_0x54f8[89]+JSON[_0x54f8[90]](_0x81fbx2a)+_0x54f8[91]);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)});})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)});};exports[_0x54f8[106]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){ChatRoom[_0x54f8[57]](_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[80]])[_0x54f8[28]](function(_0x81fbx27){_0x81fbx27[_0x54f8[108]]({status:_0x54f8[107]})[_0x54f8[28]](function(_0x81fbx27){var _0x81fbx2a={success:true,errors:[]};_0x81fbx1a[_0x54f8[77]][_0x54f8[68]]={};_0x81fbx1b[_0x54f8[26]](_0x81fbx1a[_0x54f8[71]][_0x54f8[88]]+_0x54f8[89]+JSON[_0x54f8[90]](_0x81fbx2a)+_0x54f8[91]);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)})})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)})};exports[_0x54f8[109]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){var _0x81fbx2c=uaParser[_0x54f8[113]](_0x81fbx1a[_0x54f8[112]][_0x54f8[111]])[_0x54f8[110]]();var _0x81fbx2d=languageParser[_0x54f8[115]](_0x81fbx1a[_0x54f8[112]][_0x54f8[114]]);var _0x81fbx2e={fullname:_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[116]][_0x54f8[81]],email:_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[116]][_0x54f8[83]],remote_address:_0x81fbx1a[_0x54f8[118]][_0x54f8[117]],user_agent:_0x81fbx1a[_0x54f8[112]][_0x54f8[111]],visitor_language:_0x81fbx1a[_0x54f8[112]][_0x54f8[114]],referer:_0x81fbx1a[_0x54f8[112]][_0x54f8[119]],origin:_0x54f8[120],browser:_0x81fbx2c[_0x54f8[121]][_0x54f8[96]]+_0x54f8[122]+_0x81fbx2c[_0x54f8[121]][_0x54f8[123]],engine:_0x81fbx2c[_0x54f8[124]][_0x54f8[96]]+_0x54f8[122]+_0x81fbx2c[_0x54f8[124]][_0x54f8[123]],os:_0x81fbx2c[_0x54f8[125]][_0x54f8[96]]+_0x54f8[122]+_0x81fbx2c[_0x54f8[125]][_0x54f8[123]],device:_0x81fbx2c[_0x54f8[127]][_0x54f8[126]]?_0x81fbx2c[_0x54f8[127]][_0x54f8[126]]+_0x54f8[122]+_0x81fbx2c[_0x54f8[127]][_0x54f8[128]]+_0x54f8[122]+_0x81fbx2c[_0x54f8[127]][_0x54f8[129]]:null,ChatWebsiteId:_0x81fbx1a[_0x54f8[71]][_0x54f8[130]]};return ChatVisitor[_0x54f8[105]](_0x81fbx2e)[_0x54f8[28]](function(_0x81fbx2f){_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[81]]=_0x81fbx2f[_0x54f8[81]];_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[83]]=_0x81fbx2f[_0x54f8[83]];_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[84]]=md5(_0x81fbx2f[_0x54f8[83]]).toString(_0x54f8[131]);_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[86]]=_0x81fbx2f[_0x54f8[35]];var _0x81fbx2a={success:true,errors:[],chatVisitor:{id:_0x81fbx2f[_0x54f8[35]]}};_0x81fbx1b[_0x54f8[26]](_0x81fbx1a[_0x54f8[71]][_0x54f8[88]]+_0x54f8[89]+JSON[_0x54f8[90]](_0x81fbx2a)+_0x54f8[91]);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)});};exports[_0x54f8[132]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){ChatVisitor[_0x54f8[57]](_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[86]])[_0x54f8[28]](function(_0x81fbx2f){_0x81fbx2f[_0x54f8[108]]({status:_0x54f8[133]})[_0x54f8[28]](function(){var _0x81fbx2a={success:true,errors:[]};_0x81fbx1a[_0x54f8[77]][_0x54f8[68]]={};_0x81fbx1b[_0x54f8[26]](_0x81fbx1a[_0x54f8[71]][_0x54f8[88]]+_0x54f8[89]+JSON[_0x54f8[90]](_0x81fbx2a)+_0x54f8[91]);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)})})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)})};exports[_0x54f8[134]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){var _0x81fbx30;var _0x81fbx31;return sequelize[_0x54f8[140]]()[_0x54f8[28]](function(_0x81fbx32){return ChatVisitor[_0x54f8[105]]({fullname:_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[137]][_0x54f8[81]],email:_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[137]][_0x54f8[83]],remote_address:_0x81fbx1a[_0x54f8[118]][_0x54f8[117]],user_agent:_0x81fbx1a[_0x54f8[112]][_0x54f8[111]],visitor_language:_0x81fbx1a[_0x54f8[112]][_0x54f8[114]],referer:_0x81fbx1a[_0x54f8[112]][_0x54f8[119]],origin:_0x54f8[139],status:_0x54f8[133]},{transaction:_0x81fbx32})[_0x54f8[28]](function(_0x81fbx2f){_0x81fbx30=_0x81fbx2f;return ChatEnquiry[_0x54f8[105]]({username:_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[137]][_0x54f8[81]],email:_0x81fbx2f[_0x54f8[83]],text:_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[137]][_0x54f8[103]],ChatWebsiteId:parseInt(_0x81fbx1a[_0x54f8[71]][_0x54f8[79]][_0x54f8[137]][_0x54f8[138]],10),ChatVisitorId:_0x81fbx30[_0x54f8[35]]},{include:[{all:true,include:[{all:true}]}],transaction:_0x81fbx32});})[_0x54f8[28]](function(){_0x81fbx32[_0x54f8[136]]();_0x81fbx1b[_0x54f8[26]](_0x81fbx1a[_0x54f8[71]][_0x54f8[88]]+_0x54f8[89]+JSON[_0x54f8[90]]({success:true,errors:[]})+_0x54f8[91]);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx32[_0x54f8[135]]();_0x81fbx1c(_0x81fbx1d);})});};exports[_0x54f8[141]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){if(_0x81fbx1a[_0x54f8[77]][_0x54f8[68]]&&_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[86]]&&_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[80]]){ChatMessage[_0x54f8[29]]({where:{ChatRoomId:_0x81fbx1a[_0x54f8[77]][_0x54f8[68]][_0x54f8[80]]}})[_0x54f8[28]](function(_0x81fbx29){var _0x81fbx33=[];_0x81fbx29[_0x54f8[146]](function(_0x81fbx2b){var _0x81fbx34={name:_0x81fbx2b[_0x54f8[81]],text:_0x81fbx2b[_0x54f8[143]][_0x54f8[142]](/(\r\n|\n|\r)/gm,_0x54f8[122]),date:_0x81fbx2b[_0x54f8[144]]};_0x81fbx33[_0x54f8[145]](_0x81fbx34);});var _0x81fbx35=csv(_0x81fbx33);_0x81fbx1b[_0x54f8[129]](_0x54f8[147])[_0x54f8[27]](200)[_0x54f8[26]](_0x81fbx35);})[_0x54f8[25]](function(_0x81fbx1d){_0x81fbx1c(_0x81fbx1d)})}};exports[_0x54f8[148]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){Xchatty[_0x54f8[57]](_0x81fbx1a[_0x54f8[36]][_0x54f8[35]])[_0x54f8[28]](function(_0x81fbx36){if(!_0x81fbx36){return _0x81fbx1b[_0x54f8[149]](404)};return _0x81fbx1b[_0x54f8[26]](_0x81fbx36);})[_0x54f8[25]](function(_0x81fbx1d){return _0x81fbx1c(_0x81fbx1d)})};exports[_0x54f8[105]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){Xchatty[_0x54f8[105]](_0x81fbx1a[_0x54f8[143]])[_0x54f8[28]](function(_0x81fbx36){return _0x81fbx1b[_0x54f8[27]](201)[_0x54f8[26]](_0x81fbx36)})[_0x54f8[25]](function(_0x81fbx1d){return _0x81fbx1c(_0x81fbx1d)})};exports[_0x54f8[150]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){if(_0x81fbx1a[_0x54f8[143]][_0x54f8[35]]){delete _0x81fbx1a[_0x54f8[143]][_0x54f8[35]]};Xchatty[_0x54f8[57]](_0x81fbx1a[_0x54f8[36]][_0x54f8[35]])[_0x54f8[28]](function(_0x81fbx36){if(!_0x81fbx36){return _0x81fbx1b[_0x54f8[149]](404)};var _0x81fbx37=_[_0x54f8[151]](_0x81fbx36,_0x81fbx1a[_0x54f8[143]]);_0x81fbx37[_0x54f8[152]]()[_0x54f8[28]](function(){return _0x81fbx1b[_0x54f8[27]](200)[_0x54f8[26]](_0x81fbx36)})[_0x54f8[25]](function(_0x81fbx1d){return _0x81fbx1c(_0x81fbx1d)});})[_0x54f8[25]](function(_0x81fbx1d){return _0x81fbx1c(_0x81fbx1d)});};exports[_0x54f8[153]]=function(_0x81fbx1a,_0x81fbx1b,_0x81fbx1c){Xchatty[_0x54f8[57]](_0x81fbx1a[_0x54f8[36]][_0x54f8[35]])[_0x54f8[28]](function(_0x81fbx36){if(!_0x81fbx36){return _0x81fbx1b[_0x54f8[149]](404)};_0x81fbx36[_0x54f8[153]]()[_0x54f8[28]](function(){return _0x81fbx1b[_0x54f8[149]](204)})[_0x54f8[25]](function(_0x81fbx1d){return _0x81fbx1c(_0x81fbx1d)});})[_0x54f8[25]](function(_0x81fbx1d){return _0x81fbx1c(_0x81fbx1d)})};
\ No newline at end of file
-var _0x8b0a=["\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"];_0x8b0a[0];var xchatty=require(_0x8b0a[2])[_0x8b0a[1]];exports[_0x8b0a[3]]=function(_0x4fb1x2){};function onSave(_0x4fb1x2,_0x4fb1x4,_0x4fb1x5){_0x4fb1x2[_0x8b0a[5]](_0x8b0a[4],_0x4fb1x4)}function onRemove(_0x4fb1x2,_0x4fb1x4,_0x4fb1x5){_0x4fb1x2[_0x8b0a[5]](_0x8b0a[6],_0x4fb1x4)}
\ No newline at end of file
+var _0x8e8b=["\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"];_0x8e8b[0];var xchatty=require(_0x8e8b[2])[_0x8e8b[1]];exports[_0x8e8b[3]]=function(_0x5b74x2){};function onSave(_0x5b74x2,_0x5b74x4,_0x5b74x5){_0x5b74x2[_0x8e8b[5]](_0x8e8b[4],_0x5b74x4)}function onRemove(_0x5b74x2,_0x5b74x4,_0x5b74x5){_0x5b74x2[_0x8e8b[5]](_0x8e8b[6],_0x5b74x4)}
\ No newline at end of file
-var _0xdaea=["\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"];_0xdaea[0];var express=require(_0xdaea[1]);var auth=require(_0xdaea[2]);var controller=require(_0xdaea[3]);var router=express.Router();router[_0xdaea[7]](_0xdaea[4],auth[_0xdaea[5]](),controller[_0xdaea[6]]);router[_0xdaea[7]](_0xdaea[8],auth[_0xdaea[5]](),controller[_0xdaea[9]]);router[_0xdaea[7]](_0xdaea[10],auth[_0xdaea[5]](),controller[_0xdaea[11]]);router[_0xdaea[7]](_0xdaea[12],auth[_0xdaea[5]](),controller[_0xdaea[13]]);router[_0xdaea[16]](_0xdaea[14],auth[_0xdaea[5]](),controller[_0xdaea[15]]);router[_0xdaea[16]](_0xdaea[4],auth[_0xdaea[5]](),controller[_0xdaea[17]]);router[_0xdaea[19]](_0xdaea[8],auth[_0xdaea[5]](),controller[_0xdaea[18]]);router[_0xdaea[20]](_0xdaea[8],auth[_0xdaea[5]](),controller[_0xdaea[18]]);router[_0xdaea[22]](_0xdaea[4],auth[_0xdaea[5]](),controller[_0xdaea[21]]);router[_0xdaea[22]](_0xdaea[8],auth[_0xdaea[5]](),controller[_0xdaea[23]]);module[_0xdaea[24]]=router;
\ No newline at end of file
+var _0x62fc=["\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"];_0x62fc[0];var express=require(_0x62fc[1]);var auth=require(_0x62fc[2]);var controller=require(_0x62fc[3]);var router=express.Router();router[_0x62fc[7]](_0x62fc[4],auth[_0x62fc[5]](),controller[_0x62fc[6]]);router[_0x62fc[7]](_0x62fc[8],auth[_0x62fc[5]](),controller[_0x62fc[9]]);router[_0x62fc[7]](_0x62fc[10],auth[_0x62fc[5]](),controller[_0x62fc[11]]);router[_0x62fc[7]](_0x62fc[12],auth[_0x62fc[5]](),controller[_0x62fc[13]]);router[_0x62fc[16]](_0x62fc[14],auth[_0x62fc[5]](),controller[_0x62fc[15]]);router[_0x62fc[16]](_0x62fc[4],auth[_0x62fc[5]](),controller[_0x62fc[17]]);router[_0x62fc[19]](_0x62fc[8],auth[_0x62fc[5]](),controller[_0x62fc[18]]);router[_0x62fc[20]](_0x62fc[8],auth[_0x62fc[5]](),controller[_0x62fc[18]]);router[_0x62fc[22]](_0x62fc[4],auth[_0x62fc[5]](),controller[_0x62fc[21]]);router[_0x62fc[22]](_0x62fc[8],auth[_0x62fc[5]](),controller[_0x62fc[23]]);module[_0x62fc[24]]=router;
\ No newline at end of file
-var _0xe2d5=["\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"];_0xe2d5[0];var _=require(_0xe2d5[1]);var util=require(_0xe2d5[2]);var zendesk=require(_0xe2d5[3]);var ZendeskAccount=require(_0xe2d5[5])[_0xe2d5[4]];exports[_0xe2d5[6]]=function(_0x67d8x5,_0x67d8x6,_0x67d8x7){var _0x67d8x8=[_0xe2d5[7],_0xe2d5[8],_0xe2d5[9],_0xe2d5[10]];var _0x67d8x9=_0x67d8x5[_0xe2d5[12]][_0xe2d5[11]]?parseInt(_0x67d8x5[_0xe2d5[12]][_0xe2d5[11]],10):100;var _0x67d8xa=_0x67d8x5[_0xe2d5[12]][_0xe2d5[13]]?parseInt(_0x67d8x5[_0xe2d5[12]][_0xe2d5[13]],10):0;var _0x67d8xb={where:{},limit:_0x67d8x9,offset:_0x67d8xa*_0x67d8x9};_[_0xe2d5[27]](_0x67d8x5[_0xe2d5[12]],function(_0x67d8xc,_0x67d8xd){switch(_0x67d8xd){case _0xe2d5[11]:;case _0xe2d5[13]:break ;;case _0xe2d5[16]:_0x67d8xb[_0xe2d5[14]]=util[_0xe2d5[19]](_0xe2d5[15],_0x67d8x5[_0xe2d5[12]][_0xe2d5[16]],_0x67d8x5[_0xe2d5[12]][_0xe2d5[17]]||_0xe2d5[18])||null;break ;;case _0xe2d5[17]:break ;;case _0xe2d5[25]:_0x67d8xb[_0xe2d5[21]][_0xe2d5[20]]=[];_0x67d8x8[_0xe2d5[24]](function(_0x67d8xe){var _0x67d8xf={};_0x67d8xf[_0x67d8xe]={$like:_0xe2d5[22]+_0x67d8xc+_0xe2d5[22]};_0x67d8xb[_0xe2d5[21]][_0xe2d5[20]][_0xe2d5[23]](_0x67d8xf);});break ;;default:_0x67d8xb[_0xe2d5[21]][_0x67d8xd]={$like:{}};_0x67d8xb[_0xe2d5[21]][_0x67d8xd][_0xe2d5[26]]=_0xe2d5[22]+_0x67d8xc+_0xe2d5[22];;}});ZendeskAccount[_0xe2d5[42]](_0x67d8xb)[_0xe2d5[41]](function(_0x67d8x11){var _0x67d8x12=Math[_0xe2d5[33]](_0x67d8x11[_0xe2d5[32]]/_0x67d8x9);var _0x67d8x13=_0x67d8x12>(_0x67d8xb[_0xe2d5[34]]+1)?util[_0xe2d5[19]](_0xe2d5[35],_0x67d8x5[_0xe2d5[36]],_0x67d8x5[_0xe2d5[38]][_0xe2d5[37]],_0x67d8x5[_0xe2d5[39]],_0x67d8xa+1):null;var _0x67d8x14=_0x67d8xa>0?util[_0xe2d5[19]](_0xe2d5[35],_0x67d8x5[_0xe2d5[36]],_0x67d8x5[_0xe2d5[38]][_0xe2d5[37]],_0x67d8x5[_0xe2d5[39]],_0x67d8xa-1):null;return _0x67d8x6[_0xe2d5[30]](200)[_0xe2d5[29]]({count:_0x67d8x11[_0xe2d5[32]],rows:_0x67d8x11[_0xe2d5[40]],next_page:_0x67d8x13,previous_page:_0x67d8x14,total_pages:_0x67d8x12});})[_0xe2d5[31]](function(_0x67d8x10){return _0x67d8x6[_0xe2d5[30]](500)[_0xe2d5[29]]({error:_0xe2d5[28]})});};exports[_0xe2d5[43]]=function(_0x67d8x5,_0x67d8x6){ZendeskAccount[_0xe2d5[47]](_0x67d8x5[_0xe2d5[46]][_0xe2d5[45]])[_0xe2d5[41]](function(_0x67d8x15){if(!_0x67d8x15){return _0x67d8x6[_0xe2d5[44]](404)};return _0x67d8x6[_0xe2d5[29]](_0x67d8x15);})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)})};exports[_0xe2d5[48]]=function(_0x67d8x5,_0x67d8x6){ZendeskAccount[_0xe2d5[48]](_0x67d8x5[_0xe2d5[49]])[_0xe2d5[41]](function(_0x67d8x15){return _0x67d8x6[_0xe2d5[30]](201)[_0xe2d5[29]](_0x67d8x15)})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)})};exports[_0xe2d5[50]]=function(_0x67d8x5,_0x67d8x6){if(_0x67d8x5[_0xe2d5[49]][_0xe2d5[45]]){delete _0x67d8x5[_0xe2d5[49]][_0xe2d5[45]]};ZendeskAccount[_0xe2d5[47]](_0x67d8x5[_0xe2d5[46]][_0xe2d5[45]])[_0xe2d5[41]](function(_0x67d8x15){if(!_0x67d8x15){return _0x67d8x6[_0xe2d5[44]](404)};var _0x67d8x16=_[_0xe2d5[51]](_0x67d8x15,_0x67d8x5[_0xe2d5[49]]);_0x67d8x16[_0xe2d5[52]]()[_0xe2d5[41]](function(){return _0x67d8x6[_0xe2d5[30]](200)[_0xe2d5[29]](_0x67d8x15)})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)});})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)});};exports[_0xe2d5[53]]=function(_0x67d8x5,_0x67d8x6){ZendeskAccount[_0xe2d5[47]](_0x67d8x5[_0xe2d5[46]][_0xe2d5[45]])[_0xe2d5[41]](function(_0x67d8x15){if(!_0x67d8x15){return _0x67d8x6[_0xe2d5[44]](404)};_0x67d8x15[_0xe2d5[53]]()[_0xe2d5[41]](function(){return _0x67d8x6[_0xe2d5[44]](204)})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)});})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)})};exports[_0xe2d5[54]]=function(_0x67d8x5,_0x67d8x6){ZendeskAccount[_0xe2d5[53]]({where:{id:_0x67d8x5[_0xe2d5[12]][_0xe2d5[45]]},individualHooks:true})[_0xe2d5[41]](function(){return _0x67d8x6[_0xe2d5[44]](204)})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)})};exports[_0xe2d5[55]]=function(_0x67d8x5,_0x67d8x6){var _0x67d8x17={};_0x67d8x17[_0x67d8x5[_0xe2d5[46]][_0xe2d5[56]]]=_0x67d8x5[_0xe2d5[49]][_0xe2d5[57]];ZendeskAccount[_0xe2d5[42]]({where:_0x67d8x17})[_0xe2d5[41]](function(_0x67d8x11){if(_0x67d8x11[_0xe2d5[32]]){return _0x67d8x6[_0xe2d5[30]](200)[_0xe2d5[29]]({isValid:false,value:_0x67d8x5[_0xe2d5[49]][_0xe2d5[57]]})};return _0x67d8x6[_0xe2d5[30]](200)[_0xe2d5[29]]({isValid:true,value:_0x67d8x5[_0xe2d5[49]][_0xe2d5[57]]});})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)});};exports[_0xe2d5[58]]=function(_0x67d8x5,_0x67d8x6){ZendeskAccount[_0xe2d5[47]](_0x67d8x5[_0xe2d5[46]][_0xe2d5[45]])[_0xe2d5[41]](function(_0x67d8x18){var _0x67d8x19={username:_0x67d8x18[_0xe2d5[9]],remoteUri:_0x67d8x18[_0xe2d5[10]]};if(_0x67d8x18[_0xe2d5[59]]===_0xe2d5[60]){_0x67d8x19[_0xe2d5[60]]=_0x67d8x18[_0xe2d5[60]]}else {if(_0x67d8x18[_0xe2d5[59]]===_0xe2d5[61]){_0x67d8x19[_0xe2d5[61]]=_0x67d8x18[_0xe2d5[61]]}};var _0x67d8x1a=zendesk[_0xe2d5[62]](_0x67d8x19);_0x67d8x1a[_0xe2d5[66]][_0xe2d5[65]](function(_0x67d8x10,_0x67d8x1b,_0x67d8x11){if(_0x67d8x10){console[_0xe2d5[63]](_0x67d8x10);return handleError(_0x67d8x6,_0x67d8x10);};if(!_0x67d8x11[_0xe2d5[64]]){return _0x67d8x6[_0xe2d5[44]](500)};return _0x67d8x6[_0xe2d5[44]](204);});})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)})};exports[_0xe2d5[67]]=function(_0x67d8x5,_0x67d8x6){ZendeskAccount[_0xe2d5[47]](_0x67d8x5[_0xe2d5[46]][_0xe2d5[45]])[_0xe2d5[41]](function(_0x67d8x18){var _0x67d8x19={username:_0x67d8x18[_0xe2d5[9]],remoteUri:_0x67d8x18[_0xe2d5[10]]};if(_0x67d8x18[_0xe2d5[59]]===_0xe2d5[60]){_0x67d8x19[_0xe2d5[60]]=_0x67d8x18[_0xe2d5[60]]}else {if(_0x67d8x18[_0xe2d5[59]]===_0xe2d5[61]){_0x67d8x19[_0xe2d5[61]]=_0x67d8x18[_0xe2d5[61]]}};var _0x67d8x1a=zendesk[_0xe2d5[62]](_0x67d8x19);_0x67d8x1a[_0xe2d5[69]][_0xe2d5[68]](function(_0x67d8x10,_0x67d8x1b,_0x67d8x11){if(_0x67d8x10){console[_0xe2d5[63]](_0x67d8x10);return handleError(_0x67d8x6,_0x67d8x10);};return _0x67d8x6[_0xe2d5[30]](200)[_0xe2d5[29]](_0x67d8x11);});})[_0xe2d5[31]](function(_0x67d8x10){return handleError(_0x67d8x6,_0x67d8x10)})};function handleError(_0x67d8x6,_0x67d8x10){return _0x67d8x6[_0xe2d5[30]](500)[_0xe2d5[29]](_0x67d8x10)}
\ No newline at end of file
+var _0xcb30=["\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"];_0xcb30[0];var _=require(_0xcb30[1]);var util=require(_0xcb30[2]);var zendesk=require(_0xcb30[3]);var ZendeskAccount=require(_0xcb30[5])[_0xcb30[4]];exports[_0xcb30[6]]=function(_0x71eax5,_0x71eax6,_0x71eax7){var _0x71eax8=[_0xcb30[7],_0xcb30[8],_0xcb30[9],_0xcb30[10]];var _0x71eax9=_0x71eax5[_0xcb30[12]][_0xcb30[11]]?parseInt(_0x71eax5[_0xcb30[12]][_0xcb30[11]],10):100;var _0x71eaxa=_0x71eax5[_0xcb30[12]][_0xcb30[13]]?parseInt(_0x71eax5[_0xcb30[12]][_0xcb30[13]],10):0;var _0x71eaxb={where:{},limit:_0x71eax9,offset:_0x71eaxa*_0x71eax9};_[_0xcb30[27]](_0x71eax5[_0xcb30[12]],function(_0x71eaxc,_0x71eaxd){switch(_0x71eaxd){case _0xcb30[11]:;case _0xcb30[13]:break ;;case _0xcb30[16]:_0x71eaxb[_0xcb30[14]]=util[_0xcb30[19]](_0xcb30[15],_0x71eax5[_0xcb30[12]][_0xcb30[16]],_0x71eax5[_0xcb30[12]][_0xcb30[17]]||_0xcb30[18])||null;break ;;case _0xcb30[17]:break ;;case _0xcb30[25]:_0x71eaxb[_0xcb30[21]][_0xcb30[20]]=[];_0x71eax8[_0xcb30[24]](function(_0x71eaxe){var _0x71eaxf={};_0x71eaxf[_0x71eaxe]={$like:_0xcb30[22]+_0x71eaxc+_0xcb30[22]};_0x71eaxb[_0xcb30[21]][_0xcb30[20]][_0xcb30[23]](_0x71eaxf);});break ;;default:_0x71eaxb[_0xcb30[21]][_0x71eaxd]={$like:{}};_0x71eaxb[_0xcb30[21]][_0x71eaxd][_0xcb30[26]]=_0xcb30[22]+_0x71eaxc+_0xcb30[22];;}});ZendeskAccount[_0xcb30[42]](_0x71eaxb)[_0xcb30[41]](function(_0x71eax11){var _0x71eax12=Math[_0xcb30[33]](_0x71eax11[_0xcb30[32]]/_0x71eax9);var _0x71eax13=_0x71eax12>(_0x71eaxb[_0xcb30[34]]+1)?util[_0xcb30[19]](_0xcb30[35],_0x71eax5[_0xcb30[36]],_0x71eax5[_0xcb30[38]][_0xcb30[37]],_0x71eax5[_0xcb30[39]],_0x71eaxa+1):null;var _0x71eax14=_0x71eaxa>0?util[_0xcb30[19]](_0xcb30[35],_0x71eax5[_0xcb30[36]],_0x71eax5[_0xcb30[38]][_0xcb30[37]],_0x71eax5[_0xcb30[39]],_0x71eaxa-1):null;return _0x71eax6[_0xcb30[30]](200)[_0xcb30[29]]({count:_0x71eax11[_0xcb30[32]],rows:_0x71eax11[_0xcb30[40]],next_page:_0x71eax13,previous_page:_0x71eax14,total_pages:_0x71eax12});})[_0xcb30[31]](function(_0x71eax10){return _0x71eax6[_0xcb30[30]](500)[_0xcb30[29]]({error:_0xcb30[28]})});};exports[_0xcb30[43]]=function(_0x71eax5,_0x71eax6){ZendeskAccount[_0xcb30[47]](_0x71eax5[_0xcb30[46]][_0xcb30[45]])[_0xcb30[41]](function(_0x71eax15){if(!_0x71eax15){return _0x71eax6[_0xcb30[44]](404)};return _0x71eax6[_0xcb30[29]](_0x71eax15);})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)})};exports[_0xcb30[48]]=function(_0x71eax5,_0x71eax6){ZendeskAccount[_0xcb30[48]](_0x71eax5[_0xcb30[49]])[_0xcb30[41]](function(_0x71eax15){return _0x71eax6[_0xcb30[30]](201)[_0xcb30[29]](_0x71eax15)})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)})};exports[_0xcb30[50]]=function(_0x71eax5,_0x71eax6){if(_0x71eax5[_0xcb30[49]][_0xcb30[45]]){delete _0x71eax5[_0xcb30[49]][_0xcb30[45]]};ZendeskAccount[_0xcb30[47]](_0x71eax5[_0xcb30[46]][_0xcb30[45]])[_0xcb30[41]](function(_0x71eax15){if(!_0x71eax15){return _0x71eax6[_0xcb30[44]](404)};var _0x71eax16=_[_0xcb30[51]](_0x71eax15,_0x71eax5[_0xcb30[49]]);_0x71eax16[_0xcb30[52]]()[_0xcb30[41]](function(){return _0x71eax6[_0xcb30[30]](200)[_0xcb30[29]](_0x71eax15)})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)});})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)});};exports[_0xcb30[53]]=function(_0x71eax5,_0x71eax6){ZendeskAccount[_0xcb30[47]](_0x71eax5[_0xcb30[46]][_0xcb30[45]])[_0xcb30[41]](function(_0x71eax15){if(!_0x71eax15){return _0x71eax6[_0xcb30[44]](404)};_0x71eax15[_0xcb30[53]]()[_0xcb30[41]](function(){return _0x71eax6[_0xcb30[44]](204)})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)});})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)})};exports[_0xcb30[54]]=function(_0x71eax5,_0x71eax6){ZendeskAccount[_0xcb30[53]]({where:{id:_0x71eax5[_0xcb30[12]][_0xcb30[45]]},individualHooks:true})[_0xcb30[41]](function(){return _0x71eax6[_0xcb30[44]](204)})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)})};exports[_0xcb30[55]]=function(_0x71eax5,_0x71eax6){var _0x71eax17={};_0x71eax17[_0x71eax5[_0xcb30[46]][_0xcb30[56]]]=_0x71eax5[_0xcb30[49]][_0xcb30[57]];ZendeskAccount[_0xcb30[42]]({where:_0x71eax17})[_0xcb30[41]](function(_0x71eax11){if(_0x71eax11[_0xcb30[32]]){return _0x71eax6[_0xcb30[30]](200)[_0xcb30[29]]({isValid:false,value:_0x71eax5[_0xcb30[49]][_0xcb30[57]]})};return _0x71eax6[_0xcb30[30]](200)[_0xcb30[29]]({isValid:true,value:_0x71eax5[_0xcb30[49]][_0xcb30[57]]});})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)});};exports[_0xcb30[58]]=function(_0x71eax5,_0x71eax6){ZendeskAccount[_0xcb30[47]](_0x71eax5[_0xcb30[46]][_0xcb30[45]])[_0xcb30[41]](function(_0x71eax18){var _0x71eax19={username:_0x71eax18[_0xcb30[9]],remoteUri:_0x71eax18[_0xcb30[10]]};if(_0x71eax18[_0xcb30[59]]===_0xcb30[60]){_0x71eax19[_0xcb30[60]]=_0x71eax18[_0xcb30[60]]}else {if(_0x71eax18[_0xcb30[59]]===_0xcb30[61]){_0x71eax19[_0xcb30[61]]=_0x71eax18[_0xcb30[61]]}};var _0x71eax1a=zendesk[_0xcb30[62]](_0x71eax19);_0x71eax1a[_0xcb30[66]][_0xcb30[65]](function(_0x71eax10,_0x71eax1b,_0x71eax11){if(_0x71eax10){console[_0xcb30[63]](_0x71eax10);return handleError(_0x71eax6,_0x71eax10);};if(!_0x71eax11[_0xcb30[64]]){return _0x71eax6[_0xcb30[44]](500)};return _0x71eax6[_0xcb30[44]](204);});})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)})};exports[_0xcb30[67]]=function(_0x71eax5,_0x71eax6){ZendeskAccount[_0xcb30[47]](_0x71eax5[_0xcb30[46]][_0xcb30[45]])[_0xcb30[41]](function(_0x71eax18){var _0x71eax19={username:_0x71eax18[_0xcb30[9]],remoteUri:_0x71eax18[_0xcb30[10]]};if(_0x71eax18[_0xcb30[59]]===_0xcb30[60]){_0x71eax19[_0xcb30[60]]=_0x71eax18[_0xcb30[60]]}else {if(_0x71eax18[_0xcb30[59]]===_0xcb30[61]){_0x71eax19[_0xcb30[61]]=_0x71eax18[_0xcb30[61]]}};var _0x71eax1a=zendesk[_0xcb30[62]](_0x71eax19);_0x71eax1a[_0xcb30[69]][_0xcb30[68]](function(_0x71eax10,_0x71eax1b,_0x71eax11){if(_0x71eax10){console[_0xcb30[63]](_0x71eax10);return handleError(_0x71eax6,_0x71eax10);};return _0x71eax6[_0xcb30[30]](200)[_0xcb30[29]](_0x71eax11);});})[_0xcb30[31]](function(_0x71eax10){return handleError(_0x71eax6,_0x71eax10)})};function handleError(_0x71eax6,_0x71eax10){return _0x71eax6[_0xcb30[30]](500)[_0xcb30[29]](_0x71eax10)}
\ No newline at end of file
-var _0x7b48=["\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"];_0x7b48[0];var ZendeskAccount=require(_0x7b48[2])[_0x7b48[1]];exports[_0x7b48[3]]=function(_0x5bf3x2){ZendeskAccount[_0x7b48[4]](function(_0x5bf3x3){onSave(_0x5bf3x2,_0x5bf3x3)});ZendeskAccount[_0x7b48[5]](function(_0x5bf3x3){onRemove(_0x5bf3x2,_0x5bf3x3)});};function onSave(_0x5bf3x2,_0x5bf3x3,_0x5bf3x5){_0x5bf3x2[_0x7b48[7]](_0x7b48[6],_0x5bf3x3)}function onRemove(_0x5bf3x2,_0x5bf3x3,_0x5bf3x5){_0x5bf3x2[_0x7b48[7]](_0x7b48[8],_0x5bf3x3)}
\ No newline at end of file
+var _0xd6cb=["\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"];_0xd6cb[0];var ZendeskAccount=require(_0xd6cb[2])[_0xd6cb[1]];exports[_0xd6cb[3]]=function(_0xa8b7x2){ZendeskAccount[_0xd6cb[4]](function(_0xa8b7x3){onSave(_0xa8b7x2,_0xa8b7x3)});ZendeskAccount[_0xd6cb[5]](function(_0xa8b7x3){onRemove(_0xa8b7x2,_0xa8b7x3)});};function onSave(_0xa8b7x2,_0xa8b7x3,_0xa8b7x5){_0xa8b7x2[_0xd6cb[7]](_0xd6cb[6],_0xa8b7x3)}function onRemove(_0xa8b7x2,_0xa8b7x3,_0xa8b7x5){_0xa8b7x2[_0xd6cb[7]](_0xd6cb[8],_0xa8b7x3)}
\ No newline at end of file
-var _0xa708=["\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"];_0xa708[0];var should=require(_0xa708[1]);var app=require(_0xa708[2]);var request=require(_0xa708[3]);describe(_0xa708[4],function(){it(_0xa708[5],function(_0x5bd8x4){request(app)[_0xa708[13]](_0xa708[12])[_0xa708[11]](200)[_0xa708[11]](_0xa708[10],/json/)[_0xa708[9]](function(_0x5bd8x5,_0x5bd8x6){if(_0x5bd8x5){return _0x5bd8x4(_0x5bd8x5)};_0x5bd8x6[_0xa708[8]][_0xa708[1]][_0xa708[7]][_0xa708[6]](Array);_0x5bd8x4();})})});
\ No newline at end of file
+var _0xad16=["\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"];_0xad16[0];var should=require(_0xad16[1]);var app=require(_0xad16[2]);var request=require(_0xad16[3]);describe(_0xad16[4],function(){it(_0xad16[5],function(_0xa23cx4){request(app)[_0xad16[13]](_0xad16[12])[_0xad16[11]](200)[_0xad16[11]](_0xad16[10],/json/)[_0xad16[9]](function(_0xa23cx5,_0xa23cx6){if(_0xa23cx5){return _0xa23cx4(_0xa23cx5)};_0xa23cx6[_0xad16[8]][_0xad16[1]][_0xad16[7]][_0xad16[6]](Array);_0xa23cx4();})})});
\ No newline at end of file
-var _0xa150=["\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"];_0xa150[0];var express=require(_0xa150[1]);var controller=require(_0xa150[2]);var auth=require(_0xa150[3]);var router=express.Router();router[_0xa150[7]](_0xa150[4],auth[_0xa150[5]](),controller[_0xa150[6]]);router[_0xa150[7]](_0xa150[8],auth[_0xa150[5]](),controller[_0xa150[9]]);router[_0xa150[11]](_0xa150[4],auth[_0xa150[5]](),controller[_0xa150[10]]);router[_0xa150[13]](_0xa150[8],auth[_0xa150[5]](),controller[_0xa150[12]]);router[_0xa150[11]](_0xa150[14],auth[_0xa150[5]](),controller[_0xa150[15]]);router[_0xa150[16]](_0xa150[8],auth[_0xa150[5]](),controller[_0xa150[12]]);router[_0xa150[18]](_0xa150[8],auth[_0xa150[5]](),controller[_0xa150[17]]);module[_0xa150[19]]=router;
\ No newline at end of file
+var _0x9608=["\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"];_0x9608[0];var express=require(_0x9608[1]);var controller=require(_0x9608[2]);var auth=require(_0x9608[3]);var router=express.Router();router[_0x9608[7]](_0x9608[4],auth[_0x9608[5]](),controller[_0x9608[6]]);router[_0x9608[7]](_0x9608[8],auth[_0x9608[5]](),controller[_0x9608[9]]);router[_0x9608[11]](_0x9608[4],auth[_0x9608[5]](),controller[_0x9608[10]]);router[_0x9608[13]](_0x9608[8],auth[_0x9608[5]](),controller[_0x9608[12]]);router[_0x9608[11]](_0x9608[14],auth[_0x9608[5]](),controller[_0x9608[15]]);router[_0x9608[16]](_0x9608[8],auth[_0x9608[5]](),controller[_0x9608[12]]);router[_0x9608[18]](_0x9608[8],auth[_0x9608[5]](),controller[_0x9608[17]]);module[_0x9608[19]]=router;
\ No newline at end of file
-var _0xf443=["\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"];_0xf443[0];var _=require(_0xf443[1]);var ZendeskConfiguration=require(_0xf443[3])[_0xf443[2]];var ZendeskField=require(_0xf443[3])[_0xf443[4]];exports[_0xf443[5]]=function(_0x5855x4,_0x5855x5){ZendeskConfiguration[_0xf443[11]]({where:_0x5855x4[_0xf443[10]]})[_0xf443[9]](function(_0x5855x7){return _0x5855x5[_0xf443[8]](200)[_0xf443[7]](_0x5855x7)})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)})};exports[_0xf443[12]]=function(_0x5855x4,_0x5855x5){ZendeskConfiguration[_0xf443[19]]({where:{id:_0x5855x4[_0xf443[15]][_0xf443[14]]},include:[{model:ZendeskField,as:_0xf443[16]},{model:ZendeskField,as:_0xf443[17]},{model:ZendeskField,as:_0xf443[18]}]})[_0xf443[9]](function(_0x5855x8){if(!_0x5855x8){return _0x5855x5[_0xf443[13]](404)};return _0x5855x5[_0xf443[7]](_0x5855x8);})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)})};exports[_0xf443[20]]=function(_0x5855x4,_0x5855x5){ZendeskConfiguration[_0xf443[20]](_0x5855x4[_0xf443[21]])[_0xf443[9]](function(_0x5855x8){return _0x5855x5[_0xf443[8]](201)[_0xf443[7]](_0x5855x8)})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)})};exports[_0xf443[22]]=function(_0x5855x4,_0x5855x5){if(_0x5855x4[_0xf443[21]][_0xf443[14]]){delete _0x5855x4[_0xf443[21]][_0xf443[14]]};ZendeskConfiguration[_0xf443[25]](_0x5855x4[_0xf443[15]][_0xf443[14]])[_0xf443[9]](function(_0x5855x8){if(!_0x5855x8){return _0x5855x5[_0xf443[13]](404)};var _0x5855x9=_[_0xf443[23]](_0x5855x8,_0x5855x4[_0xf443[21]]);_0x5855x9[_0xf443[24]]()[_0xf443[9]](function(){return _0x5855x5[_0xf443[8]](200)[_0xf443[7]](_0x5855x8)})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)});})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)});};exports[_0xf443[26]]=function(_0x5855x4,_0x5855x5){ZendeskConfiguration[_0xf443[25]](_0x5855x4[_0xf443[15]][_0xf443[14]])[_0xf443[9]](function(_0x5855x8){if(!_0x5855x8){return _0x5855x5[_0xf443[13]](404)};_0x5855x8[_0xf443[26]]()[_0xf443[9]](function(){return _0x5855x5[_0xf443[13]](204)})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)});})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)})};exports[_0xf443[27]]=function(_0x5855x4,_0x5855x5,_0x5855xa){ZendeskConfiguration[_0xf443[25]](_0x5855x4[_0xf443[15]][_0xf443[14]])[_0xf443[9]](function(_0x5855xb){if(!_0x5855xb){return _0x5855x5[_0xf443[13]](500)};ZendeskField[_0xf443[20]](_0x5855x4[_0xf443[21]])[_0xf443[9]](function(_0x5855xc){switch(_0x5855x4[_0xf443[15]][_0xf443[34]]){case _0xf443[29]:_0x5855xb[_0xf443[28]](_0x5855xc)[_0xf443[9]](function(){return _0x5855x5[_0xf443[8]](200)[_0xf443[7]](_0x5855xc)})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)});break ;;case _0xf443[31]:_0x5855xb[_0xf443[30]](_0x5855xc)[_0xf443[9]](function(){return _0x5855x5[_0xf443[8]](200)[_0xf443[7]](_0x5855xc)})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)});break ;;case _0xf443[33]:_0x5855xb[_0xf443[32]](_0x5855xc)[_0xf443[9]](function(){return _0x5855x5[_0xf443[8]](200)[_0xf443[7]](_0x5855xc)})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)});break ;;}})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)});})[_0xf443[6]](function(_0x5855x6){return handleError(_0x5855x5,_0x5855x6)})};function handleError(_0x5855x5,_0x5855x6){return _0x5855x5[_0xf443[8]](500)[_0xf443[7]](_0x5855x6)}
\ No newline at end of file
+var _0x2e8b=["\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"];_0x2e8b[0];var _=require(_0x2e8b[1]);var ZendeskConfiguration=require(_0x2e8b[3])[_0x2e8b[2]];var ZendeskField=require(_0x2e8b[3])[_0x2e8b[4]];exports[_0x2e8b[5]]=function(_0xceadx4,_0xceadx5){ZendeskConfiguration[_0x2e8b[11]]({where:_0xceadx4[_0x2e8b[10]]})[_0x2e8b[9]](function(_0xceadx7){return _0xceadx5[_0x2e8b[8]](200)[_0x2e8b[7]](_0xceadx7)})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)})};exports[_0x2e8b[12]]=function(_0xceadx4,_0xceadx5){ZendeskConfiguration[_0x2e8b[19]]({where:{id:_0xceadx4[_0x2e8b[15]][_0x2e8b[14]]},include:[{model:ZendeskField,as:_0x2e8b[16]},{model:ZendeskField,as:_0x2e8b[17]},{model:ZendeskField,as:_0x2e8b[18]}]})[_0x2e8b[9]](function(_0xceadx8){if(!_0xceadx8){return _0xceadx5[_0x2e8b[13]](404)};return _0xceadx5[_0x2e8b[7]](_0xceadx8);})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)})};exports[_0x2e8b[20]]=function(_0xceadx4,_0xceadx5){ZendeskConfiguration[_0x2e8b[20]](_0xceadx4[_0x2e8b[21]])[_0x2e8b[9]](function(_0xceadx8){return _0xceadx5[_0x2e8b[8]](201)[_0x2e8b[7]](_0xceadx8)})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)})};exports[_0x2e8b[22]]=function(_0xceadx4,_0xceadx5){if(_0xceadx4[_0x2e8b[21]][_0x2e8b[14]]){delete _0xceadx4[_0x2e8b[21]][_0x2e8b[14]]};ZendeskConfiguration[_0x2e8b[25]](_0xceadx4[_0x2e8b[15]][_0x2e8b[14]])[_0x2e8b[9]](function(_0xceadx8){if(!_0xceadx8){return _0xceadx5[_0x2e8b[13]](404)};var _0xceadx9=_[_0x2e8b[23]](_0xceadx8,_0xceadx4[_0x2e8b[21]]);_0xceadx9[_0x2e8b[24]]()[_0x2e8b[9]](function(){return _0xceadx5[_0x2e8b[8]](200)[_0x2e8b[7]](_0xceadx8)})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)});})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)});};exports[_0x2e8b[26]]=function(_0xceadx4,_0xceadx5){ZendeskConfiguration[_0x2e8b[25]](_0xceadx4[_0x2e8b[15]][_0x2e8b[14]])[_0x2e8b[9]](function(_0xceadx8){if(!_0xceadx8){return _0xceadx5[_0x2e8b[13]](404)};_0xceadx8[_0x2e8b[26]]()[_0x2e8b[9]](function(){return _0xceadx5[_0x2e8b[13]](204)})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)});})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)})};exports[_0x2e8b[27]]=function(_0xceadx4,_0xceadx5,_0xceadxa){ZendeskConfiguration[_0x2e8b[25]](_0xceadx4[_0x2e8b[15]][_0x2e8b[14]])[_0x2e8b[9]](function(_0xceadxb){if(!_0xceadxb){return _0xceadx5[_0x2e8b[13]](500)};ZendeskField[_0x2e8b[20]](_0xceadx4[_0x2e8b[21]])[_0x2e8b[9]](function(_0xceadxc){switch(_0xceadx4[_0x2e8b[15]][_0x2e8b[34]]){case _0x2e8b[29]:_0xceadxb[_0x2e8b[28]](_0xceadxc)[_0x2e8b[9]](function(){return _0xceadx5[_0x2e8b[8]](200)[_0x2e8b[7]](_0xceadxc)})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)});break ;;case _0x2e8b[31]:_0xceadxb[_0x2e8b[30]](_0xceadxc)[_0x2e8b[9]](function(){return _0xceadx5[_0x2e8b[8]](200)[_0x2e8b[7]](_0xceadxc)})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)});break ;;case _0x2e8b[33]:_0xceadxb[_0x2e8b[32]](_0xceadxc)[_0x2e8b[9]](function(){return _0xceadx5[_0x2e8b[8]](200)[_0x2e8b[7]](_0xceadxc)})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)});break ;;}})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)});})[_0x2e8b[6]](function(_0xceadx6){return handleError(_0xceadx5,_0xceadx6)})};function handleError(_0xceadx5,_0xceadx6){return _0xceadx5[_0x2e8b[8]](500)[_0x2e8b[7]](_0xceadx6)}
\ No newline at end of file
-var _0x15df=["\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"];_0x15df[0];var ZendeskConfiguration=require(_0x15df[2])[_0x15df[1]];exports[_0x15df[3]]=function(_0x296bx2){ZendeskConfiguration[_0x15df[4]](function(_0x296bx3){onSave(_0x296bx2,_0x296bx3)});ZendeskConfiguration[_0x15df[5]](function(_0x296bx3){onRemove(_0x296bx2,_0x296bx3)});};function onSave(_0x296bx2,_0x296bx3,_0x296bx5){_0x296bx2[_0x15df[7]](_0x15df[6],_0x296bx3)}function onRemove(_0x296bx2,_0x296bx3,_0x296bx5){_0x296bx2[_0x15df[7]](_0x15df[8],_0x296bx3)}
\ No newline at end of file
+var _0x1c61=["\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"];_0x1c61[0];var ZendeskConfiguration=require(_0x1c61[2])[_0x1c61[1]];exports[_0x1c61[3]]=function(_0xdf88x2){ZendeskConfiguration[_0x1c61[4]](function(_0xdf88x3){onSave(_0xdf88x2,_0xdf88x3)});ZendeskConfiguration[_0x1c61[5]](function(_0xdf88x3){onRemove(_0xdf88x2,_0xdf88x3)});};function onSave(_0xdf88x2,_0xdf88x3,_0xdf88x5){_0xdf88x2[_0x1c61[7]](_0x1c61[6],_0xdf88x3)}function onRemove(_0xdf88x2,_0xdf88x3,_0xdf88x5){_0xdf88x2[_0x1c61[7]](_0x1c61[8],_0xdf88x3)}
\ No newline at end of file
-var _0x6875=["\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"];_0x6875[0];var should=require(_0x6875[1]);var app=require(_0x6875[2]);var request=require(_0x6875[3]);describe(_0x6875[4],function(){it(_0x6875[5],function(_0xe744x4){request(app)[_0x6875[13]](_0x6875[12])[_0x6875[11]](200)[_0x6875[11]](_0x6875[10],/json/)[_0x6875[9]](function(_0xe744x5,_0xe744x6){if(_0xe744x5){return _0xe744x4(_0xe744x5)};_0xe744x6[_0x6875[8]][_0x6875[1]][_0x6875[7]][_0x6875[6]](Array);_0xe744x4();})})});
\ No newline at end of file
+var _0x469b=["\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"];_0x469b[0];var should=require(_0x469b[1]);var app=require(_0x469b[2]);var request=require(_0x469b[3]);describe(_0x469b[4],function(){it(_0x469b[5],function(_0x6368x4){request(app)[_0x469b[13]](_0x469b[12])[_0x469b[11]](200)[_0x469b[11]](_0x469b[10],/json/)[_0x469b[9]](function(_0x6368x5,_0x6368x6){if(_0x6368x5){return _0x6368x4(_0x6368x5)};_0x6368x6[_0x469b[8]][_0x469b[1]][_0x469b[7]][_0x469b[6]](Array);_0x6368x4();})})});
\ No newline at end of file
-var _0x2865=["\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"];_0x2865[0];var express=require(_0x2865[1]);var controller=require(_0x2865[2]);var router=express.Router();router[_0x2865[5]](_0x2865[3],controller[_0x2865[4]]);router[_0x2865[5]](_0x2865[6],controller[_0x2865[7]]);router[_0x2865[9]](_0x2865[3],controller[_0x2865[8]]);router[_0x2865[11]](_0x2865[6],controller[_0x2865[10]]);router[_0x2865[12]](_0x2865[6],controller[_0x2865[10]]);router[_0x2865[14]](_0x2865[6],controller[_0x2865[13]]);module[_0x2865[15]]=router;
\ No newline at end of file
+var _0xaaa3=["\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"];_0xaaa3[0];var express=require(_0xaaa3[1]);var controller=require(_0xaaa3[2]);var router=express.Router();router[_0xaaa3[5]](_0xaaa3[3],controller[_0xaaa3[4]]);router[_0xaaa3[5]](_0xaaa3[6],controller[_0xaaa3[7]]);router[_0xaaa3[9]](_0xaaa3[3],controller[_0xaaa3[8]]);router[_0xaaa3[11]](_0xaaa3[6],controller[_0xaaa3[10]]);router[_0xaaa3[12]](_0xaaa3[6],controller[_0xaaa3[10]]);router[_0xaaa3[14]](_0xaaa3[6],controller[_0xaaa3[13]]);module[_0xaaa3[15]]=router;
\ No newline at end of file
-var _0x68f7=["\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"];_0x68f7[0];var _=require(_0x68f7[1]);var ZendeskField=require(_0x68f7[3])[_0x68f7[2]];exports[_0x68f7[4]]=function(_0x1b01x3,_0x1b01x4){ZendeskField[_0x68f7[9]]()[_0x68f7[8]](function(_0x1b01x6){return _0x1b01x4[_0x68f7[7]](200)[_0x68f7[6]](_0x1b01x6)})[_0x68f7[5]](function(_0x1b01x5){return handleError(_0x1b01x4,_0x1b01x5)})};exports[_0x68f7[10]]=function(_0x1b01x3,_0x1b01x4){ZendeskField[_0x68f7[14]](_0x1b01x3[_0x68f7[13]][_0x68f7[12]])[_0x68f7[8]](function(_0x1b01x7){if(!_0x1b01x7){return _0x1b01x4[_0x68f7[11]](404)};return _0x1b01x4[_0x68f7[6]](_0x1b01x7);})[_0x68f7[5]](function(_0x1b01x5){return handleError(_0x1b01x4,_0x1b01x5)})};exports[_0x68f7[15]]=function(_0x1b01x3,_0x1b01x4){ZendeskField[_0x68f7[15]](_0x1b01x3[_0x68f7[16]])[_0x68f7[8]](function(_0x1b01x7){return _0x1b01x4[_0x68f7[7]](201)[_0x68f7[6]](_0x1b01x7)})[_0x68f7[5]](function(_0x1b01x5){return handleError(_0x1b01x4,_0x1b01x5)})};exports[_0x68f7[17]]=function(_0x1b01x3,_0x1b01x4){if(_0x1b01x3[_0x68f7[16]][_0x68f7[12]]){delete _0x1b01x3[_0x68f7[16]][_0x68f7[12]]};ZendeskField[_0x68f7[14]](_0x1b01x3[_0x68f7[13]][_0x68f7[12]])[_0x68f7[8]](function(_0x1b01x7){if(!_0x1b01x7){return _0x1b01x4[_0x68f7[11]](404)};var _0x1b01x8=_[_0x68f7[18]](_0x1b01x7,_0x1b01x3[_0x68f7[16]]);_0x1b01x8[_0x68f7[19]]()[_0x68f7[8]](function(){return _0x1b01x4[_0x68f7[7]](200)[_0x68f7[6]](_0x1b01x7)})[_0x68f7[5]](function(_0x1b01x5){return handleError(_0x1b01x4,_0x1b01x5)});})[_0x68f7[5]](function(_0x1b01x5){return handleError(_0x1b01x4,_0x1b01x5)});};exports[_0x68f7[20]]=function(_0x1b01x3,_0x1b01x4){ZendeskField[_0x68f7[14]](_0x1b01x3[_0x68f7[13]][_0x68f7[12]])[_0x68f7[8]](function(_0x1b01x7){if(!_0x1b01x7){return _0x1b01x4[_0x68f7[11]](404)};_0x1b01x7[_0x68f7[20]]()[_0x68f7[8]](function(){return _0x1b01x4[_0x68f7[11]](204)})[_0x68f7[5]](function(_0x1b01x5){return handleError(_0x1b01x4,_0x1b01x5)});})[_0x68f7[5]](function(_0x1b01x5){return handleError(_0x1b01x4,_0x1b01x5)})};function handleError(_0x1b01x4,_0x1b01x5){return _0x1b01x4[_0x68f7[7]](500)[_0x68f7[6]](_0x1b01x5)}
\ No newline at end of file
+var _0x4ff1=["\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"];_0x4ff1[0];var _=require(_0x4ff1[1]);var ZendeskField=require(_0x4ff1[3])[_0x4ff1[2]];exports[_0x4ff1[4]]=function(_0x9a02x3,_0x9a02x4){ZendeskField[_0x4ff1[9]]()[_0x4ff1[8]](function(_0x9a02x6){return _0x9a02x4[_0x4ff1[7]](200)[_0x4ff1[6]](_0x9a02x6)})[_0x4ff1[5]](function(_0x9a02x5){return handleError(_0x9a02x4,_0x9a02x5)})};exports[_0x4ff1[10]]=function(_0x9a02x3,_0x9a02x4){ZendeskField[_0x4ff1[14]](_0x9a02x3[_0x4ff1[13]][_0x4ff1[12]])[_0x4ff1[8]](function(_0x9a02x7){if(!_0x9a02x7){return _0x9a02x4[_0x4ff1[11]](404)};return _0x9a02x4[_0x4ff1[6]](_0x9a02x7);})[_0x4ff1[5]](function(_0x9a02x5){return handleError(_0x9a02x4,_0x9a02x5)})};exports[_0x4ff1[15]]=function(_0x9a02x3,_0x9a02x4){ZendeskField[_0x4ff1[15]](_0x9a02x3[_0x4ff1[16]])[_0x4ff1[8]](function(_0x9a02x7){return _0x9a02x4[_0x4ff1[7]](201)[_0x4ff1[6]](_0x9a02x7)})[_0x4ff1[5]](function(_0x9a02x5){return handleError(_0x9a02x4,_0x9a02x5)})};exports[_0x4ff1[17]]=function(_0x9a02x3,_0x9a02x4){if(_0x9a02x3[_0x4ff1[16]][_0x4ff1[12]]){delete _0x9a02x3[_0x4ff1[16]][_0x4ff1[12]]};ZendeskField[_0x4ff1[14]](_0x9a02x3[_0x4ff1[13]][_0x4ff1[12]])[_0x4ff1[8]](function(_0x9a02x7){if(!_0x9a02x7){return _0x9a02x4[_0x4ff1[11]](404)};var _0x9a02x8=_[_0x4ff1[18]](_0x9a02x7,_0x9a02x3[_0x4ff1[16]]);_0x9a02x8[_0x4ff1[19]]()[_0x4ff1[8]](function(){return _0x9a02x4[_0x4ff1[7]](200)[_0x4ff1[6]](_0x9a02x7)})[_0x4ff1[5]](function(_0x9a02x5){return handleError(_0x9a02x4,_0x9a02x5)});})[_0x4ff1[5]](function(_0x9a02x5){return handleError(_0x9a02x4,_0x9a02x5)});};exports[_0x4ff1[20]]=function(_0x9a02x3,_0x9a02x4){ZendeskField[_0x4ff1[14]](_0x9a02x3[_0x4ff1[13]][_0x4ff1[12]])[_0x4ff1[8]](function(_0x9a02x7){if(!_0x9a02x7){return _0x9a02x4[_0x4ff1[11]](404)};_0x9a02x7[_0x4ff1[20]]()[_0x4ff1[8]](function(){return _0x9a02x4[_0x4ff1[11]](204)})[_0x4ff1[5]](function(_0x9a02x5){return handleError(_0x9a02x4,_0x9a02x5)});})[_0x4ff1[5]](function(_0x9a02x5){return handleError(_0x9a02x4,_0x9a02x5)})};function handleError(_0x9a02x4,_0x9a02x5){return _0x9a02x4[_0x4ff1[7]](500)[_0x4ff1[6]](_0x9a02x5)}
\ No newline at end of file
-var _0x5e2f=["\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"];_0x5e2f[0];var ZendeskField=require(_0x5e2f[2])[_0x5e2f[1]];exports[_0x5e2f[3]]=function(_0xa576x2){ZendeskField[_0x5e2f[4]](function(_0xa576x3){onSave(_0xa576x2,_0xa576x3)});ZendeskField[_0x5e2f[5]](function(_0xa576x3){onRemove(_0xa576x2,_0xa576x3)});};function onSave(_0xa576x2,_0xa576x3,_0xa576x5){_0xa576x2[_0x5e2f[7]](_0x5e2f[6],_0xa576x3)}function onRemove(_0xa576x2,_0xa576x3,_0xa576x5){_0xa576x2[_0x5e2f[7]](_0x5e2f[8],_0xa576x3)}
\ No newline at end of file
+var _0x3f4a=["\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"];_0x3f4a[0];var ZendeskField=require(_0x3f4a[2])[_0x3f4a[1]];exports[_0x3f4a[3]]=function(_0x8e00x2){ZendeskField[_0x3f4a[4]](function(_0x8e00x3){onSave(_0x8e00x2,_0x8e00x3)});ZendeskField[_0x3f4a[5]](function(_0x8e00x3){onRemove(_0x8e00x2,_0x8e00x3)});};function onSave(_0x8e00x2,_0x8e00x3,_0x8e00x5){_0x8e00x2[_0x3f4a[7]](_0x3f4a[6],_0x8e00x3)}function onRemove(_0x8e00x2,_0x8e00x3,_0x8e00x5){_0x8e00x2[_0x3f4a[7]](_0x3f4a[8],_0x8e00x3)}
\ No newline at end of file
-var _0xfab4=["\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"];_0xfab4[0];var should=require(_0xfab4[1]);var app=require(_0xfab4[2]);var request=require(_0xfab4[3]);describe(_0xfab4[4],function(){it(_0xfab4[5],function(_0xaa52x4){request(app)[_0xfab4[13]](_0xfab4[12])[_0xfab4[11]](200)[_0xfab4[11]](_0xfab4[10],/json/)[_0xfab4[9]](function(_0xaa52x5,_0xaa52x6){if(_0xaa52x5){return _0xaa52x4(_0xaa52x5)};_0xaa52x6[_0xfab4[8]][_0xfab4[1]][_0xfab4[7]][_0xfab4[6]](Array);_0xaa52x4();})})});
\ No newline at end of file
+var _0x994c=["\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"];_0x994c[0];var should=require(_0x994c[1]);var app=require(_0x994c[2]);var request=require(_0x994c[3]);describe(_0x994c[4],function(){it(_0x994c[5],function(_0xf297x4){request(app)[_0x994c[13]](_0x994c[12])[_0x994c[11]](200)[_0x994c[11]](_0x994c[10],/json/)[_0x994c[9]](function(_0xf297x5,_0xf297x6){if(_0xf297x5){return _0xf297x4(_0xf297x5)};_0xf297x6[_0x994c[8]][_0x994c[1]][_0x994c[7]][_0x994c[6]](Array);_0xf297x4();})})});
\ No newline at end of file
-var _0x2489=["\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"];_0x2489[0];process[_0x2489[2]][_0x2489[1]]=process[_0x2489[2]][_0x2489[1]]||_0x2489[3];process[_0x2489[2]][_0x2489[4]]=0;process[_0x2489[14]](_0x2489[5],function(_0xc8e8x1){if( typeof _0xc8e8x1===_0x2489[6]){if(_0xc8e8x1[_0x2489[7]]){console[_0x2489[9]](_0x2489[8]+_0xc8e8x1[_0x2489[7]])};if(_0xc8e8x1[_0x2489[10]]){console[_0x2489[9]](_0x2489[11]);console[_0x2489[9]](_0x2489[12]);console[_0x2489[9]](_0xc8e8x1[_0x2489[10]]);};}else {console[_0x2489[9]](_0x2489[13])}});var os=require(_0x2489[15]);var http=require(_0x2489[16]);var util=require(_0x2489[17]);var crypto=require(_0x2489[18]);var cronjob=require(_0x2489[20])[_0x2489[19]];var shelljs=require(_0x2489[21]);var express=require(_0x2489[22]);var models=require(_0x2489[23]);var config=require(_0x2489[24]);var Settings=models[_0x2489[25]];var app=express();var server=require(_0x2489[16])[_0x2489[26]](app);var io=require(_0x2489[29])(server,{serveClient:(config[_0x2489[2]]===_0x2489[27])?false:true,path:_0x2489[28]});var ami=require(_0x2489[35])(config[_0x2489[31]][_0x2489[30]],config[_0x2489[31]][_0x2489[32]],config[_0x2489[31]][_0x2489[33]],config[_0x2489[31]][_0x2489[34]],true);ami[_0x2489[36]]();var kue=require(_0x2489[37]);kue[_0x2489[39]][_0x2489[38]](3001);var _setting;var _license;require(_0x2489[40])(app);require(_0x2489[41])(app);models[_0x2489[68]][_0x2489[46]]()[_0x2489[45]](function(){require(_0x2489[41])(app);if(config[_0x2489[48]]){require(_0x2489[49])};require(_0x2489[50])(io);require(_0x2489[51])(kue);require(_0x2489[52])(kue);require(_0x2489[53])(io,kue);require(_0x2489[54])();require(_0x2489[55])();require(_0x2489[56])();require(_0x2489[58])[_0x2489[57]]();require(_0x2489[59])[_0x2489[57]]();require(_0x2489[60])(ami);require(_0x2489[61])();require(_0x2489[62])(ami);require(_0x2489[63])(io,ami);require(_0x2489[64])();server[_0x2489[38]](config[_0x2489[30]],config[_0x2489[65]],function(){console[_0x2489[9]](_0x2489[66],config[_0x2489[30]],app[_0x2489[67]](_0x2489[2]))});})[_0x2489[45]](function(){return models[_0x2489[47]][_0x2489[46]]()})[_0x2489[45]](function(){require(_0x2489[44])(cronjob)})[_0x2489[43]](function(_0xc8e8x1){console[_0x2489[42]](_0xc8e8x1)});exports=module[_0x2489[69]]=app;
\ No newline at end of file
+var _0x525f=["\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"];_0x525f[0];process[_0x525f[2]][_0x525f[1]]=process[_0x525f[2]][_0x525f[1]]||_0x525f[3];process[_0x525f[2]][_0x525f[4]]=0;process[_0x525f[14]](_0x525f[5],function(_0x9d57x1){if( typeof _0x9d57x1===_0x525f[6]){if(_0x9d57x1[_0x525f[7]]){console[_0x525f[9]](_0x525f[8]+_0x9d57x1[_0x525f[7]])};if(_0x9d57x1[_0x525f[10]]){console[_0x525f[9]](_0x525f[11]);console[_0x525f[9]](_0x525f[12]);console[_0x525f[9]](_0x9d57x1[_0x525f[10]]);};}else {console[_0x525f[9]](_0x525f[13])}});var os=require(_0x525f[15]);var http=require(_0x525f[16]);var util=require(_0x525f[17]);var crypto=require(_0x525f[18]);var cronjob=require(_0x525f[20])[_0x525f[19]];var shelljs=require(_0x525f[21]);var express=require(_0x525f[22]);var models=require(_0x525f[23]);var config=require(_0x525f[24]);var Settings=models[_0x525f[25]];var app=express();var server=require(_0x525f[16])[_0x525f[26]](app);var io=require(_0x525f[29])(server,{serveClient:(config[_0x525f[2]]===_0x525f[27])?false:true,path:_0x525f[28]});var ami=require(_0x525f[35])(config[_0x525f[31]][_0x525f[30]],config[_0x525f[31]][_0x525f[32]],config[_0x525f[31]][_0x525f[33]],config[_0x525f[31]][_0x525f[34]],true);ami[_0x525f[36]]();var kue=require(_0x525f[37]);kue[_0x525f[39]][_0x525f[38]](3001);var _setting;var _license;require(_0x525f[40])(app);require(_0x525f[41])(app);models[_0x525f[68]][_0x525f[46]]()[_0x525f[45]](function(){require(_0x525f[41])(app);if(config[_0x525f[48]]){require(_0x525f[49])};require(_0x525f[50])(io);require(_0x525f[51])(kue);require(_0x525f[52])(kue);require(_0x525f[53])(io,kue);require(_0x525f[54])();require(_0x525f[55])();require(_0x525f[56])();require(_0x525f[58])[_0x525f[57]]();require(_0x525f[59])[_0x525f[57]]();require(_0x525f[60])(ami);require(_0x525f[61])();require(_0x525f[62])(ami);require(_0x525f[63])(io,ami);require(_0x525f[64])();server[_0x525f[38]](config[_0x525f[30]],config[_0x525f[65]],function(){console[_0x525f[9]](_0x525f[66],config[_0x525f[30]],app[_0x525f[67]](_0x525f[2]))});})[_0x525f[45]](function(){return models[_0x525f[47]][_0x525f[46]]()})[_0x525f[45]](function(){require(_0x525f[44])(cronjob)})[_0x525f[43]](function(_0x9d57x1){console[_0x525f[42]](_0x9d57x1)});exports=module[_0x525f[69]]=app;
\ No newline at end of file
-var _0x43c8=["\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"];_0x43c8[0];var passport=require(_0x43c8[1]);var config=require(_0x43c8[2]);var jwt=require(_0x43c8[3]);var expressJwt=require(_0x43c8[4]);var compose=require(_0x43c8[5]);var User=require(_0x43c8[7])[_0x43c8[6]];var validateJwt=expressJwt({secret:config[_0x43c8[9]][_0x43c8[8]]});function isAuthenticated(){return compose()[_0x43c8[16]](function(_0x9684x9,_0x9684xa,_0x9684xb){if(_0x9684x9[_0x43c8[17]]&&_0x9684x9[_0x43c8[17]][_0x43c8[19]](_0x43c8[18])){_0x9684x9[_0x43c8[21]][_0x43c8[20]]=_0x43c8[22]+_0x9684x9[_0x43c8[17]][_0x43c8[18]]};validateJwt(_0x9684x9,_0x9684xa,_0x9684xb);})[_0x43c8[16]](function(_0x9684x9,_0x9684xa,_0x9684xb){User[_0x43c8[15]](_0x9684x9[_0x43c8[12]][_0x43c8[14]])[_0x43c8[13]](function(_0x9684xd){if(!_0x9684xd){return _0x9684xa[_0x43c8[11]](401)};_0x9684x9[_0x43c8[12]]=_0x9684xd;return _0x9684xb();})[_0x43c8[10]](function(_0x9684xc){return _0x9684xb(_0x9684xc)})})}function hasRole(_0x9684xf){if(!_0x9684xf){throw new Error(_0x43c8[23])};return compose()[_0x43c8[16]](isAuthenticated())[_0x43c8[16]](function _0x9684x10(_0x9684x9,_0x9684xa,_0x9684xb){if(config[_0x43c8[26]][_0x43c8[25]](_0x9684x9[_0x43c8[12]][_0x43c8[24]])>=config[_0x43c8[26]][_0x43c8[25]](_0x9684xf)){return _0x9684xb()}else {return _0x9684xa[_0x43c8[11]](403)}});}function signToken(_0x9684x12,_0x9684x13,_0x9684x14){var _0x9684x15=60*24*365*5;if(!_0x9684x14){_0x9684x15=_0x43c8[27]};return jwt[_0x43c8[28]]({id:_0x9684x12},config[_0x43c8[9]][_0x43c8[8]],{expiresIn:_0x9684x15});}function setTokenCookie(_0x9684x9,_0x9684xa){if(!_0x9684x9[_0x43c8[12]]){return _0x9684xa[_0x43c8[30]](404,{message:_0x43c8[29]})};var _0x9684x17=signToken(_0x9684x9[_0x43c8[12]][_0x43c8[14]],_0x9684x9[_0x43c8[12]][_0x43c8[24]]);_0x9684xa[_0x43c8[33]](_0x43c8[31],JSON[_0x43c8[32]](_0x9684x17));_0x9684xa[_0x43c8[35]](_0x43c8[34]);}exports[_0x43c8[36]]=isAuthenticated;exports[_0x43c8[37]]=hasRole;exports[_0x43c8[38]]=signToken;exports[_0x43c8[39]]=setTokenCookie;
\ No newline at end of file
+var _0xba30=["\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"];_0xba30[0];var passport=require(_0xba30[1]);var config=require(_0xba30[2]);var jwt=require(_0xba30[3]);var expressJwt=require(_0xba30[4]);var compose=require(_0xba30[5]);var User=require(_0xba30[7])[_0xba30[6]];var validateJwt=expressJwt({secret:config[_0xba30[9]][_0xba30[8]]});function isAuthenticated(){return compose()[_0xba30[16]](function(_0x4070x9,_0x4070xa,_0x4070xb){if(_0x4070x9[_0xba30[17]]&&_0x4070x9[_0xba30[17]][_0xba30[19]](_0xba30[18])){_0x4070x9[_0xba30[21]][_0xba30[20]]=_0xba30[22]+_0x4070x9[_0xba30[17]][_0xba30[18]]};validateJwt(_0x4070x9,_0x4070xa,_0x4070xb);})[_0xba30[16]](function(_0x4070x9,_0x4070xa,_0x4070xb){User[_0xba30[15]](_0x4070x9[_0xba30[12]][_0xba30[14]])[_0xba30[13]](function(_0x4070xd){if(!_0x4070xd){return _0x4070xa[_0xba30[11]](401)};_0x4070x9[_0xba30[12]]=_0x4070xd;return _0x4070xb();})[_0xba30[10]](function(_0x4070xc){return _0x4070xb(_0x4070xc)})})}function hasRole(_0x4070xf){if(!_0x4070xf){throw new Error(_0xba30[23])};return compose()[_0xba30[16]](isAuthenticated())[_0xba30[16]](function _0x4070x10(_0x4070x9,_0x4070xa,_0x4070xb){if(config[_0xba30[26]][_0xba30[25]](_0x4070x9[_0xba30[12]][_0xba30[24]])>=config[_0xba30[26]][_0xba30[25]](_0x4070xf)){return _0x4070xb()}else {return _0x4070xa[_0xba30[11]](403)}});}function signToken(_0x4070x12,_0x4070x13,_0x4070x14){var _0x4070x15=60*24*365*5;if(!_0x4070x14){_0x4070x15=_0xba30[27]};return jwt[_0xba30[28]]({id:_0x4070x12},config[_0xba30[9]][_0xba30[8]],{expiresIn:_0x4070x15});}function setTokenCookie(_0x4070x9,_0x4070xa){if(!_0x4070x9[_0xba30[12]]){return _0x4070xa[_0xba30[30]](404,{message:_0xba30[29]})};var _0x4070x17=signToken(_0x4070x9[_0xba30[12]][_0xba30[14]],_0x4070x9[_0xba30[12]][_0xba30[24]]);_0x4070xa[_0xba30[33]](_0xba30[31],JSON[_0xba30[32]](_0x4070x17));_0x4070xa[_0xba30[35]](_0xba30[34]);}exports[_0xba30[36]]=isAuthenticated;exports[_0xba30[37]]=hasRole;exports[_0xba30[38]]=signToken;exports[_0xba30[39]]=setTokenCookie;
\ No newline at end of file
-var _0x28a1=["\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"];_0x28a1[0];var express=require(_0x28a1[1]);var passport=require(_0x28a1[2]);var auth=require(_0x28a1[3]);var router=express.Router();router[_0x28a1[9]](_0x28a1[10],passport[_0x28a1[7]](_0x28a1[5],{scope:[_0x28a1[11],_0x28a1[12]],failureRedirect:_0x28a1[6],session:false}))[_0x28a1[9]](_0x28a1[4],passport[_0x28a1[7]](_0x28a1[5],{failureRedirect:_0x28a1[6],session:false}),auth[_0x28a1[8]]);module[_0x28a1[13]]=router;
\ No newline at end of file
+var _0xbbf6=["\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"];_0xbbf6[0];var express=require(_0xbbf6[1]);var passport=require(_0xbbf6[2]);var auth=require(_0xbbf6[3]);var router=express.Router();router[_0xbbf6[9]](_0xbbf6[10],passport[_0xbbf6[7]](_0xbbf6[5],{scope:[_0xbbf6[11],_0xbbf6[12]],failureRedirect:_0xbbf6[6],session:false}))[_0xbbf6[9]](_0xbbf6[4],passport[_0xbbf6[7]](_0xbbf6[5],{failureRedirect:_0xbbf6[6],session:false}),auth[_0xbbf6[8]]);module[_0xbbf6[13]]=router;
\ No newline at end of file
-var _0xf012=["\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(_0xf012[0]);var FacebookStrategy=require(_0xf012[2])[_0xf012[1]];exports[_0xf012[3]]=function(_0xb49bx3,_0xb49bx4){passport[_0xf012[17]]( new FacebookStrategy({clientID:_0xb49bx4[_0xf012[5]][_0xf012[4]],clientSecret:_0xb49bx4[_0xf012[5]][_0xf012[6]],callbackURL:_0xb49bx4[_0xf012[5]][_0xf012[7]]},function(_0xb49bx5,_0xb49bx6,_0xb49bx7,_0xb49bx8){_0xb49bx3[_0xf012[16]]({"\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x69\x64":_0xb49bx7[_0xf012[8]]},function(_0xb49bx9,_0xb49bxa){if(_0xb49bx9){return _0xb49bx8(_0xb49bx9)};if(!_0xb49bxa){_0xb49bxa= new _0xb49bx3({name:_0xb49bx7[_0xf012[9]],email:_0xb49bx7[_0xf012[11]][0][_0xf012[10]],role:_0xf012[12],username:_0xb49bx7[_0xf012[13]],provider:_0xf012[5],facebook:_0xb49bx7[_0xf012[14]]});_0xb49bxa[_0xf012[15]](function(_0xb49bx9){if(_0xb49bx9){_0xb49bx8(_0xb49bx9)};return _0xb49bx8(_0xb49bx9,_0xb49bxa);});}else {return _0xb49bx8(_0xb49bx9,_0xb49bxa)};})}))};
\ No newline at end of file
+var _0xd622=["\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(_0xd622[0]);var FacebookStrategy=require(_0xd622[2])[_0xd622[1]];exports[_0xd622[3]]=function(_0xcc07x3,_0xcc07x4){passport[_0xd622[17]]( new FacebookStrategy({clientID:_0xcc07x4[_0xd622[5]][_0xd622[4]],clientSecret:_0xcc07x4[_0xd622[5]][_0xd622[6]],callbackURL:_0xcc07x4[_0xd622[5]][_0xd622[7]]},function(_0xcc07x5,_0xcc07x6,_0xcc07x7,_0xcc07x8){_0xcc07x3[_0xd622[16]]({"\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x69\x64":_0xcc07x7[_0xd622[8]]},function(_0xcc07x9,_0xcc07xa){if(_0xcc07x9){return _0xcc07x8(_0xcc07x9)};if(!_0xcc07xa){_0xcc07xa= new _0xcc07x3({name:_0xcc07x7[_0xd622[9]],email:_0xcc07x7[_0xd622[11]][0][_0xd622[10]],role:_0xd622[12],username:_0xcc07x7[_0xd622[13]],provider:_0xd622[5],facebook:_0xcc07x7[_0xd622[14]]});_0xcc07xa[_0xd622[15]](function(_0xcc07x9){if(_0xcc07x9){_0xcc07x8(_0xcc07x9)};return _0xcc07x8(_0xcc07x9,_0xcc07xa);});}else {return _0xcc07x8(_0xcc07x9,_0xcc07xa)};})}))};
\ No newline at end of file
-var _0x6e8d=["\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"];_0x6e8d[0];var express=require(_0x6e8d[1]);var passport=require(_0x6e8d[2]);var auth=require(_0x6e8d[3]);var router=express.Router();router[_0x6e8d[9]](_0x6e8d[10],passport[_0x6e8d[7]](_0x6e8d[5],{failureRedirect:_0x6e8d[6],scope:[_0x6e8d[11],_0x6e8d[12]],session:false}))[_0x6e8d[9]](_0x6e8d[4],passport[_0x6e8d[7]](_0x6e8d[5],{failureRedirect:_0x6e8d[6],session:false}),auth[_0x6e8d[8]]);module[_0x6e8d[13]]=router;
\ No newline at end of file
+var _0x1487=["\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"];_0x1487[0];var express=require(_0x1487[1]);var passport=require(_0x1487[2]);var auth=require(_0x1487[3]);var router=express.Router();router[_0x1487[9]](_0x1487[10],passport[_0x1487[7]](_0x1487[5],{failureRedirect:_0x1487[6],scope:[_0x1487[11],_0x1487[12]],session:false}))[_0x1487[9]](_0x1487[4],passport[_0x1487[7]](_0x1487[5],{failureRedirect:_0x1487[6],session:false}),auth[_0x1487[8]]);module[_0x1487[13]]=router;
\ No newline at end of file
-var _0x485b=["\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(_0x485b[0]);var GoogleStrategy=require(_0x485b[2])[_0x485b[1]];exports[_0x485b[3]]=function(_0xb709x3,_0xb709x4){passport[_0x485b[17]]( new GoogleStrategy({clientID:_0xb709x4[_0x485b[5]][_0x485b[4]],clientSecret:_0xb709x4[_0x485b[5]][_0x485b[6]],callbackURL:_0xb709x4[_0x485b[5]][_0x485b[7]]},function(_0xb709x5,_0xb709x6,_0xb709x7,_0xb709x8){_0xb709x3[_0x485b[16]]({"\x67\x6F\x6F\x67\x6C\x65\x2E\x69\x64":_0xb709x7[_0x485b[8]]},function(_0xb709x9,_0xb709xa){if(!_0xb709xa){_0xb709xa= new _0xb709x3({name:_0xb709x7[_0x485b[9]],email:_0xb709x7[_0x485b[11]][0][_0x485b[10]],role:_0x485b[12],username:_0xb709x7[_0x485b[13]],provider:_0x485b[5],google:_0xb709x7[_0x485b[14]]});_0xb709xa[_0x485b[15]](function(_0xb709x9){if(_0xb709x9){_0xb709x8(_0xb709x9)};return _0xb709x8(_0xb709x9,_0xb709xa);});}else {return _0xb709x8(_0xb709x9,_0xb709xa)}})}))};
\ No newline at end of file
+var _0xe573=["\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(_0xe573[0]);var GoogleStrategy=require(_0xe573[2])[_0xe573[1]];exports[_0xe573[3]]=function(_0xfc3bx3,_0xfc3bx4){passport[_0xe573[17]]( new GoogleStrategy({clientID:_0xfc3bx4[_0xe573[5]][_0xe573[4]],clientSecret:_0xfc3bx4[_0xe573[5]][_0xe573[6]],callbackURL:_0xfc3bx4[_0xe573[5]][_0xe573[7]]},function(_0xfc3bx5,_0xfc3bx6,_0xfc3bx7,_0xfc3bx8){_0xfc3bx3[_0xe573[16]]({"\x67\x6F\x6F\x67\x6C\x65\x2E\x69\x64":_0xfc3bx7[_0xe573[8]]},function(_0xfc3bx9,_0xfc3bxa){if(!_0xfc3bxa){_0xfc3bxa= new _0xfc3bx3({name:_0xfc3bx7[_0xe573[9]],email:_0xfc3bx7[_0xe573[11]][0][_0xe573[10]],role:_0xe573[12],username:_0xfc3bx7[_0xe573[13]],provider:_0xe573[5],google:_0xfc3bx7[_0xe573[14]]});_0xfc3bxa[_0xe573[15]](function(_0xfc3bx9){if(_0xfc3bx9){_0xfc3bx8(_0xfc3bx9)};return _0xfc3bx8(_0xfc3bx9,_0xfc3bxa);});}else {return _0xfc3bx8(_0xfc3bx9,_0xfc3bxa)}})}))};
\ No newline at end of file
-var _0x7c40=["\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"];_0x7c40[0];var express=require(_0x7c40[1]);var passport=require(_0x7c40[2]);var config=require(_0x7c40[3]);var User=require(_0x7c40[5])[_0x7c40[4]];require(_0x7c40[7])[_0x7c40[6]](User,config);require(_0x7c40[8])[_0x7c40[6]](User,config);require(_0x7c40[9])[_0x7c40[6]](User,config);require(_0x7c40[10])[_0x7c40[6]](User,config);var router=express.Router();router[_0x7c40[13]](_0x7c40[11],require(_0x7c40[12]));router[_0x7c40[13]](_0x7c40[14],require(_0x7c40[15]));router[_0x7c40[13]](_0x7c40[16],require(_0x7c40[17]));router[_0x7c40[13]](_0x7c40[18],require(_0x7c40[19]));module[_0x7c40[20]]=router;
\ No newline at end of file
+var _0x7f40=["\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"];_0x7f40[0];var express=require(_0x7f40[1]);var passport=require(_0x7f40[2]);var config=require(_0x7f40[3]);var User=require(_0x7f40[5])[_0x7f40[4]];require(_0x7f40[7])[_0x7f40[6]](User,config);require(_0x7f40[8])[_0x7f40[6]](User,config);require(_0x7f40[9])[_0x7f40[6]](User,config);require(_0x7f40[10])[_0x7f40[6]](User,config);var router=express.Router();router[_0x7f40[13]](_0x7f40[11],require(_0x7f40[12]));router[_0x7f40[13]](_0x7f40[14],require(_0x7f40[15]));router[_0x7f40[13]](_0x7f40[16],require(_0x7f40[17]));router[_0x7f40[13]](_0x7f40[18],require(_0x7f40[19]));module[_0x7f40[20]]=router;
\ No newline at end of file
-var _0xc55f=["\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"];_0xc55f[0];var express=require(_0xc55f[1]);var passport=require(_0xc55f[2]);var async=require(_0xc55f[3]);var auth=require(_0xc55f[4]);var User=require(_0xc55f[6])[_0xc55f[5]];var license=require(_0xc55f[7]);var router=express.Router();router[_0xc55f[27]](_0xc55f[8],function(_0xc8c0x8,_0xc8c0x9,_0xc8c0xa){passport[_0xc55f[26]](_0xc55f[9],function(_0xc8c0xb,_0xc8c0xc,_0xc8c0xd){var _0xc8c0xe=_0xc8c0xb||_0xc8c0xd;if(_0xc8c0xe){return _0xc8c0x9[_0xc55f[11]](401)[_0xc55f[10]](_0xc8c0xe)};if(!_0xc8c0xc){return _0xc8c0x9[_0xc55f[11]](404)[_0xc55f[10]]({message:_0xc55f[12]})};var _0xc8c0xf=auth[_0xc55f[17]](_0xc8c0xc[_0xc55f[13]],_0xc8c0xc[_0xc55f[14]],_0xc8c0x8[_0xc55f[16]][_0xc55f[15]]||false);User[_0xc55f[25]](_0xc8c0xc[_0xc55f[13]])[_0xc55f[23]](function(_0xc8c0xc){_0xc8c0xc[_0xc55f[24]]({attributes:[_0xc55f[19]]})[_0xc55f[23]](function(_0xc8c0x10){async[_0xc55f[22]](_0xc8c0x10,function _0xc8c0x11(_0xc8c0x12,_0xc8c0x13){require(_0xc55f[21])[_0xc55f[20]](_0xc8c0xc[_0xc55f[13]],_0xc8c0xc[_0xc55f[19]],_0xc8c0x12[_0xc55f[19]],_0xc8c0x13)},function _0xc8c0x14(){return _0xc8c0x9[_0xc55f[10]]({token:_0xc8c0xf,userId:_0xc8c0xc[_0xc55f[13]]})})})[_0xc55f[18]](function(_0xc8c0xb){return _0xc8c0xa(_0xc8c0xb)})})[_0xc55f[18]](function(_0xc8c0xb){return _0xc8c0xa(_0xc8c0xb)});})(_0xc8c0x8,_0xc8c0x9,_0xc8c0xa)});router[_0xc55f[33]](_0xc55f[28],auth[_0xc55f[29]](),function(_0xc8c0x8,_0xc8c0x9,_0xc8c0xa){User[_0xc55f[25]](_0xc8c0x8[_0xc55f[30]][_0xc55f[13]])[_0xc55f[23]](function(_0xc8c0xc){_0xc8c0xc[_0xc55f[24]]({attributes:[_0xc55f[19]]})[_0xc55f[23]](function(_0xc8c0x10){async[_0xc55f[22]](_0xc8c0x10,function _0xc8c0x11(_0xc8c0x12,_0xc8c0x13){require(_0xc55f[21])[_0xc55f[31]](_0xc8c0x8[_0xc55f[30]][_0xc55f[13]],_0xc8c0x8[_0xc55f[30]][_0xc55f[19]],_0xc8c0x12[_0xc55f[19]],_0xc8c0x13)},function _0xc8c0x14(){_0xc8c0x8[_0xc55f[31]]();_0xc8c0x9[_0xc55f[32]](_0xc55f[8]);})})[_0xc55f[18]](function(_0xc8c0xb){return _0xc8c0xa(_0xc8c0xb)})})[_0xc55f[18]](function(_0xc8c0xb){return _0xc8c0xa(_0xc8c0xb)})});module[_0xc55f[34]]=router;
\ No newline at end of file
+var _0xedad=["\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"];_0xedad[0];var express=require(_0xedad[1]);var passport=require(_0xedad[2]);var async=require(_0xedad[3]);var auth=require(_0xedad[4]);var User=require(_0xedad[6])[_0xedad[5]];var license=require(_0xedad[7]);var router=express.Router();router[_0xedad[27]](_0xedad[8],function(_0xfcf8x8,_0xfcf8x9,_0xfcf8xa){passport[_0xedad[26]](_0xedad[9],function(_0xfcf8xb,_0xfcf8xc,_0xfcf8xd){var _0xfcf8xe=_0xfcf8xb||_0xfcf8xd;if(_0xfcf8xe){return _0xfcf8x9[_0xedad[11]](401)[_0xedad[10]](_0xfcf8xe)};if(!_0xfcf8xc){return _0xfcf8x9[_0xedad[11]](404)[_0xedad[10]]({message:_0xedad[12]})};var _0xfcf8xf=auth[_0xedad[17]](_0xfcf8xc[_0xedad[13]],_0xfcf8xc[_0xedad[14]],_0xfcf8x8[_0xedad[16]][_0xedad[15]]||false);User[_0xedad[25]](_0xfcf8xc[_0xedad[13]])[_0xedad[23]](function(_0xfcf8xc){_0xfcf8xc[_0xedad[24]]({attributes:[_0xedad[19]]})[_0xedad[23]](function(_0xfcf8x10){async[_0xedad[22]](_0xfcf8x10,function _0xfcf8x11(_0xfcf8x12,_0xfcf8x13){require(_0xedad[21])[_0xedad[20]](_0xfcf8xc[_0xedad[13]],_0xfcf8xc[_0xedad[19]],_0xfcf8x12[_0xedad[19]],_0xfcf8x13)},function _0xfcf8x14(){return _0xfcf8x9[_0xedad[10]]({token:_0xfcf8xf,userId:_0xfcf8xc[_0xedad[13]]})})})[_0xedad[18]](function(_0xfcf8xb){return _0xfcf8xa(_0xfcf8xb)})})[_0xedad[18]](function(_0xfcf8xb){return _0xfcf8xa(_0xfcf8xb)});})(_0xfcf8x8,_0xfcf8x9,_0xfcf8xa)});router[_0xedad[33]](_0xedad[28],auth[_0xedad[29]](),function(_0xfcf8x8,_0xfcf8x9,_0xfcf8xa){User[_0xedad[25]](_0xfcf8x8[_0xedad[30]][_0xedad[13]])[_0xedad[23]](function(_0xfcf8xc){_0xfcf8xc[_0xedad[24]]({attributes:[_0xedad[19]]})[_0xedad[23]](function(_0xfcf8x10){async[_0xedad[22]](_0xfcf8x10,function _0xfcf8x11(_0xfcf8x12,_0xfcf8x13){require(_0xedad[21])[_0xedad[31]](_0xfcf8x8[_0xedad[30]][_0xedad[13]],_0xfcf8x8[_0xedad[30]][_0xedad[19]],_0xfcf8x12[_0xedad[19]],_0xfcf8x13)},function _0xfcf8x14(){_0xfcf8x8[_0xedad[31]]();_0xfcf8x9[_0xedad[32]](_0xedad[8]);})})[_0xedad[18]](function(_0xfcf8xb){return _0xfcf8xa(_0xfcf8xb)})})[_0xedad[18]](function(_0xfcf8xb){return _0xfcf8xa(_0xfcf8xb)})});module[_0xedad[34]]=router;
\ No newline at end of file
-var _0xb955=["\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"];_0xb955[0];var util=require(_0xb955[1]);var amiController=require(_0xb955[2]);exports[_0xb955[3]]=function(_0xc10ex3,_0xc10ex4,_0xc10ex5,_0xc10ex6){var _0xc10ex7={action:_0xb955[4],queue:_0xc10ex5,interface:util[_0xb955[6]](_0xb955[5],_0xc10ex4),paused:false};_0xc10ex7[_0xb955[7]]=JSON[_0xb955[8]](_0xc10ex7);_0xc10ex7[_0xb955[9]]=_0xc10ex3;amiController[_0xb955[12]](_0xc10ex7,function(_0xc10ex8,_0xc10ex9){if(_0xc10ex8){console[_0xb955[10]](_0xc10ex8)};var _0xc10ex7={action:_0xb955[11],queue:_0xc10ex5,interface:util[_0xb955[6]](_0xb955[5],_0xc10ex4)};_0xc10ex7[_0xb955[7]]=JSON[_0xb955[8]](_0xc10ex7);_0xc10ex7[_0xb955[9]]=_0xc10ex3;amiController[_0xb955[12]](_0xc10ex7,_0xc10ex6);});};exports[_0xb955[13]]=function(_0xc10ex3,_0xc10ex4,_0xc10ex5,_0xc10ex6){var _0xc10ex7={action:_0xb955[14],queue:_0xc10ex5,interface:util[_0xb955[6]](_0xb955[5],_0xc10ex4),penalty:0,paused:false,membername:_0xc10ex4};_0xc10ex7[_0xb955[7]]=JSON[_0xb955[8]](_0xc10ex7);_0xc10ex7[_0xb955[9]]=_0xc10ex3;amiController[_0xb955[12]](_0xc10ex7,_0xc10ex6);};
\ No newline at end of file
+var _0xf535=["\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"];_0xf535[0];var util=require(_0xf535[1]);var amiController=require(_0xf535[2]);exports[_0xf535[3]]=function(_0xd1d1x3,_0xd1d1x4,_0xd1d1x5,_0xd1d1x6){var _0xd1d1x7={action:_0xf535[4],queue:_0xd1d1x5,interface:util[_0xf535[6]](_0xf535[5],_0xd1d1x4),paused:false};_0xd1d1x7[_0xf535[7]]=JSON[_0xf535[8]](_0xd1d1x7);_0xd1d1x7[_0xf535[9]]=_0xd1d1x3;amiController[_0xf535[12]](_0xd1d1x7,function(_0xd1d1x8,_0xd1d1x9){if(_0xd1d1x8){console[_0xf535[10]](_0xd1d1x8)};var _0xd1d1x7={action:_0xf535[11],queue:_0xd1d1x5,interface:util[_0xf535[6]](_0xf535[5],_0xd1d1x4)};_0xd1d1x7[_0xf535[7]]=JSON[_0xf535[8]](_0xd1d1x7);_0xd1d1x7[_0xf535[9]]=_0xd1d1x3;amiController[_0xf535[12]](_0xd1d1x7,_0xd1d1x6);});};exports[_0xf535[13]]=function(_0xd1d1x3,_0xd1d1x4,_0xd1d1x5,_0xd1d1x6){var _0xd1d1x7={action:_0xf535[14],queue:_0xd1d1x5,interface:util[_0xf535[6]](_0xf535[5],_0xd1d1x4),penalty:0,paused:false,membername:_0xd1d1x4};_0xd1d1x7[_0xf535[7]]=JSON[_0xf535[8]](_0xd1d1x7);_0xd1d1x7[_0xf535[9]]=_0xd1d1x3;amiController[_0xf535[12]](_0xd1d1x7,_0xd1d1x6);};
\ No newline at end of file
-var _0xe910=["\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(_0xe910[0]);var LocalStrategy=require(_0xe910[2])[_0xe910[1]];var Settings=require(_0xe910[4])[_0xe910[3]];var license=require(_0xe910[5]);exports[_0xe910[6]]=function(_0x4218x5,_0x4218x6){passport[_0xe910[27]](_0xe910[7], new LocalStrategy({usernameField:_0xe910[8],passwordField:_0xe910[9]},function(_0x4218x7,_0x4218x8,_0x4218x9){var _0x4218xa;var _0x4218xb;var _0x4218xc;return _0x4218x5[_0xe910[26]]({where:{name:_0x4218x7}})[_0xe910[16]](function(_0x4218x11){_0x4218xa=_0x4218x11;if(!_0x4218xa||!_0x4218x11[_0xe910[20]](_0x4218x8)){return _0x4218x9(null,false,{message:_0xe910[21]})};return (_0x4218xa[_0xe910[22]]===_0xe910[23]||_0x4218xa[_0xe910[22]]===_0xe910[24]||(_0x4218xa[_0xe910[22]]===_0xe910[17]&&_0x4218xa[_0xe910[25]]))?_0x4218x9(null,_0x4218xa):_0x4218xa;})[_0xe910[16]](function(_0x4218x11){return Settings[_0xe910[19]](1)})[_0xe910[16]](function(_0x4218x10){_0x4218xb=_0x4218x10;return _0x4218x5[_0xe910[18]]({where:{role:_0xe910[17],online:true}});})[_0xe910[16]](function(_0x4218xe){var _0x4218xf=false;if(_0x4218xb[_0xe910[11]]){_0x4218xc=license[_0xe910[12]](_0x4218xb[_0xe910[11]]);_0x4218xc=JSON[_0xe910[13]](_0x4218xc);if(_0x4218xc[_0xe910[14]]>_0x4218xe){_0x4218xf=true};};if(!_0x4218xf){return _0x4218x9(null,false,{message:_0xe910[15]})};return _0x4218x9(null,_0x4218xa);})[_0xe910[10]](function(_0x4218xd){return _0x4218x9(_0x4218xd)});}))};
\ No newline at end of file
+var _0x9033=["\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(_0x9033[0]);var LocalStrategy=require(_0x9033[2])[_0x9033[1]];var Settings=require(_0x9033[4])[_0x9033[3]];var license=require(_0x9033[5]);exports[_0x9033[6]]=function(_0x4115x5,_0x4115x6){passport[_0x9033[27]](_0x9033[7], new LocalStrategy({usernameField:_0x9033[8],passwordField:_0x9033[9]},function(_0x4115x7,_0x4115x8,_0x4115x9){var _0x4115xa;var _0x4115xb;var _0x4115xc;return _0x4115x5[_0x9033[26]]({where:{name:_0x4115x7}})[_0x9033[16]](function(_0x4115x11){_0x4115xa=_0x4115x11;if(!_0x4115xa||!_0x4115x11[_0x9033[20]](_0x4115x8)){return _0x4115x9(null,false,{message:_0x9033[21]})};return (_0x4115xa[_0x9033[22]]===_0x9033[23]||_0x4115xa[_0x9033[22]]===_0x9033[24]||(_0x4115xa[_0x9033[22]]===_0x9033[17]&&_0x4115xa[_0x9033[25]]))?_0x4115x9(null,_0x4115xa):_0x4115xa;})[_0x9033[16]](function(_0x4115x11){return Settings[_0x9033[19]](1)})[_0x9033[16]](function(_0x4115x10){_0x4115xb=_0x4115x10;return _0x4115x5[_0x9033[18]]({where:{role:_0x9033[17],online:true}});})[_0x9033[16]](function(_0x4115xe){var _0x4115xf=false;if(_0x4115xb[_0x9033[11]]){_0x4115xc=license[_0x9033[12]](_0x4115xb[_0x9033[11]]);_0x4115xc=JSON[_0x9033[13]](_0x4115xc);if(_0x4115xc[_0x9033[14]]>_0x4115xe){_0x4115xf=true};};if(!_0x4115xf){return _0x4115x9(null,false,{message:_0x9033[15]})};return _0x4115x9(null,_0x4115xa);})[_0x9033[10]](function(_0x4115xd){return _0x4115x9(_0x4115xd)});}))};
\ No newline at end of file
-var _0x9559=["\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"];_0x9559[0];var express=require(_0x9559[1]);var passport=require(_0x9559[2]);var auth=require(_0x9559[3]);var router=express.Router();router[_0x9559[9]](_0x9559[10],passport[_0x9559[7]](_0x9559[5],{failureRedirect:_0x9559[6],session:false}))[_0x9559[9]](_0x9559[4],passport[_0x9559[7]](_0x9559[5],{failureRedirect:_0x9559[6],session:false}),auth[_0x9559[8]]);module[_0x9559[11]]=router;
\ No newline at end of file
+var _0x4da9=["\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"];_0x4da9[0];var express=require(_0x4da9[1]);var passport=require(_0x4da9[2]);var auth=require(_0x4da9[3]);var router=express.Router();router[_0x4da9[9]](_0x4da9[10],passport[_0x4da9[7]](_0x4da9[5],{failureRedirect:_0x4da9[6],session:false}))[_0x4da9[9]](_0x4da9[4],passport[_0x4da9[7]](_0x4da9[5],{failureRedirect:_0x4da9[6],session:false}),auth[_0x4da9[8]]);module[_0x4da9[11]]=router;
\ No newline at end of file
-var _0xd401=["\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[_0xd401[0]]=function(_0x7c93x1,_0x7c93x2){var _0x7c93x3=require(_0xd401[1]);var _0x7c93x4=require(_0xd401[3])[_0xd401[2]];_0x7c93x3[_0xd401[15]]( new _0x7c93x4({consumerKey:_0x7c93x2[_0xd401[5]][_0xd401[4]],consumerSecret:_0x7c93x2[_0xd401[5]][_0xd401[6]],callbackURL:_0x7c93x2[_0xd401[5]][_0xd401[7]]},function(_0x7c93x5,_0x7c93x6,_0x7c93x7,_0x7c93x8){_0x7c93x1[_0xd401[14]]({"\x74\x77\x69\x74\x74\x65\x72\x2E\x69\x64\x5F\x73\x74\x72":_0x7c93x7[_0xd401[8]]},function(_0x7c93x9,_0x7c93xa){if(_0x7c93x9){return _0x7c93x8(_0x7c93x9)};if(!_0x7c93xa){_0x7c93xa= new _0x7c93x1({name:_0x7c93x7[_0xd401[9]],username:_0x7c93x7[_0xd401[10]],role:_0xd401[11],provider:_0xd401[5],twitter:_0x7c93x7[_0xd401[12]]});_0x7c93xa[_0xd401[13]](function(_0x7c93x9){if(_0x7c93x9){return _0x7c93x8(_0x7c93x9)};return _0x7c93x8(_0x7c93x9,_0x7c93xa);});}else {return _0x7c93x8(_0x7c93x9,_0x7c93xa)};})}));};
\ No newline at end of file
+var _0x3fbf=["\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[_0x3fbf[0]]=function(_0xf51fx1,_0xf51fx2){var _0xf51fx3=require(_0x3fbf[1]);var _0xf51fx4=require(_0x3fbf[3])[_0x3fbf[2]];_0xf51fx3[_0x3fbf[15]]( new _0xf51fx4({consumerKey:_0xf51fx2[_0x3fbf[5]][_0x3fbf[4]],consumerSecret:_0xf51fx2[_0x3fbf[5]][_0x3fbf[6]],callbackURL:_0xf51fx2[_0x3fbf[5]][_0x3fbf[7]]},function(_0xf51fx5,_0xf51fx6,_0xf51fx7,_0xf51fx8){_0xf51fx1[_0x3fbf[14]]({"\x74\x77\x69\x74\x74\x65\x72\x2E\x69\x64\x5F\x73\x74\x72":_0xf51fx7[_0x3fbf[8]]},function(_0xf51fx9,_0xf51fxa){if(_0xf51fx9){return _0xf51fx8(_0xf51fx9)};if(!_0xf51fxa){_0xf51fxa= new _0xf51fx1({name:_0xf51fx7[_0x3fbf[9]],username:_0xf51fx7[_0x3fbf[10]],role:_0x3fbf[11],provider:_0x3fbf[5],twitter:_0xf51fx7[_0x3fbf[12]]});_0xf51fxa[_0x3fbf[13]](function(_0xf51fx9){if(_0xf51fx9){return _0xf51fx8(_0xf51fx9)};return _0xf51fx8(_0xf51fx9,_0xf51fxa);});}else {return _0xf51fx8(_0xf51fx9,_0xf51fxa)};})}));};
\ No newline at end of file
-var _0xd999=["\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"];_0xd999[0];var _=require(_0xd999[1]);var agi=require(_0xd999[2]);var util=require(_0xd999[3]);var moment=require(_0xd999[4]);var xml=require(_0xd999[5]);var wait=require(_0xd999[6]);var sr=require(_0xd999[7]);var path=require(_0xd999[8]);var config=require(_0xd999[9]);var sh=require(_0xd999[10]);var db=require(_0xd999[11])();var SquareProject=require(_0xd999[13])[_0xd999[12]];var Variable=require(_0xd999[13])[_0xd999[14]];var SquareOdbc=require(_0xd999[13])[_0xd999[15]];var Settings=require(_0xd999[13])[_0xd999[16]];var User=require(_0xd999[13])[_0xd999[17]];var VoiceQueue=require(_0xd999[13])[_0xd999[18]];var Trunk=require(_0xd999[13])[_0xd999[19]];var Interval=require(_0xd999[13])[_0xd999[20]];var Upload=require(_0xd999[13])[_0xd999[21]];var ReportSquare=require(_0xd999[13])[_0xd999[22]];var ReportSquareDetail=require(_0xd999[13])[_0xd999[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[_0xd999[24]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[25]);console[_0xd999[26]](_0xd999[27]);_0x685ax24[_0xd999[29]](_0xd999[28],function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[30]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[31]);console[_0xd999[26]](_0xd999[32]+_0x685ax25[_0xd999[33]]+_0xd999[34]);_0x685ax24[_0xd999[36]](_0x685ax25[_0xd999[33]],_0x685ax25[_0xd999[35]],function(_0x685ax27,_0x685ax28){if(_0x685ax26){_0x685ax26(_0x685ax27,_0x685ax28)}});};methods[_0xd999[37]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[38]);if(!users){getUsers(false)};var _0x685ax29=_[_0xd999[40]](users,{id:parseInt(_0x685ax25[_0xd999[39]])});console[_0xd999[26]](_0xd999[41]+util[_0xd999[44]](_0xd999[42],_0x685ax29[_0xd999[43]])+_0xd999[45]);var _0x685ax2a=[util[_0xd999[44]](_0xd999[42],_0x685ax29[_0xd999[43]]),_0x685ax25[_0xd999[46]],_0x685ax25[_0xd999[47]],_0x685ax25[_0xd999[48]]];_0x685ax24[_0xd999[36]](_0xd999[49],_0x685ax2a[_0xd999[51]](_0xd999[50]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[52]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[53]);if(!trunks){getTrunks(false)};var _0x685ax2b=_[_0xd999[40]](trunks,{id:parseInt(_0x685ax25[_0xd999[54]])});console[_0xd999[26]](_0xd999[41]+util[_0xd999[44]](_0xd999[42],_0x685ax2b[_0xd999[43]])+_0xd999[45]);var _0x685ax2a=[util[_0xd999[44]](_0xd999[55],_0x685ax25[_0xd999[56]],_0x685ax2b[_0xd999[43]]),_0x685ax25[_0xd999[46]],_0x685ax25[_0xd999[47]],_0x685ax25[_0xd999[48]]];_0x685ax24[_0xd999[36]](_0xd999[49],_0x685ax2a[_0xd999[51]](_0xd999[50]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[57]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[58]);if(!queues){getQueues(false)};var _0x685ax2c=_[_0xd999[40]](queues,{name:_0x685ax25[_0xd999[59]]});var _0x685ax2d=getFilePath(_0x685ax25[_0xd999[60]]);var _0x685ax2a=[_0x685ax2c[_0xd999[43]],_0x685ax25[_0xd999[47]],_0x685ax25[_0xd999[48]],_0x685ax2d,_0x685ax25[_0xd999[46]],_0x685ax25[_0xd999[2]],_0x685ax25[_0xd999[61]],_0x685ax25[_0xd999[62]],_0xd999[63],_0x685ax25[_0xd999[64]]];console[_0xd999[26]](_0xd999[65]+_0x685ax2c[_0xd999[43]]+_0xd999[66]);_0x685ax24[_0xd999[36]](_0xd999[67],_0x685ax2a[_0xd999[51]](_0xd999[50]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[68]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[69]);var _0x685ax2a=[util[_0xd999[44]](_0xd999[70],_0x685ax25[_0xd999[71]],_0x685ax25[_0xd999[72]]),_0x685ax25[_0xd999[47]]];console[_0xd999[26]](_0xd999[73]);_0x685ax24[_0xd999[36]](_0xd999[74],_0x685ax2a[_0xd999[51]](_0xd999[50]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[75]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[76]);console[_0xd999[26]](_0xd999[77]);var _0x685ax2e=eval(_0x685ax25[_0xd999[78]]);console[_0xd999[26]](_0xd999[79]);setVariable(_0x685ax24,_0x685ax25[_0xd999[80]],_0x685ax2e,_0x685ax26);};methods[_0xd999[81]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[82]);var _0x685ax2f=getFilePath(_0x685ax25[_0xd999[60]]);var _0x685ax2a=[_0x685ax2f,_0x685ax25[_0xd999[47]]];console[_0xd999[26]](_0xd999[83]);_0x685ax24[_0xd999[36]](_0xd999[84],_0x685ax2a[_0xd999[51]](_0xd999[50]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[85]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[86]);var _0x685ax28={};console[_0xd999[26]](_0xd999[87]+_0x685ax25[_0xd999[88]]+_0xd999[89]);if(_0x685ax25[_0xd999[88]]>0){_0x685ax25[_0xd999[88]]--;var _0x685ax30=_0xd999[90];console[_0xd999[26]](_0xd999[91]);_0x685ax24[_0xd999[29]](util[_0xd999[44]](_0xd999[92],_0x685ax30,parseInt(_0x685ax25[_0xd999[93]])*1000,_0x685ax25[_0xd999[94]]),function(_0x685ax27,_0x685ax28){var _0x685ax31={uniqueid:_0x685ax24[_0xd999[95]],node:_0x685ax25[_0xd999[96]],application:_0x685ax25[_0xd999[97]],data:_0x685ax28[_0xd999[98]]||null};ReportSquareDetail[_0xd999[103]](_0x685ax31)[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0xd999[99]+_0x685ax25[_0xd999[97]]+_0xd999[100]+_0x685ax25[_0xd999[96]]+_0xd999[101],_0x685ax27)});if(_0x685ax28[_0xd999[98]]!==_0xd999[104]){var _0x685ax32=parseInt(_0x685ax25[_0xd999[80]]);if(_0x685ax32){console[_0xd999[26]](_0xd999[105]);setVariable(_0x685ax24,_0x685ax32,_0x685ax28[_0xd999[98]]);};_0x685ax28[_0xd999[106]]=_0x685ax28[_0xd999[98]];_0x685ax26(null,_0x685ax28);}else {console[_0xd999[26]](_0xd999[107]);_0x685ax28={code:200,result:_0xd999[108],data:_0xd999[109]};_0x685ax26(null,_0x685ax28);};});}else {console[_0xd999[26]](_0xd999[110]);_0x685ax28={code:200,result:_0xd999[108],data:_0xd999[111]};_0x685ax26(null,_0x685ax28);};};methods[_0xd999[112]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[113]);console[_0xd999[26]](_0xd999[114]);_0x685ax24[_0xd999[29]](util[_0xd999[44]](_0xd999[115],_0x685ax25[_0xd999[116]],_0x685ax25[_0xd999[117]]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[118]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[119]);console[_0xd999[26]](_0xd999[120]);_0x685ax24[_0xd999[29]](util[_0xd999[44]](_0xd999[121],_0x685ax25[_0xd999[122]],_0x685ax25[_0xd999[117]]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[123]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[124]);var _0x685ax2a=[path[_0xd999[51]](config[_0xd999[125]],_0xd999[126],_0xd999[127]),encodeURIComponent(_0x685ax25[_0xd999[122]]),_0x685ax25[_0xd999[128]]];console[_0xd999[26]](_0xd999[129]);_0x685ax24[_0xd999[36]](_0xd999[130],_0x685ax2a[_0xd999[51]](_0xd999[50]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[131]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[132]);var _0x685ax2a=[_0xd999[133],encodeURIComponent(_0x685ax25[_0xd999[122]]),_0x685ax25[_0xd999[134]],_0xd999[63],_0xd999[63],_0x685ax25[_0xd999[135]]];console[_0xd999[26]](_0xd999[136]);_0x685ax24[_0xd999[36]](_0xd999[130],_0x685ax2a[_0xd999[51]](_0xd999[50]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[137]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[138]);var _0x685ax28={};console[_0xd999[26]](_0xd999[87]+_0x685ax25[_0xd999[88]]+_0xd999[89]);if(_0x685ax25[_0xd999[88]]>0){_0x685ax25[_0xd999[88]]--;var _0x685ax30=getFilePath(_0x685ax25[_0xd999[60]]);console[_0xd999[26]](_0xd999[91]);_0x685ax24[_0xd999[29]](util[_0xd999[44]](_0xd999[92],_0x685ax30,parseInt(_0x685ax25[_0xd999[93]])*1000,_0x685ax25[_0xd999[139]]),function(_0x685ax27,_0x685ax28){var _0x685ax31={uniqueid:_0x685ax24[_0xd999[95]],node:_0x685ax25[_0xd999[96]],application:_0x685ax25[_0xd999[97]],data:_0x685ax28[_0xd999[98]]||null};ReportSquareDetail[_0xd999[103]](_0x685ax31)[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0xd999[99]+_0x685ax25[_0xd999[97]]+_0xd999[100]+_0x685ax25[_0xd999[96]]+_0xd999[101],_0x685ax27)});if(_0x685ax28[_0xd999[98]]&&_0x685ax28[_0xd999[98]][_0xd999[140]]>=parseInt(_0x685ax25[_0xd999[141]])){if(_0x685ax28[_0xd999[98]]!==_0xd999[142]){console[_0xd999[26]](_0xd999[143]);var _0x685ax32=parseInt(_0x685ax25[_0xd999[80]]);if(_0x685ax32){console[_0xd999[26]](_0xd999[105]);setVariable(_0x685ax24,_0x685ax32,_0x685ax28[_0xd999[98]]);};_0x685ax28={code:200,result:_0xd999[108],data:_0xd999[144]};_0x685ax26(null,_0x685ax28);}else {console[_0xd999[26]](_0xd999[145]);_0x685ax28={code:500,result:_0xd999[142]};_0x685ax26(null,_0x685ax28);}}else {console[_0xd999[26]](_0xd999[146]);_0x685ax28={code:200,result:_0xd999[108],data:_0xd999[147]};_0x685ax26(null,_0x685ax28);};});}else {console[_0xd999[26]](_0xd999[110]);_0x685ax28={code:500,result:_0xd999[142]};_0x685ax26(null,_0x685ax28);};};methods[_0xd999[148]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[149]);var _0x685ax33=sr();console[_0xd999[26]](_0xd999[150]);_0x685ax24[_0xd999[29]](util[_0xd999[44]](_0xd999[151],path[_0xd999[51]](config[_0xd999[125]],_0xd999[152],_0x685ax33),_0x685ax25[_0xd999[117]],_0x685ax25[_0xd999[46]],null,true,null),function(_0x685ax27,_0x685ax28){if(_0x685ax28[_0xd999[153]]===200&&_0x685ax28[_0xd999[98]]!==_0xd999[142]){console[_0xd999[26]](_0xd999[154]);_0x685ax24[_0xd999[29]](util[_0xd999[44]](_0xd999[155],_0xd999[156],_0x685ax33),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});}else {_0x685ax26(_0x685ax27,_0x685ax28)}});};methods[_0xd999[157]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[158]);var _0x685ax28;var _0x685ax34=_0xd999[159];var _0x685ax35;if(!intervals){getIntervals(false)};var _0x685ax36=_[_0xd999[40]](intervals,{id:parseInt(_0x685ax25[_0xd999[160]])});if(!_0x685ax36[_0xd999[161]]){_0x685ax35=_[_0xd999[163]](intervals,{IntervalId:parseInt(_0x685ax36[_0xd999[162]])})};if(_0x685ax35){console[_0xd999[26]](_0xd999[164]);if(_0x685ax35[_0xd999[140]]){console[_0xd999[26]](_0xd999[87]+_0x685ax35[_0xd999[140]]+_0xd999[165]);var _0x685ax37;console[_0xd999[26]](_0xd999[166]);_0x685ax35[_0xd999[171]](function(_0x685ax38,_0x685ax39){_0x685ax37=splitInterval(_0x685ax38[_0xd999[167]]);if(isIntervalValid(_0x685ax37)){console[_0xd999[26]](_0xd999[168]+_0x685ax39+_0xd999[169]);_0x685ax34=_0xd999[170];};});}else {console[_0xd999[26]](_0xd999[172]);_0x685ax34=_0xd999[170];};}else {console[_0xd999[26]](_0xd999[173]);var _0x685ax3a=splitInterval(_0x685ax36[_0xd999[167]]);if(isIntervalValid(_0x685ax3a)){console[_0xd999[26]](_0xd999[174]);_0x685ax34=_0xd999[170];};};console[_0xd999[26]](_0xd999[175]+_0x685ax34+_0xd999[176]);_0x685ax28={code:200,result:_0xd999[108],data:_0x685ax34};_0x685ax26(null,_0x685ax28);};methods[_0xd999[177]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[178]);console[_0xd999[26]](_0xd999[179]);var _0x685ax28={data:getVariable(_0x685ax24,_0x685ax25[_0xd999[80]])};_0x685ax26(null,_0x685ax28);};methods[_0xd999[180]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[181]);var _0x685ax31={uniqueid:_0x685ax24[_0xd999[95]],node:_0x685ax25[_0xd999[96]],application:_0x685ax25[_0xd999[97]],data:_[_0xd999[183]](_0x685ax25[_0xd999[182]])||null};ReportSquareDetail[_0xd999[103]](_0x685ax31)[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0xd999[99]+_0x685ax25[_0xd999[97]]+_0xd999[100]+_0x685ax25[_0xd999[96]]+_0xd999[101],_0x685ax27)});console[_0xd999[26]](_0xd999[184]);sh[_0xd999[36]](_[_0xd999[183]](_0x685ax25[_0xd999[182]]),function(_0x685ax3b,_0x685ax3c){var _0x685ax3d=_0x685ax3c[_0xd999[185]](/(\r\n|\n|\r)/gm,_0xd999[63]);console[_0xd999[26]](_0xd999[186],_0x685ax3d);console[_0xd999[26]](_0xd999[187]);setVariable(_0x685ax24,_0x685ax25[_0xd999[80]],_0xd999[188]+_0x685ax3d+_0xd999[188],_0x685ax26);});};methods[_0xd999[2]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[189]);console[_0xd999[26]](_0xd999[190]);_0x685ax24[_0xd999[36]](_0xd999[130],_0x685ax25[_0xd999[182]],_0x685ax25[_0xd999[191]],function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[192]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[193]);if(!projects){getProjects(false)};var _0x685ax3e=_[_0xd999[40]](projects,{id:parseInt(_0x685ax25[_0xd999[194]])});console[_0xd999[26]](_0xd999[195]+_0x685ax3e[_0xd999[43]]+_0xd999[34]);_0x685ax24[_0xd999[36]](_0xd999[130],util[_0xd999[44]](_0xd999[196],_0x685ax3e[_0xd999[43]]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[197]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[198]);var _0x685ax2a=[path[_0xd999[51]](config[_0xd999[125]],_0xd999[126],_0xd999[199]),_0x685ax25[_0xd999[200]],_0xd999[63],(_0x685ax25[_0xd999[201]]===_0xd999[108]?_0xd999[63]:_0x685ax25[_0xd999[201]]),_0xd999[202],_0xd999[203],_0xd999[63],_0x685ax25[_0xd999[135]]];console[_0xd999[26]](_0xd999[204]);_0x685ax24[_0xd999[36]](_0xd999[130],_0x685ax2a[_0xd999[51]](_0xd999[50]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[205]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[206]);if(!dbConnections){getDbConnections(false)};var _0x685ax3f=_[_0xd999[40]](dbConnections,{id:parseInt(_0x685ax25[_0xd999[207]])});console[_0xd999[26]](_0xd999[208]);var _0x685ax31={uniqueid:_0x685ax24[_0xd999[95]],node:_0x685ax25[_0xd999[96]],application:_0x685ax25[_0xd999[97]],data:_0x685ax25[_0xd999[209]]||null};ReportSquareDetail[_0xd999[103]](_0x685ax31)[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0xd999[99]+_0x685ax25[_0xd999[97]]+_0xd999[100]+_0x685ax25[_0xd999[96]]+_0xd999[101],_0x685ax27)});db[_0xd999[218]](_0x685ax3f[_0xd999[210]],function(_0x685ax27){if(_0x685ax27){console[_0xd999[26]](_0xd999[211],_0x685ax27);var _0x685ax28={code:500,result:_0xd999[142]};_0x685ax26(null,_0x685ax28);}else {console[_0xd999[26]](_0xd999[212]);db[_0xd999[209]](_0x685ax25[_0xd999[209]],function(_0x685ax27,_0x685ax40){if(_0x685ax27){console[_0xd999[26]](_0xd999[213],_0x685ax27);var _0x685ax28={code:500,result:_0xd999[142]};_0x685ax26(null,_0x685ax28);}else {console[_0xd999[26]](_0xd999[214]);db[_0xd999[217]](function(_0x685ax27){if(_0x685ax27){console[_0xd999[26]](_0xd999[215],_0x685ax27);var _0x685ax28={code:500,result:_0xd999[142]};_0x685ax26(null,_0x685ax28);}else {console[_0xd999[26]](_0xd999[216]);setVariable(_0x685ax24,_0x685ax25[_0xd999[80]],_0x685ax40,_0x685ax26);}});}});}});};methods[_0xd999[219]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[220]);console[_0xd999[26]](_0xd999[221]+_0x685ax25[_0xd999[222]]+_0xd999[223]);_0x685ax24[_0xd999[36]](_0xd999[49],util[_0xd999[44]](_0xd999[224],_0x685ax25[_0xd999[222]],_0x685ax25[_0xd999[72]]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[225]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[226]);var _0x685ax28={code:200,result:_0xd999[108]};console[_0xd999[26]](_0xd999[227]);_0x685ax28[_0xd999[106]]=String(eval(_0x685ax25[_0xd999[228]])?_0xd999[170]:_0xd999[159]);console[_0xd999[26]](_0xd999[229]+_0x685ax28[_0xd999[106]]);_0x685ax26(null,_0x685ax28);};methods[_0xd999[230]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[231]);console[_0xd999[26]](_0xd999[232]);_0x685ax24[_0xd999[230]]();};methods[_0xd999[233]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[234]);var _0x685ax3c=(_0x685ax25[_0xd999[235]])?_0xd999[188]+_0x685ax25[_0xd999[235]]+_0xd999[188]:_0xd999[188]+_0x685ax25[_0xd999[96]]+_0xd999[188];console[_0xd999[26]](_0xd999[236]+_0x685ax3c);_0x685ax24[_0xd999[36]](_0xd999[237],_0x685ax3c,function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[238]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[239]);console[_0xd999[26]](_0xd999[240]);_0x685ax24[_0xd999[29]](util[_0xd999[44]](_0xd999[241],_0x685ax25[_0xd999[242]],_0x685ax25[_0xd999[117]]),function(_0x685ax27,_0x685ax28){_0x685ax26(_0x685ax27,_0x685ax28)});};methods[_0xd999[243]]=function(_0x685ax24,_0x685ax25,_0x685ax26){console[_0xd999[26]](_0xd999[244]);console[_0xd999[26]](_0xd999[245]);setVariable(_0x685ax24,_0x685ax25[_0xd999[80]],_0x685ax25[_0xd999[246]],_0x685ax26);};function getVertices(_0x685ax42){return _[_0xd999[251]](_0x685ax42,function(_0x685ax2e,_0x685ax43,_0x685ax44){if(_0x685ax44===_0xd999[247]){return _0x685ax2e};if(_[_0xd999[248]](_0x685ax43)){_[_0xd999[250]](_0x685ax43,function(_0x685ax45,_0x685ax46){_0x685ax2e[_0x685ax45[_0xd999[249]][_0xd999[162]]]=_0x685ax45[_0xd999[249]];_0x685ax2e[_0x685ax45[_0xd999[249]][_0xd999[162]]][_0xd999[97]]=_0x685ax44;});return _0x685ax2e;};_0x685ax2e[_0x685ax43[_0xd999[249]][_0xd999[162]]]=_0x685ax43[_0xd999[249]];_0x685ax2e[_0x685ax43[_0xd999[249]][_0xd999[162]]][_0xd999[97]]=_0x685ax44;return _0x685ax2e;},{})}function getTargetBySource(_0x685ax42,_0x685ax48,_0x685ax45){return _[_0xd999[98]](_[_0xd999[40]](_0x685ax42[_0xd999[247]],function(_0x685ax43){if(_0x685ax43[_0xd999[249]][_0xd999[252]]&&_0x685ax43[_0xd999[249]][_0xd999[253]]){if(_0x685ax43[_0xd999[249]][_0xd999[253]]===_0x685ax48){if(_0x685ax43[_0xd999[249]][_0xd999[254]]&&_0x685ax43[_0xd999[249]][_0xd999[254]]!==_0x685ax45){return false};return true;}};return false;}),_0xd999[255])}function replaceAllVariables(_0x685ax24,_0x685ax25,_0x685ax26){var _0x685ax4a=_0x685ax25;for(var _0x685ax46 in _0x685ax4a){var _0x685ax28=_0x685ax4a[_0x685ax46][_0xd999[256]](/{+(.*?)}/gi);if(_0x685ax28){for(var _0x685ax4b in _0x685ax28){var _0x685ax45=wait[_0xd999[259]](_0x685ax24,_0xd999[257],_0x685ax28[_0x685ax4b][_0xd999[258]](1,_0x685ax28[_0x685ax4b][_0xd999[140]]-1));if(_0x685ax45[_0xd999[153]]===200&&_0x685ax45[_0xd999[98]]!==_0xd999[108]){var _0x685ax4c=_0x685ax45[_0xd999[98]][_0xd999[258]](_0x685ax45[_0xd999[98]][_0xd999[261]](_0xd999[260])+1,_0x685ax45[_0xd999[98]][_0xd999[261]](_0xd999[262]));_0x685ax4a[_0x685ax46]=_0x685ax4a[_0x685ax46][_0xd999[185]](_0x685ax28[_0x685ax4b],_0x685ax4c);};}};};_0x685ax4a[_0xd999[263]]=true;return _0x685ax4a;}function xstart(_0x685ax24){var _0x685ax42=_0x685ax24[_0xd999[125]];var _0x685ax4e=_0x685ax24[_0xd999[264]];if(_0x685ax42[_0xd999[265]]){if(!_[_0xd999[248]](_0x685ax42[_0xd999[265]])){var _0x685ax48=_0x685ax42[_0xd999[265]][_0xd999[249]][_0xd999[162]];var _0x685ax28={};do{var _0x685ax25=_0x685ax4e[_0x685ax48][_0xd999[263]]?_0x685ax4e[_0x685ax48]:replaceAllVariables(_0x685ax24,_0x685ax4e[_0x685ax48]);if(_0x685ax25){if(_[_0xd999[266]](methods[_0x685ax25[_0xd999[97]]])){_0x685ax28=wait[_0xd999[267]](methods[_0x685ax25[_0xd999[97]]],_0x685ax24,_0x685ax25)}else {_0x685ax28=wait[_0xd999[267]](methods[_0xd999[233]],_0x685ax24,_0x685ax25)};if(_0x685ax28[_0xd999[153]]===200&&_0x685ax28[_0xd999[98]]!==_0xd999[142]){var _0x685ax4f=getTargetBySource(_0x685ax42,_0x685ax48,_0x685ax28[_0xd999[106]]);if(_0x685ax4f){}else {if(_0x685ax25[_0xd999[97]]===_0xd999[85]){if(_0x685ax25[_0xd999[88]]>0){_0x685ax4f=getTargetBySource(_0x685ax42,_0x685ax48,_0xd999[147]);if(_0x685ax4f){}else {_0x685ax4f=_0x685ax48};}};if(_0x685ax25[_0xd999[97]]===_0xd999[137]&&_0x685ax25[_0xd999[88]]>0){_0x685ax4f=_0x685ax48};};_0x685ax48=_0x685ax4f;}else {_0x685ax48=null};}else {_0x685ax48=null};}while(_0x685ax48);;console[_0xd999[26]](_0xd999[268]);_0x685ax24[_0xd999[230]]();}};}function xfinally(_0x685ax24){var _0x685ax42=_0x685ax24[_0xd999[125]];var _0x685ax4e=_0x685ax24[_0xd999[264]];if(_0x685ax42[_0xd999[269]]){if(!_[_0xd999[248]](_0x685ax42[_0xd999[269]])){var _0x685ax48=_0x685ax42[_0xd999[269]][_0xd999[249]][_0xd999[162]];var _0x685ax28={};do{var _0x685ax25=replaceAllVariables(_0x685ax24,_0x685ax4e[_0x685ax48]);if(_0x685ax25){if(_[_0xd999[266]](methods[_0x685ax25[_0xd999[97]]])){_0x685ax28=wait[_0xd999[267]](methods[_0x685ax25[_0xd999[97]]],_0x685ax24,_0x685ax25)}else {_0x685ax28=wait[_0xd999[267]](methods[_0xd999[233]],_0x685ax24,_0x685ax25)};if(_0x685ax28[_0xd999[153]]===200&&_0x685ax28[_0xd999[98]]!==_0xd999[142]){var _0x685ax4f=getTargetBySource(_0x685ax42,_0x685ax48,_0x685ax28[_0xd999[106]]);if(_0x685ax4f){}else {if(_0x685ax25[_0xd999[97]]===_0xd999[85]){if(_0x685ax25[_0xd999[88]]>0){_0x685ax4f=getTargetBySource(_0x685ax42,_0x685ax48,_0xd999[147]);if(_0x685ax4f){}else {_0x685ax4f=_0x685ax48};}};if(_0x685ax25[_0xd999[97]]===_0xd999[137]&&_0x685ax25[_0xd999[88]]>0){_0x685ax4f=_0x685ax48};};_0x685ax48=_0x685ax4f;}else {_0x685ax48=null};}else {_0x685ax48=null};}while(_0x685ax48);;_0x685ax24[_0xd999[230]]();console[_0xd999[26]](_0xd999[270]);}};_0x685ax24[_0xd999[271]]();}function main(_0x685ax24){_0x685ax24[_0xd999[274]](_0xd999[272],function(_0x685ax27){console[_0xd999[26]](_0xd999[273],_0x685ax27)});_0x685ax24[_0xd999[274]](_0xd999[217],function(){console[_0xd999[26]](_0xd999[275])});_0x685ax24[_0xd999[274]](_0xd999[230],function(){if(_0x685ax24[_0xd999[269]]){_0x685ax24[_0xd999[269]]=false;console[_0xd999[26]](_0xd999[276]);wait[_0xd999[277]](xfinally,_0x685ax24);}else {ReportSquare[_0xd999[280]]({leaveAt:moment()[_0xd999[44]](_0xd999[279])},{where:{uniqueid:_0x685ax24[_0xd999[95]]}})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0xd999[278],_0x685ax27)});console[_0xd999[26]](_0xd999[281]);}});_0x685ax24[_0xd999[274]](_0xd999[93],function(_0x685ax28){});_0x685ax24[_0xd999[274]](_0xd999[282],function(_0x685ax52){console[_0xd999[26]](_0x685ax52);console[_0xd999[26]](_0xd999[283]+_0x685ax52[_0xd999[284]]+_0xd999[285]+_0x685ax52[_0xd999[286]]);var _0x685ax53={network:_0x685ax52[_0xd999[287]],network_script:_0x685ax52[_0xd999[288]],request:_0x685ax52[_0xd999[289]],channel:_0x685ax52[_0xd999[290]],language:_0x685ax52[_0xd999[291]],type:_0x685ax52[_0xd999[292]],uniqueid:_0x685ax52[_0xd999[286]],version:_0x685ax52[_0xd999[293]],callerid:_0x685ax52[_0xd999[284]],calleridname:_0x685ax52[_0xd999[294]],callingpres:_0x685ax52[_0xd999[295]],callingani2:_0x685ax52[_0xd999[296]],callington:_0x685ax52[_0xd999[297]],callingtns:_0x685ax52[_0xd999[298]],dnid:_0x685ax52[_0xd999[299]],rdnis:_0x685ax52[_0xd999[300]],context:_0x685ax52[_0xd999[301]],extension:_0x685ax52[_0xd999[302]],priority:_0x685ax52[_0xd999[303]],enhanced:_0x685ax52[_0xd999[304]],accountcode:_0x685ax52[_0xd999[305]],threadid:_0x685ax52[_0xd999[306]],project_name:_0x685ax52[_0xd999[307]],joinAt:moment()[_0xd999[44]](_0xd999[279])};ReportSquare[_0xd999[103]](_0x685ax53)[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0xd999[308],_0x685ax27)});if(_0x685ax52[_0xd999[307]]){SquareProject[_0xd999[317]]({where:{name:_0x685ax52[_0xd999[307]]},attributes:[_0xd999[162],_0xd999[310]]})[_0xd999[316]](function(_0x685ax3e){if(_0x685ax3e){if(_0x685ax3e[_0xd999[310]]){xml[_0xd999[313]](_0x685ax3e[_0xd999[310]],{normalizeTags:true,explicitArray:false},function(_0x685ax27,_0x685ax2e){var _0x685ax42=_0x685ax2e[_0xd999[311]][_0xd999[125]];if(_0x685ax42){_0x685ax24[_0xd999[125]]=_0x685ax42;_0x685ax24[_0xd999[269]]=true;_0x685ax24[_0xd999[95]]=_0x685ax52[_0xd999[286]];_0x685ax24[_0xd999[264]]=getVertices(_0x685ax42);wait[_0xd999[277]](xstart,_0x685ax24);}else {console[_0xd999[26]](_0xd999[312]);_0x685ax24[_0xd999[271]]();};})}else {console[_0xd999[26]](_0xd999[314]);_0x685ax24[_0xd999[271]]();}}else {console[_0xd999[26]](_0xd999[315]);_0x685ax24[_0xd999[271]]();}})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0xd999[309],_0x685ax27);_0x685ax24[_0xd999[271]]();})}else {console[_0xd999[26]](_0xd999[318]);_0x685ax24[_0xd999[271]]();};});}function splitInterval(_0x685ax36){var _0x685ax55={};var _0x685ax3a=_0x685ax36[_0xd999[319]](_0xd999[50]);var _0x685ax56;_0x685ax3a[_0xd999[171]](function(_0x685ax57,_0x685ax39){switch(_0x685ax39){case 0:if(_0x685ax57!==_0xd999[320]){_0x685ax56=_0x685ax57[_0xd999[319]](_0xd999[111]);_0x685ax55[_0xd999[321]]=moment(_0x685ax56[0],_0xd999[322]);_0x685ax55[_0xd999[323]]=moment(_0x685ax56[1],_0xd999[322]);}else {_0x685ax55[_0xd999[321]]=null;_0x685ax55[_0xd999[323]]=null;};break ;;case 1:if(_0x685ax57!==_0xd999[320]){_0x685ax56=_0x685ax57[_0xd999[319]](_0xd999[111]);_0x685ax55[_0xd999[324]]=weekDaysCollection[_0x685ax56[0]];_0x685ax55[_0xd999[325]]=_0x685ax56[1]?weekDaysCollection[_0x685ax56[1]]:null;}else {_0x685ax55[_0xd999[324]]=null;_0x685ax55[_0xd999[325]]=null;};break ;;case 2:if(_0x685ax57!==_0xd999[320]){_0x685ax56=_0x685ax57[_0xd999[319]](_0xd999[111]);_0x685ax55[_0xd999[326]]=_0x685ax56[0];_0x685ax55[_0xd999[327]]=_0x685ax56[1]?_0x685ax56[1]:null;}else {_0x685ax55[_0xd999[326]]=null;_0x685ax55[_0xd999[327]]=null;};break ;;case 3:if(_0x685ax57!==_0xd999[320]){_0x685ax56=_0x685ax57[_0xd999[319]](_0xd999[111]);_0x685ax55[_0xd999[328]]=monthsCollection[_0x685ax56[0]];_0x685ax55[_0xd999[329]]=_0x685ax56[1]?monthsCollection[_0x685ax56[1]]:null;}else {_0x685ax55[_0xd999[328]]=null;_0x685ax55[_0xd999[329]]=null;};break ;;default:;}});return _0x685ax55;}function isIntervalValid(_0x685ax36){var _0x685ax59=moment()[_0xd999[44]](_0xd999[322]);var _0x685ax5a=moment()[_0xd999[44]](_0xd999[330]);var _0x685ax5b=moment()[_0xd999[44]](_0xd999[331]);var _0x685ax5c=moment()[_0xd999[44]](_0xd999[332]);var _0x685ax5d,_0x685ax5e,_0x685ax5f,_0x685ax60;var _0x685ax61=[1,2,3,4,5,6,7,8,9,10,11,12];var _0x685ax62=[1,2,3,4,5,6,7];var _0x685ax63=[];for(var _0x685ax64=1;_0x685ax64<=31;_0x685ax64++){_0x685ax63[_0xd999[333]](_0x685ax64)};_0x685ax5d=(_0x685ax36[_0xd999[321]]&&_0x685ax36[_0xd999[323]])?moment(_0x685ax59,_0xd999[322])[_0xd999[334]](moment(_0x685ax36[_0xd999[321]],_0xd999[322]),moment(_0x685ax36[_0xd999[323]],_0xd999[322])):true;if(_0x685ax36[_0xd999[324]]){if(_0x685ax36[_0xd999[325]]){var _0x685ax65=_[_0xd999[163]](_0x685ax62,function(_0x685ax38){return (_0x685ax38>=_0x685ax36[_0xd999[324]])||(_0x685ax38<=_0x685ax36[_0xd999[325]])});_0x685ax5e=(_0x685ax65[_0xd999[335]](parseInt(_0x685ax5a))!== -1)?true:false;}else {_0x685ax5e=(parseInt(_0x685ax5a)===_0x685ax36[_0xd999[324]])?true:false}}else {_0x685ax5e=true};if(_0x685ax36[_0xd999[326]]){if(_0x685ax36[_0xd999[327]]){var _0x685ax66=_[_0xd999[163]](_0x685ax63,function(_0x685ax38){return (_0x685ax38>=_0x685ax36[_0xd999[326]])||(_0x685ax38<=_0x685ax36[_0xd999[327]])});_0x685ax5f=(_0x685ax66[_0xd999[335]](parseInt(_0x685ax5b))!== -1)?true:false;}else {_0x685ax5f=(parseInt(_0x685ax5b)===_0x685ax36[_0xd999[326]])?true:false}}else {_0x685ax5f=true};if(_0x685ax36[_0xd999[328]]){if(_0x685ax36[_0xd999[329]]){var _0x685ax67=_[_0xd999[163]](_0x685ax61,function(_0x685ax38){return (_0x685ax38>=_0x685ax36[_0xd999[328]])||(_0x685ax38<=_0x685ax36[_0xd999[329]])});_0x685ax60=(_0x685ax67[_0xd999[335]](parseInt(_0x685ax5c))!== -1)?true:false;}else {_0x685ax60=(parseInt(_0x685ax5c)===_0x685ax36[_0xd999[328]])?true:false}}else {_0x685ax60=true};return _0x685ax5d&&_0x685ax5e&&_0x685ax5f&&_0x685ax60;}function setVariable(_0x685ax24,_0x685ax69,_0x685ax45,_0x685ax26){console[_0xd999[26]](_0xd999[336]);if(!variables){getVariables(false)};var _0x685ax4b=_[_0xd999[40]](variables,{id:parseInt(_0x685ax69)});console[_0xd999[26]](_0xd999[337],_0x685ax45);_0x685ax24[_0xd999[29]](util[_0xd999[44]](_0xd999[155],_0x685ax4b[_0xd999[43]],_0x685ax45),function(_0x685ax27,_0x685ax28){if(_0x685ax26){_0x685ax26(_0x685ax27,_0x685ax28)}});}function getVariable(_0x685ax24,_0x685ax69){if(!variables){getVariables(false)};var _0x685ax4b=_[_0xd999[40]](variables,{id:parseInt(_0x685ax69)});var _0x685ax45=wait[_0xd999[259]](_0x685ax24,_0xd999[257],_0x685ax4b[_0xd999[43]]);if(_0x685ax45[_0xd999[153]]===200&&_0x685ax45[_0xd999[98]]!==_0xd999[108]){return _0x685ax45[_0xd999[98]][_0xd999[258]](_0x685ax45[_0xd999[98]][_0xd999[261]](_0xd999[260])+1,_0x685ax45[_0xd999[98]][_0xd999[261]](_0xd999[262]))};return _0xd999[63];}function getFilePath(_0x685ax69){if(!sounds){getSounds(false)};if(_0x685ax69>0){var _0x685ax6c=_[_0xd999[40]](sounds,{id:parseInt(_0x685ax69)});return util[_0xd999[44]](_0xd999[338],_0x685ax6c[_0xd999[339]],_0x685ax6c[_0xd999[340]]);};return _0xd999[63];}function getUsers(_0x685ax6e){User[_0xd999[342]]()[_0xd999[316]](function(_0x685ax2e){users=_[_0xd999[341]](_0x685ax2e);if(_0x685ax6e){synchUpdates(User,users,_0xd999[162])};})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0x685ax27)})}function getQueues(_0x685ax6e){VoiceQueue[_0xd999[342]]()[_0xd999[316]](function(_0x685ax2e){queues=_[_0xd999[341]](_0x685ax2e);if(_0x685ax6e){synchUpdates(VoiceQueue,queues,_0xd999[43])};})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0x685ax27)})}function getTrunks(_0x685ax6e){Trunk[_0xd999[342]]()[_0xd999[316]](function(_0x685ax2e){trunks=_[_0xd999[341]](_0x685ax2e);if(_0x685ax6e){synchUpdates(Trunk,trunks,_0xd999[162])};})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0x685ax27)})}function getVariables(_0x685ax6e){Variable[_0xd999[342]]()[_0xd999[316]](function(_0x685ax2e){variables=_[_0xd999[341]](_0x685ax2e);if(_0x685ax6e){synchUpdates(Variable,variables,_0xd999[162])};})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0x685ax27)})}function getDbConnections(_0x685ax6e){SquareOdbc[_0xd999[342]]()[_0xd999[316]](function(_0x685ax2e){dbConnections=_[_0xd999[341]](_0x685ax2e);if(_0x685ax6e){synchUpdates(SquareOdbc,dbConnections,_0xd999[162])};})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0x685ax27)})}function getIntervals(_0x685ax6e){Interval[_0xd999[342]]()[_0xd999[316]](function(_0x685ax2e){intervals=_[_0xd999[341]](_0x685ax2e);if(_0x685ax6e){synchUpdates(Interval,intervals,_0xd999[162])};})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0x685ax27)})}function getProjects(_0x685ax6e){SquareProject[_0xd999[342]]()[_0xd999[316]](function(_0x685ax2e){projects=_[_0xd999[341]](_0x685ax2e);if(_0x685ax6e){synchUpdates(SquareProject,projects,_0xd999[162])};})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0x685ax27)})}function getSounds(_0x685ax6e){Upload[_0xd999[342]]()[_0xd999[316]](function(_0x685ax2e){sounds=_[_0xd999[341]](_0x685ax2e);if(_0x685ax6e){synchUpdates(Upload,sounds,_0xd999[162])};})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0x685ax27)})}function synchUpdates(_0x685ax77,_0x685ax78,_0x685ax46){var _0x685ax79={};_0x685ax77[_0xd999[343]](function(_0x685ax7a){_0x685ax79[_0x685ax46]=_0x685ax7a[_0x685ax46];updateCollection(_0x685ax78,_0x685ax79,_0x685ax7a);});_0x685ax77[_0xd999[344]](function(_0x685ax7a){_0x685ax79[_0x685ax46]=_0x685ax7a[_0x685ax46];updateCollection(_0x685ax78,_0x685ax79,_0x685ax7a);});_0x685ax77[_0xd999[346]](function(_0x685ax7a){_0x685ax79[_0x685ax46]=_0x685ax7a[_0x685ax46];_[_0xd999[345]](_0x685ax78,_0x685ax79);});}function updateCollection(_0x685ax78,_0x685ax79,_0x685ax7a){var _0x685ax7c=_[_0xd999[40]](_0x685ax78,_0x685ax79);var _0x685ax39=_0x685ax78[_0xd999[335]](_0x685ax7c);if(_0x685ax7c){_[_0xd999[347]](_0x685ax78[_0x685ax39],_0x685ax7a)}else {_0x685ax78[_0xd999[348]](_0x685ax7a)};}function getPort(){Settings[_0xd999[317]]()[_0xd999[316]](function(_0x685ax2e){agiPort=_0x685ax2e[_0xd999[349]]})[_0xd999[102]](function(_0x685ax27){console[_0xd999[26]](_0x685ax27)})}module[_0xd999[350]]=function(){console[_0xd999[26]](_0xd999[351]);getPort();var _0x685ax7e=agi[_0xd999[353]](main)[_0xd999[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 _0xe0c5=["\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"];_0xe0c5[0];var _=require(_0xe0c5[1]);var agi=require(_0xe0c5[2]);var util=require(_0xe0c5[3]);var moment=require(_0xe0c5[4]);var xml=require(_0xe0c5[5]);var wait=require(_0xe0c5[6]);var sr=require(_0xe0c5[7]);var path=require(_0xe0c5[8]);var config=require(_0xe0c5[9]);var sh=require(_0xe0c5[10]);var db=require(_0xe0c5[11])();var SquareProject=require(_0xe0c5[13])[_0xe0c5[12]];var Variable=require(_0xe0c5[13])[_0xe0c5[14]];var SquareOdbc=require(_0xe0c5[13])[_0xe0c5[15]];var Settings=require(_0xe0c5[13])[_0xe0c5[16]];var User=require(_0xe0c5[13])[_0xe0c5[17]];var VoiceQueue=require(_0xe0c5[13])[_0xe0c5[18]];var Trunk=require(_0xe0c5[13])[_0xe0c5[19]];var Interval=require(_0xe0c5[13])[_0xe0c5[20]];var Upload=require(_0xe0c5[13])[_0xe0c5[21]];var ReportSquare=require(_0xe0c5[13])[_0xe0c5[22]];var ReportSquareDetail=require(_0xe0c5[13])[_0xe0c5[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[_0xe0c5[24]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[25]);console[_0xe0c5[26]](_0xe0c5[27]);_0xcf80x24[_0xe0c5[29]](_0xe0c5[28],function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[30]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[31]);console[_0xe0c5[26]](_0xe0c5[32]+_0xcf80x25[_0xe0c5[33]]+_0xe0c5[34]);_0xcf80x24[_0xe0c5[36]](_0xcf80x25[_0xe0c5[33]],_0xcf80x25[_0xe0c5[35]],function(_0xcf80x27,_0xcf80x28){if(_0xcf80x26){_0xcf80x26(_0xcf80x27,_0xcf80x28)}});};methods[_0xe0c5[37]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[38]);if(!users){getUsers(false)};var _0xcf80x29=_[_0xe0c5[40]](users,{id:parseInt(_0xcf80x25[_0xe0c5[39]])});console[_0xe0c5[26]](_0xe0c5[41]+util[_0xe0c5[44]](_0xe0c5[42],_0xcf80x29[_0xe0c5[43]])+_0xe0c5[45]);var _0xcf80x2a=[util[_0xe0c5[44]](_0xe0c5[42],_0xcf80x29[_0xe0c5[43]]),_0xcf80x25[_0xe0c5[46]],_0xcf80x25[_0xe0c5[47]],_0xcf80x25[_0xe0c5[48]]];_0xcf80x24[_0xe0c5[36]](_0xe0c5[49],_0xcf80x2a[_0xe0c5[51]](_0xe0c5[50]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[52]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[53]);if(!trunks){getTrunks(false)};var _0xcf80x2b=_[_0xe0c5[40]](trunks,{id:parseInt(_0xcf80x25[_0xe0c5[54]])});console[_0xe0c5[26]](_0xe0c5[41]+util[_0xe0c5[44]](_0xe0c5[42],_0xcf80x2b[_0xe0c5[43]])+_0xe0c5[45]);var _0xcf80x2a=[util[_0xe0c5[44]](_0xe0c5[55],_0xcf80x25[_0xe0c5[56]],_0xcf80x2b[_0xe0c5[43]]),_0xcf80x25[_0xe0c5[46]],_0xcf80x25[_0xe0c5[47]],_0xcf80x25[_0xe0c5[48]]];_0xcf80x24[_0xe0c5[36]](_0xe0c5[49],_0xcf80x2a[_0xe0c5[51]](_0xe0c5[50]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[57]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[58]);if(!queues){getQueues(false)};var _0xcf80x2c=_[_0xe0c5[40]](queues,{name:_0xcf80x25[_0xe0c5[59]]});var _0xcf80x2d=getFilePath(_0xcf80x25[_0xe0c5[60]]);var _0xcf80x2a=[_0xcf80x2c[_0xe0c5[43]],_0xcf80x25[_0xe0c5[47]],_0xcf80x25[_0xe0c5[48]],_0xcf80x2d,_0xcf80x25[_0xe0c5[46]],_0xcf80x25[_0xe0c5[2]],_0xcf80x25[_0xe0c5[61]],_0xcf80x25[_0xe0c5[62]],_0xe0c5[63],_0xcf80x25[_0xe0c5[64]]];console[_0xe0c5[26]](_0xe0c5[65]+_0xcf80x2c[_0xe0c5[43]]+_0xe0c5[66]);_0xcf80x24[_0xe0c5[36]](_0xe0c5[67],_0xcf80x2a[_0xe0c5[51]](_0xe0c5[50]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[68]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[69]);var _0xcf80x2a=[util[_0xe0c5[44]](_0xe0c5[70],_0xcf80x25[_0xe0c5[71]],_0xcf80x25[_0xe0c5[72]]),_0xcf80x25[_0xe0c5[47]]];console[_0xe0c5[26]](_0xe0c5[73]);_0xcf80x24[_0xe0c5[36]](_0xe0c5[74],_0xcf80x2a[_0xe0c5[51]](_0xe0c5[50]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[75]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[76]);console[_0xe0c5[26]](_0xe0c5[77]);var _0xcf80x2e=eval(_0xcf80x25[_0xe0c5[78]]);console[_0xe0c5[26]](_0xe0c5[79]);setVariable(_0xcf80x24,_0xcf80x25[_0xe0c5[80]],_0xcf80x2e,_0xcf80x26);};methods[_0xe0c5[81]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[82]);var _0xcf80x2f=getFilePath(_0xcf80x25[_0xe0c5[60]]);var _0xcf80x2a=[_0xcf80x2f,_0xcf80x25[_0xe0c5[47]]];console[_0xe0c5[26]](_0xe0c5[83]);_0xcf80x24[_0xe0c5[36]](_0xe0c5[84],_0xcf80x2a[_0xe0c5[51]](_0xe0c5[50]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[85]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[86]);var _0xcf80x28={};console[_0xe0c5[26]](_0xe0c5[87]+_0xcf80x25[_0xe0c5[88]]+_0xe0c5[89]);if(_0xcf80x25[_0xe0c5[88]]>0){_0xcf80x25[_0xe0c5[88]]--;var _0xcf80x30=_0xe0c5[90];console[_0xe0c5[26]](_0xe0c5[91]);_0xcf80x24[_0xe0c5[29]](util[_0xe0c5[44]](_0xe0c5[92],_0xcf80x30,parseInt(_0xcf80x25[_0xe0c5[93]])*1000,_0xcf80x25[_0xe0c5[94]]),function(_0xcf80x27,_0xcf80x28){var _0xcf80x31={uniqueid:_0xcf80x24[_0xe0c5[95]],node:_0xcf80x25[_0xe0c5[96]],application:_0xcf80x25[_0xe0c5[97]],data:_0xcf80x28[_0xe0c5[98]]||null};ReportSquareDetail[_0xe0c5[103]](_0xcf80x31)[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[99]+_0xcf80x25[_0xe0c5[97]]+_0xe0c5[100]+_0xcf80x25[_0xe0c5[96]]+_0xe0c5[101],_0xcf80x27)});if(_0xcf80x28[_0xe0c5[98]]!==_0xe0c5[104]){var _0xcf80x32=parseInt(_0xcf80x25[_0xe0c5[80]]);if(_0xcf80x32){console[_0xe0c5[26]](_0xe0c5[105]);setVariable(_0xcf80x24,_0xcf80x32,_0xcf80x28[_0xe0c5[98]]);};_0xcf80x28[_0xe0c5[106]]=_0xcf80x28[_0xe0c5[98]];_0xcf80x26(null,_0xcf80x28);}else {console[_0xe0c5[26]](_0xe0c5[107]);_0xcf80x28={code:200,result:_0xe0c5[108],data:_0xe0c5[109]};_0xcf80x26(null,_0xcf80x28);};});}else {console[_0xe0c5[26]](_0xe0c5[110]);_0xcf80x28={code:200,result:_0xe0c5[108],data:_0xe0c5[111]};_0xcf80x26(null,_0xcf80x28);};};methods[_0xe0c5[112]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[113]);console[_0xe0c5[26]](_0xe0c5[114]);_0xcf80x24[_0xe0c5[29]](util[_0xe0c5[44]](_0xe0c5[115],_0xcf80x25[_0xe0c5[116]],_0xcf80x25[_0xe0c5[117]]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[118]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[119]);console[_0xe0c5[26]](_0xe0c5[120]);_0xcf80x24[_0xe0c5[29]](util[_0xe0c5[44]](_0xe0c5[121],_0xcf80x25[_0xe0c5[122]],_0xcf80x25[_0xe0c5[117]]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[123]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[124]);var _0xcf80x2a=[path[_0xe0c5[51]](config[_0xe0c5[125]],_0xe0c5[126],_0xe0c5[127]),encodeURIComponent(_0xcf80x25[_0xe0c5[122]]),_0xcf80x25[_0xe0c5[128]]];console[_0xe0c5[26]](_0xe0c5[129]);_0xcf80x24[_0xe0c5[36]](_0xe0c5[130],_0xcf80x2a[_0xe0c5[51]](_0xe0c5[50]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[131]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[132]);var _0xcf80x2a=[_0xe0c5[133],encodeURIComponent(_0xcf80x25[_0xe0c5[122]]),_0xcf80x25[_0xe0c5[134]],_0xe0c5[63],_0xe0c5[63],_0xcf80x25[_0xe0c5[135]]];console[_0xe0c5[26]](_0xe0c5[136]);_0xcf80x24[_0xe0c5[36]](_0xe0c5[130],_0xcf80x2a[_0xe0c5[51]](_0xe0c5[50]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[137]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[138]);var _0xcf80x28={};console[_0xe0c5[26]](_0xe0c5[87]+_0xcf80x25[_0xe0c5[88]]+_0xe0c5[89]);if(_0xcf80x25[_0xe0c5[88]]>0){_0xcf80x25[_0xe0c5[88]]--;var _0xcf80x30=getFilePath(_0xcf80x25[_0xe0c5[60]]);console[_0xe0c5[26]](_0xe0c5[91]);_0xcf80x24[_0xe0c5[29]](util[_0xe0c5[44]](_0xe0c5[92],_0xcf80x30,parseInt(_0xcf80x25[_0xe0c5[93]])*1000,_0xcf80x25[_0xe0c5[139]]),function(_0xcf80x27,_0xcf80x28){var _0xcf80x31={uniqueid:_0xcf80x24[_0xe0c5[95]],node:_0xcf80x25[_0xe0c5[96]],application:_0xcf80x25[_0xe0c5[97]],data:_0xcf80x28[_0xe0c5[98]]||null};ReportSquareDetail[_0xe0c5[103]](_0xcf80x31)[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[99]+_0xcf80x25[_0xe0c5[97]]+_0xe0c5[100]+_0xcf80x25[_0xe0c5[96]]+_0xe0c5[101],_0xcf80x27)});if(_0xcf80x28[_0xe0c5[98]]&&_0xcf80x28[_0xe0c5[98]][_0xe0c5[140]]>=parseInt(_0xcf80x25[_0xe0c5[141]])){if(_0xcf80x28[_0xe0c5[98]]!==_0xe0c5[142]){console[_0xe0c5[26]](_0xe0c5[143]);var _0xcf80x32=parseInt(_0xcf80x25[_0xe0c5[80]]);if(_0xcf80x32){console[_0xe0c5[26]](_0xe0c5[105]);setVariable(_0xcf80x24,_0xcf80x32,_0xcf80x28[_0xe0c5[98]]);};_0xcf80x28={code:200,result:_0xe0c5[108],data:_0xe0c5[144]};_0xcf80x26(null,_0xcf80x28);}else {console[_0xe0c5[26]](_0xe0c5[145]);_0xcf80x28={code:500,result:_0xe0c5[142]};_0xcf80x26(null,_0xcf80x28);}}else {console[_0xe0c5[26]](_0xe0c5[146]);_0xcf80x28={code:200,result:_0xe0c5[108],data:_0xe0c5[147]};_0xcf80x26(null,_0xcf80x28);};});}else {console[_0xe0c5[26]](_0xe0c5[110]);_0xcf80x28={code:500,result:_0xe0c5[142]};_0xcf80x26(null,_0xcf80x28);};};methods[_0xe0c5[148]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[149]);var _0xcf80x33=sr();console[_0xe0c5[26]](_0xe0c5[150]);_0xcf80x24[_0xe0c5[29]](util[_0xe0c5[44]](_0xe0c5[151],path[_0xe0c5[51]](config[_0xe0c5[125]],_0xe0c5[152],_0xcf80x33),_0xcf80x25[_0xe0c5[117]],_0xcf80x25[_0xe0c5[46]],null,true,null),function(_0xcf80x27,_0xcf80x28){if(_0xcf80x28[_0xe0c5[153]]===200&&_0xcf80x28[_0xe0c5[98]]!==_0xe0c5[142]){console[_0xe0c5[26]](_0xe0c5[154]);_0xcf80x24[_0xe0c5[29]](util[_0xe0c5[44]](_0xe0c5[155],_0xe0c5[156],_0xcf80x33),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});}else {_0xcf80x26(_0xcf80x27,_0xcf80x28)}});};methods[_0xe0c5[157]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[158]);var _0xcf80x28;var _0xcf80x34=_0xe0c5[159];var _0xcf80x35;if(!intervals){getIntervals(false)};var _0xcf80x36=_[_0xe0c5[40]](intervals,{id:parseInt(_0xcf80x25[_0xe0c5[160]])});if(!_0xcf80x36[_0xe0c5[161]]){_0xcf80x35=_[_0xe0c5[163]](intervals,{IntervalId:parseInt(_0xcf80x36[_0xe0c5[162]])})};if(_0xcf80x35){console[_0xe0c5[26]](_0xe0c5[164]);if(_0xcf80x35[_0xe0c5[140]]){console[_0xe0c5[26]](_0xe0c5[87]+_0xcf80x35[_0xe0c5[140]]+_0xe0c5[165]);var _0xcf80x37;console[_0xe0c5[26]](_0xe0c5[166]);_0xcf80x35[_0xe0c5[171]](function(_0xcf80x38,_0xcf80x39){_0xcf80x37=splitInterval(_0xcf80x38[_0xe0c5[167]]);if(isIntervalValid(_0xcf80x37)){console[_0xe0c5[26]](_0xe0c5[168]+_0xcf80x39+_0xe0c5[169]);_0xcf80x34=_0xe0c5[170];};});}else {console[_0xe0c5[26]](_0xe0c5[172]);_0xcf80x34=_0xe0c5[170];};}else {console[_0xe0c5[26]](_0xe0c5[173]);var _0xcf80x3a=splitInterval(_0xcf80x36[_0xe0c5[167]]);if(isIntervalValid(_0xcf80x3a)){console[_0xe0c5[26]](_0xe0c5[174]);_0xcf80x34=_0xe0c5[170];};};console[_0xe0c5[26]](_0xe0c5[175]+_0xcf80x34+_0xe0c5[176]);_0xcf80x28={code:200,result:_0xe0c5[108],data:_0xcf80x34};_0xcf80x26(null,_0xcf80x28);};methods[_0xe0c5[177]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[178]);console[_0xe0c5[26]](_0xe0c5[179]);var _0xcf80x28={data:getVariable(_0xcf80x24,_0xcf80x25[_0xe0c5[80]])};_0xcf80x26(null,_0xcf80x28);};methods[_0xe0c5[180]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[181]);var _0xcf80x31={uniqueid:_0xcf80x24[_0xe0c5[95]],node:_0xcf80x25[_0xe0c5[96]],application:_0xcf80x25[_0xe0c5[97]],data:_[_0xe0c5[183]](_0xcf80x25[_0xe0c5[182]])||null};ReportSquareDetail[_0xe0c5[103]](_0xcf80x31)[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[99]+_0xcf80x25[_0xe0c5[97]]+_0xe0c5[100]+_0xcf80x25[_0xe0c5[96]]+_0xe0c5[101],_0xcf80x27)});console[_0xe0c5[26]](_0xe0c5[184]);sh[_0xe0c5[36]](_[_0xe0c5[183]](_0xcf80x25[_0xe0c5[182]]),function(_0xcf80x3b,_0xcf80x3c){var _0xcf80x3d=_0xcf80x3c[_0xe0c5[185]](/(\r\n|\n|\r)/gm,_0xe0c5[63]);console[_0xe0c5[26]](_0xe0c5[186],_0xcf80x3d);console[_0xe0c5[26]](_0xe0c5[187]);setVariable(_0xcf80x24,_0xcf80x25[_0xe0c5[80]],_0xe0c5[188]+_0xcf80x3d+_0xe0c5[188],_0xcf80x26);});};methods[_0xe0c5[2]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[189]);console[_0xe0c5[26]](_0xe0c5[190]);_0xcf80x24[_0xe0c5[36]](_0xe0c5[130],_0xcf80x25[_0xe0c5[182]],_0xcf80x25[_0xe0c5[191]],function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[192]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[193]);if(!projects){getProjects(false)};var _0xcf80x3e=_[_0xe0c5[40]](projects,{id:parseInt(_0xcf80x25[_0xe0c5[194]])});console[_0xe0c5[26]](_0xe0c5[195]+_0xcf80x3e[_0xe0c5[43]]+_0xe0c5[34]);_0xcf80x24[_0xe0c5[36]](_0xe0c5[130],util[_0xe0c5[44]](_0xe0c5[196],_0xcf80x3e[_0xe0c5[43]]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[197]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[198]);var _0xcf80x2a=[path[_0xe0c5[51]](config[_0xe0c5[125]],_0xe0c5[126],_0xe0c5[199]),_0xcf80x25[_0xe0c5[200]],_0xe0c5[63],(_0xcf80x25[_0xe0c5[201]]===_0xe0c5[108]?_0xe0c5[63]:_0xcf80x25[_0xe0c5[201]]),_0xe0c5[202],_0xe0c5[203],_0xe0c5[63],_0xcf80x25[_0xe0c5[135]]];console[_0xe0c5[26]](_0xe0c5[204]);_0xcf80x24[_0xe0c5[36]](_0xe0c5[130],_0xcf80x2a[_0xe0c5[51]](_0xe0c5[50]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[205]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[206]);if(!dbConnections){getDbConnections(false)};var _0xcf80x3f=_[_0xe0c5[40]](dbConnections,{id:parseInt(_0xcf80x25[_0xe0c5[207]])});console[_0xe0c5[26]](_0xe0c5[208]);var _0xcf80x31={uniqueid:_0xcf80x24[_0xe0c5[95]],node:_0xcf80x25[_0xe0c5[96]],application:_0xcf80x25[_0xe0c5[97]],data:_0xcf80x25[_0xe0c5[209]]||null};ReportSquareDetail[_0xe0c5[103]](_0xcf80x31)[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[99]+_0xcf80x25[_0xe0c5[97]]+_0xe0c5[100]+_0xcf80x25[_0xe0c5[96]]+_0xe0c5[101],_0xcf80x27)});db[_0xe0c5[218]](_0xcf80x3f[_0xe0c5[210]],function(_0xcf80x27){if(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[211],_0xcf80x27);var _0xcf80x28={code:500,result:_0xe0c5[142]};_0xcf80x26(null,_0xcf80x28);}else {console[_0xe0c5[26]](_0xe0c5[212]);db[_0xe0c5[209]](_0xcf80x25[_0xe0c5[209]],function(_0xcf80x27,_0xcf80x40){if(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[213],_0xcf80x27);var _0xcf80x28={code:500,result:_0xe0c5[142]};_0xcf80x26(null,_0xcf80x28);}else {console[_0xe0c5[26]](_0xe0c5[214]);db[_0xe0c5[217]](function(_0xcf80x27){if(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[215],_0xcf80x27);var _0xcf80x28={code:500,result:_0xe0c5[142]};_0xcf80x26(null,_0xcf80x28);}else {console[_0xe0c5[26]](_0xe0c5[216]);setVariable(_0xcf80x24,_0xcf80x25[_0xe0c5[80]],_0xcf80x40,_0xcf80x26);}});}});}});};methods[_0xe0c5[219]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[220]);console[_0xe0c5[26]](_0xe0c5[221]+_0xcf80x25[_0xe0c5[222]]+_0xe0c5[223]);_0xcf80x24[_0xe0c5[36]](_0xe0c5[49],util[_0xe0c5[44]](_0xe0c5[224],_0xcf80x25[_0xe0c5[222]],_0xcf80x25[_0xe0c5[72]]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[225]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[226]);var _0xcf80x28={code:200,result:_0xe0c5[108]};console[_0xe0c5[26]](_0xe0c5[227]);_0xcf80x28[_0xe0c5[106]]=String(eval(_0xcf80x25[_0xe0c5[228]])?_0xe0c5[170]:_0xe0c5[159]);console[_0xe0c5[26]](_0xe0c5[229]+_0xcf80x28[_0xe0c5[106]]);_0xcf80x26(null,_0xcf80x28);};methods[_0xe0c5[230]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[231]);console[_0xe0c5[26]](_0xe0c5[232]);_0xcf80x24[_0xe0c5[230]]();};methods[_0xe0c5[233]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[234]);var _0xcf80x3c=(_0xcf80x25[_0xe0c5[235]])?_0xe0c5[188]+_0xcf80x25[_0xe0c5[235]]+_0xe0c5[188]:_0xe0c5[188]+_0xcf80x25[_0xe0c5[96]]+_0xe0c5[188];console[_0xe0c5[26]](_0xe0c5[236]+_0xcf80x3c);_0xcf80x24[_0xe0c5[36]](_0xe0c5[237],_0xcf80x3c,function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[238]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[239]);console[_0xe0c5[26]](_0xe0c5[240]);_0xcf80x24[_0xe0c5[29]](util[_0xe0c5[44]](_0xe0c5[241],_0xcf80x25[_0xe0c5[242]],_0xcf80x25[_0xe0c5[117]]),function(_0xcf80x27,_0xcf80x28){_0xcf80x26(_0xcf80x27,_0xcf80x28)});};methods[_0xe0c5[243]]=function(_0xcf80x24,_0xcf80x25,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[244]);console[_0xe0c5[26]](_0xe0c5[245]);setVariable(_0xcf80x24,_0xcf80x25[_0xe0c5[80]],_0xcf80x25[_0xe0c5[246]],_0xcf80x26);};function getVertices(_0xcf80x42){return _[_0xe0c5[251]](_0xcf80x42,function(_0xcf80x2e,_0xcf80x43,_0xcf80x44){if(_0xcf80x44===_0xe0c5[247]){return _0xcf80x2e};if(_[_0xe0c5[248]](_0xcf80x43)){_[_0xe0c5[250]](_0xcf80x43,function(_0xcf80x45,_0xcf80x46){_0xcf80x2e[_0xcf80x45[_0xe0c5[249]][_0xe0c5[162]]]=_0xcf80x45[_0xe0c5[249]];_0xcf80x2e[_0xcf80x45[_0xe0c5[249]][_0xe0c5[162]]][_0xe0c5[97]]=_0xcf80x44;});return _0xcf80x2e;};_0xcf80x2e[_0xcf80x43[_0xe0c5[249]][_0xe0c5[162]]]=_0xcf80x43[_0xe0c5[249]];_0xcf80x2e[_0xcf80x43[_0xe0c5[249]][_0xe0c5[162]]][_0xe0c5[97]]=_0xcf80x44;return _0xcf80x2e;},{})}function getTargetBySource(_0xcf80x42,_0xcf80x48,_0xcf80x45){return _[_0xe0c5[98]](_[_0xe0c5[40]](_0xcf80x42[_0xe0c5[247]],function(_0xcf80x43){if(_0xcf80x43[_0xe0c5[249]][_0xe0c5[252]]&&_0xcf80x43[_0xe0c5[249]][_0xe0c5[253]]){if(_0xcf80x43[_0xe0c5[249]][_0xe0c5[253]]===_0xcf80x48){if(_0xcf80x43[_0xe0c5[249]][_0xe0c5[254]]&&_0xcf80x43[_0xe0c5[249]][_0xe0c5[254]]!==_0xcf80x45){return false};return true;}};return false;}),_0xe0c5[255])}function replaceAllVariables(_0xcf80x24,_0xcf80x25,_0xcf80x26){var _0xcf80x4a=_0xcf80x25;for(var _0xcf80x46 in _0xcf80x4a){var _0xcf80x28=_0xcf80x4a[_0xcf80x46][_0xe0c5[256]](/{+(.*?)}/gi);if(_0xcf80x28){for(var _0xcf80x4b in _0xcf80x28){var _0xcf80x45=wait[_0xe0c5[259]](_0xcf80x24,_0xe0c5[257],_0xcf80x28[_0xcf80x4b][_0xe0c5[258]](1,_0xcf80x28[_0xcf80x4b][_0xe0c5[140]]-1));if(_0xcf80x45[_0xe0c5[153]]===200&&_0xcf80x45[_0xe0c5[98]]!==_0xe0c5[108]){var _0xcf80x4c=_0xcf80x45[_0xe0c5[98]][_0xe0c5[258]](_0xcf80x45[_0xe0c5[98]][_0xe0c5[261]](_0xe0c5[260])+1,_0xcf80x45[_0xe0c5[98]][_0xe0c5[261]](_0xe0c5[262]));_0xcf80x4a[_0xcf80x46]=_0xcf80x4a[_0xcf80x46][_0xe0c5[185]](_0xcf80x28[_0xcf80x4b],_0xcf80x4c);};}};};_0xcf80x4a[_0xe0c5[263]]=true;return _0xcf80x4a;}function xstart(_0xcf80x24){var _0xcf80x42=_0xcf80x24[_0xe0c5[125]];var _0xcf80x4e=_0xcf80x24[_0xe0c5[264]];if(_0xcf80x42[_0xe0c5[265]]){if(!_[_0xe0c5[248]](_0xcf80x42[_0xe0c5[265]])){var _0xcf80x48=_0xcf80x42[_0xe0c5[265]][_0xe0c5[249]][_0xe0c5[162]];var _0xcf80x28={};do{var _0xcf80x25=_0xcf80x4e[_0xcf80x48][_0xe0c5[263]]?_0xcf80x4e[_0xcf80x48]:replaceAllVariables(_0xcf80x24,_0xcf80x4e[_0xcf80x48]);if(_0xcf80x25){if(_[_0xe0c5[266]](methods[_0xcf80x25[_0xe0c5[97]]])){_0xcf80x28=wait[_0xe0c5[267]](methods[_0xcf80x25[_0xe0c5[97]]],_0xcf80x24,_0xcf80x25)}else {_0xcf80x28=wait[_0xe0c5[267]](methods[_0xe0c5[233]],_0xcf80x24,_0xcf80x25)};if(_0xcf80x28[_0xe0c5[153]]===200&&_0xcf80x28[_0xe0c5[98]]!==_0xe0c5[142]){var _0xcf80x4f=getTargetBySource(_0xcf80x42,_0xcf80x48,_0xcf80x28[_0xe0c5[106]]);if(_0xcf80x4f){}else {if(_0xcf80x25[_0xe0c5[97]]===_0xe0c5[85]){if(_0xcf80x25[_0xe0c5[88]]>0){_0xcf80x4f=getTargetBySource(_0xcf80x42,_0xcf80x48,_0xe0c5[147]);if(_0xcf80x4f){}else {_0xcf80x4f=_0xcf80x48};}};if(_0xcf80x25[_0xe0c5[97]]===_0xe0c5[137]&&_0xcf80x25[_0xe0c5[88]]>0){_0xcf80x4f=_0xcf80x48};};_0xcf80x48=_0xcf80x4f;}else {_0xcf80x48=null};}else {_0xcf80x48=null};}while(_0xcf80x48);;console[_0xe0c5[26]](_0xe0c5[268]);_0xcf80x24[_0xe0c5[230]]();}};}function xfinally(_0xcf80x24){var _0xcf80x42=_0xcf80x24[_0xe0c5[125]];var _0xcf80x4e=_0xcf80x24[_0xe0c5[264]];if(_0xcf80x42[_0xe0c5[269]]){if(!_[_0xe0c5[248]](_0xcf80x42[_0xe0c5[269]])){var _0xcf80x48=_0xcf80x42[_0xe0c5[269]][_0xe0c5[249]][_0xe0c5[162]];var _0xcf80x28={};do{var _0xcf80x25=replaceAllVariables(_0xcf80x24,_0xcf80x4e[_0xcf80x48]);if(_0xcf80x25){if(_[_0xe0c5[266]](methods[_0xcf80x25[_0xe0c5[97]]])){_0xcf80x28=wait[_0xe0c5[267]](methods[_0xcf80x25[_0xe0c5[97]]],_0xcf80x24,_0xcf80x25)}else {_0xcf80x28=wait[_0xe0c5[267]](methods[_0xe0c5[233]],_0xcf80x24,_0xcf80x25)};if(_0xcf80x28[_0xe0c5[153]]===200&&_0xcf80x28[_0xe0c5[98]]!==_0xe0c5[142]){var _0xcf80x4f=getTargetBySource(_0xcf80x42,_0xcf80x48,_0xcf80x28[_0xe0c5[106]]);if(_0xcf80x4f){}else {if(_0xcf80x25[_0xe0c5[97]]===_0xe0c5[85]){if(_0xcf80x25[_0xe0c5[88]]>0){_0xcf80x4f=getTargetBySource(_0xcf80x42,_0xcf80x48,_0xe0c5[147]);if(_0xcf80x4f){}else {_0xcf80x4f=_0xcf80x48};}};if(_0xcf80x25[_0xe0c5[97]]===_0xe0c5[137]&&_0xcf80x25[_0xe0c5[88]]>0){_0xcf80x4f=_0xcf80x48};};_0xcf80x48=_0xcf80x4f;}else {_0xcf80x48=null};}else {_0xcf80x48=null};}while(_0xcf80x48);;_0xcf80x24[_0xe0c5[230]]();console[_0xe0c5[26]](_0xe0c5[270]);}};_0xcf80x24[_0xe0c5[271]]();}function main(_0xcf80x24){_0xcf80x24[_0xe0c5[274]](_0xe0c5[272],function(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[273],_0xcf80x27)});_0xcf80x24[_0xe0c5[274]](_0xe0c5[217],function(){console[_0xe0c5[26]](_0xe0c5[275])});_0xcf80x24[_0xe0c5[274]](_0xe0c5[230],function(){if(_0xcf80x24[_0xe0c5[269]]){_0xcf80x24[_0xe0c5[269]]=false;console[_0xe0c5[26]](_0xe0c5[276]);wait[_0xe0c5[277]](xfinally,_0xcf80x24);}else {ReportSquare[_0xe0c5[280]]({leaveAt:moment()[_0xe0c5[44]](_0xe0c5[279])},{where:{uniqueid:_0xcf80x24[_0xe0c5[95]]}})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[278],_0xcf80x27)});console[_0xe0c5[26]](_0xe0c5[281]);}});_0xcf80x24[_0xe0c5[274]](_0xe0c5[93],function(_0xcf80x28){});_0xcf80x24[_0xe0c5[274]](_0xe0c5[282],function(_0xcf80x52){console[_0xe0c5[26]](_0xcf80x52);console[_0xe0c5[26]](_0xe0c5[283]+_0xcf80x52[_0xe0c5[284]]+_0xe0c5[285]+_0xcf80x52[_0xe0c5[286]]);var _0xcf80x53={network:_0xcf80x52[_0xe0c5[287]],network_script:_0xcf80x52[_0xe0c5[288]],request:_0xcf80x52[_0xe0c5[289]],channel:_0xcf80x52[_0xe0c5[290]],language:_0xcf80x52[_0xe0c5[291]],type:_0xcf80x52[_0xe0c5[292]],uniqueid:_0xcf80x52[_0xe0c5[286]],version:_0xcf80x52[_0xe0c5[293]],callerid:_0xcf80x52[_0xe0c5[284]],calleridname:_0xcf80x52[_0xe0c5[294]],callingpres:_0xcf80x52[_0xe0c5[295]],callingani2:_0xcf80x52[_0xe0c5[296]],callington:_0xcf80x52[_0xe0c5[297]],callingtns:_0xcf80x52[_0xe0c5[298]],dnid:_0xcf80x52[_0xe0c5[299]],rdnis:_0xcf80x52[_0xe0c5[300]],context:_0xcf80x52[_0xe0c5[301]],extension:_0xcf80x52[_0xe0c5[302]],priority:_0xcf80x52[_0xe0c5[303]],enhanced:_0xcf80x52[_0xe0c5[304]],accountcode:_0xcf80x52[_0xe0c5[305]],threadid:_0xcf80x52[_0xe0c5[306]],project_name:_0xcf80x52[_0xe0c5[307]],joinAt:moment()[_0xe0c5[44]](_0xe0c5[279])};ReportSquare[_0xe0c5[103]](_0xcf80x53)[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[308],_0xcf80x27)});if(_0xcf80x52[_0xe0c5[307]]){SquareProject[_0xe0c5[317]]({where:{name:_0xcf80x52[_0xe0c5[307]]},attributes:[_0xe0c5[162],_0xe0c5[310]]})[_0xe0c5[316]](function(_0xcf80x3e){if(_0xcf80x3e){if(_0xcf80x3e[_0xe0c5[310]]){xml[_0xe0c5[313]](_0xcf80x3e[_0xe0c5[310]],{normalizeTags:true,explicitArray:false},function(_0xcf80x27,_0xcf80x2e){var _0xcf80x42=_0xcf80x2e[_0xe0c5[311]][_0xe0c5[125]];if(_0xcf80x42){_0xcf80x24[_0xe0c5[125]]=_0xcf80x42;_0xcf80x24[_0xe0c5[269]]=true;_0xcf80x24[_0xe0c5[95]]=_0xcf80x52[_0xe0c5[286]];_0xcf80x24[_0xe0c5[264]]=getVertices(_0xcf80x42);wait[_0xe0c5[277]](xstart,_0xcf80x24);}else {console[_0xe0c5[26]](_0xe0c5[312]);_0xcf80x24[_0xe0c5[271]]();};})}else {console[_0xe0c5[26]](_0xe0c5[314]);_0xcf80x24[_0xe0c5[271]]();}}else {console[_0xe0c5[26]](_0xe0c5[315]);_0xcf80x24[_0xe0c5[271]]();}})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xe0c5[309],_0xcf80x27);_0xcf80x24[_0xe0c5[271]]();})}else {console[_0xe0c5[26]](_0xe0c5[318]);_0xcf80x24[_0xe0c5[271]]();};});}function splitInterval(_0xcf80x36){var _0xcf80x55={};var _0xcf80x3a=_0xcf80x36[_0xe0c5[319]](_0xe0c5[50]);var _0xcf80x56;_0xcf80x3a[_0xe0c5[171]](function(_0xcf80x57,_0xcf80x39){switch(_0xcf80x39){case 0:if(_0xcf80x57!==_0xe0c5[320]){_0xcf80x56=_0xcf80x57[_0xe0c5[319]](_0xe0c5[111]);_0xcf80x55[_0xe0c5[321]]=moment(_0xcf80x56[0],_0xe0c5[322]);_0xcf80x55[_0xe0c5[323]]=moment(_0xcf80x56[1],_0xe0c5[322]);}else {_0xcf80x55[_0xe0c5[321]]=null;_0xcf80x55[_0xe0c5[323]]=null;};break ;;case 1:if(_0xcf80x57!==_0xe0c5[320]){_0xcf80x56=_0xcf80x57[_0xe0c5[319]](_0xe0c5[111]);_0xcf80x55[_0xe0c5[324]]=weekDaysCollection[_0xcf80x56[0]];_0xcf80x55[_0xe0c5[325]]=_0xcf80x56[1]?weekDaysCollection[_0xcf80x56[1]]:null;}else {_0xcf80x55[_0xe0c5[324]]=null;_0xcf80x55[_0xe0c5[325]]=null;};break ;;case 2:if(_0xcf80x57!==_0xe0c5[320]){_0xcf80x56=_0xcf80x57[_0xe0c5[319]](_0xe0c5[111]);_0xcf80x55[_0xe0c5[326]]=_0xcf80x56[0];_0xcf80x55[_0xe0c5[327]]=_0xcf80x56[1]?_0xcf80x56[1]:null;}else {_0xcf80x55[_0xe0c5[326]]=null;_0xcf80x55[_0xe0c5[327]]=null;};break ;;case 3:if(_0xcf80x57!==_0xe0c5[320]){_0xcf80x56=_0xcf80x57[_0xe0c5[319]](_0xe0c5[111]);_0xcf80x55[_0xe0c5[328]]=monthsCollection[_0xcf80x56[0]];_0xcf80x55[_0xe0c5[329]]=_0xcf80x56[1]?monthsCollection[_0xcf80x56[1]]:null;}else {_0xcf80x55[_0xe0c5[328]]=null;_0xcf80x55[_0xe0c5[329]]=null;};break ;;default:;}});return _0xcf80x55;}function isIntervalValid(_0xcf80x36){var _0xcf80x59=moment()[_0xe0c5[44]](_0xe0c5[322]);var _0xcf80x5a=moment()[_0xe0c5[44]](_0xe0c5[330]);var _0xcf80x5b=moment()[_0xe0c5[44]](_0xe0c5[331]);var _0xcf80x5c=moment()[_0xe0c5[44]](_0xe0c5[332]);var _0xcf80x5d,_0xcf80x5e,_0xcf80x5f,_0xcf80x60;var _0xcf80x61=[1,2,3,4,5,6,7,8,9,10,11,12];var _0xcf80x62=[1,2,3,4,5,6,7];var _0xcf80x63=[];for(var _0xcf80x64=1;_0xcf80x64<=31;_0xcf80x64++){_0xcf80x63[_0xe0c5[333]](_0xcf80x64)};_0xcf80x5d=(_0xcf80x36[_0xe0c5[321]]&&_0xcf80x36[_0xe0c5[323]])?moment(_0xcf80x59,_0xe0c5[322])[_0xe0c5[334]](moment(_0xcf80x36[_0xe0c5[321]],_0xe0c5[322]),moment(_0xcf80x36[_0xe0c5[323]],_0xe0c5[322])):true;if(_0xcf80x36[_0xe0c5[324]]){if(_0xcf80x36[_0xe0c5[325]]){var _0xcf80x65=_[_0xe0c5[163]](_0xcf80x62,function(_0xcf80x38){return (_0xcf80x38>=_0xcf80x36[_0xe0c5[324]])||(_0xcf80x38<=_0xcf80x36[_0xe0c5[325]])});_0xcf80x5e=(_0xcf80x65[_0xe0c5[335]](parseInt(_0xcf80x5a))!== -1)?true:false;}else {_0xcf80x5e=(parseInt(_0xcf80x5a)===_0xcf80x36[_0xe0c5[324]])?true:false}}else {_0xcf80x5e=true};if(_0xcf80x36[_0xe0c5[326]]){if(_0xcf80x36[_0xe0c5[327]]){var _0xcf80x66=_[_0xe0c5[163]](_0xcf80x63,function(_0xcf80x38){return (_0xcf80x38>=_0xcf80x36[_0xe0c5[326]])||(_0xcf80x38<=_0xcf80x36[_0xe0c5[327]])});_0xcf80x5f=(_0xcf80x66[_0xe0c5[335]](parseInt(_0xcf80x5b))!== -1)?true:false;}else {_0xcf80x5f=(parseInt(_0xcf80x5b)===_0xcf80x36[_0xe0c5[326]])?true:false}}else {_0xcf80x5f=true};if(_0xcf80x36[_0xe0c5[328]]){if(_0xcf80x36[_0xe0c5[329]]){var _0xcf80x67=_[_0xe0c5[163]](_0xcf80x61,function(_0xcf80x38){return (_0xcf80x38>=_0xcf80x36[_0xe0c5[328]])||(_0xcf80x38<=_0xcf80x36[_0xe0c5[329]])});_0xcf80x60=(_0xcf80x67[_0xe0c5[335]](parseInt(_0xcf80x5c))!== -1)?true:false;}else {_0xcf80x60=(parseInt(_0xcf80x5c)===_0xcf80x36[_0xe0c5[328]])?true:false}}else {_0xcf80x60=true};return _0xcf80x5d&&_0xcf80x5e&&_0xcf80x5f&&_0xcf80x60;}function setVariable(_0xcf80x24,_0xcf80x69,_0xcf80x45,_0xcf80x26){console[_0xe0c5[26]](_0xe0c5[336]);if(!variables){getVariables(false)};var _0xcf80x4b=_[_0xe0c5[40]](variables,{id:parseInt(_0xcf80x69)});console[_0xe0c5[26]](_0xe0c5[337],_0xcf80x45);_0xcf80x24[_0xe0c5[29]](util[_0xe0c5[44]](_0xe0c5[155],_0xcf80x4b[_0xe0c5[43]],_0xcf80x45),function(_0xcf80x27,_0xcf80x28){if(_0xcf80x26){_0xcf80x26(_0xcf80x27,_0xcf80x28)}});}function getVariable(_0xcf80x24,_0xcf80x69){if(!variables){getVariables(false)};var _0xcf80x4b=_[_0xe0c5[40]](variables,{id:parseInt(_0xcf80x69)});var _0xcf80x45=wait[_0xe0c5[259]](_0xcf80x24,_0xe0c5[257],_0xcf80x4b[_0xe0c5[43]]);if(_0xcf80x45[_0xe0c5[153]]===200&&_0xcf80x45[_0xe0c5[98]]!==_0xe0c5[108]){return _0xcf80x45[_0xe0c5[98]][_0xe0c5[258]](_0xcf80x45[_0xe0c5[98]][_0xe0c5[261]](_0xe0c5[260])+1,_0xcf80x45[_0xe0c5[98]][_0xe0c5[261]](_0xe0c5[262]))};return _0xe0c5[63];}function getFilePath(_0xcf80x69){if(!sounds){getSounds(false)};if(_0xcf80x69>0){var _0xcf80x6c=_[_0xe0c5[40]](sounds,{id:parseInt(_0xcf80x69)});return util[_0xe0c5[44]](_0xe0c5[338],_0xcf80x6c[_0xe0c5[339]],_0xcf80x6c[_0xe0c5[340]]);};return _0xe0c5[63];}function getUsers(_0xcf80x6e){User[_0xe0c5[342]]()[_0xe0c5[316]](function(_0xcf80x2e){users=_[_0xe0c5[341]](_0xcf80x2e);if(_0xcf80x6e){synchUpdates(User,users,_0xe0c5[162])};})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xcf80x27)})}function getQueues(_0xcf80x6e){VoiceQueue[_0xe0c5[342]]()[_0xe0c5[316]](function(_0xcf80x2e){queues=_[_0xe0c5[341]](_0xcf80x2e);if(_0xcf80x6e){synchUpdates(VoiceQueue,queues,_0xe0c5[43])};})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xcf80x27)})}function getTrunks(_0xcf80x6e){Trunk[_0xe0c5[342]]()[_0xe0c5[316]](function(_0xcf80x2e){trunks=_[_0xe0c5[341]](_0xcf80x2e);if(_0xcf80x6e){synchUpdates(Trunk,trunks,_0xe0c5[162])};})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xcf80x27)})}function getVariables(_0xcf80x6e){Variable[_0xe0c5[342]]()[_0xe0c5[316]](function(_0xcf80x2e){variables=_[_0xe0c5[341]](_0xcf80x2e);if(_0xcf80x6e){synchUpdates(Variable,variables,_0xe0c5[162])};})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xcf80x27)})}function getDbConnections(_0xcf80x6e){SquareOdbc[_0xe0c5[342]]()[_0xe0c5[316]](function(_0xcf80x2e){dbConnections=_[_0xe0c5[341]](_0xcf80x2e);if(_0xcf80x6e){synchUpdates(SquareOdbc,dbConnections,_0xe0c5[162])};})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xcf80x27)})}function getIntervals(_0xcf80x6e){Interval[_0xe0c5[342]]()[_0xe0c5[316]](function(_0xcf80x2e){intervals=_[_0xe0c5[341]](_0xcf80x2e);if(_0xcf80x6e){synchUpdates(Interval,intervals,_0xe0c5[162])};})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xcf80x27)})}function getProjects(_0xcf80x6e){SquareProject[_0xe0c5[342]]()[_0xe0c5[316]](function(_0xcf80x2e){projects=_[_0xe0c5[341]](_0xcf80x2e);if(_0xcf80x6e){synchUpdates(SquareProject,projects,_0xe0c5[162])};})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xcf80x27)})}function getSounds(_0xcf80x6e){Upload[_0xe0c5[342]]()[_0xe0c5[316]](function(_0xcf80x2e){sounds=_[_0xe0c5[341]](_0xcf80x2e);if(_0xcf80x6e){synchUpdates(Upload,sounds,_0xe0c5[162])};})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xcf80x27)})}function synchUpdates(_0xcf80x77,_0xcf80x78,_0xcf80x46){var _0xcf80x79={};_0xcf80x77[_0xe0c5[343]](function(_0xcf80x7a){_0xcf80x79[_0xcf80x46]=_0xcf80x7a[_0xcf80x46];updateCollection(_0xcf80x78,_0xcf80x79,_0xcf80x7a);});_0xcf80x77[_0xe0c5[344]](function(_0xcf80x7a){_0xcf80x79[_0xcf80x46]=_0xcf80x7a[_0xcf80x46];updateCollection(_0xcf80x78,_0xcf80x79,_0xcf80x7a);});_0xcf80x77[_0xe0c5[346]](function(_0xcf80x7a){_0xcf80x79[_0xcf80x46]=_0xcf80x7a[_0xcf80x46];_[_0xe0c5[345]](_0xcf80x78,_0xcf80x79);});}function updateCollection(_0xcf80x78,_0xcf80x79,_0xcf80x7a){var _0xcf80x7c=_[_0xe0c5[40]](_0xcf80x78,_0xcf80x79);var _0xcf80x39=_0xcf80x78[_0xe0c5[335]](_0xcf80x7c);if(_0xcf80x7c){_[_0xe0c5[347]](_0xcf80x78[_0xcf80x39],_0xcf80x7a)}else {_0xcf80x78[_0xe0c5[348]](_0xcf80x7a)};}function getPort(){Settings[_0xe0c5[317]]()[_0xe0c5[316]](function(_0xcf80x2e){agiPort=_0xcf80x2e[_0xe0c5[349]]})[_0xe0c5[102]](function(_0xcf80x27){console[_0xe0c5[26]](_0xcf80x27)})}module[_0xe0c5[350]]=function(){console[_0xe0c5[26]](_0xe0c5[351]);getPort();var _0xcf80x7e=agi[_0xe0c5[353]](main)[_0xe0c5[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 _0x320e=["\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(_0x320e[0]);var asteriskManager=null;function ACW(_0xeab3x4){console[_0x320e[2]](_0x320e[1]);asteriskManager=_0xeab3x4;}ACW[_0x320e[4]][_0x320e[3]]=function(_0xeab3x5){if(asteriskManager&&asteriskManager[_0x320e[5]]()){if(_0xeab3x5[_0x320e[6]]===_0x320e[7]){asteriskManager[_0x320e[17]]({action:_0x320e[8],interface:_0xeab3x5[_0x320e[6]],paused:true,reason:_0x320e[9]},function(_0xeab3x6,_0xeab3x7){if(_0xeab3x6){console[_0x320e[10]](_0xeab3x6);return ;};console[_0x320e[2]](_0x320e[11]+_0xeab3x5[_0x320e[6]]);asteriskManager[_0x320e[17]]({action:_0x320e[8],interface:_0xeab3x5[_0x320e[6]],queue:_0xeab3x5[_0x320e[12]],paused:true,reason:_0x320e[13]},function(_0xeab3x6,_0xeab3x7){if(_0xeab3x6){console[_0x320e[10]](_0xeab3x6);return ;};console[_0x320e[2]](_0x320e[14]+_0xeab3x5[_0x320e[12]]+_0x320e[15]+_0xeab3x5[_0x320e[6]]);findAndUpdateFlag(_0xeab3x5);setTimeout(function(){asteriskManager[_0x320e[17]]({action:_0x320e[8],interface:_0xeab3x5[_0x320e[6]],paused:false},function(_0xeab3x6,_0xeab3x7){if(_0xeab3x6){console[_0x320e[10]](_0xeab3x6)};console[_0x320e[2]](_0x320e[16]+_0xeab3x5[_0x320e[6]]);})},5000);});})}}};ACW[_0x320e[4]][_0x320e[18]]=function(_0xeab3x5){if((_0xeab3x5[_0x320e[19]]===_0x320e[13]||_0xeab3x5[_0x320e[19]]===_0x320e[9])&&_0xeab3x5[_0x320e[20]]===_0x320e[21]){return }};function findAndUpdateTime(_0xeab3x5){var _0xeab3x9=require(_0x320e[23])[_0x320e[22]];_0xeab3x9[_0x320e[37]]({where:{agentcomplete:true,agentacw:true,acwtime:null,queue:_0xeab3x5[_0x320e[12]],interface:_0xeab3x5[_0x320e[6]]}})[_0x320e[34]](function(_0xeab3xa){if(_0xeab3xa[_0x320e[26]]>0){var _0xeab3x9=_0xeab3xa[_0xeab3xa[_0x320e[26]]-1];var _0xeab3xb=moment()[_0x320e[29]](_0xeab3x9[_0x320e[27]],_0x320e[28]);_0xeab3x9[_0x320e[35]]({acwtime:_0xeab3xb})[_0x320e[34]](function(_0xeab3x7){console[_0x320e[2]](_0x320e[30]+_0xeab3x7[_0x320e[31]]+_0x320e[32]+_0xeab3xb+_0x320e[33]+_0xeab3x7[_0x320e[12]])})[_0x320e[25]](function(_0xeab3x6){console[_0x320e[10]](_0x320e[24]+_0xeab3x6)});}else {console[_0x320e[10]]( new Error(_0x320e[36]))}})[_0x320e[25]](function(_0xeab3x6){console[_0x320e[10]](_0x320e[24]+_0xeab3x6)});}function findAndUpdateFlag(_0xeab3x5){var _0xeab3x9=require(_0x320e[23])[_0x320e[22]];_0xeab3x9[_0x320e[42]]({agentacw:true},{where:{uniqueid:_0xeab3x5[_0x320e[40]],destuniqueid:_0xeab3x5[_0x320e[41]]}})[_0x320e[34]](function(_0xeab3x9){console[_0x320e[2]](_0x320e[39])})[_0x320e[25]](function(_0xeab3x6){console[_0x320e[10]](_0x320e[38]+_0xeab3x6)});}module[_0x320e[43]]=ACW;
\ No newline at end of file
+var _0x6f30=["\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(_0x6f30[0]);var asteriskManager=null;function ACW(_0xccf3x4){console[_0x6f30[2]](_0x6f30[1]);asteriskManager=_0xccf3x4;}ACW[_0x6f30[4]][_0x6f30[3]]=function(_0xccf3x5){if(asteriskManager&&asteriskManager[_0x6f30[5]]()){if(_0xccf3x5[_0x6f30[6]]===_0x6f30[7]){asteriskManager[_0x6f30[17]]({action:_0x6f30[8],interface:_0xccf3x5[_0x6f30[6]],paused:true,reason:_0x6f30[9]},function(_0xccf3x6,_0xccf3x7){if(_0xccf3x6){console[_0x6f30[10]](_0xccf3x6);return ;};console[_0x6f30[2]](_0x6f30[11]+_0xccf3x5[_0x6f30[6]]);asteriskManager[_0x6f30[17]]({action:_0x6f30[8],interface:_0xccf3x5[_0x6f30[6]],queue:_0xccf3x5[_0x6f30[12]],paused:true,reason:_0x6f30[13]},function(_0xccf3x6,_0xccf3x7){if(_0xccf3x6){console[_0x6f30[10]](_0xccf3x6);return ;};console[_0x6f30[2]](_0x6f30[14]+_0xccf3x5[_0x6f30[12]]+_0x6f30[15]+_0xccf3x5[_0x6f30[6]]);findAndUpdateFlag(_0xccf3x5);setTimeout(function(){asteriskManager[_0x6f30[17]]({action:_0x6f30[8],interface:_0xccf3x5[_0x6f30[6]],paused:false},function(_0xccf3x6,_0xccf3x7){if(_0xccf3x6){console[_0x6f30[10]](_0xccf3x6)};console[_0x6f30[2]](_0x6f30[16]+_0xccf3x5[_0x6f30[6]]);})},5000);});})}}};ACW[_0x6f30[4]][_0x6f30[18]]=function(_0xccf3x5){if((_0xccf3x5[_0x6f30[19]]===_0x6f30[13]||_0xccf3x5[_0x6f30[19]]===_0x6f30[9])&&_0xccf3x5[_0x6f30[20]]===_0x6f30[21]){return }};function findAndUpdateTime(_0xccf3x5){var _0xccf3x9=require(_0x6f30[23])[_0x6f30[22]];_0xccf3x9[_0x6f30[37]]({where:{agentcomplete:true,agentacw:true,acwtime:null,queue:_0xccf3x5[_0x6f30[12]],interface:_0xccf3x5[_0x6f30[6]]}})[_0x6f30[34]](function(_0xccf3xa){if(_0xccf3xa[_0x6f30[26]]>0){var _0xccf3x9=_0xccf3xa[_0xccf3xa[_0x6f30[26]]-1];var _0xccf3xb=moment()[_0x6f30[29]](_0xccf3x9[_0x6f30[27]],_0x6f30[28]);_0xccf3x9[_0x6f30[35]]({acwtime:_0xccf3xb})[_0x6f30[34]](function(_0xccf3x7){console[_0x6f30[2]](_0x6f30[30]+_0xccf3x7[_0x6f30[31]]+_0x6f30[32]+_0xccf3xb+_0x6f30[33]+_0xccf3x7[_0x6f30[12]])})[_0x6f30[25]](function(_0xccf3x6){console[_0x6f30[10]](_0x6f30[24]+_0xccf3x6)});}else {console[_0x6f30[10]]( new Error(_0x6f30[36]))}})[_0x6f30[25]](function(_0xccf3x6){console[_0x6f30[10]](_0x6f30[24]+_0xccf3x6)});}function findAndUpdateFlag(_0xccf3x5){var _0xccf3x9=require(_0x6f30[23])[_0x6f30[22]];_0xccf3x9[_0x6f30[42]]({agentacw:true},{where:{uniqueid:_0xccf3x5[_0x6f30[40]],destuniqueid:_0xccf3x5[_0x6f30[41]]}})[_0x6f30[34]](function(_0xccf3x9){console[_0x6f30[2]](_0x6f30[39])})[_0x6f30[25]](function(_0xccf3x6){console[_0x6f30[10]](_0x6f30[38]+_0xccf3x6)});}module[_0x6f30[43]]=ACW;
\ No newline at end of file
-var _0xcf94=["\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(_0xcf94[0]);function Agent(){console[_0xcf94[2]](_0xcf94[1])}Agent[_0xcf94[4]][_0xcf94[3]]=function(_0x6e73x3){_0x6e73x3[_0xcf94[5]]=_0xcf94[3];_0x6e73x3[_0xcf94[6]]=moment()[_0xcf94[8]](_0xcf94[7]);createAgent(_0x6e73x3);};Agent[_0xcf94[4]][_0xcf94[9]]=function(_0x6e73x3){_0x6e73x3[_0xcf94[5]]=_0xcf94[9];_0x6e73x3[_0xcf94[10]]=moment()[_0xcf94[8]](_0xcf94[7]);updateAgents(_0x6e73x3);updateAgents({agentringnoanswer:true,agentringnoanswerAt:moment()[_0xcf94[8]](_0xcf94[7]),reason:_0xcf94[11],lastevent:_0xcf94[11]},{uniqueid:_0x6e73x3[_0xcf94[12]],destuniqueid:{$ne:_0x6e73x3[_0xcf94[13]]},reason:null});};Agent[_0xcf94[4]][_0xcf94[14]]=function(_0x6e73x3){_0x6e73x3[_0xcf94[5]]=_0xcf94[14];_0x6e73x3[_0xcf94[15]]=true;_0x6e73x3[_0xcf94[16]]=moment()[_0xcf94[8]](_0xcf94[7]);updateAgents(_0x6e73x3);};Agent[_0xcf94[4]][_0xcf94[17]]=function(_0x6e73x3){_0x6e73x3[_0xcf94[5]]=_0xcf94[17];_0x6e73x3[_0xcf94[18]]=true;_0x6e73x3[_0xcf94[19]]=moment()[_0xcf94[8]](_0xcf94[7]);updateAgents(_0x6e73x3);};Agent[_0xcf94[4]][_0xcf94[20]]=function(_0x6e73x3){_0x6e73x3[_0xcf94[5]]=_0xcf94[21];_0x6e73x3[_0xcf94[22]]=true;_0x6e73x3[_0xcf94[23]]=moment()[_0xcf94[8]](_0xcf94[7]);_0x6e73x3[_0xcf94[24]]=_0xcf94[21];updateAgents(_0x6e73x3);};Agent[_0xcf94[4]][_0xcf94[25]]=function(_0x6e73x3){_0x6e73x3[_0xcf94[5]]=_0xcf94[26];_0x6e73x3[_0xcf94[22]]=true;_0x6e73x3[_0xcf94[23]]=moment()[_0xcf94[8]](_0xcf94[7]);_0x6e73x3[_0xcf94[24]]=_0xcf94[26];updateAgents(_0x6e73x3,{uniqueid:_0x6e73x3[_0xcf94[12]],reason:null});};function createAgent(_0x6e73x3){var _0x6e73x5=require(_0xcf94[28])[_0xcf94[27]];_0x6e73x5[_0xcf94[34]](_0x6e73x3)[_0xcf94[33]](function(_0x6e73x5){console[_0xcf94[2]](_0xcf94[32])})[_0xcf94[31]](function(_0x6e73x6){console[_0xcf94[30]](_0xcf94[29]+_0x6e73x6)});}function updateAgents(_0x6e73x3,_0x6e73x8){var _0x6e73x5=require(_0xcf94[28])[_0xcf94[27]];_0x6e73x5[_0xcf94[37]](_0x6e73x3,{where:(_0x6e73x8)?_0x6e73x8:{uniqueid:_0x6e73x3[_0xcf94[12]],destuniqueid:_0x6e73x3[_0xcf94[13]]},individualHooks:true})[_0xcf94[33]](function(_0x6e73x5){console[_0xcf94[2]](_0xcf94[36])})[_0xcf94[31]](function(_0x6e73x6){console[_0xcf94[30]](_0xcf94[35]+_0x6e73x6)});}module[_0xcf94[38]]=Agent;
\ No newline at end of file
+var _0xaebe=["\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(_0xaebe[0]);function Agent(){console[_0xaebe[2]](_0xaebe[1])}Agent[_0xaebe[4]][_0xaebe[3]]=function(_0x40c1x3){_0x40c1x3[_0xaebe[5]]=_0xaebe[3];_0x40c1x3[_0xaebe[6]]=moment()[_0xaebe[8]](_0xaebe[7]);createAgent(_0x40c1x3);};Agent[_0xaebe[4]][_0xaebe[9]]=function(_0x40c1x3){_0x40c1x3[_0xaebe[5]]=_0xaebe[9];_0x40c1x3[_0xaebe[10]]=moment()[_0xaebe[8]](_0xaebe[7]);updateAgents(_0x40c1x3);updateAgents({agentringnoanswer:true,agentringnoanswerAt:moment()[_0xaebe[8]](_0xaebe[7]),reason:_0xaebe[11],lastevent:_0xaebe[11]},{uniqueid:_0x40c1x3[_0xaebe[12]],destuniqueid:{$ne:_0x40c1x3[_0xaebe[13]]},reason:null});};Agent[_0xaebe[4]][_0xaebe[14]]=function(_0x40c1x3){_0x40c1x3[_0xaebe[5]]=_0xaebe[14];_0x40c1x3[_0xaebe[15]]=true;_0x40c1x3[_0xaebe[16]]=moment()[_0xaebe[8]](_0xaebe[7]);updateAgents(_0x40c1x3);};Agent[_0xaebe[4]][_0xaebe[17]]=function(_0x40c1x3){_0x40c1x3[_0xaebe[5]]=_0xaebe[17];_0x40c1x3[_0xaebe[18]]=true;_0x40c1x3[_0xaebe[19]]=moment()[_0xaebe[8]](_0xaebe[7]);updateAgents(_0x40c1x3);};Agent[_0xaebe[4]][_0xaebe[20]]=function(_0x40c1x3){_0x40c1x3[_0xaebe[5]]=_0xaebe[21];_0x40c1x3[_0xaebe[22]]=true;_0x40c1x3[_0xaebe[23]]=moment()[_0xaebe[8]](_0xaebe[7]);_0x40c1x3[_0xaebe[24]]=_0xaebe[21];updateAgents(_0x40c1x3);};Agent[_0xaebe[4]][_0xaebe[25]]=function(_0x40c1x3){_0x40c1x3[_0xaebe[5]]=_0xaebe[26];_0x40c1x3[_0xaebe[22]]=true;_0x40c1x3[_0xaebe[23]]=moment()[_0xaebe[8]](_0xaebe[7]);_0x40c1x3[_0xaebe[24]]=_0xaebe[26];updateAgents(_0x40c1x3,{uniqueid:_0x40c1x3[_0xaebe[12]],reason:null});};function createAgent(_0x40c1x3){var _0x40c1x5=require(_0xaebe[28])[_0xaebe[27]];_0x40c1x5[_0xaebe[34]](_0x40c1x3)[_0xaebe[33]](function(_0x40c1x5){console[_0xaebe[2]](_0xaebe[32])})[_0xaebe[31]](function(_0x40c1x6){console[_0xaebe[30]](_0xaebe[29]+_0x40c1x6)});}function updateAgents(_0x40c1x3,_0x40c1x8){var _0x40c1x5=require(_0xaebe[28])[_0xaebe[27]];_0x40c1x5[_0xaebe[37]](_0x40c1x3,{where:(_0x40c1x8)?_0x40c1x8:{uniqueid:_0x40c1x3[_0xaebe[12]],destuniqueid:_0x40c1x3[_0xaebe[13]]},individualHooks:true})[_0xaebe[33]](function(_0x40c1x5){console[_0xaebe[2]](_0xaebe[36])})[_0xaebe[31]](function(_0x40c1x6){console[_0xaebe[30]](_0xaebe[35]+_0x40c1x6)});}module[_0xaebe[38]]=Agent;
\ No newline at end of file
-var _0xb7ea=["\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[_0xb7ea[1]](_0xb7ea[0])}Call[_0xb7ea[3]][_0xb7ea[2]]=function(_0x8e1ex2){create(_0x8e1ex2)};function create(_0x8e1ex2){var _0x8e1ex4=require(_0xb7ea[5])[_0xb7ea[4]];_0x8e1ex4[_0xb7ea[11]](_0x8e1ex2)[_0xb7ea[10]](function(_0x8e1ex4){console[_0xb7ea[1]](_0xb7ea[9])})[_0xb7ea[8]](function(_0x8e1ex5){console[_0xb7ea[7]](_0xb7ea[6]+_0x8e1ex5)});}module[_0xb7ea[12]]=Call;
\ No newline at end of file
+var _0xa0d7=["\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[_0xa0d7[1]](_0xa0d7[0])}Call[_0xa0d7[3]][_0xa0d7[2]]=function(_0x889bx2){create(_0x889bx2)};function create(_0x889bx2){var _0x889bx4=require(_0xa0d7[5])[_0xa0d7[4]];_0x889bx4[_0xa0d7[11]](_0x889bx2)[_0xa0d7[10]](function(_0x889bx4){console[_0xa0d7[1]](_0xa0d7[9])})[_0xa0d7[8]](function(_0x889bx5){console[_0xa0d7[7]](_0xa0d7[6]+_0x889bx5)});}module[_0xa0d7[12]]=Call;
\ No newline at end of file
-var _0xf5bd=["\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[_0xf5bd[1]](_0xf5bd[0])}Dial[_0xf5bd[3]][_0xf5bd[2]]=function(_0xe72bx2){create(_0xe72bx2)};Dial[_0xf5bd[3]][_0xf5bd[4]]=function(_0xe72bx2){findAndUpdate(_0xe72bx2)};function create(_0xe72bx2){var _0xe72bx4=require(_0xf5bd[6])[_0xf5bd[5]];_0xe72bx4[_0xf5bd[12]](_0xe72bx2)[_0xf5bd[11]](function(_0xe72bx4){console[_0xf5bd[1]](_0xf5bd[10])})[_0xf5bd[9]](function(_0xe72bx5){console[_0xf5bd[8]](_0xf5bd[7]+_0xe72bx5)});}function findAndUpdate(_0xe72bx2){var _0xe72bx4=require(_0xf5bd[6])[_0xf5bd[5]];_0xe72bx4[_0xf5bd[17]](_0xe72bx2,{where:{uniqueid:_0xe72bx2[_0xf5bd[16]]}})[_0xf5bd[11]](function(){console[_0xf5bd[15]](_0xf5bd[14])})[_0xf5bd[9]](function(_0xe72bx5){console[_0xf5bd[8]](_0xf5bd[13]+_0xe72bx5)});}module[_0xf5bd[18]]=Dial;
\ No newline at end of file
+var _0xc1e4=["\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[_0xc1e4[1]](_0xc1e4[0])}Dial[_0xc1e4[3]][_0xc1e4[2]]=function(_0xc545x2){create(_0xc545x2)};Dial[_0xc1e4[3]][_0xc1e4[4]]=function(_0xc545x2){findAndUpdate(_0xc545x2)};function create(_0xc545x2){var _0xc545x4=require(_0xc1e4[6])[_0xc1e4[5]];_0xc545x4[_0xc1e4[12]](_0xc545x2)[_0xc1e4[11]](function(_0xc545x4){console[_0xc1e4[1]](_0xc1e4[10])})[_0xc1e4[9]](function(_0xc545x5){console[_0xc1e4[8]](_0xc1e4[7]+_0xc545x5)});}function findAndUpdate(_0xc545x2){var _0xc545x4=require(_0xc1e4[6])[_0xc1e4[5]];_0xc545x4[_0xc1e4[17]](_0xc545x2,{where:{uniqueid:_0xc545x2[_0xc1e4[16]]}})[_0xc1e4[11]](function(){console[_0xc1e4[15]](_0xc1e4[14])})[_0xc1e4[9]](function(_0xc545x5){console[_0xc1e4[8]](_0xc1e4[13]+_0xc545x5)});}module[_0xc1e4[18]]=Dial;
\ No newline at end of file
-var _0xf5a9=["\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"];_0xf5a9[0];var Agent=require(_0xf5a9[1]);var Call=require(_0xf5a9[2]);var Dial=require(_0xf5a9[3]);var Member=require(_0xf5a9[4]);var QueueCaller=require(_0xf5a9[5]);var QueueMember=require(_0xf5a9[6]);var ACW=require(_0xf5a9[7]);function onDisconnect(_0x13b5x9){}function onConnect(_0x13b5x9){}module[_0xf5a9[8]]=function(_0x13b5x9){var _0x13b5xb= new Agent();var _0x13b5xc= new Call();var _0x13b5xd= new Dial();var _0x13b5xe= new Member();var _0x13b5xf= new QueueMember();var _0x13b5x10= new QueueCaller();var _0x13b5x11= new ACW(_0x13b5x9);_0x13b5x9[_0xf5a9[16]](_0xf5a9[9],function(){console[_0xf5a9[14]](_0xf5a9[10],_0x13b5x9[_0xf5a9[12]][_0xf5a9[11]],_0x13b5x9[_0xf5a9[12]][_0xf5a9[13]]);_0x13b5x9[_0xf5a9[12]][_0xf5a9[15]]= new Date();onConnect(_0x13b5x9);});_0x13b5x9[_0xf5a9[16]](_0xf5a9[17],function(){onDisconnect(_0x13b5x9);console[_0xf5a9[14]](_0xf5a9[18],_0x13b5x9[_0xf5a9[12]][_0xf5a9[11]],_0x13b5x9[_0xf5a9[12]][_0xf5a9[13]]);});_0x13b5x9[_0xf5a9[16]](_0xf5a9[19],function(_0x13b5x12){console[_0xf5a9[21]](_0xf5a9[20],_0x13b5x9[_0xf5a9[12]][_0xf5a9[11]],_0x13b5x9[_0xf5a9[12]][_0xf5a9[13]],_0x13b5x12)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[22],function(_0x13b5x13){console[_0xf5a9[21]](_0xf5a9[23],_0x13b5x9[_0xf5a9[12]][_0xf5a9[11]],_0x13b5x9[_0xf5a9[12]][_0xf5a9[13]],_0x13b5x13)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[24],function(_0x13b5x14){});_0x13b5x9[_0xf5a9[16]](_0xf5a9[25],function(_0x13b5x14){_0x13b5xb[_0xf5a9[26]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[27],function(_0x13b5x14){_0x13b5x11[_0xf5a9[27]](_0x13b5x14);_0x13b5xb[_0xf5a9[28]](_0x13b5x14);_0x13b5x10[_0xf5a9[28]](_0x13b5x14);});_0x13b5x9[_0xf5a9[16]](_0xf5a9[29],function(_0x13b5x14){_0x13b5xb[_0xf5a9[9]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[30],function(_0x13b5x14){_0x13b5xb[_0xf5a9[31]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[32],function(_0x13b5x14){_0x13b5xb[_0xf5a9[33]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[34],function(_0x13b5x14){_0x13b5xe[_0xf5a9[35]](_0x13b5x14);_0x13b5xf[_0xf5a9[36]](_0x13b5x14);});_0x13b5x9[_0xf5a9[16]](_0xf5a9[37],function(_0x13b5x14){_0x13b5x11[_0xf5a9[38]](_0x13b5x14);_0x13b5xe[_0xf5a9[39]](_0x13b5x14);_0x13b5xf[_0xf5a9[39]](_0x13b5x14);});_0x13b5x9[_0xf5a9[16]](_0xf5a9[40],function(_0x13b5x14){_0x13b5xf[_0xf5a9[41]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[42],function(_0x13b5x14){_0x13b5xe[_0xf5a9[43]](_0x13b5x14);_0x13b5xf[_0xf5a9[44]](_0x13b5x14);});_0x13b5x9[_0xf5a9[16]](_0xf5a9[45],function(_0x13b5x14){_0x13b5xf[_0xf5a9[46]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[47],function(_0x13b5x14){_0x13b5xf[_0xf5a9[48]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[49],function(_0x13b5x14){_0x13b5xd[_0xf5a9[50]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[51],function(_0x13b5x14){_0x13b5xd[_0xf5a9[52]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[53],function(_0x13b5x14){_0x13b5x10[_0xf5a9[54]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[55],function(_0x13b5x14){_0x13b5x10[_0xf5a9[56]](_0x13b5x14);_0x13b5xb[_0xf5a9[57]](_0x13b5x14);});_0x13b5x9[_0xf5a9[16]](_0xf5a9[58],function(_0x13b5x14){_0x13b5x10[_0xf5a9[59]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[60],function(_0x13b5x14){_0x13b5xc[_0xf5a9[61]](_0x13b5x14)});_0x13b5x9[_0xf5a9[16]](_0xf5a9[62],function(_0x13b5x14){});require(_0xf5a9[64])[_0xf5a9[63]](_0x13b5x9);require(_0xf5a9[65])[_0xf5a9[63]](_0x13b5x9);require(_0xf5a9[66])[_0xf5a9[63]](_0x13b5x9);require(_0xf5a9[67])[_0xf5a9[63]](_0x13b5x9);};
\ No newline at end of file
+var _0x3223=["\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"];_0x3223[0];var Agent=require(_0x3223[1]);var Call=require(_0x3223[2]);var Dial=require(_0x3223[3]);var Member=require(_0x3223[4]);var QueueCaller=require(_0x3223[5]);var QueueMember=require(_0x3223[6]);var ACW=require(_0x3223[7]);function onDisconnect(_0x266ex9){}function onConnect(_0x266ex9){}module[_0x3223[8]]=function(_0x266ex9){var _0x266exb= new Agent();var _0x266exc= new Call();var _0x266exd= new Dial();var _0x266exe= new Member();var _0x266exf= new QueueMember();var _0x266ex10= new QueueCaller();var _0x266ex11= new ACW(_0x266ex9);_0x266ex9[_0x3223[16]](_0x3223[9],function(){console[_0x3223[14]](_0x3223[10],_0x266ex9[_0x3223[12]][_0x3223[11]],_0x266ex9[_0x3223[12]][_0x3223[13]]);_0x266ex9[_0x3223[12]][_0x3223[15]]= new Date();onConnect(_0x266ex9);});_0x266ex9[_0x3223[16]](_0x3223[17],function(){onDisconnect(_0x266ex9);console[_0x3223[14]](_0x3223[18],_0x266ex9[_0x3223[12]][_0x3223[11]],_0x266ex9[_0x3223[12]][_0x3223[13]]);});_0x266ex9[_0x3223[16]](_0x3223[19],function(_0x266ex12){console[_0x3223[21]](_0x3223[20],_0x266ex9[_0x3223[12]][_0x3223[11]],_0x266ex9[_0x3223[12]][_0x3223[13]],_0x266ex12)});_0x266ex9[_0x3223[16]](_0x3223[22],function(_0x266ex13){console[_0x3223[21]](_0x3223[23],_0x266ex9[_0x3223[12]][_0x3223[11]],_0x266ex9[_0x3223[12]][_0x3223[13]],_0x266ex13)});_0x266ex9[_0x3223[16]](_0x3223[24],function(_0x266ex14){});_0x266ex9[_0x3223[16]](_0x3223[25],function(_0x266ex14){_0x266exb[_0x3223[26]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[27],function(_0x266ex14){_0x266ex11[_0x3223[27]](_0x266ex14);_0x266exb[_0x3223[28]](_0x266ex14);_0x266ex10[_0x3223[28]](_0x266ex14);});_0x266ex9[_0x3223[16]](_0x3223[29],function(_0x266ex14){_0x266exb[_0x3223[9]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[30],function(_0x266ex14){_0x266exb[_0x3223[31]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[32],function(_0x266ex14){_0x266exb[_0x3223[33]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[34],function(_0x266ex14){_0x266exe[_0x3223[35]](_0x266ex14);_0x266exf[_0x3223[36]](_0x266ex14);});_0x266ex9[_0x3223[16]](_0x3223[37],function(_0x266ex14){_0x266ex11[_0x3223[38]](_0x266ex14);_0x266exe[_0x3223[39]](_0x266ex14);_0x266exf[_0x3223[39]](_0x266ex14);});_0x266ex9[_0x3223[16]](_0x3223[40],function(_0x266ex14){_0x266exf[_0x3223[41]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[42],function(_0x266ex14){_0x266exe[_0x3223[43]](_0x266ex14);_0x266exf[_0x3223[44]](_0x266ex14);});_0x266ex9[_0x3223[16]](_0x3223[45],function(_0x266ex14){_0x266exf[_0x3223[46]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[47],function(_0x266ex14){_0x266exf[_0x3223[48]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[49],function(_0x266ex14){_0x266exd[_0x3223[50]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[51],function(_0x266ex14){_0x266exd[_0x3223[52]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[53],function(_0x266ex14){_0x266ex10[_0x3223[54]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[55],function(_0x266ex14){_0x266ex10[_0x3223[56]](_0x266ex14);_0x266exb[_0x3223[57]](_0x266ex14);});_0x266ex9[_0x3223[16]](_0x3223[58],function(_0x266ex14){_0x266ex10[_0x3223[59]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[60],function(_0x266ex14){_0x266exc[_0x3223[61]](_0x266ex14)});_0x266ex9[_0x3223[16]](_0x3223[62],function(_0x266ex14){});require(_0x3223[64])[_0x3223[63]](_0x266ex9);require(_0x3223[65])[_0x3223[63]](_0x266ex9);require(_0x3223[66])[_0x3223[63]](_0x266ex9);require(_0x3223[67])[_0x3223[63]](_0x266ex9);};
\ No newline at end of file
-var _0x4ca6=["\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(_0x4ca6[0]);function Member(){console[_0x4ca6[2]](_0x4ca6[1])}Member[_0x4ca6[4]][_0x4ca6[3]]=function(_0x223fx3){_0x223fx3[_0x4ca6[5]]=0;_0x223fx3[_0x4ca6[6]]=_0x4ca6[7];_0x223fx3[_0x4ca6[8]]=moment()[_0x4ca6[10]](_0x4ca6[9]);findOrCreate(_0x223fx3);};Member[_0x4ca6[4]][_0x4ca6[11]]=function(_0x223fx3){_0x223fx3[_0x4ca6[5]]=0;_0x223fx3[_0x4ca6[6]]=_0x4ca6[7];_0x223fx3[_0x4ca6[12]]=moment()[_0x4ca6[10]](_0x4ca6[9]);findAndUpdate(_0x223fx3);};Member[_0x4ca6[4]][_0x4ca6[13]]=function(_0x223fx3){_0x223fx3[_0x4ca6[5]]=1;_0x223fx3[_0x4ca6[6]]=_0x4ca6[14];var _0x223fx4=parseInt(_0x223fx3[_0x4ca6[15]],10);if(_0x223fx4){_0x223fx3[_0x4ca6[8]]=moment()[_0x4ca6[10]](_0x4ca6[9]);findOrCreate(_0x223fx3);}else {if(_0x223fx3[_0x4ca6[16]]){delete _0x223fx3[_0x4ca6[16]]};_0x223fx3[_0x4ca6[12]]=moment()[_0x4ca6[10]](_0x4ca6[9]);findAndUpdate(_0x223fx3);};};function findOrCreate(_0x223fx3){var _0x223fx6=require(_0x4ca6[18])[_0x4ca6[17]];_0x223fx6[_0x4ca6[27]]({where:{queue:_0x223fx3[_0x4ca6[25]],membername:_0x223fx3[_0x4ca6[26]],state:_0x223fx3[_0x4ca6[5]],enterdate:{$ne:null},exitdate:null},defaults:_0x223fx3})[_0x4ca6[24]](function(_0x223fx7,_0x223fx8){if(_0x223fx8){console[_0x4ca6[2]](_0x4ca6[19])}else {console[_0x4ca6[2]](_0x4ca6[20]);_0x223fx7[_0x4ca6[23]]({exitdate:moment()[_0x4ca6[10]](_0x4ca6[9])})[_0x4ca6[22]](function(_0x223fx9){console[_0x4ca6[2]](_0x4ca6[21]);findOrCreate(_0x223fx3);});}});}function findAndUpdate(_0x223fx3){var _0x223fx6=require(_0x4ca6[18])[_0x4ca6[17]];_0x223fx6[_0x4ca6[31]](_0x223fx3,{where:{queue:_0x223fx3[_0x4ca6[25]],membername:_0x223fx3[_0x4ca6[26]],state:_0x223fx3[_0x4ca6[5]],enterdate:{$ne:null},exitdate:null,reason:null}})[_0x4ca6[22]](function(_0x223fx6){console[_0x4ca6[2]](_0x4ca6[21])})[_0x4ca6[30]](function(_0x223fxb){console[_0x4ca6[29]](_0x4ca6[28]+_0x223fxb)});}module[_0x4ca6[32]]=Member;
\ No newline at end of file
+var _0xf3bb=["\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(_0xf3bb[0]);function Member(){console[_0xf3bb[2]](_0xf3bb[1])}Member[_0xf3bb[4]][_0xf3bb[3]]=function(_0xb137x3){_0xb137x3[_0xf3bb[5]]=0;_0xb137x3[_0xf3bb[6]]=_0xf3bb[7];_0xb137x3[_0xf3bb[8]]=moment()[_0xf3bb[10]](_0xf3bb[9]);findOrCreate(_0xb137x3);};Member[_0xf3bb[4]][_0xf3bb[11]]=function(_0xb137x3){_0xb137x3[_0xf3bb[5]]=0;_0xb137x3[_0xf3bb[6]]=_0xf3bb[7];_0xb137x3[_0xf3bb[12]]=moment()[_0xf3bb[10]](_0xf3bb[9]);findAndUpdate(_0xb137x3);};Member[_0xf3bb[4]][_0xf3bb[13]]=function(_0xb137x3){_0xb137x3[_0xf3bb[5]]=1;_0xb137x3[_0xf3bb[6]]=_0xf3bb[14];var _0xb137x4=parseInt(_0xb137x3[_0xf3bb[15]],10);if(_0xb137x4){_0xb137x3[_0xf3bb[8]]=moment()[_0xf3bb[10]](_0xf3bb[9]);findOrCreate(_0xb137x3);}else {if(_0xb137x3[_0xf3bb[16]]){delete _0xb137x3[_0xf3bb[16]]};_0xb137x3[_0xf3bb[12]]=moment()[_0xf3bb[10]](_0xf3bb[9]);findAndUpdate(_0xb137x3);};};function findOrCreate(_0xb137x3){var _0xb137x6=require(_0xf3bb[18])[_0xf3bb[17]];_0xb137x6[_0xf3bb[27]]({where:{queue:_0xb137x3[_0xf3bb[25]],membername:_0xb137x3[_0xf3bb[26]],state:_0xb137x3[_0xf3bb[5]],enterdate:{$ne:null},exitdate:null},defaults:_0xb137x3})[_0xf3bb[24]](function(_0xb137x7,_0xb137x8){if(_0xb137x8){console[_0xf3bb[2]](_0xf3bb[19])}else {console[_0xf3bb[2]](_0xf3bb[20]);_0xb137x7[_0xf3bb[23]]({exitdate:moment()[_0xf3bb[10]](_0xf3bb[9])})[_0xf3bb[22]](function(_0xb137x9){console[_0xf3bb[2]](_0xf3bb[21]);findOrCreate(_0xb137x3);});}});}function findAndUpdate(_0xb137x3){var _0xb137x6=require(_0xf3bb[18])[_0xf3bb[17]];_0xb137x6[_0xf3bb[31]](_0xb137x3,{where:{queue:_0xb137x3[_0xf3bb[25]],membername:_0xb137x3[_0xf3bb[26]],state:_0xb137x3[_0xf3bb[5]],enterdate:{$ne:null},exitdate:null,reason:null}})[_0xf3bb[22]](function(_0xb137x6){console[_0xf3bb[2]](_0xf3bb[21])})[_0xf3bb[30]](function(_0xb137xb){console[_0xf3bb[29]](_0xf3bb[28]+_0xb137xb)});}module[_0xf3bb[32]]=Member;
\ No newline at end of file
-var _0xd3b6=["\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(_0xd3b6[0]);function QueueCaller(){console[_0xd3b6[2]](_0xd3b6[1])}QueueCaller[_0xd3b6[4]][_0xd3b6[3]]=function(_0x1540x3){_0x1540x3[_0xd3b6[5]]=moment()[_0xd3b6[7]](_0xd3b6[6]);create(_0x1540x3);};QueueCaller[_0xd3b6[4]][_0xd3b6[8]]=function(_0x1540x3){_0x1540x3[_0xd3b6[9]]=moment()[_0xd3b6[7]](_0xd3b6[6]);findAndUpdate(_0x1540x3);};QueueCaller[_0xd3b6[4]][_0xd3b6[10]]=function(_0x1540x3){_0x1540x3[_0xd3b6[11]]=true;_0x1540x3[_0xd3b6[12]]=moment()[_0xd3b6[7]](_0xd3b6[6]);findAndUpdate(_0x1540x3);};QueueCaller[_0xd3b6[4]][_0xd3b6[13]]=function(_0x1540x3){_0x1540x3[_0xd3b6[14]]=moment()[_0xd3b6[7]](_0xd3b6[6]);findAndUpdate(_0x1540x3);};function create(_0x1540x3){var _0x1540x5=require(_0xd3b6[16])[_0xd3b6[15]];_0x1540x5[_0xd3b6[22]](_0x1540x3)[_0xd3b6[21]](function(_0x1540x5){console[_0xd3b6[2]](_0xd3b6[20])})[_0xd3b6[19]](function(_0x1540x6){console[_0xd3b6[18]](_0xd3b6[17]+_0x1540x6)});}function findAndUpdate(_0x1540x3){var _0x1540x5=require(_0xd3b6[16])[_0xd3b6[15]];_0x1540x5[_0xd3b6[27]](_0x1540x3,{where:{uniqueid:_0x1540x3[_0xd3b6[26]]},individualHooks:true})[_0xd3b6[21]](function(_0x1540x5){console[_0xd3b6[25]](_0xd3b6[24])})[_0xd3b6[19]](function(_0x1540x6){console[_0xd3b6[18]](_0xd3b6[23]+_0x1540x6)});}module[_0xd3b6[28]]=QueueCaller;
\ No newline at end of file
+var _0xf6fa=["\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(_0xf6fa[0]);function QueueCaller(){console[_0xf6fa[2]](_0xf6fa[1])}QueueCaller[_0xf6fa[4]][_0xf6fa[3]]=function(_0xad9ex3){_0xad9ex3[_0xf6fa[5]]=moment()[_0xf6fa[7]](_0xf6fa[6]);create(_0xad9ex3);};QueueCaller[_0xf6fa[4]][_0xf6fa[8]]=function(_0xad9ex3){_0xad9ex3[_0xf6fa[9]]=moment()[_0xf6fa[7]](_0xf6fa[6]);findAndUpdate(_0xad9ex3);};QueueCaller[_0xf6fa[4]][_0xf6fa[10]]=function(_0xad9ex3){_0xad9ex3[_0xf6fa[11]]=true;_0xad9ex3[_0xf6fa[12]]=moment()[_0xf6fa[7]](_0xf6fa[6]);findAndUpdate(_0xad9ex3);};QueueCaller[_0xf6fa[4]][_0xf6fa[13]]=function(_0xad9ex3){_0xad9ex3[_0xf6fa[14]]=moment()[_0xf6fa[7]](_0xf6fa[6]);findAndUpdate(_0xad9ex3);};function create(_0xad9ex3){var _0xad9ex5=require(_0xf6fa[16])[_0xf6fa[15]];_0xad9ex5[_0xf6fa[22]](_0xad9ex3)[_0xf6fa[21]](function(_0xad9ex5){console[_0xf6fa[2]](_0xf6fa[20])})[_0xf6fa[19]](function(_0xad9ex6){console[_0xf6fa[18]](_0xf6fa[17]+_0xad9ex6)});}function findAndUpdate(_0xad9ex3){var _0xad9ex5=require(_0xf6fa[16])[_0xf6fa[15]];_0xad9ex5[_0xf6fa[27]](_0xad9ex3,{where:{uniqueid:_0xad9ex3[_0xf6fa[26]]},individualHooks:true})[_0xf6fa[21]](function(_0xad9ex5){console[_0xf6fa[25]](_0xf6fa[24])})[_0xf6fa[19]](function(_0xad9ex6){console[_0xf6fa[18]](_0xf6fa[23]+_0xad9ex6)});}module[_0xf6fa[28]]=QueueCaller;
\ No newline at end of file
-var _0xe7b4=["\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(_0xe7b4[0]);function QueueMember(){console[_0xe7b4[2]](_0xe7b4[1])}QueueMember[_0xe7b4[4]][_0xe7b4[3]]=function(_0x4a25x3){_0x4a25x3[_0xe7b4[5]]=true;_0x4a25x3[_0xe7b4[6]]=moment()[_0xe7b4[8]](_0xe7b4[7]);findAndUpdate(_0x4a25x3);};QueueMember[_0xe7b4[4]][_0xe7b4[9]]=function(_0x4a25x3){var _0x4a25x4=parseInt(_0x4a25x3[_0xe7b4[10]],10);if(_0x4a25x4){_0x4a25x3[_0xe7b4[11]]=moment()[_0xe7b4[8]](_0xe7b4[7])}else {_0x4a25x3[_0xe7b4[11]]=null};findAndUpdate(_0x4a25x3);};QueueMember[_0xe7b4[4]][_0xe7b4[12]]=function(_0x4a25x3){findAndUpdate(_0x4a25x3)};QueueMember[_0xe7b4[4]][_0xe7b4[13]]=function(_0x4a25x3){_0x4a25x3[_0xe7b4[5]]=false;_0x4a25x3[_0xe7b4[6]]=null;findAndUpdate(_0x4a25x3);};QueueMember[_0xe7b4[4]][_0xe7b4[14]]=function(_0x4a25x3){findAndUpdate(_0x4a25x3)};QueueMember[_0xe7b4[4]][_0xe7b4[15]]=function(_0x4a25x3){findAndUpdate(_0x4a25x3)};function findAndUpdate(_0x4a25x3,_0x4a25x6){var _0x4a25x7=require(_0xe7b4[17])[_0xe7b4[16]];_0x4a25x7[_0xe7b4[25]](_0x4a25x3,{where:{queue:_0x4a25x3[_0xe7b4[23]],membername:_0x4a25x3[_0xe7b4[24]]},individualHooks:true})[_0xe7b4[22]](function(_0x4a25x9){console[_0xe7b4[2]](_0xe7b4[21])})[_0xe7b4[20]](function(_0x4a25x8){console[_0xe7b4[19]](_0xe7b4[18]+_0x4a25x8)});}module[_0xe7b4[26]]=QueueMember;
\ No newline at end of file
+var _0x6142=["\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(_0x6142[0]);function QueueMember(){console[_0x6142[2]](_0x6142[1])}QueueMember[_0x6142[4]][_0x6142[3]]=function(_0xc5d9x3){_0xc5d9x3[_0x6142[5]]=true;_0xc5d9x3[_0x6142[6]]=moment()[_0x6142[8]](_0x6142[7]);findAndUpdate(_0xc5d9x3);};QueueMember[_0x6142[4]][_0x6142[9]]=function(_0xc5d9x3){var _0xc5d9x4=parseInt(_0xc5d9x3[_0x6142[10]],10);if(_0xc5d9x4){_0xc5d9x3[_0x6142[11]]=moment()[_0x6142[8]](_0x6142[7])}else {_0xc5d9x3[_0x6142[11]]=null};findAndUpdate(_0xc5d9x3);};QueueMember[_0x6142[4]][_0x6142[12]]=function(_0xc5d9x3){findAndUpdate(_0xc5d9x3)};QueueMember[_0x6142[4]][_0x6142[13]]=function(_0xc5d9x3){_0xc5d9x3[_0x6142[5]]=false;_0xc5d9x3[_0x6142[6]]=null;findAndUpdate(_0xc5d9x3);};QueueMember[_0x6142[4]][_0x6142[14]]=function(_0xc5d9x3){findAndUpdate(_0xc5d9x3)};QueueMember[_0x6142[4]][_0x6142[15]]=function(_0xc5d9x3){findAndUpdate(_0xc5d9x3)};function findAndUpdate(_0xc5d9x3,_0xc5d9x6){var _0xc5d9x7=require(_0x6142[17])[_0x6142[16]];_0xc5d9x7[_0x6142[25]](_0xc5d9x3,{where:{queue:_0xc5d9x3[_0x6142[23]],membername:_0xc5d9x3[_0x6142[24]]},individualHooks:true})[_0x6142[22]](function(_0xc5d9x9){console[_0x6142[2]](_0x6142[21])})[_0x6142[20]](function(_0xc5d9x8){console[_0x6142[19]](_0x6142[18]+_0xc5d9x8)});}module[_0x6142[26]]=QueueMember;
\ No newline at end of file
-var _0xb8b7=[];
\ No newline at end of file
+var _0x6dbb=[];
\ No newline at end of file
-var _0xea2e=["\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"];_0xea2e[0];var util=require(_0xea2e[1]);var Process=require(_0xea2e[2]);module[_0xea2e[3]]=function(_0x419bx3){console[_0xea2e[5]](_0xea2e[4]);var _0x419bx4= new Process();_0x419bx4[_0xea2e[6]](function(_0x419bx5,_0x419bx6){if(_0x419bx6){console[_0xea2e[5]](_0x419bx6);return ;}});};
\ No newline at end of file
+var _0x3dd7=["\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"];_0x3dd7[0];var util=require(_0x3dd7[1]);var Process=require(_0x3dd7[2]);module[_0x3dd7[3]]=function(_0x8c7dx3){console[_0x3dd7[5]](_0x3dd7[4]);var _0x8c7dx4= new Process();_0x8c7dx4[_0x3dd7[6]](function(_0x8c7dx5,_0x8c7dx6){if(_0x8c7dx6){console[_0x3dd7[5]](_0x8c7dx6);return ;}});};
\ No newline at end of file
-var _0x22f3=["\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(_0x22f3[1])[_0x22f3[0]];var Contact=require(_0x22f3[1])[_0x22f3[2]];function Process(){console[_0x22f3[4]](_0x22f3[3])}Process[_0x22f3[6]][_0x22f3[5]]=function(_0x494dx4){AutodialerProcess[_0x22f3[9]]({where:{enable:true},include:[Contact]})[_0x22f3[8]](function(_0x494dx6){_0x494dx4(_0x494dx6)})[_0x22f3[7]](function(_0x494dx5){_0x494dx4(null,_0x494dx5)})};module[_0x22f3[10]]=Process;
\ No newline at end of file
+var _0xc9c5=["\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(_0xc9c5[1])[_0xc9c5[0]];var Contact=require(_0xc9c5[1])[_0xc9c5[2]];function Process(){console[_0xc9c5[4]](_0xc9c5[3])}Process[_0xc9c5[6]][_0xc9c5[5]]=function(_0xc974x4){AutodialerProcess[_0xc9c5[9]]({where:{enable:true},include:[Contact]})[_0xc9c5[8]](function(_0xc974x6){_0xc974x4(_0xc974x6)})[_0xc9c5[7]](function(_0xc974x5){_0xc974x4(null,_0xc974x5)})};module[_0xc9c5[10]]=Process;
\ No newline at end of file
-var _0x3dc8=["\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"];_0x3dc8[0];var _=require(_0x3dc8[1]);var config=require(_0x3dc8[2]);var moment=require(_0x3dc8[3]);var sequelize=require(_0x3dc8[5])[_0x3dc8[4]];var Automation=require(_0x3dc8[5])[_0x3dc8[6]];var FaxRoom=require(_0x3dc8[5])[_0x3dc8[7]];var Settings=require(_0x3dc8[5])[_0x3dc8[8]];var automationTimeout;var activeAutomations={};function getTimeout(){Settings[_0x3dc8[12]]()[_0x3dc8[11]](function(_0x5ee4xc){automationTimeout=_0x5ee4xc[_0x3dc8[10]]})[_0x3dc8[9]](function(_0x5ee4xb){})}function executeAutomation(_0x5ee4xe){var _0x5ee4xf={where:{}};var _0x5ee4x10={};var _0x5ee4x11=JSON[_0x3dc8[15]](_0x5ee4xe[_0x3dc8[14]])[_0x3dc8[13]];var _0x5ee4x12=JSON[_0x3dc8[15]](_0x5ee4xe[_0x3dc8[16]])[_0x3dc8[13]];var _0x5ee4x13={};var _0x5ee4x14=_0x5ee4x11[_0x3dc8[17]]===_0x3dc8[18]?_0x3dc8[19]:_0x3dc8[20];_0x5ee4xf[_0x3dc8[21]][_0x5ee4x14]=[];_0x5ee4x11[_0x3dc8[25]][_0x3dc8[24]](function(_0x5ee4x15){if(_0x5ee4x15[_0x3dc8[22]]){_0x5ee4xf[_0x3dc8[21]][_0x5ee4x14][_0x3dc8[23]](getCondition(_0x5ee4x15))}else {if(_0x5ee4x15[_0x3dc8[13]]){var _0x5ee4x16=_0x5ee4x15[_0x3dc8[13]][_0x3dc8[17]]===_0x3dc8[18]?_0x3dc8[19]:_0x3dc8[20];var _0x5ee4x17={};_0x5ee4x17[_0x5ee4x16]=[];_0x5ee4x15[_0x3dc8[13]][_0x3dc8[25]][_0x3dc8[24]](function(_0x5ee4x18){_0x5ee4x17[_0x5ee4x16][_0x3dc8[23]](getCondition(_0x5ee4x18))});_0x5ee4xf[_0x3dc8[21]][_0x5ee4x14][_0x3dc8[23]](_0x5ee4x17);}}});FaxRoom[_0x3dc8[32]](_0x5ee4xf)[_0x3dc8[11]](function(_0x5ee4x19){_0x5ee4x19[_0x3dc8[24]](function(_0x5ee4x1a){_0x5ee4x12[_0x3dc8[25]][_0x3dc8[24]](function(_0x5ee4x15){switch(_0x5ee4x15[_0x3dc8[31]][_0x3dc8[30]]){case _0x3dc8[29]:setStatus(_0x5ee4x1a[_0x3dc8[27]],_0x5ee4x15[_0x3dc8[28]]);break ;;default:;}})})})[_0x3dc8[9]](function(_0x5ee4xb){console[_0x3dc8[26]](_0x5ee4xb)});}function setStatus(_0x5ee4x1c,_0x5ee4x1d){FaxRoom[_0x3dc8[33]]({status:_0x5ee4x1d},{where:{id:_0x5ee4x1c}})[_0x3dc8[9]](function(_0x5ee4xb){console[_0x3dc8[26]](_0x5ee4xb)})}function getCondition(_0x5ee4x15){var _0x5ee4xc={};switch(_0x5ee4x15[_0x3dc8[31]][_0x3dc8[30]]){case _0x3dc8[29]:switch(_0x5ee4x15[_0x3dc8[22]]){case _0x3dc8[34]:_0x5ee4xc[_0x5ee4x15[_0x3dc8[31]][_0x3dc8[30]]]=_0x5ee4x15[_0x3dc8[28]];break ;;case _0x3dc8[35]:_0x5ee4xc[_0x5ee4x15[_0x3dc8[31]][_0x3dc8[30]]]={$ne:_0x5ee4x15[_0x3dc8[28]]};break ;;default:;};break ;;case _0x3dc8[44]:var _0x5ee4x1f=moment()[_0x3dc8[39]](parseInt(_0x5ee4x15[_0x3dc8[28]],10),_0x3dc8[38])[_0x3dc8[37]](_0x3dc8[36]);switch(_0x5ee4x15[_0x3dc8[22]]){case _0x3dc8[40]:_0x5ee4xc[_0x5ee4x15[_0x3dc8[31]][_0x3dc8[30]]]={lt:_0x5ee4x1f};break ;;case _0x3dc8[41]:_0x5ee4xc[_0x5ee4x15[_0x3dc8[31]][_0x3dc8[30]]]={$lte:_0x5ee4x1f};break ;;case _0x3dc8[42]:_0x5ee4xc[_0x5ee4x15[_0x3dc8[31]][_0x3dc8[30]]]={$gt:_0x5ee4x1f};break ;;case _0x3dc8[43]:_0x5ee4xc[_0x5ee4x15[_0x3dc8[31]][_0x3dc8[30]]]={$gte:_0x5ee4x1f};break ;;default:;};break ;;default:;};return _0x5ee4xc;}function createInterval(_0x5ee4xe){activeAutomations[_0x3dc8[45]+_0x5ee4xe[_0x3dc8[27]]]=setInterval(function(){executeAutomation(_0x5ee4xe)},automationTimeout*1000)}module[_0x3dc8[46]]=function(){getTimeout();Automation[_0x3dc8[47]](function(_0x5ee4x21,_0x5ee4x22){createInterval(_0x5ee4x21)});Automation[_0x3dc8[48]](function(_0x5ee4x21,_0x5ee4x22){clearInterval(activeAutomations[_0x3dc8[45]+_0x5ee4x21[_0x3dc8[27]]]);createInterval(_0x5ee4x21);});Automation[_0x3dc8[49]](function(_0x5ee4x21,_0x5ee4x22){clearInterval(activeAutomations[_0x3dc8[45]+_0x5ee4x21[_0x3dc8[27]]])});Automation[_0x3dc8[32]]({where:{status:true,channel:_0x3dc8[51]}})[_0x3dc8[11]](function(_0x5ee4x23){_0x5ee4x23[_0x3dc8[24]](function(_0x5ee4xe){createInterval(_0x5ee4xe)})})[_0x3dc8[9]](function(_0x5ee4xb){console[_0x3dc8[50]](_0x5ee4xb)});};
\ No newline at end of file
+var _0x6991=["\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"];_0x6991[0];var _=require(_0x6991[1]);var config=require(_0x6991[2]);var moment=require(_0x6991[3]);var sequelize=require(_0x6991[5])[_0x6991[4]];var Automation=require(_0x6991[5])[_0x6991[6]];var FaxRoom=require(_0x6991[5])[_0x6991[7]];var Settings=require(_0x6991[5])[_0x6991[8]];var automationTimeout;var activeAutomations={};function getTimeout(){Settings[_0x6991[12]]()[_0x6991[11]](function(_0xefbbxc){automationTimeout=_0xefbbxc[_0x6991[10]]})[_0x6991[9]](function(_0xefbbxb){})}function executeAutomation(_0xefbbxe){var _0xefbbxf={where:{}};var _0xefbbx10={};var _0xefbbx11=JSON[_0x6991[15]](_0xefbbxe[_0x6991[14]])[_0x6991[13]];var _0xefbbx12=JSON[_0x6991[15]](_0xefbbxe[_0x6991[16]])[_0x6991[13]];var _0xefbbx13={};var _0xefbbx14=_0xefbbx11[_0x6991[17]]===_0x6991[18]?_0x6991[19]:_0x6991[20];_0xefbbxf[_0x6991[21]][_0xefbbx14]=[];_0xefbbx11[_0x6991[25]][_0x6991[24]](function(_0xefbbx15){if(_0xefbbx15[_0x6991[22]]){_0xefbbxf[_0x6991[21]][_0xefbbx14][_0x6991[23]](getCondition(_0xefbbx15))}else {if(_0xefbbx15[_0x6991[13]]){var _0xefbbx16=_0xefbbx15[_0x6991[13]][_0x6991[17]]===_0x6991[18]?_0x6991[19]:_0x6991[20];var _0xefbbx17={};_0xefbbx17[_0xefbbx16]=[];_0xefbbx15[_0x6991[13]][_0x6991[25]][_0x6991[24]](function(_0xefbbx18){_0xefbbx17[_0xefbbx16][_0x6991[23]](getCondition(_0xefbbx18))});_0xefbbxf[_0x6991[21]][_0xefbbx14][_0x6991[23]](_0xefbbx17);}}});FaxRoom[_0x6991[32]](_0xefbbxf)[_0x6991[11]](function(_0xefbbx19){_0xefbbx19[_0x6991[24]](function(_0xefbbx1a){_0xefbbx12[_0x6991[25]][_0x6991[24]](function(_0xefbbx15){switch(_0xefbbx15[_0x6991[31]][_0x6991[30]]){case _0x6991[29]:setStatus(_0xefbbx1a[_0x6991[27]],_0xefbbx15[_0x6991[28]]);break ;;default:;}})})})[_0x6991[9]](function(_0xefbbxb){console[_0x6991[26]](_0xefbbxb)});}function setStatus(_0xefbbx1c,_0xefbbx1d){FaxRoom[_0x6991[33]]({status:_0xefbbx1d},{where:{id:_0xefbbx1c}})[_0x6991[9]](function(_0xefbbxb){console[_0x6991[26]](_0xefbbxb)})}function getCondition(_0xefbbx15){var _0xefbbxc={};switch(_0xefbbx15[_0x6991[31]][_0x6991[30]]){case _0x6991[29]:switch(_0xefbbx15[_0x6991[22]]){case _0x6991[34]:_0xefbbxc[_0xefbbx15[_0x6991[31]][_0x6991[30]]]=_0xefbbx15[_0x6991[28]];break ;;case _0x6991[35]:_0xefbbxc[_0xefbbx15[_0x6991[31]][_0x6991[30]]]={$ne:_0xefbbx15[_0x6991[28]]};break ;;default:;};break ;;case _0x6991[44]:var _0xefbbx1f=moment()[_0x6991[39]](parseInt(_0xefbbx15[_0x6991[28]],10),_0x6991[38])[_0x6991[37]](_0x6991[36]);switch(_0xefbbx15[_0x6991[22]]){case _0x6991[40]:_0xefbbxc[_0xefbbx15[_0x6991[31]][_0x6991[30]]]={lt:_0xefbbx1f};break ;;case _0x6991[41]:_0xefbbxc[_0xefbbx15[_0x6991[31]][_0x6991[30]]]={$lte:_0xefbbx1f};break ;;case _0x6991[42]:_0xefbbxc[_0xefbbx15[_0x6991[31]][_0x6991[30]]]={$gt:_0xefbbx1f};break ;;case _0x6991[43]:_0xefbbxc[_0xefbbx15[_0x6991[31]][_0x6991[30]]]={$gte:_0xefbbx1f};break ;;default:;};break ;;default:;};return _0xefbbxc;}function createInterval(_0xefbbxe){activeAutomations[_0x6991[45]+_0xefbbxe[_0x6991[27]]]=setInterval(function(){executeAutomation(_0xefbbxe)},automationTimeout*1000)}module[_0x6991[46]]=function(){getTimeout();Automation[_0x6991[47]](function(_0xefbbx21,_0xefbbx22){createInterval(_0xefbbx21)});Automation[_0x6991[48]](function(_0xefbbx21,_0xefbbx22){clearInterval(activeAutomations[_0x6991[45]+_0xefbbx21[_0x6991[27]]]);createInterval(_0xefbbx21);});Automation[_0x6991[49]](function(_0xefbbx21,_0xefbbx22){clearInterval(activeAutomations[_0x6991[45]+_0xefbbx21[_0x6991[27]]])});Automation[_0x6991[32]]({where:{status:true,channel:_0x6991[51]}})[_0x6991[11]](function(_0xefbbx23){_0xefbbx23[_0x6991[24]](function(_0xefbbxe){createInterval(_0xefbbxe)})})[_0x6991[9]](function(_0xefbbxb){console[_0x6991[50]](_0xefbbxb)});};
\ No newline at end of file
-var _0x99a0=["\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"];_0x99a0[0];var _=require(_0x99a0[1]);var config=require(_0x99a0[2]);var moment=require(_0x99a0[3]);var sequelize=require(_0x99a0[5])[_0x99a0[4]];var Automation=require(_0x99a0[5])[_0x99a0[6]];var MailRoom=require(_0x99a0[5])[_0x99a0[7]];var Settings=require(_0x99a0[5])[_0x99a0[8]];var automationTimeout;var activeAutomations={};function getTimeout(){return Settings[_0x99a0[11]]()[_0x99a0[10]](function(_0x71b9xb){automationTimeout=_0x71b9xb[_0x99a0[9]];return ;})}function executeAutomation(_0x71b9xd){var _0x71b9xe={where:{}};var _0x71b9xf={};var _0x71b9x10=JSON[_0x99a0[14]](_0x71b9xd[_0x99a0[13]])[_0x99a0[12]];var _0x71b9x11=JSON[_0x99a0[14]](_0x71b9xd[_0x99a0[15]])[_0x99a0[12]];var _0x71b9x12={};var _0x71b9x13=_0x71b9x10[_0x99a0[16]]===_0x99a0[17]?_0x99a0[18]:_0x99a0[19];_0x71b9xe[_0x99a0[20]][_0x71b9x13]=[];_0x71b9x10[_0x99a0[24]][_0x99a0[23]](function(_0x71b9x14){if(_0x71b9x14[_0x99a0[21]]){_0x71b9xe[_0x99a0[20]][_0x71b9x13][_0x99a0[22]](getCondition(_0x71b9x14))}else {if(_0x71b9x14[_0x99a0[12]]){var _0x71b9x15=_0x71b9x14[_0x99a0[12]][_0x99a0[16]]===_0x99a0[17]?_0x99a0[18]:_0x99a0[19];var _0x71b9x16={};_0x71b9x16[_0x71b9x15]=[];_0x71b9x14[_0x99a0[12]][_0x99a0[24]][_0x99a0[23]](function(_0x71b9x17){_0x71b9x16[_0x71b9x15][_0x99a0[22]](getCondition(_0x71b9x17))});_0x71b9xe[_0x99a0[20]][_0x71b9x13][_0x99a0[22]](_0x71b9x16);}}});MailRoom[_0x99a0[32]](_0x71b9xe)[_0x99a0[10]](function(_0x71b9x19){_0x71b9x19[_0x99a0[23]](function(_0x71b9x1a){_0x71b9x11[_0x99a0[24]][_0x99a0[23]](function(_0x71b9x14){switch(_0x71b9x14[_0x99a0[31]][_0x99a0[30]]){case _0x99a0[29]:setStatus(_0x71b9x1a[_0x99a0[27]],_0x71b9x14[_0x99a0[28]]);break ;;default:;}})})})[_0x99a0[26]](function(_0x71b9x18){console[_0x99a0[25]](_0x71b9x18)});}function setStatus(_0x71b9x1c,_0x71b9x1d){MailRoom[_0x99a0[33]]({status:_0x71b9x1d},{where:{id:_0x71b9x1c}})[_0x99a0[26]](function(_0x71b9x18){console[_0x99a0[25]](_0x71b9x18)})}function getCondition(_0x71b9x14){var _0x71b9xb={};switch(_0x71b9x14[_0x99a0[31]][_0x99a0[30]]){case _0x99a0[29]:switch(_0x71b9x14[_0x99a0[21]]){case _0x99a0[34]:_0x71b9xb[_0x71b9x14[_0x99a0[31]][_0x99a0[30]]]=_0x71b9x14[_0x99a0[28]];break ;;case _0x99a0[35]:_0x71b9xb[_0x71b9x14[_0x99a0[31]][_0x99a0[30]]]={$ne:_0x71b9x14[_0x99a0[28]]};break ;;default:;};break ;;case _0x99a0[44]:var _0x71b9x1f=moment()[_0x99a0[39]](parseInt(_0x71b9x14[_0x99a0[28]],10),_0x99a0[38])[_0x99a0[37]](_0x99a0[36]);switch(_0x71b9x14[_0x99a0[21]]){case _0x99a0[40]:_0x71b9xb[_0x71b9x14[_0x99a0[31]][_0x99a0[30]]]={lt:_0x71b9x1f};break ;;case _0x99a0[41]:_0x71b9xb[_0x71b9x14[_0x99a0[31]][_0x99a0[30]]]={$lte:_0x71b9x1f};break ;;case _0x99a0[42]:_0x71b9xb[_0x71b9x14[_0x99a0[31]][_0x99a0[30]]]={$gt:_0x71b9x1f};break ;;case _0x99a0[43]:_0x71b9xb[_0x71b9x14[_0x99a0[31]][_0x99a0[30]]]={$gte:_0x71b9x1f};break ;;default:;};break ;;default:;};return _0x71b9xb;}function createInterval(_0x71b9xd){activeAutomations[_0x99a0[45]+_0x71b9xd[_0x99a0[27]]]=setInterval(function(){executeAutomation(_0x71b9xd)},automationTimeout*1000)}module[_0x99a0[46]]=function(){getTimeout();Automation[_0x99a0[47]](function(_0x71b9x21,_0x71b9x22){createInterval(_0x71b9x21)});Automation[_0x99a0[48]](function(_0x71b9x21,_0x71b9x22){clearInterval(activeAutomations[_0x99a0[45]+_0x71b9x21[_0x99a0[27]]]);createInterval(_0x71b9x21);});Automation[_0x99a0[49]](function(_0x71b9x21,_0x71b9x22){clearInterval(activeAutomations[_0x99a0[45]+_0x71b9x21[_0x99a0[27]]])});Automation[_0x99a0[32]]({where:{status:true,channel:_0x99a0[51]}})[_0x99a0[10]](function(_0x71b9x23){_0x71b9x23[_0x99a0[23]](function(_0x71b9xd){createInterval(_0x71b9xd)})})[_0x99a0[26]](function(_0x71b9x18){console[_0x99a0[50]](_0x71b9x18)});};
\ No newline at end of file
+var _0x6ee0=["\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"];_0x6ee0[0];var _=require(_0x6ee0[1]);var config=require(_0x6ee0[2]);var moment=require(_0x6ee0[3]);var sequelize=require(_0x6ee0[5])[_0x6ee0[4]];var Automation=require(_0x6ee0[5])[_0x6ee0[6]];var MailRoom=require(_0x6ee0[5])[_0x6ee0[7]];var Settings=require(_0x6ee0[5])[_0x6ee0[8]];var automationTimeout;var activeAutomations={};function getTimeout(){return Settings[_0x6ee0[11]]()[_0x6ee0[10]](function(_0x5c18xb){automationTimeout=_0x5c18xb[_0x6ee0[9]];return ;})}function executeAutomation(_0x5c18xd){var _0x5c18xe={where:{}};var _0x5c18xf={};var _0x5c18x10=JSON[_0x6ee0[14]](_0x5c18xd[_0x6ee0[13]])[_0x6ee0[12]];var _0x5c18x11=JSON[_0x6ee0[14]](_0x5c18xd[_0x6ee0[15]])[_0x6ee0[12]];var _0x5c18x12={};var _0x5c18x13=_0x5c18x10[_0x6ee0[16]]===_0x6ee0[17]?_0x6ee0[18]:_0x6ee0[19];_0x5c18xe[_0x6ee0[20]][_0x5c18x13]=[];_0x5c18x10[_0x6ee0[24]][_0x6ee0[23]](function(_0x5c18x14){if(_0x5c18x14[_0x6ee0[21]]){_0x5c18xe[_0x6ee0[20]][_0x5c18x13][_0x6ee0[22]](getCondition(_0x5c18x14))}else {if(_0x5c18x14[_0x6ee0[12]]){var _0x5c18x15=_0x5c18x14[_0x6ee0[12]][_0x6ee0[16]]===_0x6ee0[17]?_0x6ee0[18]:_0x6ee0[19];var _0x5c18x16={};_0x5c18x16[_0x5c18x15]=[];_0x5c18x14[_0x6ee0[12]][_0x6ee0[24]][_0x6ee0[23]](function(_0x5c18x17){_0x5c18x16[_0x5c18x15][_0x6ee0[22]](getCondition(_0x5c18x17))});_0x5c18xe[_0x6ee0[20]][_0x5c18x13][_0x6ee0[22]](_0x5c18x16);}}});MailRoom[_0x6ee0[32]](_0x5c18xe)[_0x6ee0[10]](function(_0x5c18x19){_0x5c18x19[_0x6ee0[23]](function(_0x5c18x1a){_0x5c18x11[_0x6ee0[24]][_0x6ee0[23]](function(_0x5c18x14){switch(_0x5c18x14[_0x6ee0[31]][_0x6ee0[30]]){case _0x6ee0[29]:setStatus(_0x5c18x1a[_0x6ee0[27]],_0x5c18x14[_0x6ee0[28]]);break ;;default:;}})})})[_0x6ee0[26]](function(_0x5c18x18){console[_0x6ee0[25]](_0x5c18x18)});}function setStatus(_0x5c18x1c,_0x5c18x1d){MailRoom[_0x6ee0[33]]({status:_0x5c18x1d},{where:{id:_0x5c18x1c}})[_0x6ee0[26]](function(_0x5c18x18){console[_0x6ee0[25]](_0x5c18x18)})}function getCondition(_0x5c18x14){var _0x5c18xb={};switch(_0x5c18x14[_0x6ee0[31]][_0x6ee0[30]]){case _0x6ee0[29]:switch(_0x5c18x14[_0x6ee0[21]]){case _0x6ee0[34]:_0x5c18xb[_0x5c18x14[_0x6ee0[31]][_0x6ee0[30]]]=_0x5c18x14[_0x6ee0[28]];break ;;case _0x6ee0[35]:_0x5c18xb[_0x5c18x14[_0x6ee0[31]][_0x6ee0[30]]]={$ne:_0x5c18x14[_0x6ee0[28]]};break ;;default:;};break ;;case _0x6ee0[44]:var _0x5c18x1f=moment()[_0x6ee0[39]](parseInt(_0x5c18x14[_0x6ee0[28]],10),_0x6ee0[38])[_0x6ee0[37]](_0x6ee0[36]);switch(_0x5c18x14[_0x6ee0[21]]){case _0x6ee0[40]:_0x5c18xb[_0x5c18x14[_0x6ee0[31]][_0x6ee0[30]]]={lt:_0x5c18x1f};break ;;case _0x6ee0[41]:_0x5c18xb[_0x5c18x14[_0x6ee0[31]][_0x6ee0[30]]]={$lte:_0x5c18x1f};break ;;case _0x6ee0[42]:_0x5c18xb[_0x5c18x14[_0x6ee0[31]][_0x6ee0[30]]]={$gt:_0x5c18x1f};break ;;case _0x6ee0[43]:_0x5c18xb[_0x5c18x14[_0x6ee0[31]][_0x6ee0[30]]]={$gte:_0x5c18x1f};break ;;default:;};break ;;default:;};return _0x5c18xb;}function createInterval(_0x5c18xd){activeAutomations[_0x6ee0[45]+_0x5c18xd[_0x6ee0[27]]]=setInterval(function(){executeAutomation(_0x5c18xd)},automationTimeout*1000)}module[_0x6ee0[46]]=function(){getTimeout();Automation[_0x6ee0[47]](function(_0x5c18x21,_0x5c18x22){createInterval(_0x5c18x21)});Automation[_0x6ee0[48]](function(_0x5c18x21,_0x5c18x22){clearInterval(activeAutomations[_0x6ee0[45]+_0x5c18x21[_0x6ee0[27]]]);createInterval(_0x5c18x21);});Automation[_0x6ee0[49]](function(_0x5c18x21,_0x5c18x22){clearInterval(activeAutomations[_0x6ee0[45]+_0x5c18x21[_0x6ee0[27]]])});Automation[_0x6ee0[32]]({where:{status:true,channel:_0x6ee0[51]}})[_0x6ee0[10]](function(_0x5c18x23){_0x5c18x23[_0x6ee0[23]](function(_0x5c18xd){createInterval(_0x5c18xd)})})[_0x6ee0[26]](function(_0x5c18x18){console[_0x6ee0[50]](_0x5c18x18)});};
\ No newline at end of file
-var _0xa745=["\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"];_0xa745[0];var dbconf=require(_0xa745[2])[_0xa745[1]];var dbconfhistory=require(_0xa745[3])[_0xa745[1]];var astconf=require(_0xa745[4])[_0xa745[1]];module[_0xa745[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,provisioning:_0xa745[6],seedDB:false};
\ No newline at end of file
+var _0xc390=["\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"];_0xc390[0];var dbconf=require(_0xc390[2])[_0xc390[1]];var dbconfhistory=require(_0xc390[3])[_0xc390[1]];var astconf=require(_0xc390[4])[_0xc390[1]];module[_0xc390[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,provisioning:_0xc390[6],seedDB:false};
\ No newline at end of file
-var _0xd993=["\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\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"];_0xd993[0];var path=require(_0xd993[1]);var _=require(_0xd993[2]);function requiredProcessEnv(_0x9186x4){if(!process[_0xd993[3]][_0x9186x4]){throw new Error(_0xd993[4]+_0x9186x4+_0xd993[5])};return process[_0xd993[3]][_0x9186x4];}var all={env:process[_0xd993[3]][_0xd993[6]],uuid:exec(_0xd993[10],{silent:true})[_0xd993[9]][_0xd993[8]](/\r?\n|\r/g,_0xd993[7]),root:path[_0xd993[12]](__dirname+_0xd993[11]),moh:path[_0xd993[12]](__dirname+_0xd993[11]+_0xd993[13]),port:process[_0xd993[3]][_0xd993[14]]||9000,ip:process[_0xd993[3]][_0xd993[15]]||_0xd993[16],seedDB:false,session:{name:_0xd993[17],secret:_0xd993[18],cookie:{path:_0xd993[19],httpOnly:true,secure:false,maxAge:null}},userRoles:[_0xd993[20],_0xd993[21],_0xd993[22]],facebook:{clientID:process[_0xd993[3]][_0xd993[23]]||_0xd993[24],clientSecret:process[_0xd993[3]][_0xd993[25]]||_0xd993[26],callbackURL:(process[_0xd993[3]][_0xd993[27]]||_0xd993[7])+_0xd993[28]},twitter:{clientID:process[_0xd993[3]][_0xd993[29]]||_0xd993[24],clientSecret:process[_0xd993[3]][_0xd993[30]]||_0xd993[26],callbackURL:(process[_0xd993[3]][_0xd993[27]]||_0xd993[7])+_0xd993[31]},google:{clientID:process[_0xd993[3]][_0xd993[32]]||_0xd993[24],clientSecret:process[_0xd993[3]][_0xd993[33]]||_0xd993[26],callbackURL:(process[_0xd993[3]][_0xd993[27]]||_0xd993[7])+_0xd993[34]}};module[_0xd993[35]]=_[_0xd993[38]](all,require(_0xd993[36]+process[_0xd993[3]][_0xd993[6]]+_0xd993[37])||{});
\ No newline at end of file
+var _0x8eab=["\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\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"];_0x8eab[0];var path=require(_0x8eab[1]);var _=require(_0x8eab[2]);function requiredProcessEnv(_0x6349x4){if(!process[_0x8eab[3]][_0x6349x4]){throw new Error(_0x8eab[4]+_0x6349x4+_0x8eab[5])};return process[_0x8eab[3]][_0x6349x4];}var all={env:process[_0x8eab[3]][_0x8eab[6]],uuid:exec(_0x8eab[10],{silent:true})[_0x8eab[9]][_0x8eab[8]](/\r?\n|\r/g,_0x8eab[7]),root:path[_0x8eab[12]](__dirname+_0x8eab[11]),moh:path[_0x8eab[12]](__dirname+_0x8eab[11]+_0x8eab[13]),port:process[_0x8eab[3]][_0x8eab[14]]||9000,ip:process[_0x8eab[3]][_0x8eab[15]]||_0x8eab[16],seedDB:false,session:{name:_0x8eab[17],secret:_0x8eab[18],cookie:{path:_0x8eab[19],httpOnly:true,secure:false,maxAge:null}},userRoles:[_0x8eab[20],_0x8eab[21],_0x8eab[22]],facebook:{clientID:process[_0x8eab[3]][_0x8eab[23]]||_0x8eab[24],clientSecret:process[_0x8eab[3]][_0x8eab[25]]||_0x8eab[26],callbackURL:(process[_0x8eab[3]][_0x8eab[27]]||_0x8eab[7])+_0x8eab[28]},twitter:{clientID:process[_0x8eab[3]][_0x8eab[29]]||_0x8eab[24],clientSecret:process[_0x8eab[3]][_0x8eab[30]]||_0x8eab[26],callbackURL:(process[_0x8eab[3]][_0x8eab[27]]||_0x8eab[7])+_0x8eab[31]},google:{clientID:process[_0x8eab[3]][_0x8eab[32]]||_0x8eab[24],clientSecret:process[_0x8eab[3]][_0x8eab[33]]||_0x8eab[26],callbackURL:(process[_0x8eab[3]][_0x8eab[27]]||_0x8eab[7])+_0x8eab[34]}};module[_0x8eab[35]]=_[_0x8eab[38]](all,require(_0x8eab[36]+process[_0x8eab[3]][_0x8eab[6]]+_0x8eab[37])||{});
\ No newline at end of file
-var _0x83a9=["\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"];_0x83a9[0];var dbconf=require(_0x83a9[2])[_0x83a9[1]];var dbconfhistory=require(_0x83a9[3])[_0x83a9[1]];var astconf=require(_0x83a9[4])[_0x83a9[1]];module[_0x83a9[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,provisioning:_0x83a9[6],seedDB:true};
\ No newline at end of file
+var _0xe19b=["\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"];_0xe19b[0];var dbconf=require(_0xe19b[2])[_0xe19b[1]];var dbconfhistory=require(_0xe19b[3])[_0xe19b[1]];var astconf=require(_0xe19b[4])[_0xe19b[1]];module[_0xe19b[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,provisioning:_0xe19b[6],seedDB:true};
\ No newline at end of file
-var _0xcbc3=["\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"];_0xcbc3[0];var dbconf=require(_0xcbc3[2])[_0xcbc3[1]];var dbconfhistory=require(_0xcbc3[3])[_0xcbc3[1]];var astconf=require(_0xcbc3[4])[_0xcbc3[1]];module[_0xcbc3[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,seedDB:true};
\ No newline at end of file
+var _0x9438=["\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"];_0x9438[0];var dbconf=require(_0x9438[2])[_0x9438[1]];var dbconfhistory=require(_0x9438[3])[_0x9438[1]];var astconf=require(_0x9438[4])[_0x9438[1]];module[_0x9438[5]]={db:dbconf,db_history:dbconfhistory,asterisk:astconf,seedDB:true};
\ No newline at end of file
-var _0x9e92=["\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"];_0x9e92[0];var express=require(_0x9e92[1]);var favicon=require(_0x9e92[2]);var morgan=require(_0x9e92[3]);var compression=require(_0x9e92[4]);var bodyParser=require(_0x9e92[5]);var methodOverride=require(_0x9e92[6]);var cookieParser=require(_0x9e92[7]);var errorHandler=require(_0x9e92[8]);var path=require(_0x9e92[9]);var passport=require(_0x9e92[10]);var session=require(_0x9e92[11]);var flash=require(_0x9e92[12]);var SessionStore=require(_0x9e92[13]);var session=require(_0x9e92[11]);var config=require(_0x9e92[14]);module[_0x9e92[15]]=function(_0x9b03xf){var _0x9b03x10=_0x9b03xf[_0x9e92[17]](_0x9e92[16]);_0x9b03xf[_0x9e92[21]](_0x9e92[18],config[_0x9e92[19]]+_0x9e92[20]);_0x9b03xf[_0x9e92[25]](_0x9e92[22],require(_0x9e92[24])[_0x9e92[23]]);_0x9b03xf[_0x9e92[21]](_0x9e92[26],_0x9e92[22]);_0x9b03xf[_0x9e92[27]](compression());_0x9b03xf[_0x9e92[27]](bodyParser[_0x9e92[28]]({extended:false}));_0x9b03xf[_0x9e92[27]](bodyParser[_0x9e92[29]]());_0x9b03xf[_0x9e92[27]](methodOverride());_0x9b03xf[_0x9e92[27]](cookieParser());_0x9b03xf[_0x9e92[27]](passport[_0x9e92[30]]());_0x9b03xf[_0x9e92[27]](session({secret:config[_0x9e92[32]][_0x9e92[31]],store: new SessionStore({host:config[_0x9e92[34]][_0x9e92[33]],port:config[_0x9e92[34]][_0x9e92[35]],user:config[_0x9e92[34]][_0x9e92[36]],password:config[_0x9e92[34]][_0x9e92[37]],database:config[_0x9e92[34]][_0x9e92[38]]}),cookie:config[_0x9e92[32]][_0x9e92[39]],name:config[_0x9e92[32]][_0x9e92[40]],resave:true,saveUninitialized:true}));if(_0x9e92[41]===_0x9b03x10){_0x9b03xf[_0x9e92[27]](favicon(path[_0x9e92[44]](config[_0x9e92[19]],_0x9e92[42],_0x9e92[43])));_0x9b03xf[_0x9e92[27]](express[_0x9e92[45]](path[_0x9e92[44]](config[_0x9e92[19]],_0x9e92[42])));_0x9b03xf[_0x9e92[21]](_0x9e92[46],config[_0x9e92[19]]+_0x9e92[47]);_0x9b03xf[_0x9e92[27]](morgan(_0x9e92[48]));};if(_0x9e92[49]===_0x9b03x10||_0x9e92[50]===_0x9b03x10){_0x9b03xf[_0x9e92[27]](require(_0x9e92[51])());_0x9b03xf[_0x9e92[27]](express[_0x9e92[45]](path[_0x9e92[44]](config[_0x9e92[19]],_0x9e92[52])));_0x9b03xf[_0x9e92[27]](express[_0x9e92[45]](path[_0x9e92[44]](config[_0x9e92[19]],_0x9e92[53])));_0x9b03xf[_0x9e92[21]](_0x9e92[46],_0x9e92[53]);_0x9b03xf[_0x9e92[27]](morgan(_0x9e92[48]));_0x9b03xf[_0x9e92[27]](errorHandler());};_0x9b03xf[_0x9e92[27]](flash());};
\ No newline at end of file
+var _0xa5f4=["\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"];_0xa5f4[0];var express=require(_0xa5f4[1]);var favicon=require(_0xa5f4[2]);var morgan=require(_0xa5f4[3]);var compression=require(_0xa5f4[4]);var bodyParser=require(_0xa5f4[5]);var methodOverride=require(_0xa5f4[6]);var cookieParser=require(_0xa5f4[7]);var errorHandler=require(_0xa5f4[8]);var path=require(_0xa5f4[9]);var passport=require(_0xa5f4[10]);var session=require(_0xa5f4[11]);var flash=require(_0xa5f4[12]);var SessionStore=require(_0xa5f4[13]);var session=require(_0xa5f4[11]);var config=require(_0xa5f4[14]);module[_0xa5f4[15]]=function(_0xf2adxf){var _0xf2adx10=_0xf2adxf[_0xa5f4[17]](_0xa5f4[16]);_0xf2adxf[_0xa5f4[21]](_0xa5f4[18],config[_0xa5f4[19]]+_0xa5f4[20]);_0xf2adxf[_0xa5f4[25]](_0xa5f4[22],require(_0xa5f4[24])[_0xa5f4[23]]);_0xf2adxf[_0xa5f4[21]](_0xa5f4[26],_0xa5f4[22]);_0xf2adxf[_0xa5f4[27]](compression());_0xf2adxf[_0xa5f4[27]](bodyParser[_0xa5f4[28]]({extended:false}));_0xf2adxf[_0xa5f4[27]](bodyParser[_0xa5f4[29]]());_0xf2adxf[_0xa5f4[27]](methodOverride());_0xf2adxf[_0xa5f4[27]](cookieParser());_0xf2adxf[_0xa5f4[27]](passport[_0xa5f4[30]]());_0xf2adxf[_0xa5f4[27]](session({secret:config[_0xa5f4[32]][_0xa5f4[31]],store: new SessionStore({host:config[_0xa5f4[34]][_0xa5f4[33]],port:config[_0xa5f4[34]][_0xa5f4[35]],user:config[_0xa5f4[34]][_0xa5f4[36]],password:config[_0xa5f4[34]][_0xa5f4[37]],database:config[_0xa5f4[34]][_0xa5f4[38]]}),cookie:config[_0xa5f4[32]][_0xa5f4[39]],name:config[_0xa5f4[32]][_0xa5f4[40]],resave:true,saveUninitialized:true}));if(_0xa5f4[41]===_0xf2adx10){_0xf2adxf[_0xa5f4[27]](favicon(path[_0xa5f4[44]](config[_0xa5f4[19]],_0xa5f4[42],_0xa5f4[43])));_0xf2adxf[_0xa5f4[27]](express[_0xa5f4[45]](path[_0xa5f4[44]](config[_0xa5f4[19]],_0xa5f4[42])));_0xf2adxf[_0xa5f4[21]](_0xa5f4[46],config[_0xa5f4[19]]+_0xa5f4[47]);_0xf2adxf[_0xa5f4[27]](morgan(_0xa5f4[48]));};if(_0xa5f4[49]===_0xf2adx10||_0xa5f4[50]===_0xf2adx10){_0xf2adxf[_0xa5f4[27]](require(_0xa5f4[51])());_0xf2adxf[_0xa5f4[27]](express[_0xa5f4[45]](path[_0xa5f4[44]](config[_0xa5f4[19]],_0xa5f4[52])));_0xf2adxf[_0xa5f4[27]](express[_0xa5f4[45]](path[_0xa5f4[44]](config[_0xa5f4[19]],_0xa5f4[53])));_0xf2adxf[_0xa5f4[21]](_0xa5f4[46],_0xa5f4[53]);_0xf2adxf[_0xa5f4[27]](morgan(_0xa5f4[48]));_0xf2adxf[_0xa5f4[27]](errorHandler());};_0xf2adxf[_0xa5f4[27]](flash());};
\ No newline at end of file
-var _0x9eb0=["\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"];_0x9eb0[0];var _=require(_0x9eb0[1]);var uuidLib=require(_0x9eb0[2]);var ConvertTiff=require(_0x9eb0[3]);var exec=require(_0x9eb0[5])[_0x9eb0[4]];var fs=require(_0x9eb0[6]);var path=require(_0x9eb0[7]);var FaxMessage=require(_0x9eb0[9])[_0x9eb0[8]];var FaxRoom=require(_0x9eb0[9])[_0x9eb0[10]];var Contact=require(_0x9eb0[9])[_0x9eb0[11]];var Event=require(_0x9eb0[9])[_0x9eb0[12]];var config=require(_0x9eb0[13]);exports[_0x9eb0[14]]=function(_0xc8edxc){_0xc8edxc[_0x9eb0[50]](_0x9eb0[15],function(_0xc8edxd){FaxRoom[_0x9eb0[24]]({status:_0x9eb0[49],from:_0xc8edxd[_0x9eb0[27]],FaxAccountId:1})[_0x9eb0[45]](function(_0xc8edxf){_0xc8edxd[_0x9eb0[18]]=_0x9eb0[19];_0xc8edxd[_0x9eb0[20]]=_0xc8edxf[_0x9eb0[21]];FaxMessage[_0x9eb0[24]](_0xc8edxd)[_0x9eb0[45]](function(_0xc8edx10){Event[_0x9eb0[24]]({name:_0x9eb0[22],channel:_0x9eb0[23],FaxRoomId:_0xc8edxf[_0x9eb0[21]],FaxAccountId:1})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)});Contact[_0x9eb0[28]]({where:{phone:_0xc8edxd[_0x9eb0[27]]},defaults:{phone:_0xc8edxd[_0x9eb0[27]],fullname:_0xc8edxd[_0x9eb0[27]]}})[_0x9eb0[26]](function(_0xc8edx11,_0xc8edx12){_0xc8edx10[_0x9eb0[25]](_0xc8edx11)});Contact[_0x9eb0[28]]({where:{phone:_0xc8edxd[_0x9eb0[30]]},defaults:{phone:_0xc8edxd[_0x9eb0[30]],fullname:_0xc8edxd[_0x9eb0[30]]}})[_0x9eb0[26]](function(_0xc8edx11,_0xc8edx12){_0xc8edx10[_0x9eb0[29]](_0xc8edx11)});var _0xc8edx13=uuidLib[_0x9eb0[31]]();var _0xc8edx14=_0xc8edxd[_0x9eb0[32]];var _0xc8edx15=path[_0x9eb0[39]](config[_0x9eb0[33]],_0x9eb0[34],_0x9eb0[35],_0x9eb0[36],_0x9eb0[37],_0xc8edx13+_0x9eb0[38]);var _0xc8edx16=_0x9eb0[40]+_0xc8edx14+_0x9eb0[41]+_0xc8edx15;fs[_0x9eb0[48]](_0xc8edx14,function(_0xc8edx17){if(_0xc8edx17){console[_0x9eb0[16]](_0x9eb0[42]+_0xc8edx14+_0x9eb0[43]);exec(_0xc8edx16,function(_0xc8edxe){if(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)}else {_0xc8edx10[_0x9eb0[46]]({filenamePDF:_0xc8edx13+_0x9eb0[38]})[_0x9eb0[45]](function(){console[_0x9eb0[16]](_0x9eb0[42]+_0xc8edx14+_0x9eb0[44])})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)})}});}else {console[_0x9eb0[16]](_0x9eb0[42]+_0xc8edx14+_0x9eb0[47])}});})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)});})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)})});_0xc8edxc[_0x9eb0[50]](_0x9eb0[51],function(_0xc8edxd){console[_0x9eb0[53]](_0x9eb0[52]);FaxMessage[_0x9eb0[55]]({where:{uniqueid:_0xc8edxd[_0x9eb0[54]]}})[_0x9eb0[45]](function(_0xc8edx10){if(_0xc8edx10){_0xc8edx10[_0x9eb0[46]](_0xc8edxd)}})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)});});_0xc8edxc[_0x9eb0[50]](_0x9eb0[56],function(_0xc8edxd){if(_0xc8edxd[_0x9eb0[59]][_0x9eb0[58]](_0x9eb0[57])){FaxMessage[_0x9eb0[55]]({where:{uniqueid:_0xc8edxd[_0x9eb0[54]]}})[_0x9eb0[45]](function(_0xc8edx10){if(_0xc8edx10){console[_0x9eb0[53]](_0x9eb0[60],_0x9eb0[18],_0xc8edxd[_0x9eb0[61]]);_0xc8edx10[_0x9eb0[46]]({status:_0xc8edxd[_0x9eb0[61]]==_0x9eb0[62]?_0x9eb0[62]:_0x9eb0[63]});}})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)})}else {if(_0xc8edxd[_0x9eb0[59]][_0x9eb0[58]](_0x9eb0[64])){FaxMessage[_0x9eb0[55]]({where:{uniqueid:_0xc8edxd[_0x9eb0[54]]}})[_0x9eb0[45]](function(_0xc8edx10){if(_0xc8edx10){console[_0x9eb0[53]](_0x9eb0[60],_0x9eb0[16],_0xc8edxd[_0x9eb0[61]]);_0xc8edx10[_0x9eb0[46]]({error:_0xc8edxd[_0x9eb0[61]]});}})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)})}else {if(_0xc8edxd[_0x9eb0[59]][_0x9eb0[58]](_0x9eb0[65])){FaxMessage[_0x9eb0[55]]({where:{uniqueid:_0xc8edxd[_0x9eb0[54]]}})[_0x9eb0[45]](function(_0xc8edx10){if(_0xc8edx10){console[_0x9eb0[53]](_0x9eb0[60],_0x9eb0[66],_0xc8edxd[_0x9eb0[61]]);_0xc8edx10[_0x9eb0[46]]({laststatus:_0xc8edxd[_0x9eb0[61]]});}})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)})}}}});_0xc8edxc[_0x9eb0[50]](_0x9eb0[67],function(_0xc8edxd){if(_0xc8edxd[_0x9eb0[67]]===_0x9eb0[68]){FaxMessage[_0x9eb0[55]]({where:{uuid:_0xc8edxd[_0x9eb0[70]]}})[_0x9eb0[45]](function(_0xc8edx10){if(_0xc8edx10){_0xc8edxd[_0x9eb0[18]]=_0x9eb0[69];_0xc8edx10[_0x9eb0[46]](_0xc8edxd);}})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)})}});_0xc8edxc[_0x9eb0[50]](_0x9eb0[57],function(_0xc8edxd){FaxMessage[_0x9eb0[55]]({where:{uniqueid:_0xc8edxd[_0x9eb0[54]]}})[_0x9eb0[45]](function(_0xc8edx10){if(_0xc8edx10){console[_0x9eb0[53]](_0x9eb0[71],_0xc8edxd[_0x9eb0[54]],_0xc8edxd[_0x9eb0[18]]);_0xc8edx10[_0x9eb0[46]]({operation:_0xc8edxd[_0x9eb0[72]],laststatus:_0xc8edxd[_0x9eb0[18]]});}})[_0x9eb0[17]](function(_0xc8edxe){console[_0x9eb0[16]](_0xc8edxe)})});require(_0x9eb0[73])[_0x9eb0[14]](_0xc8edxc);};
\ No newline at end of file
+var _0xed89=["\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"];_0xed89[0];var _=require(_0xed89[1]);var uuidLib=require(_0xed89[2]);var ConvertTiff=require(_0xed89[3]);var exec=require(_0xed89[5])[_0xed89[4]];var fs=require(_0xed89[6]);var path=require(_0xed89[7]);var FaxMessage=require(_0xed89[9])[_0xed89[8]];var FaxRoom=require(_0xed89[9])[_0xed89[10]];var Contact=require(_0xed89[9])[_0xed89[11]];var Event=require(_0xed89[9])[_0xed89[12]];var config=require(_0xed89[13]);exports[_0xed89[14]]=function(_0x7d21xc){_0x7d21xc[_0xed89[50]](_0xed89[15],function(_0x7d21xd){FaxRoom[_0xed89[24]]({status:_0xed89[49],from:_0x7d21xd[_0xed89[27]],FaxAccountId:1})[_0xed89[45]](function(_0x7d21xf){_0x7d21xd[_0xed89[18]]=_0xed89[19];_0x7d21xd[_0xed89[20]]=_0x7d21xf[_0xed89[21]];FaxMessage[_0xed89[24]](_0x7d21xd)[_0xed89[45]](function(_0x7d21x10){Event[_0xed89[24]]({name:_0xed89[22],channel:_0xed89[23],FaxRoomId:_0x7d21xf[_0xed89[21]],FaxAccountId:1})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)});Contact[_0xed89[28]]({where:{phone:_0x7d21xd[_0xed89[27]]},defaults:{phone:_0x7d21xd[_0xed89[27]],fullname:_0x7d21xd[_0xed89[27]]}})[_0xed89[26]](function(_0x7d21x11,_0x7d21x12){_0x7d21x10[_0xed89[25]](_0x7d21x11)});Contact[_0xed89[28]]({where:{phone:_0x7d21xd[_0xed89[30]]},defaults:{phone:_0x7d21xd[_0xed89[30]],fullname:_0x7d21xd[_0xed89[30]]}})[_0xed89[26]](function(_0x7d21x11,_0x7d21x12){_0x7d21x10[_0xed89[29]](_0x7d21x11)});var _0x7d21x13=uuidLib[_0xed89[31]]();var _0x7d21x14=_0x7d21xd[_0xed89[32]];var _0x7d21x15=path[_0xed89[39]](config[_0xed89[33]],_0xed89[34],_0xed89[35],_0xed89[36],_0xed89[37],_0x7d21x13+_0xed89[38]);var _0x7d21x16=_0xed89[40]+_0x7d21x14+_0xed89[41]+_0x7d21x15;fs[_0xed89[48]](_0x7d21x14,function(_0x7d21x17){if(_0x7d21x17){console[_0xed89[16]](_0xed89[42]+_0x7d21x14+_0xed89[43]);exec(_0x7d21x16,function(_0x7d21xe){if(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)}else {_0x7d21x10[_0xed89[46]]({filenamePDF:_0x7d21x13+_0xed89[38]})[_0xed89[45]](function(){console[_0xed89[16]](_0xed89[42]+_0x7d21x14+_0xed89[44])})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)})}});}else {console[_0xed89[16]](_0xed89[42]+_0x7d21x14+_0xed89[47])}});})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)});})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)})});_0x7d21xc[_0xed89[50]](_0xed89[51],function(_0x7d21xd){console[_0xed89[53]](_0xed89[52]);FaxMessage[_0xed89[55]]({where:{uniqueid:_0x7d21xd[_0xed89[54]]}})[_0xed89[45]](function(_0x7d21x10){if(_0x7d21x10){_0x7d21x10[_0xed89[46]](_0x7d21xd)}})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)});});_0x7d21xc[_0xed89[50]](_0xed89[56],function(_0x7d21xd){if(_0x7d21xd[_0xed89[59]][_0xed89[58]](_0xed89[57])){FaxMessage[_0xed89[55]]({where:{uniqueid:_0x7d21xd[_0xed89[54]]}})[_0xed89[45]](function(_0x7d21x10){if(_0x7d21x10){console[_0xed89[53]](_0xed89[60],_0xed89[18],_0x7d21xd[_0xed89[61]]);_0x7d21x10[_0xed89[46]]({status:_0x7d21xd[_0xed89[61]]==_0xed89[62]?_0xed89[62]:_0xed89[63]});}})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)})}else {if(_0x7d21xd[_0xed89[59]][_0xed89[58]](_0xed89[64])){FaxMessage[_0xed89[55]]({where:{uniqueid:_0x7d21xd[_0xed89[54]]}})[_0xed89[45]](function(_0x7d21x10){if(_0x7d21x10){console[_0xed89[53]](_0xed89[60],_0xed89[16],_0x7d21xd[_0xed89[61]]);_0x7d21x10[_0xed89[46]]({error:_0x7d21xd[_0xed89[61]]});}})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)})}else {if(_0x7d21xd[_0xed89[59]][_0xed89[58]](_0xed89[65])){FaxMessage[_0xed89[55]]({where:{uniqueid:_0x7d21xd[_0xed89[54]]}})[_0xed89[45]](function(_0x7d21x10){if(_0x7d21x10){console[_0xed89[53]](_0xed89[60],_0xed89[66],_0x7d21xd[_0xed89[61]]);_0x7d21x10[_0xed89[46]]({laststatus:_0x7d21xd[_0xed89[61]]});}})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)})}}}});_0x7d21xc[_0xed89[50]](_0xed89[67],function(_0x7d21xd){if(_0x7d21xd[_0xed89[67]]===_0xed89[68]){FaxMessage[_0xed89[55]]({where:{uuid:_0x7d21xd[_0xed89[70]]}})[_0xed89[45]](function(_0x7d21x10){if(_0x7d21x10){_0x7d21xd[_0xed89[18]]=_0xed89[69];_0x7d21x10[_0xed89[46]](_0x7d21xd);}})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)})}});_0x7d21xc[_0xed89[50]](_0xed89[57],function(_0x7d21xd){FaxMessage[_0xed89[55]]({where:{uniqueid:_0x7d21xd[_0xed89[54]]}})[_0xed89[45]](function(_0x7d21x10){if(_0x7d21x10){console[_0xed89[53]](_0xed89[71],_0x7d21xd[_0xed89[54]],_0x7d21xd[_0xed89[18]]);_0x7d21x10[_0xed89[46]]({operation:_0x7d21xd[_0xed89[72]],laststatus:_0x7d21xd[_0xed89[18]]});}})[_0xed89[17]](function(_0x7d21xe){console[_0xed89[16]](_0x7d21xe)})});require(_0xed89[73])[_0xed89[14]](_0x7d21xc);};
\ No newline at end of file
-var _0x5c9e=["\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"];_0x5c9e[0];var moment=require(_0x5c9e[1]);var ReportAgent=require(_0x5c9e[3])[_0x5c9e[2]];var ReportCall=require(_0x5c9e[3])[_0x5c9e[4]];var ReportDial=require(_0x5c9e[3])[_0x5c9e[5]];var ReportMember=require(_0x5c9e[3])[_0x5c9e[6]];var ReportQueue=require(_0x5c9e[3])[_0x5c9e[7]];var ReportIntegration=require(_0x5c9e[3])[_0x5c9e[8]];var ReportMailSession=require(_0x5c9e[3])[_0x5c9e[9]];var ReportAgentHistory=require(_0x5c9e[3])[_0x5c9e[11]][_0x5c9e[10]];var ReportCallHistory=require(_0x5c9e[3])[_0x5c9e[11]][_0x5c9e[12]];var ReportDialHistory=require(_0x5c9e[3])[_0x5c9e[11]][_0x5c9e[13]];var ReportMemberHistory=require(_0x5c9e[3])[_0x5c9e[11]][_0x5c9e[14]];var ReportQueueHistory=require(_0x5c9e[3])[_0x5c9e[11]][_0x5c9e[15]];var ReportIntegrationHistory=require(_0x5c9e[3])[_0x5c9e[11]][_0x5c9e[16]];var ReportMailSessionHistory=require(_0x5c9e[3])[_0x5c9e[11]][_0x5c9e[17]];function ReportAgentInReportAgentHistory(){ReportAgent[_0x5c9e[34]]({where:{createdAt:{$lte:moment()[_0x5c9e[33]](_0x5c9e[32])},reason:{$ne:null}},raw:true})[_0x5c9e[28]](function(_0xcf16x12){console[_0x5c9e[23]](_0x5c9e[21]+_0xcf16x12[_0x5c9e[22]]);_0xcf16x12[_0x5c9e[31]](function(_0xcf16x13,_0xcf16x14){ReportAgentHistory[_0x5c9e[30]](_0xcf16x13)[_0x5c9e[28]](function(){console[_0x5c9e[23]](_0x5c9e[24]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[26]);ReportAgent[_0x5c9e[29]]({where:{id:_0xcf16x13[_0x5c9e[25]]},individualHooks:true})[_0x5c9e[28]](function(_0xcf16x15){console[_0x5c9e[23]](_0x5c9e[24]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[27])})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[18]+_0xcf16x11)});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[18]+_0xcf16x11)})});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[19]](_0x5c9e[18]+_0xcf16x11)})}function ReportCallInReportCallHistory(){ReportCall[_0x5c9e[34]]({where:{createdAt:{$lte:moment()[_0x5c9e[33]](_0x5c9e[32])}},raw:true})[_0x5c9e[28]](function(_0xcf16x12){_0xcf16x12[_0x5c9e[31]](function(_0xcf16x13,_0xcf16x14){console[_0x5c9e[23]](_0x5c9e[36]+_0xcf16x12[_0x5c9e[22]]);ReportCallHistory[_0x5c9e[30]](_0xcf16x13)[_0x5c9e[28]](function(){console[_0x5c9e[23]](_0x5c9e[37]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[26]);ReportCall[_0x5c9e[29]]({where:{id:_0xcf16x13[_0x5c9e[25]]},individualHooks:true})[_0x5c9e[28]](function(_0xcf16x15){console[_0x5c9e[23]](_0x5c9e[38]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[27])})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[35]+_0xcf16x11)});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[35]+_0xcf16x11)});})})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[19]](_0x5c9e[35]+_0xcf16x11)})}function ReportDialInReportDialHistory(){ReportDial[_0x5c9e[34]]({where:{createdAt:{$lte:moment()[_0x5c9e[33]](_0x5c9e[32])},dialstatus:{$ne:null}},raw:true})[_0x5c9e[28]](function(_0xcf16x12){console[_0x5c9e[23]](_0x5c9e[40]+_0xcf16x12[_0x5c9e[22]]);_0xcf16x12[_0x5c9e[31]](function(_0xcf16x13,_0xcf16x14){ReportDialHistory[_0x5c9e[30]](_0xcf16x13)[_0x5c9e[28]](function(){console[_0x5c9e[23]](_0x5c9e[41]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[26]);ReportDial[_0x5c9e[29]]({where:{id:_0xcf16x13[_0x5c9e[25]]},individualHooks:true})[_0x5c9e[28]](function(_0xcf16x15){console[_0x5c9e[23]](_0x5c9e[41]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[27])})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[39]+_0xcf16x11)});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[39]+_0xcf16x11)})});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[19]](_0x5c9e[39]+_0xcf16x11)})}function ReportMemberInReportMemberHistory(){ReportMember[_0x5c9e[34]]({where:{createdAt:{$lte:moment()[_0x5c9e[33]](_0x5c9e[32])},exitdate:{$ne:null}},raw:true})[_0x5c9e[28]](function(_0xcf16x12){console[_0x5c9e[23]](_0x5c9e[43]+_0xcf16x12[_0x5c9e[22]]);_0xcf16x12[_0x5c9e[31]](function(_0xcf16x13,_0xcf16x14){ReportMemberHistory[_0x5c9e[30]](_0xcf16x13)[_0x5c9e[28]](function(){console[_0x5c9e[23]](_0x5c9e[44]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[26]);ReportMember[_0x5c9e[29]]({where:{id:_0xcf16x13[_0x5c9e[25]]},individualHooks:true})[_0x5c9e[28]](function(_0xcf16x15){console[_0x5c9e[23]](_0x5c9e[44]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[27])})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[42]+_0xcf16x11)});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[42]+_0xcf16x11)})});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[19]](_0x5c9e[42]+_0xcf16x11)})}function ReportQueueInReportQueueHistory(){ReportQueue[_0x5c9e[34]]({where:{createdAt:{$lte:moment()[_0x5c9e[33]](_0x5c9e[32])},queuecallerleaveAt:{$ne:null}},raw:true})[_0x5c9e[28]](function(_0xcf16x12){console[_0x5c9e[23]](_0x5c9e[46]+_0xcf16x12[_0x5c9e[22]]);_0xcf16x12[_0x5c9e[31]](function(_0xcf16x13,_0xcf16x14){ReportQueueHistory[_0x5c9e[30]](_0xcf16x13)[_0x5c9e[28]](function(){console[_0x5c9e[23]](_0x5c9e[47]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[26]);ReportQueue[_0x5c9e[29]]({where:{id:_0xcf16x13[_0x5c9e[25]]},individualHooks:true})[_0x5c9e[28]](function(_0xcf16x15){console[_0x5c9e[23]](_0x5c9e[47]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[27])})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[45]+_0xcf16x11)});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[45]+_0xcf16x11)})});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[19]](_0x5c9e[45]+_0xcf16x11)})}function ReportIntegrationInReportIntegrationHistory(){ReportIntegration[_0x5c9e[34]]({where:{createdAt:{$lte:moment()[_0x5c9e[33]](_0x5c9e[32])}},raw:true})[_0x5c9e[28]](function(_0xcf16x12){_0xcf16x12[_0x5c9e[31]](function(_0xcf16x13,_0xcf16x14){console[_0x5c9e[23]](_0x5c9e[49]+_0xcf16x12[_0x5c9e[22]]);ReportIntegrationHistory[_0x5c9e[30]](_0xcf16x13)[_0x5c9e[28]](function(){console[_0x5c9e[23]](_0x5c9e[37]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[26]);ReportIntegration[_0x5c9e[29]]({where:{id:_0xcf16x13[_0x5c9e[25]]},individualHooks:true})[_0x5c9e[28]](function(_0xcf16x15){console[_0x5c9e[23]](_0x5c9e[50]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[27])})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[48]+_0xcf16x11)});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[48]+_0xcf16x11)});})})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[19]](_0x5c9e[48]+_0xcf16x11)})}function ReportMailSessionInReportMailSessionHistory(){ReportMailSession[_0x5c9e[34]]({where:{createdAt:{$lte:moment()[_0x5c9e[33]](_0x5c9e[32])},mailleaveAt:{$ne:null}},raw:true})[_0x5c9e[28]](function(_0xcf16x12){console[_0x5c9e[23]](_0x5c9e[52]+_0xcf16x12[_0x5c9e[22]]);_0xcf16x12[_0x5c9e[31]](function(_0xcf16x13,_0xcf16x14){ReportMailSessionHistory[_0x5c9e[30]](_0xcf16x13)[_0x5c9e[28]](function(){console[_0x5c9e[23]](_0x5c9e[53]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[26]);ReportMailSession[_0x5c9e[29]]({where:{id:_0xcf16x13[_0x5c9e[25]]},individualHooks:true})[_0x5c9e[28]](function(_0xcf16x15){console[_0x5c9e[23]](_0x5c9e[53]+_0xcf16x13[_0x5c9e[25]]+_0x5c9e[27])})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[51]+_0xcf16x11)});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[23]](_0x5c9e[51]+_0xcf16x11)})});})[_0x5c9e[20]](function(_0xcf16x11){console[_0x5c9e[19]](_0x5c9e[51]+_0xcf16x11)})}module[_0x5c9e[54]]=function(_0xcf16x1c){var _0xcf16x1d= new _0xcf16x1c({cronTime:_0x5c9e[55],onTick:function(){ new ReportAgentInReportAgentHistory(); new ReportCallInReportCallHistory(); new ReportDialInReportDialHistory(); new ReportMemberInReportMemberHistory(); new ReportQueueInReportQueueHistory(); new ReportIntegrationInReportIntegrationHistory(); new ReportMailSessionInReportMailSessionHistory();}});_0xcf16x1d[_0x5c9e[56]]();};
\ No newline at end of file
+var _0xe682=["\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"];_0xe682[0];var moment=require(_0xe682[1]);var ReportAgent=require(_0xe682[3])[_0xe682[2]];var ReportCall=require(_0xe682[3])[_0xe682[4]];var ReportDial=require(_0xe682[3])[_0xe682[5]];var ReportMember=require(_0xe682[3])[_0xe682[6]];var ReportQueue=require(_0xe682[3])[_0xe682[7]];var ReportIntegration=require(_0xe682[3])[_0xe682[8]];var ReportMailSession=require(_0xe682[3])[_0xe682[9]];var ReportAgentHistory=require(_0xe682[3])[_0xe682[11]][_0xe682[10]];var ReportCallHistory=require(_0xe682[3])[_0xe682[11]][_0xe682[12]];var ReportDialHistory=require(_0xe682[3])[_0xe682[11]][_0xe682[13]];var ReportMemberHistory=require(_0xe682[3])[_0xe682[11]][_0xe682[14]];var ReportQueueHistory=require(_0xe682[3])[_0xe682[11]][_0xe682[15]];var ReportIntegrationHistory=require(_0xe682[3])[_0xe682[11]][_0xe682[16]];var ReportMailSessionHistory=require(_0xe682[3])[_0xe682[11]][_0xe682[17]];function ReportAgentInReportAgentHistory(){ReportAgent[_0xe682[34]]({where:{createdAt:{$lte:moment()[_0xe682[33]](_0xe682[32])},reason:{$ne:null}},raw:true})[_0xe682[28]](function(_0x7f90x12){console[_0xe682[23]](_0xe682[21]+_0x7f90x12[_0xe682[22]]);_0x7f90x12[_0xe682[31]](function(_0x7f90x13,_0x7f90x14){ReportAgentHistory[_0xe682[30]](_0x7f90x13)[_0xe682[28]](function(){console[_0xe682[23]](_0xe682[24]+_0x7f90x13[_0xe682[25]]+_0xe682[26]);ReportAgent[_0xe682[29]]({where:{id:_0x7f90x13[_0xe682[25]]},individualHooks:true})[_0xe682[28]](function(_0x7f90x15){console[_0xe682[23]](_0xe682[24]+_0x7f90x13[_0xe682[25]]+_0xe682[27])})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[18]+_0x7f90x11)});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[18]+_0x7f90x11)})});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[19]](_0xe682[18]+_0x7f90x11)})}function ReportCallInReportCallHistory(){ReportCall[_0xe682[34]]({where:{createdAt:{$lte:moment()[_0xe682[33]](_0xe682[32])}},raw:true})[_0xe682[28]](function(_0x7f90x12){_0x7f90x12[_0xe682[31]](function(_0x7f90x13,_0x7f90x14){console[_0xe682[23]](_0xe682[36]+_0x7f90x12[_0xe682[22]]);ReportCallHistory[_0xe682[30]](_0x7f90x13)[_0xe682[28]](function(){console[_0xe682[23]](_0xe682[37]+_0x7f90x13[_0xe682[25]]+_0xe682[26]);ReportCall[_0xe682[29]]({where:{id:_0x7f90x13[_0xe682[25]]},individualHooks:true})[_0xe682[28]](function(_0x7f90x15){console[_0xe682[23]](_0xe682[38]+_0x7f90x13[_0xe682[25]]+_0xe682[27])})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[35]+_0x7f90x11)});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[35]+_0x7f90x11)});})})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[19]](_0xe682[35]+_0x7f90x11)})}function ReportDialInReportDialHistory(){ReportDial[_0xe682[34]]({where:{createdAt:{$lte:moment()[_0xe682[33]](_0xe682[32])},dialstatus:{$ne:null}},raw:true})[_0xe682[28]](function(_0x7f90x12){console[_0xe682[23]](_0xe682[40]+_0x7f90x12[_0xe682[22]]);_0x7f90x12[_0xe682[31]](function(_0x7f90x13,_0x7f90x14){ReportDialHistory[_0xe682[30]](_0x7f90x13)[_0xe682[28]](function(){console[_0xe682[23]](_0xe682[41]+_0x7f90x13[_0xe682[25]]+_0xe682[26]);ReportDial[_0xe682[29]]({where:{id:_0x7f90x13[_0xe682[25]]},individualHooks:true})[_0xe682[28]](function(_0x7f90x15){console[_0xe682[23]](_0xe682[41]+_0x7f90x13[_0xe682[25]]+_0xe682[27])})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[39]+_0x7f90x11)});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[39]+_0x7f90x11)})});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[19]](_0xe682[39]+_0x7f90x11)})}function ReportMemberInReportMemberHistory(){ReportMember[_0xe682[34]]({where:{createdAt:{$lte:moment()[_0xe682[33]](_0xe682[32])},exitdate:{$ne:null}},raw:true})[_0xe682[28]](function(_0x7f90x12){console[_0xe682[23]](_0xe682[43]+_0x7f90x12[_0xe682[22]]);_0x7f90x12[_0xe682[31]](function(_0x7f90x13,_0x7f90x14){ReportMemberHistory[_0xe682[30]](_0x7f90x13)[_0xe682[28]](function(){console[_0xe682[23]](_0xe682[44]+_0x7f90x13[_0xe682[25]]+_0xe682[26]);ReportMember[_0xe682[29]]({where:{id:_0x7f90x13[_0xe682[25]]},individualHooks:true})[_0xe682[28]](function(_0x7f90x15){console[_0xe682[23]](_0xe682[44]+_0x7f90x13[_0xe682[25]]+_0xe682[27])})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[42]+_0x7f90x11)});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[42]+_0x7f90x11)})});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[19]](_0xe682[42]+_0x7f90x11)})}function ReportQueueInReportQueueHistory(){ReportQueue[_0xe682[34]]({where:{createdAt:{$lte:moment()[_0xe682[33]](_0xe682[32])},queuecallerleaveAt:{$ne:null}},raw:true})[_0xe682[28]](function(_0x7f90x12){console[_0xe682[23]](_0xe682[46]+_0x7f90x12[_0xe682[22]]);_0x7f90x12[_0xe682[31]](function(_0x7f90x13,_0x7f90x14){ReportQueueHistory[_0xe682[30]](_0x7f90x13)[_0xe682[28]](function(){console[_0xe682[23]](_0xe682[47]+_0x7f90x13[_0xe682[25]]+_0xe682[26]);ReportQueue[_0xe682[29]]({where:{id:_0x7f90x13[_0xe682[25]]},individualHooks:true})[_0xe682[28]](function(_0x7f90x15){console[_0xe682[23]](_0xe682[47]+_0x7f90x13[_0xe682[25]]+_0xe682[27])})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[45]+_0x7f90x11)});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[45]+_0x7f90x11)})});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[19]](_0xe682[45]+_0x7f90x11)})}function ReportIntegrationInReportIntegrationHistory(){ReportIntegration[_0xe682[34]]({where:{createdAt:{$lte:moment()[_0xe682[33]](_0xe682[32])}},raw:true})[_0xe682[28]](function(_0x7f90x12){_0x7f90x12[_0xe682[31]](function(_0x7f90x13,_0x7f90x14){console[_0xe682[23]](_0xe682[49]+_0x7f90x12[_0xe682[22]]);ReportIntegrationHistory[_0xe682[30]](_0x7f90x13)[_0xe682[28]](function(){console[_0xe682[23]](_0xe682[37]+_0x7f90x13[_0xe682[25]]+_0xe682[26]);ReportIntegration[_0xe682[29]]({where:{id:_0x7f90x13[_0xe682[25]]},individualHooks:true})[_0xe682[28]](function(_0x7f90x15){console[_0xe682[23]](_0xe682[50]+_0x7f90x13[_0xe682[25]]+_0xe682[27])})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[48]+_0x7f90x11)});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[48]+_0x7f90x11)});})})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[19]](_0xe682[48]+_0x7f90x11)})}function ReportMailSessionInReportMailSessionHistory(){ReportMailSession[_0xe682[34]]({where:{createdAt:{$lte:moment()[_0xe682[33]](_0xe682[32])},mailleaveAt:{$ne:null}},raw:true})[_0xe682[28]](function(_0x7f90x12){console[_0xe682[23]](_0xe682[52]+_0x7f90x12[_0xe682[22]]);_0x7f90x12[_0xe682[31]](function(_0x7f90x13,_0x7f90x14){ReportMailSessionHistory[_0xe682[30]](_0x7f90x13)[_0xe682[28]](function(){console[_0xe682[23]](_0xe682[53]+_0x7f90x13[_0xe682[25]]+_0xe682[26]);ReportMailSession[_0xe682[29]]({where:{id:_0x7f90x13[_0xe682[25]]},individualHooks:true})[_0xe682[28]](function(_0x7f90x15){console[_0xe682[23]](_0xe682[53]+_0x7f90x13[_0xe682[25]]+_0xe682[27])})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[51]+_0x7f90x11)});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[23]](_0xe682[51]+_0x7f90x11)})});})[_0xe682[20]](function(_0x7f90x11){console[_0xe682[19]](_0xe682[51]+_0x7f90x11)})}module[_0xe682[54]]=function(_0x7f90x1c){var _0x7f90x1d= new _0x7f90x1c({cronTime:_0xe682[55],onTick:function(){ new ReportAgentInReportAgentHistory(); new ReportCallInReportCallHistory(); new ReportDialInReportDialHistory(); new ReportMemberInReportMemberHistory(); new ReportQueueInReportQueueHistory(); new ReportIntegrationInReportIntegrationHistory(); new ReportMailSessionInReportMailSessionHistory();}});_0x7f90x1d[_0xe682[56]]();};
\ No newline at end of file
-var _0x58a0=["\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"];_0x58a0[0];var _=require(_0x58a0[1]);var path=require(_0x58a0[2]);var config=require(_0x58a0[3]);var ImapListener=require(_0x58a0[4]);var MailServerIn=require(_0x58a0[6])[_0x58a0[5]];var MailMessage=require(_0x58a0[6])[_0x58a0[7]];var MailRoom=require(_0x58a0[6])[_0x58a0[8]];var Contact=require(_0x58a0[6])[_0x58a0[9]];var ContactEmail=require(_0x58a0[6])[_0x58a0[10]];var sequelize=require(_0x58a0[6])[_0x58a0[11]];module[_0x58a0[12]]={create:function(_0x21a8xb){var _0x21a8xc;function _0x21a8xd(_0x21a8xb){if(!_0x21a8xb[_0x58a0[14]](_0x58a0[13])&&!_0x21a8xb[_0x58a0[14]](_0x58a0[15])&&_0x21a8xb[_0x58a0[16]]===_0x21a8xc[_0x58a0[19]][_0x58a0[18]][_0x58a0[17]]){console[_0x58a0[22]](_0x58a0[20]+_0x21a8xb[_0x58a0[16]]+_0x58a0[21]);_0x21a8xc[_0x58a0[23]]();_0x21a8xf(_0x21a8xb);}}function _0x21a8xe(_0x21a8xb){if(_0x21a8xb[_0x58a0[16]]===_0x21a8xc[_0x58a0[19]][_0x58a0[18]][_0x58a0[17]]){console[_0x58a0[22]](_0x58a0[20]+_0x21a8xb[_0x58a0[16]]+_0x58a0[24]);_0x21a8xc[_0x58a0[23]]();_0x21a8xc=null;}}function _0x21a8xf(_0x21a8xb){if(_0x21a8xc){_0x21a8xc[_0x58a0[23]](_0x21a8xb);_0x21a8xc=null;};_0x21a8xc= new ImapListener({username:_0x21a8xb[_0x58a0[16]],password:_0x21a8xb[_0x58a0[25]],host:_0x21a8xb[_0x58a0[26]],port:_0x21a8xb[_0x58a0[27]],tls:_0x21a8xb[_0x58a0[28]],tlsOptions:{rejectUnauthorized:false},mailbox:_0x21a8xb[_0x58a0[29]],searchFilter:[_0x21a8xb[_0x58a0[30]]],markSeen:true,fetchUnreadOnStart:true,mailParserOptions:{streamAttachments:false},attachments:true,attachmentOptions:{directory:path[_0x58a0[36]](config[_0x58a0[31]],_0x58a0[32],_0x58a0[33],_0x58a0[34],_0x58a0[35])}});_0x21a8xc[_0x58a0[37]]();_0x21a8xc[_0x58a0[47]](_0x58a0[38],function(){console[_0x58a0[22]](_0x58a0[20]+_0x21a8xb[_0x58a0[16]]+_0x58a0[39]);return MailServerIn[_0x58a0[46]](_0x21a8xb[_0x58a0[45]])[_0x58a0[44]](function(_0x21a8x11){return _0x21a8x11[_0x58a0[43]]({state:_0x58a0[42]})})[_0x58a0[41]](function(_0x21a8x10){console[_0x58a0[40]](_0x21a8x10)});});_0x21a8xc[_0x58a0[47]](_0x58a0[48],function(){console[_0x58a0[22]](_0x58a0[20]+_0x21a8xb[_0x58a0[49]]+_0x58a0[50]);MailServerIn[_0x58a0[46]](_0x21a8xb[_0x58a0[45]])[_0x58a0[44]](function(_0x21a8x11){_0x21a8x11[_0x58a0[52]]({state:_0x58a0[51]})})[_0x58a0[41]](function(_0x21a8x10){console[_0x58a0[40]](_0x21a8x10)});});_0x21a8xc[_0x58a0[47]](_0x58a0[40],function(_0x21a8x10){console[_0x58a0[22]](_0x58a0[20]+_0x21a8xb[_0x58a0[49]]+_0x58a0[53],_0x21a8x10);MailServerIn[_0x58a0[46]](_0x21a8xb[_0x58a0[45]])[_0x58a0[44]](function(_0x21a8x11){_0x21a8x11[_0x58a0[52]]({state:_0x58a0[54],source:_0x21a8x10[_0x58a0[15]]})})[_0x58a0[41]](function(_0x21a8x10){console[_0x58a0[40]](_0x21a8x10)});});_0x21a8xc[_0x58a0[47]](_0x58a0[55],function(_0x21a8x12,_0x21a8x13,_0x21a8x14){var _0x21a8x15;var _0x21a8x16;var _0x21a8x17,_0x21a8x18,_0x21a8x19,_0x21a8x1a;function _0x21a8x1b(_0x21a8x1c){_0x21a8x15=_0x21a8x1c;return MailMessage[_0x58a0[68]]({messageId:_0x21a8x12[_0x58a0[56]],subject:_0x21a8x12[_0x58a0[57]],from:_[_0x58a0[61]](_0x21a8x12[_0x58a0[59]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]),to:_0x21a8x12[_0x58a0[62]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[62]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]):null,cc:_0x21a8x12[_0x58a0[63]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[63]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]):null,bcc:_0x21a8x12[_0x58a0[63]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[64]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]):null,status:_0x58a0[65],html:_0x21a8x12[_0x58a0[66]]||null,text:_0x21a8x12[_0x58a0[67]]||null,MailAttachments:_0x21a8x12[_0x58a0[34]]||[],MailRoomId:_0x21a8x1c[_0x58a0[45]]});}function _0x21a8x1d(_0x21a8x1e){_0x21a8x16=_0x21a8x1e;return ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x16[_0x58a0[59]]},defaults:{email:_0x21a8x16[_0x58a0[59]]}});}function _0x21a8x1f(_0x21a8x20,_0x21a8x21){var _0x21a8x22=[];var _0x21a8x23=_0x21a8x16[_0x58a0[62]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[62]],_0x58a0[60]):[];_0x21a8x17=_0x21a8x20;_0x21a8x23[_0x58a0[71]](function(_0x21a8x24){_0x21a8x22[_0x58a0[70]](ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x24},defaults:{email:_0x21a8x24}}))});return _0x21a8x22;}function _0x21a8x25(_0x21a8x26){var _0x21a8x22=[];var _0x21a8x27=_0x21a8x16[_0x58a0[63]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[63]],_0x58a0[60]):[];_0x21a8x18=_[_0x58a0[72]](_0x21a8x26,function(_0x21a8x28){return _0x21a8x28[0]});_0x21a8x27[_0x58a0[71]](function(_0x21a8x24){_0x21a8x22[_0x58a0[70]](ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x24},defaults:{email:_0x21a8x24}}))});return _0x21a8x22;}function _0x21a8x29(_0x21a8x2a){var _0x21a8x22=[];var _0x21a8x2b=_0x21a8x16[_0x58a0[64]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[64]],_0x58a0[60]):[];_0x21a8x19=_[_0x58a0[72]](_0x21a8x2a,function(_0x21a8x28){return _0x21a8x28[0]});_0x21a8x2b[_0x58a0[71]](function(_0x21a8x24){_0x21a8x22[_0x58a0[70]](ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x24},defaults:{email:_0x21a8x24}}))});return _0x21a8x22;}function _0x21a8x2c(_0x21a8x2d){_0x21a8x1a=_[_0x58a0[72]](_0x21a8x2d,function(_0x21a8x28){return _0x21a8x28[0]});return ;}return sequelize[_0x58a0[84]](function(_0x21a8x2f){if(_0x21a8x12[_0x58a0[73]]){console[_0x58a0[22]](_0x58a0[74],_0x21a8x12);return MailMessage[_0x58a0[82]]({where:{messageId:_0x21a8x12[_0x58a0[73]][0]},include:[{all:true}]})[_0x58a0[44]](function(_0x21a8x30){return _0x21a8x30[_0x58a0[81]]()})[_0x58a0[44]](function(_0x21a8x1c){_0x21a8x15=_0x21a8x1c;return MailMessage[_0x58a0[68]]({messageId:_0x21a8x12[_0x58a0[56]],subject:_0x21a8x12[_0x58a0[57]],from:_[_0x58a0[61]](_0x21a8x12[_0x58a0[59]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]),to:_0x21a8x12[_0x58a0[62]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[62]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]):null,cc:_0x21a8x12[_0x58a0[63]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[63]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]):null,bcc:_0x21a8x12[_0x58a0[63]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[64]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]):null,status:_0x58a0[65],html:_0x21a8x12[_0x58a0[66]]||null,text:_0x21a8x12[_0x58a0[67]]||null,MailAttachments:_0x21a8x12[_0x58a0[34]]||[],MailRoomId:_0x21a8x1c[_0x58a0[45]]},{include:[{all:true}],transaction:_0x21a8x2f});})[_0x58a0[44]](function(_0x21a8x1e){_0x21a8x16=_0x21a8x1e;return ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x16[_0x58a0[59]]},defaults:{email:_0x21a8x16[_0x58a0[59]]},transaction:_0x21a8x2f});})[_0x58a0[80]](function(_0x21a8x20,_0x21a8x21){var _0x21a8x22=[];var _0x21a8x23=_0x21a8x16[_0x58a0[62]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[62]],_0x58a0[60]):[];_0x21a8x17=_0x21a8x20;_0x21a8x23[_0x58a0[71]](function(_0x21a8x24){_0x21a8x22[_0x58a0[70]](ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x24},defaults:{email:_0x21a8x24},transaction:_0x21a8x2f}))});return _0x21a8x22;})[_0x58a0[79]]()[_0x58a0[44]](function(_0x21a8x26){var _0x21a8x22=[];var _0x21a8x27=_0x21a8x16[_0x58a0[63]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[63]],_0x58a0[60]):[];_0x21a8x18=_[_0x58a0[72]](_0x21a8x26,function(_0x21a8x28){return _0x21a8x28[0]});_0x21a8x27[_0x58a0[71]](function(_0x21a8x24){_0x21a8x22[_0x58a0[70]](ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x24},defaults:{email:_0x21a8x24},transaction:_0x21a8x2f}))});return _0x21a8x22;})[_0x58a0[79]]()[_0x58a0[44]](function(_0x21a8x2a){var _0x21a8x22=[];var _0x21a8x2b=_0x21a8x16[_0x58a0[64]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[64]],_0x58a0[60]):[];_0x21a8x19=_[_0x58a0[72]](_0x21a8x2a,function(_0x21a8x28){return _0x21a8x28[0]});_0x21a8x2b[_0x58a0[71]](function(_0x21a8x24){_0x21a8x22[_0x58a0[70]](ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x24},defaults:{email:_0x21a8x24},transaction:_0x21a8x2f}))});return _0x21a8x22;})[_0x58a0[79]]()[_0x58a0[44]](function(_0x21a8x2d){_0x21a8x1a=_[_0x58a0[72]](_0x21a8x2d,function(_0x21a8x28){return _0x21a8x28[0]});return ;})[_0x58a0[44]](function(){return _0x21a8x16[_0x58a0[78]](_0x21a8x17,{transaction:_0x21a8x2f})})[_0x58a0[44]](function(){return _0x21a8x16[_0x58a0[77]](_0x21a8x18,{transaction:_0x21a8x2f})})[_0x58a0[44]](function(){return _0x21a8x16[_0x58a0[76]](_0x21a8x19,{transaction:_0x21a8x2f})})[_0x58a0[44]](function(){return _0x21a8x16[_0x58a0[75]](_0x21a8x1a,{transaction:_0x21a8x2f})});}else {return MailRoom[_0x58a0[68]]({roomId:_0x21a8x12[_0x58a0[56]],subject:_0x21a8x12[_0x58a0[57]],from:_[_0x58a0[61]](_0x21a8x12[_0x58a0[59]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]),MailAccountId:_0x21a8xb[_0x58a0[49]]},{transaction:_0x21a8x2f})[_0x58a0[44]](function(_0x21a8x1c){_0x21a8x15=_0x21a8x1c;return MailMessage[_0x58a0[68]]({messageId:_0x21a8x12[_0x58a0[56]],subject:_0x21a8x12[_0x58a0[57]],from:_[_0x58a0[61]](_0x21a8x12[_0x58a0[59]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]),to:_0x21a8x12[_0x58a0[62]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[62]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]):null,cc:_0x21a8x12[_0x58a0[63]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[63]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]):null,bcc:_0x21a8x12[_0x58a0[63]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[64]],_0x58a0[60])[_0x58a0[36]](_0x58a0[58]):null,status:_0x58a0[65],html:_0x21a8x12[_0x58a0[66]]||null,text:_0x21a8x12[_0x58a0[67]]||null,MailAttachments:_0x21a8x12[_0x58a0[34]]||[],MailRoomId:_0x21a8x1c[_0x58a0[45]]},{include:[{all:true}],transaction:_0x21a8x2f});})[_0x58a0[44]](function(_0x21a8x1e){_0x21a8x16=_0x21a8x1e;return ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x16[_0x58a0[59]]},defaults:{email:_0x21a8x16[_0x58a0[59]]},transaction:_0x21a8x2f});})[_0x58a0[80]](function(_0x21a8x20,_0x21a8x21){var _0x21a8x22=[];var _0x21a8x23=_0x21a8x16[_0x58a0[62]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[62]],_0x58a0[60]):[];_0x21a8x17=_0x21a8x20;_0x21a8x23[_0x58a0[71]](function(_0x21a8x24){_0x21a8x22[_0x58a0[70]](ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x24},defaults:{email:_0x21a8x24},transaction:_0x21a8x2f}))});return _0x21a8x22;})[_0x58a0[79]]()[_0x58a0[44]](function(_0x21a8x26){var _0x21a8x22=[];var _0x21a8x27=_0x21a8x16[_0x58a0[63]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[63]],_0x58a0[60]):[];_0x21a8x18=_[_0x58a0[72]](_0x21a8x26,function(_0x21a8x28){return _0x21a8x28[0]});_0x21a8x27[_0x58a0[71]](function(_0x21a8x24){_0x21a8x22[_0x58a0[70]](ContactEmail[_0x58a0[83]]({where:{email:_0x21a8x24},defaults:{email:_0x21a8x24},transaction:_0x21a8x2f}))});return _0x21a8x22;})[_0x58a0[79]]()[_0x58a0[44]](function(_0x21a8x2a){var _0x21a8x22=[];var _0x21a8x2b=_0x21a8x16[_0x58a0[64]]?_[_0x58a0[61]](_0x21a8x12[_0x58a0[64]],_0x58a0[60]):[];_0x21a8x19=_[_0x58a0[72]](_0x21a8x2a,function(_0x21a8x28){return _0x21a8x28[0]});_0x21a8x2b[_0x58a0[71]](function(_0x21a8x24){_0x21a8x22[_0x58a0[70]](ContactEmail[_0x58a0[69]]({where:{email:_0x21a8x24},defaults:{email:_0x21a8x24},transaction:_0x21a8x2f}))});return _0x21a8x22;})[_0x58a0[79]]()[_0x58a0[44]](function(_0x21a8x2d){_0x21a8x1a=_[_0x58a0[72]](_0x21a8x2d,function(_0x21a8x28){return _0x21a8x28[0]});return ;})[_0x58a0[44]](function(){return _0x21a8x16[_0x58a0[78]](_0x21a8x17,{transaction:_0x21a8x2f})})[_0x58a0[44]](function(){return _0x21a8x16[_0x58a0[77]](_0x21a8x18,{transaction:_0x21a8x2f})})[_0x58a0[44]](function(){return _0x21a8x16[_0x58a0[76]](_0x21a8x19,{transaction:_0x21a8x2f})})[_0x58a0[44]](function(){return _0x21a8x16[_0x58a0[75]](_0x21a8x1a,{transaction:_0x21a8x2f})})}})[_0x58a0[44]](function(_0x21a8x2e){console[_0x58a0[22]](_0x21a8x2e)})[_0x58a0[41]](function(_0x21a8x10){console[_0x58a0[40]](_0x21a8x10)});});_0x21a8xc[_0x58a0[47]](_0x58a0[85],function(_0x21a8x31){console[_0x58a0[22]](_0x21a8x31[_0x58a0[2]])});}_0x21a8xf(_0x21a8xb);MailServerIn[_0x58a0[86]](function(_0x21a8xb){_0x21a8xf(_0x21a8xb)});MailServerIn[_0x58a0[87]](function(_0x21a8xb){_0x21a8xd(_0x21a8xb)});MailServerIn[_0x58a0[88]](function(_0x21a8xb){_0x21a8xe(_0x21a8xb)});}};
\ No newline at end of file
+var _0x8e40=["\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"];_0x8e40[0];var _=require(_0x8e40[1]);var path=require(_0x8e40[2]);var config=require(_0x8e40[3]);var ImapListener=require(_0x8e40[4]);var MailServerIn=require(_0x8e40[6])[_0x8e40[5]];var MailMessage=require(_0x8e40[6])[_0x8e40[7]];var MailRoom=require(_0x8e40[6])[_0x8e40[8]];var Contact=require(_0x8e40[6])[_0x8e40[9]];var ContactEmail=require(_0x8e40[6])[_0x8e40[10]];var sequelize=require(_0x8e40[6])[_0x8e40[11]];module[_0x8e40[12]]={create:function(_0xcf00xb){var _0xcf00xc;function _0xcf00xd(_0xcf00xb){if(!_0xcf00xb[_0x8e40[14]](_0x8e40[13])&&!_0xcf00xb[_0x8e40[14]](_0x8e40[15])&&_0xcf00xb[_0x8e40[16]]===_0xcf00xc[_0x8e40[19]][_0x8e40[18]][_0x8e40[17]]){console[_0x8e40[22]](_0x8e40[20]+_0xcf00xb[_0x8e40[16]]+_0x8e40[21]);_0xcf00xc[_0x8e40[23]]();_0xcf00xf(_0xcf00xb);}}function _0xcf00xe(_0xcf00xb){if(_0xcf00xb[_0x8e40[16]]===_0xcf00xc[_0x8e40[19]][_0x8e40[18]][_0x8e40[17]]){console[_0x8e40[22]](_0x8e40[20]+_0xcf00xb[_0x8e40[16]]+_0x8e40[24]);_0xcf00xc[_0x8e40[23]]();_0xcf00xc=null;}}function _0xcf00xf(_0xcf00xb){if(_0xcf00xc){_0xcf00xc[_0x8e40[23]](_0xcf00xb);_0xcf00xc=null;};_0xcf00xc= new ImapListener({username:_0xcf00xb[_0x8e40[16]],password:_0xcf00xb[_0x8e40[25]],host:_0xcf00xb[_0x8e40[26]],port:_0xcf00xb[_0x8e40[27]],tls:_0xcf00xb[_0x8e40[28]],tlsOptions:{rejectUnauthorized:false},mailbox:_0xcf00xb[_0x8e40[29]],searchFilter:[_0xcf00xb[_0x8e40[30]]],markSeen:true,fetchUnreadOnStart:true,mailParserOptions:{streamAttachments:false},attachments:true,attachmentOptions:{directory:path[_0x8e40[36]](config[_0x8e40[31]],_0x8e40[32],_0x8e40[33],_0x8e40[34],_0x8e40[35])}});_0xcf00xc[_0x8e40[37]]();_0xcf00xc[_0x8e40[47]](_0x8e40[38],function(){console[_0x8e40[22]](_0x8e40[20]+_0xcf00xb[_0x8e40[16]]+_0x8e40[39]);return MailServerIn[_0x8e40[46]](_0xcf00xb[_0x8e40[45]])[_0x8e40[44]](function(_0xcf00x11){return _0xcf00x11[_0x8e40[43]]({state:_0x8e40[42]})})[_0x8e40[41]](function(_0xcf00x10){console[_0x8e40[40]](_0xcf00x10)});});_0xcf00xc[_0x8e40[47]](_0x8e40[48],function(){console[_0x8e40[22]](_0x8e40[20]+_0xcf00xb[_0x8e40[49]]+_0x8e40[50]);MailServerIn[_0x8e40[46]](_0xcf00xb[_0x8e40[45]])[_0x8e40[44]](function(_0xcf00x11){_0xcf00x11[_0x8e40[52]]({state:_0x8e40[51]})})[_0x8e40[41]](function(_0xcf00x10){console[_0x8e40[40]](_0xcf00x10)});});_0xcf00xc[_0x8e40[47]](_0x8e40[40],function(_0xcf00x10){console[_0x8e40[22]](_0x8e40[20]+_0xcf00xb[_0x8e40[49]]+_0x8e40[53],_0xcf00x10);MailServerIn[_0x8e40[46]](_0xcf00xb[_0x8e40[45]])[_0x8e40[44]](function(_0xcf00x11){_0xcf00x11[_0x8e40[52]]({state:_0x8e40[54],source:_0xcf00x10[_0x8e40[15]]})})[_0x8e40[41]](function(_0xcf00x10){console[_0x8e40[40]](_0xcf00x10)});});_0xcf00xc[_0x8e40[47]](_0x8e40[55],function(_0xcf00x12,_0xcf00x13,_0xcf00x14){var _0xcf00x15;var _0xcf00x16;var _0xcf00x17,_0xcf00x18,_0xcf00x19,_0xcf00x1a;function _0xcf00x1b(_0xcf00x1c){_0xcf00x15=_0xcf00x1c;return MailMessage[_0x8e40[68]]({messageId:_0xcf00x12[_0x8e40[56]],subject:_0xcf00x12[_0x8e40[57]],from:_[_0x8e40[61]](_0xcf00x12[_0x8e40[59]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]),to:_0xcf00x12[_0x8e40[62]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[62]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]):null,cc:_0xcf00x12[_0x8e40[63]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[63]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]):null,bcc:_0xcf00x12[_0x8e40[63]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[64]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]):null,status:_0x8e40[65],html:_0xcf00x12[_0x8e40[66]]||null,text:_0xcf00x12[_0x8e40[67]]||null,MailAttachments:_0xcf00x12[_0x8e40[34]]||[],MailRoomId:_0xcf00x1c[_0x8e40[45]]});}function _0xcf00x1d(_0xcf00x1e){_0xcf00x16=_0xcf00x1e;return ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x16[_0x8e40[59]]},defaults:{email:_0xcf00x16[_0x8e40[59]]}});}function _0xcf00x1f(_0xcf00x20,_0xcf00x21){var _0xcf00x22=[];var _0xcf00x23=_0xcf00x16[_0x8e40[62]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[62]],_0x8e40[60]):[];_0xcf00x17=_0xcf00x20;_0xcf00x23[_0x8e40[71]](function(_0xcf00x24){_0xcf00x22[_0x8e40[70]](ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x24},defaults:{email:_0xcf00x24}}))});return _0xcf00x22;}function _0xcf00x25(_0xcf00x26){var _0xcf00x22=[];var _0xcf00x27=_0xcf00x16[_0x8e40[63]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[63]],_0x8e40[60]):[];_0xcf00x18=_[_0x8e40[72]](_0xcf00x26,function(_0xcf00x28){return _0xcf00x28[0]});_0xcf00x27[_0x8e40[71]](function(_0xcf00x24){_0xcf00x22[_0x8e40[70]](ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x24},defaults:{email:_0xcf00x24}}))});return _0xcf00x22;}function _0xcf00x29(_0xcf00x2a){var _0xcf00x22=[];var _0xcf00x2b=_0xcf00x16[_0x8e40[64]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[64]],_0x8e40[60]):[];_0xcf00x19=_[_0x8e40[72]](_0xcf00x2a,function(_0xcf00x28){return _0xcf00x28[0]});_0xcf00x2b[_0x8e40[71]](function(_0xcf00x24){_0xcf00x22[_0x8e40[70]](ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x24},defaults:{email:_0xcf00x24}}))});return _0xcf00x22;}function _0xcf00x2c(_0xcf00x2d){_0xcf00x1a=_[_0x8e40[72]](_0xcf00x2d,function(_0xcf00x28){return _0xcf00x28[0]});return ;}return sequelize[_0x8e40[84]](function(_0xcf00x2f){if(_0xcf00x12[_0x8e40[73]]){console[_0x8e40[22]](_0x8e40[74],_0xcf00x12);return MailMessage[_0x8e40[82]]({where:{messageId:_0xcf00x12[_0x8e40[73]][0]},include:[{all:true}]})[_0x8e40[44]](function(_0xcf00x30){return _0xcf00x30[_0x8e40[81]]()})[_0x8e40[44]](function(_0xcf00x1c){_0xcf00x15=_0xcf00x1c;return MailMessage[_0x8e40[68]]({messageId:_0xcf00x12[_0x8e40[56]],subject:_0xcf00x12[_0x8e40[57]],from:_[_0x8e40[61]](_0xcf00x12[_0x8e40[59]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]),to:_0xcf00x12[_0x8e40[62]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[62]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]):null,cc:_0xcf00x12[_0x8e40[63]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[63]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]):null,bcc:_0xcf00x12[_0x8e40[63]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[64]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]):null,status:_0x8e40[65],html:_0xcf00x12[_0x8e40[66]]||null,text:_0xcf00x12[_0x8e40[67]]||null,MailAttachments:_0xcf00x12[_0x8e40[34]]||[],MailRoomId:_0xcf00x1c[_0x8e40[45]]},{include:[{all:true}],transaction:_0xcf00x2f});})[_0x8e40[44]](function(_0xcf00x1e){_0xcf00x16=_0xcf00x1e;return ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x16[_0x8e40[59]]},defaults:{email:_0xcf00x16[_0x8e40[59]]},transaction:_0xcf00x2f});})[_0x8e40[80]](function(_0xcf00x20,_0xcf00x21){var _0xcf00x22=[];var _0xcf00x23=_0xcf00x16[_0x8e40[62]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[62]],_0x8e40[60]):[];_0xcf00x17=_0xcf00x20;_0xcf00x23[_0x8e40[71]](function(_0xcf00x24){_0xcf00x22[_0x8e40[70]](ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x24},defaults:{email:_0xcf00x24},transaction:_0xcf00x2f}))});return _0xcf00x22;})[_0x8e40[79]]()[_0x8e40[44]](function(_0xcf00x26){var _0xcf00x22=[];var _0xcf00x27=_0xcf00x16[_0x8e40[63]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[63]],_0x8e40[60]):[];_0xcf00x18=_[_0x8e40[72]](_0xcf00x26,function(_0xcf00x28){return _0xcf00x28[0]});_0xcf00x27[_0x8e40[71]](function(_0xcf00x24){_0xcf00x22[_0x8e40[70]](ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x24},defaults:{email:_0xcf00x24},transaction:_0xcf00x2f}))});return _0xcf00x22;})[_0x8e40[79]]()[_0x8e40[44]](function(_0xcf00x2a){var _0xcf00x22=[];var _0xcf00x2b=_0xcf00x16[_0x8e40[64]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[64]],_0x8e40[60]):[];_0xcf00x19=_[_0x8e40[72]](_0xcf00x2a,function(_0xcf00x28){return _0xcf00x28[0]});_0xcf00x2b[_0x8e40[71]](function(_0xcf00x24){_0xcf00x22[_0x8e40[70]](ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x24},defaults:{email:_0xcf00x24},transaction:_0xcf00x2f}))});return _0xcf00x22;})[_0x8e40[79]]()[_0x8e40[44]](function(_0xcf00x2d){_0xcf00x1a=_[_0x8e40[72]](_0xcf00x2d,function(_0xcf00x28){return _0xcf00x28[0]});return ;})[_0x8e40[44]](function(){return _0xcf00x16[_0x8e40[78]](_0xcf00x17,{transaction:_0xcf00x2f})})[_0x8e40[44]](function(){return _0xcf00x16[_0x8e40[77]](_0xcf00x18,{transaction:_0xcf00x2f})})[_0x8e40[44]](function(){return _0xcf00x16[_0x8e40[76]](_0xcf00x19,{transaction:_0xcf00x2f})})[_0x8e40[44]](function(){return _0xcf00x16[_0x8e40[75]](_0xcf00x1a,{transaction:_0xcf00x2f})});}else {return MailRoom[_0x8e40[68]]({roomId:_0xcf00x12[_0x8e40[56]],subject:_0xcf00x12[_0x8e40[57]],from:_[_0x8e40[61]](_0xcf00x12[_0x8e40[59]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]),MailAccountId:_0xcf00xb[_0x8e40[49]]},{transaction:_0xcf00x2f})[_0x8e40[44]](function(_0xcf00x1c){_0xcf00x15=_0xcf00x1c;return MailMessage[_0x8e40[68]]({messageId:_0xcf00x12[_0x8e40[56]],subject:_0xcf00x12[_0x8e40[57]],from:_[_0x8e40[61]](_0xcf00x12[_0x8e40[59]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]),to:_0xcf00x12[_0x8e40[62]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[62]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]):null,cc:_0xcf00x12[_0x8e40[63]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[63]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]):null,bcc:_0xcf00x12[_0x8e40[63]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[64]],_0x8e40[60])[_0x8e40[36]](_0x8e40[58]):null,status:_0x8e40[65],html:_0xcf00x12[_0x8e40[66]]||null,text:_0xcf00x12[_0x8e40[67]]||null,MailAttachments:_0xcf00x12[_0x8e40[34]]||[],MailRoomId:_0xcf00x1c[_0x8e40[45]]},{include:[{all:true}],transaction:_0xcf00x2f});})[_0x8e40[44]](function(_0xcf00x1e){_0xcf00x16=_0xcf00x1e;return ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x16[_0x8e40[59]]},defaults:{email:_0xcf00x16[_0x8e40[59]]},transaction:_0xcf00x2f});})[_0x8e40[80]](function(_0xcf00x20,_0xcf00x21){var _0xcf00x22=[];var _0xcf00x23=_0xcf00x16[_0x8e40[62]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[62]],_0x8e40[60]):[];_0xcf00x17=_0xcf00x20;_0xcf00x23[_0x8e40[71]](function(_0xcf00x24){_0xcf00x22[_0x8e40[70]](ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x24},defaults:{email:_0xcf00x24},transaction:_0xcf00x2f}))});return _0xcf00x22;})[_0x8e40[79]]()[_0x8e40[44]](function(_0xcf00x26){var _0xcf00x22=[];var _0xcf00x27=_0xcf00x16[_0x8e40[63]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[63]],_0x8e40[60]):[];_0xcf00x18=_[_0x8e40[72]](_0xcf00x26,function(_0xcf00x28){return _0xcf00x28[0]});_0xcf00x27[_0x8e40[71]](function(_0xcf00x24){_0xcf00x22[_0x8e40[70]](ContactEmail[_0x8e40[83]]({where:{email:_0xcf00x24},defaults:{email:_0xcf00x24},transaction:_0xcf00x2f}))});return _0xcf00x22;})[_0x8e40[79]]()[_0x8e40[44]](function(_0xcf00x2a){var _0xcf00x22=[];var _0xcf00x2b=_0xcf00x16[_0x8e40[64]]?_[_0x8e40[61]](_0xcf00x12[_0x8e40[64]],_0x8e40[60]):[];_0xcf00x19=_[_0x8e40[72]](_0xcf00x2a,function(_0xcf00x28){return _0xcf00x28[0]});_0xcf00x2b[_0x8e40[71]](function(_0xcf00x24){_0xcf00x22[_0x8e40[70]](ContactEmail[_0x8e40[69]]({where:{email:_0xcf00x24},defaults:{email:_0xcf00x24},transaction:_0xcf00x2f}))});return _0xcf00x22;})[_0x8e40[79]]()[_0x8e40[44]](function(_0xcf00x2d){_0xcf00x1a=_[_0x8e40[72]](_0xcf00x2d,function(_0xcf00x28){return _0xcf00x28[0]});return ;})[_0x8e40[44]](function(){return _0xcf00x16[_0x8e40[78]](_0xcf00x17,{transaction:_0xcf00x2f})})[_0x8e40[44]](function(){return _0xcf00x16[_0x8e40[77]](_0xcf00x18,{transaction:_0xcf00x2f})})[_0x8e40[44]](function(){return _0xcf00x16[_0x8e40[76]](_0xcf00x19,{transaction:_0xcf00x2f})})[_0x8e40[44]](function(){return _0xcf00x16[_0x8e40[75]](_0xcf00x1a,{transaction:_0xcf00x2f})})}})[_0x8e40[44]](function(_0xcf00x2e){console[_0x8e40[22]](_0xcf00x2e)})[_0x8e40[41]](function(_0xcf00x10){console[_0x8e40[40]](_0xcf00x10)});});_0xcf00xc[_0x8e40[47]](_0x8e40[85],function(_0xcf00x31){console[_0x8e40[22]](_0xcf00x31[_0x8e40[2]])});}_0xcf00xf(_0xcf00xb);MailServerIn[_0x8e40[86]](function(_0xcf00xb){_0xcf00xf(_0xcf00xb)});MailServerIn[_0x8e40[87]](function(_0xcf00xb){_0xcf00xd(_0xcf00xb)});MailServerIn[_0x8e40[88]](function(_0xcf00xb){_0xcf00xe(_0xcf00xb)});}};
\ No newline at end of file
-var _0x7a19=["\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"];_0x7a19[0];var MailAccount=require(_0x7a19[2])[_0x7a19[1]];var MailServerIn=require(_0x7a19[2])[_0x7a19[3]];module[_0x7a19[4]]={init:function(){MailServerIn[_0x7a19[7]](function(_0x2a82x3){require(_0x7a19[6])[_0x7a19[5]](_0x2a82x3)});MailAccount[_0x7a19[12]]({include:[{all:true}]})[_0x7a19[11]](function(_0x2a82x5){for(var _0x2a82x6=0;_0x2a82x6<_0x2a82x5[_0x7a19[10]];_0x2a82x6++){if(_0x2a82x5[_0x2a82x6][_0x7a19[3]]){require(_0x7a19[6])[_0x7a19[5]](_0x2a82x5[_0x2a82x6].MailServerIn)}}})[_0x7a19[9]](function(_0x2a82x4){console[_0x7a19[8]](_0x2a82x4)});}};
\ No newline at end of file
+var _0x11cc=["\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"];_0x11cc[0];var MailAccount=require(_0x11cc[2])[_0x11cc[1]];var MailServerIn=require(_0x11cc[2])[_0x11cc[3]];module[_0x11cc[4]]={init:function(){MailServerIn[_0x11cc[7]](function(_0x7eb3x3){require(_0x11cc[6])[_0x11cc[5]](_0x7eb3x3)});MailAccount[_0x11cc[12]]({include:[{all:true}]})[_0x11cc[11]](function(_0x7eb3x5){for(var _0x7eb3x6=0;_0x7eb3x6<_0x7eb3x5[_0x11cc[10]];_0x7eb3x6++){if(_0x7eb3x5[_0x7eb3x6][_0x11cc[3]]){require(_0x11cc[6])[_0x11cc[5]](_0x7eb3x5[_0x7eb3x6].MailServerIn)}}})[_0x11cc[9]](function(_0x7eb3x4){console[_0x11cc[8]](_0x7eb3x4)});}};
\ No newline at end of file
-var _0x477b=["\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"];_0x477b[0];var path=require(_0x477b[1]);var fs=require(_0x477b[2]);var Integration=require(_0x477b[4])[_0x477b[3]];module[_0x477b[5]]=function(_0x71aax4,_0x71aax5){Integration[_0x477b[16]]()[_0x477b[15]](function(_0x71aax7){_0x71aax7[_0x477b[14]](function(_0x71aax8){var _0x71aax9=path[_0x477b[8]](_0x71aax8[_0x477b[1]]);var _0x71aaxa=path[_0x477b[12]](_0x71aax9[_0x477b[9]],_0x71aax9[_0x477b[10]],_0x71aax8[_0x477b[11]]);if(fs[_0x477b[13]](_0x71aaxa)){require(_0x71aaxa)(_0x71aax4,_0x71aax5)};})})[_0x477b[7]](function(_0x71aax6){console[_0x477b[6]](_0x71aax6)})};
\ No newline at end of file
+var _0x2067=["\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"];_0x2067[0];var path=require(_0x2067[1]);var fs=require(_0x2067[2]);var Integration=require(_0x2067[4])[_0x2067[3]];module[_0x2067[5]]=function(_0x5f13x4,_0x5f13x5){Integration[_0x2067[16]]()[_0x2067[15]](function(_0x5f13x7){_0x5f13x7[_0x2067[14]](function(_0x5f13x8){var _0x5f13x9=path[_0x2067[8]](_0x5f13x8[_0x2067[1]]);var _0x5f13xa=path[_0x2067[12]](_0x5f13x9[_0x2067[9]],_0x5f13x9[_0x2067[10]],_0x5f13x8[_0x2067[11]]);if(fs[_0x2067[13]](_0x5f13xa)){require(_0x5f13xa)(_0x5f13x4,_0x5f13x5)};})})[_0x2067[7]](function(_0x5f13x6){console[_0x2067[6]](_0x5f13x6)})};
\ No newline at end of file
-var _0x6b88=["\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"];_0x6b88[0];var _=require(_0x6b88[1]);var moment=require(_0x6b88[2]);var md5=require(_0x6b88[3]);var ChatApplication=require(_0x6b88[5])[_0x6b88[4]];var ChatWebsite=require(_0x6b88[5])[_0x6b88[6]];var ChatVisitor=require(_0x6b88[5])[_0x6b88[7]];var ChatMessage=require(_0x6b88[5])[_0x6b88[8]];var ChatQueue=require(_0x6b88[5])[_0x6b88[9]];var ChatRoom=require(_0x6b88[5])[_0x6b88[10]];var Interval=require(_0x6b88[5])[_0x6b88[11]];var ReportChatSession=require(_0x6b88[5])[_0x6b88[12]];var ReportChat=require(_0x6b88[5])[_0x6b88[13]];var User=require(_0x6b88[5])[_0x6b88[14]];var timeouts={};module[_0x6b88[15]]=function(_0xfb73xf){var _0xfb73x10=_0xfb73xf[_0x6b88[16]]();_0xfb73x10[_0x6b88[18]](_0x6b88[17],20,function(_0xfb73x11,_0xfb73x12){onProcess(_0xfb73x11,_0xfb73x12)});ReportChat[_0x6b88[39]](function(_0xfb73x13){var _0xfb73x14;if(_0xfb73x13[_0x6b88[20]](_0x6b88[19])){if(timeouts[_0xfb73x13[_0x6b88[21]]]){clearTimeout(timeouts[_0xfb73x13[_0x6b88[21]]][_0x6b88[22]]);timeouts[_0xfb73x13[_0x6b88[21]]][_0x6b88[23]]();delete timeouts[_0xfb73x13[_0x6b88[21]]];};ChatRoom[_0x6b88[32]](_0xfb73x13[_0x6b88[31]])[_0x6b88[28]](function(_0xfb73x16){_0xfb73x14=_0xfb73x16;_0xfb73x16[_0x6b88[30]](_0xfb73x13[_0x6b88[29]],{individualHooks:true});})[_0x6b88[28]](function(){_0xfb73x14[_0x6b88[27]]({status:_0x6b88[26]})})[_0x6b88[25]](function(_0xfb73x15){console[_0x6b88[24]](_0xfb73x15)});ReportChat[_0x6b88[27]]({agentringnoanswerAt:moment()[_0x6b88[34]](_0x6b88[33]),reason:_0x6b88[35],lastevent:_0x6b88[35]},{where:{uniqueid:_0xfb73x13[_0x6b88[21]],reason:null},individualHooks:true})[_0x6b88[25]](function(_0xfb73x15){console[_0x6b88[24]](_0xfb73x15)});ReportChatSession[_0x6b88[27]]({chatleaveAt:moment()[_0x6b88[34]](_0x6b88[33]),agentid:_0xfb73x13[_0x6b88[29]],fullname:_0xfb73x13[_0x6b88[36]],membername:_0xfb73x13[_0x6b88[37]],chatqueuename:_0xfb73x13[_0x6b88[38]]},{where:{uniqueid:_0xfb73x13[_0x6b88[21]]},individualHooks:true})[_0x6b88[25]](function(_0xfb73x15){console[_0x6b88[24]](_0xfb73x15)});};});ChatVisitor[_0x6b88[40]](function(_0xfb73x13){onSave(_0xfb73x10,_0xfb73x13)});};function onSave(_0xfb73xf,_0xfb73x13,_0xfb73x18){_0xfb73xf[_0x6b88[43]](_0x6b88[17],_0xfb73x13[_0x6b88[42]])[_0x6b88[41]]()}function onProcess(_0xfb73x11,_0xfb73x12){ChatWebsite[_0x6b88[32]](_0xfb73x11[_0x6b88[49]].ChatWebsiteId,{include:[{model:ChatApplication,include:[{model:ChatQueue,include:[{model:User}]},{model:User},{model:Interval,include:[{all:true}]}]}]})[_0x6b88[28]](function(ChatWebsite){if(!ChatWebsite){_0xfb73x12( new Error(_0x6b88[44]));return ;};if(!ChatWebsite[_0x6b88[46]][_0x6b88[45]]){_0xfb73x12( new Error(_0x6b88[47]));return ;};_0xfb73x11[_0x6b88[49]][_0x6b88[48]]=_0xfb73x11[_0x6b88[49]][_0x6b88[50]];var _0xfb73x1a=_[_0x6b88[51]](_0xfb73x11[_0x6b88[49]],ChatWebsite[_0x6b88[42]]);ChatRoom[_0x6b88[43]]({type:_0x6b88[57],ChatVisitorId:_0xfb73x1a[_0x6b88[48]],ChatWebsiteId:_0xfb73x1a[_0x6b88[50]]},{include:[{all:true}]})[_0x6b88[28]](function(_0xfb73x16){onReportSession({uniqueid:_0xfb73x1a[_0x6b88[48]],chatroomid:_0xfb73x16[_0x6b88[50]],visitorname:_0xfb73x1a[_0x6b88[36]],visitoremail:_0xfb73x1a[_0x6b88[52]],websitename:_0xfb73x1a[_0x6b88[53]],websiteid:_0xfb73x1a[_0x6b88[50]],websiteaddress:_0xfb73x1a[_0x6b88[54]],chatjoinAt:moment()[_0x6b88[34]](_0x6b88[33])});_0xfb73x1a[_0x6b88[46]]=_[_0x6b88[56]](_0xfb73x1a.ChatApplications,_0x6b88[55]);onInvite(_0xfb73x1a,0,0,0,0,_0xfb73x16,_0xfb73x12);})[_0x6b88[25]](function(_0xfb73x15){console[_0x6b88[24]](_0xfb73x15)});})[_0x6b88[25]](function(_0xfb73x15){console[_0x6b88[24]](_0xfb73x15)})}function onInvite(_0xfb73x1c,_0xfb73x1d,_0xfb73x1e,_0xfb73x1f,_0xfb73x20,_0xfb73x16,_0xfb73x12){console[_0x6b88[62]](_0x6b88[58],_0x6b88[59],_0xfb73x1d,_0x6b88[60],_0xfb73x1e,_0x6b88[61],_0xfb73x1f);var _0xfb73x21=0;var _0xfb73x22;if(_0xfb73x1d===_0xfb73x1c[_0x6b88[46]][_0x6b88[45]]){console[_0x6b88[24]](_0x6b88[47]);onReportSession({uniqueid:_0xfb73x1c[_0x6b88[48]],mailunmanagedAt:moment()[_0x6b88[34]](_0x6b88[33]),mailleaveAt:moment()[_0x6b88[34]](_0x6b88[33])});_0xfb73x12( new Error(_0x6b88[47]));return ;};if(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]]){var _0xfb73x23=_[_0x6b88[64]](_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]].Users,{online:true})[_0x6b88[63]];if(_0xfb73x23&&onInterval(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[11]]?_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[11]]:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[65]])){if(_0xfb73x1e===_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[66]][_0x6b88[45]]){if(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[22]]>_0xfb73x1f){onInvite(_0xfb73x1c,_0xfb73x1d,0,_0xfb73x1f,_0xfb73x20,_0xfb73x16,_0xfb73x12);return ;}else {onInvite(_0xfb73x1c,++_0xfb73x1d,0,0,_0xfb73x20,_0xfb73x16,_0xfb73x12);return ;}};switch(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[81]]){case _0x6b88[72]:if(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[66]][_0xfb73x1e][_0x6b88[67]]&&onInterval(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[11]]?_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[11]]:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[65]])){_0xfb73x21=(((_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[22]]-_0xfb73x1f)>_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[22]])?_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[22]]:(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[22]]-_0xfb73x1f));onReport({uniqueid:_0xfb73x1c[_0x6b88[48]],chatroomid:_0xfb73x16[_0x6b88[50]],visitorname:_0xfb73x1c[_0x6b88[36]],visitoremail:_0xfb73x1c[_0x6b88[52]],websitename:_0xfb73x1c[_0x6b88[53]],websiteid:_0xfb73x1c[_0x6b88[50]],websiteaddress:_0xfb73x1c[_0x6b88[54]],sorting:_0xfb73x20,timeslot:_0xfb73x21,application:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[68]],fullname:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[66]][_0xfb73x1e][_0x6b88[36]],membername:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[66]][_0xfb73x1e][_0x6b88[53]],agentid:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[66]][_0xfb73x1e][_0x6b88[50]],chatqueuename:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[53]],lastevent:_0x6b88[69],holdtime:_0xfb73x1f,agentcalledAt:moment()[_0x6b88[34]](_0x6b88[33])});console[_0x6b88[62]](_0x6b88[70],_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[53]],_0x6b88[71],_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[66]][_0xfb73x1e][_0x6b88[53]],_0x6b88[22],_0xfb73x21,_0x6b88[61],_0xfb73x1f);_0xfb73x22=setTimeout(function(){onReportUpdate({uniqueid:_0xfb73x1c[_0x6b88[48]],count:_0xfb73x20,reason:_0x6b88[22],lastevent:_0x6b88[22],agentringnoanswerAt:moment()[_0x6b88[34]](_0x6b88[33])});_0xfb73x1f+=_0xfb73x21;onInvite(_0xfb73x1c,_0xfb73x1d,++_0xfb73x1e,_0xfb73x1f,++_0xfb73x20,_0xfb73x16,_0xfb73x12);return ;},_0xfb73x21*1000);if(!timeouts[_0xfb73x1c[_0x6b88[48]]]){timeouts[_0xfb73x1c[_0x6b88[48]]]={}};timeouts[_0xfb73x1c[_0x6b88[48]]][_0x6b88[22]]=_0xfb73x22;timeouts[_0xfb73x1c[_0x6b88[48]]][_0x6b88[23]]=_0xfb73x12;}else {onInvite(_0xfb73x1c,_0xfb73x1d,++_0xfb73x1e,_0xfb73x1f,_0xfb73x20,_0xfb73x16,_0xfb73x12);return ;};break ;;case _0x6b88[79]:_0xfb73x21=(((_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[22]]-_0xfb73x1f)>_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[22]])?_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[22]]:(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[22]]-_0xfb73x1f));var _0xfb73x24=[];_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[66]][_0x6b88[77]](function(_0xfb73x25){if(_0xfb73x25[_0x6b88[67]]){_0xfb73x24[_0x6b88[76]]({uniqueid:_0xfb73x1c[_0x6b88[48]],chatroomid:_0xfb73x16[_0x6b88[50]],sorting:_0xfb73x20,subject:_0xfb73x1c[_0x6b88[73]],timeslot:_0xfb73x21,from:_0xfb73x1c[_0x6b88[74]],attachment:_0xfb73x1c[_0x6b88[75]],accountname:_0xfb73x1c[_0x6b88[53]],accountaddress:_0xfb73x1c[_0x6b88[54]],application:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[68]],fullname:_0xfb73x25[_0x6b88[36]],membername:_0xfb73x25[_0x6b88[53]],agentid:_0xfb73x25[_0x6b88[50]],chatqueuename:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[53]],lastevent:_0x6b88[69],holdtime:_0xfb73x1f,agentcalledAt:moment()[_0x6b88[34]](_0x6b88[33]),visitorname:_0xfb73x1c[_0x6b88[36]],visitoremail:_0xfb73x1c[_0x6b88[52]],websitename:_0xfb73x1c[_0x6b88[53]],websiteid:_0xfb73x1c[_0x6b88[50]],websiteaddress:_0xfb73x1c[_0x6b88[54]]})}});if(_0xfb73x24[_0x6b88[45]]&&onInterval(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[11]]?_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[11]]:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[65]])){onReport(_0xfb73x24,true);_0xfb73x22=setTimeout(function(){console[_0x6b88[62]](_0x6b88[78],_0xfb73x20);onReportUpdate({uniqueid:_0xfb73x1c[_0x6b88[48]],count:_0xfb73x20,reason:_0x6b88[22],lastevent:_0x6b88[22],agentringnoanswerAt:moment()[_0x6b88[34]](_0x6b88[33])});_0xfb73x1f+=_0xfb73x21;_0xfb73x1e+=_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[66]][_0x6b88[45]];onInvite(_0xfb73x1c,_0xfb73x1d,_0xfb73x1e,_0xfb73x1f,++_0xfb73x20,_0xfb73x16,_0xfb73x12);return ;},_0xfb73x21*1000);if(!timeouts[_0xfb73x1c[_0x6b88[48]]]){timeouts[_0xfb73x1c[_0x6b88[48]]]={}};timeouts[_0xfb73x1c[_0x6b88[48]]][_0x6b88[22]]=_0xfb73x22;timeouts[_0xfb73x1c[_0x6b88[48]]][_0x6b88[23]]=_0xfb73x12;}else {console[_0x6b88[62]](_0x6b88[70],_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[9]][_0x6b88[53]],_0x6b88[22],_0xfb73x21,_0x6b88[61],_0xfb73x1f);onInvite(_0xfb73x1c,++_0xfb73x1d,0,0,_0xfb73x20,_0xfb73x16,_0xfb73x12);return ;};break ;;default:console[_0x6b88[24]](_0x6b88[80]);;};}else {onInvite(_0xfb73x1c,++_0xfb73x1d,0,0,_0xfb73x20,_0xfb73x16,_0xfb73x12);return ;};}else {_0xfb73x21=_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[22]];if(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[14]][_0x6b88[67]]&&onInterval(_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[11]]?_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[11]]:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[65]])){onReport({uniqueid:_0xfb73x1c[_0x6b88[48]],chatroomid:_0xfb73x16[_0x6b88[50]],sorting:_0xfb73x20,subject:_0xfb73x1c[_0x6b88[73]],timeslot:_0xfb73x21,from:_0xfb73x1c[_0x6b88[74]],attachment:_0xfb73x1c[_0x6b88[75]],accountname:_0xfb73x1c[_0x6b88[53]],accountaddress:_0xfb73x1c[_0x6b88[54]],application:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[68]],fullname:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[14]][_0x6b88[36]],membername:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[14]][_0x6b88[53]],agentid:_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[14]][_0x6b88[50]],lastevent:_0x6b88[69],holdtime:_0xfb73x1f,agentcalledAt:moment()[_0x6b88[34]](_0x6b88[33]),visitorname:_0xfb73x1c[_0x6b88[36]],visitoremail:_0xfb73x1c[_0x6b88[52]],websitename:_0xfb73x1c[_0x6b88[53]],websiteid:_0xfb73x1c[_0x6b88[50]],websiteaddress:_0xfb73x1c[_0x6b88[54]]});console[_0x6b88[62]](_0x6b88[71],_0xfb73x1c[_0x6b88[46]][_0xfb73x1d][_0x6b88[14]][_0x6b88[53]],_0x6b88[22],_0xfb73x21,_0x6b88[61],_0xfb73x1f);_0xfb73x22=setTimeout(function(){onReportUpdate({uniqueid:_0xfb73x1c[_0x6b88[48]],count:_0xfb73x20,reason:_0x6b88[22],lastevent:_0x6b88[22],agentringnoanswerAt:moment()[_0x6b88[34]](_0x6b88[33])});onInvite(_0xfb73x1c,++_0xfb73x1d,0,0,_0xfb73x20,_0xfb73x16,_0xfb73x12);return ;},_0xfb73x21*1000);if(!timeouts[_0xfb73x1c[_0x6b88[48]]]){timeouts[_0xfb73x1c[_0x6b88[48]]]={}};timeouts[_0xfb73x1c[_0x6b88[48]]][_0x6b88[22]]=_0xfb73x22;timeouts[_0xfb73x1c[_0x6b88[48]]][_0x6b88[23]]=_0xfb73x12;}else {onInvite(_0xfb73x1c,++_0xfb73x1d,0,0,++_0xfb73x20,_0xfb73x16,_0xfb73x12);return;};};}function onReport(_0xfb73x27,_0xfb73x28){if(_0xfb73x28){ReportChat[_0x6b88[82]](_0xfb73x27,{individualHooks:true})[_0x6b88[25]](function(_0xfb73x15){console[_0x6b88[24]](_0xfb73x15)})}else {ReportChat[_0x6b88[43]](_0xfb73x27)[_0x6b88[25]](function(_0xfb73x15){console[_0x6b88[24]](_0xfb73x15)})}}function onReportSession(_0xfb73x27){ReportChatSession[_0x6b88[84]]({where:{uniqueid:_0xfb73x27[_0x6b88[21]]},defaults:_0xfb73x27})[_0x6b88[83]](function(ReportChatSession,_0xfb73x2a){if(!_0xfb73x2a){ReportChatSession[_0x6b88[27]](_0xfb73x27,{individualHooks:true})[_0x6b88[25]](function(_0xfb73x15){console[_0x6b88[24]](_0xfb73x15)})}})}function onReportUpdate(_0xfb73x27){ReportChat[_0x6b88[27]](_0xfb73x27,{where:{uniqueid:_0xfb73x27[_0x6b88[21]],sorting:_0xfb73x27[_0x6b88[78]]},individualHooks:true})[_0x6b88[25]](function(_0xfb73x15){console[_0x6b88[24]](_0xfb73x15)})}function onInterval(_0xfb73x2d){if(_[_0x6b88[85]](_0xfb73x2d)){for(var _0xfb73x1d=0;_0xfb73x1d<_0xfb73x2d[_0x6b88[86]][_0x6b88[45]];_0xfb73x1d++){if(!onCheckInterval(_0xfb73x2d[_0x6b88[86]][_0xfb73x1d][_0x6b88[65]])){return false}};return true;}else {return onCheckInterval(_0xfb73x2d)}}function onCheckInterval(_0xfb73x2d){var _0xfb73x2f=[_0x6b88[87],_0x6b88[88],_0x6b88[89],_0x6b88[90],_0x6b88[91],_0x6b88[92],_0x6b88[93]];var _0xfb73x30=[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 _0xfb73x31=[_0x6b88[94],_0x6b88[95],_0x6b88[96],_0x6b88[97],_0x6b88[98],_0x6b88[99],_0x6b88[100],_0x6b88[101],_0x6b88[102],_0x6b88[103],_0x6b88[104],_0x6b88[105]];var _0xfb73x1d,_0xfb73x32;var _0xfb73x33=_0xfb73x2d[_0x6b88[107]](_0x6b88[106])[0];var _0xfb73x34=_0xfb73x2d[_0x6b88[107]](_0x6b88[106])[1];var _0xfb73x35=_0xfb73x2d[_0x6b88[107]](_0x6b88[106])[2];var _0xfb73x36=_0xfb73x2d[_0x6b88[107]](_0x6b88[106])[3];if(_0xfb73x33!==_0x6b88[108]){var _0xfb73x37=moment()[_0x6b88[34]](_0x6b88[109]);var _0xfb73x38=_0xfb73x33[_0x6b88[107]](_0x6b88[110])[0];var _0xfb73x39=_0xfb73x33[_0x6b88[107]](_0x6b88[110])[1];if((_0xfb73x37<_0xfb73x38)||(_0xfb73x37>_0xfb73x39)){console[_0x6b88[62]](_0x6b88[111]);return false;};};if(_0xfb73x34!==_0x6b88[108]){var _0xfb73x3a=_0xfb73x2f[moment()[_0x6b88[112]]()];var _0xfb73x3b=_[_0x6b88[113]](_0xfb73x2f,_0xfb73x34[_0x6b88[107]](_0x6b88[110])[0]);var _0xfb73x3c=_[_0x6b88[113]](_0xfb73x2f,_0xfb73x34[_0x6b88[107]](_0x6b88[110])[1]);for(_0xfb73x1d=0;_0xfb73x1d<_0xfb73x3b;_0xfb73x1d++){_0xfb73x32=_0xfb73x2f[_0x6b88[114]]();_0xfb73x2f[_0x6b88[76]](_0xfb73x32);};_0xfb73x3b=_[_0x6b88[113]](_0xfb73x2f,_0xfb73x34[_0x6b88[107]](_0x6b88[110])[0]);_0xfb73x3c=_[_0x6b88[113]](_0xfb73x2f,_0xfb73x34[_0x6b88[107]](_0x6b88[110])[1])+1;_0xfb73x2f=_0xfb73x2f[_0x6b88[115]](_0xfb73x3b,_0xfb73x3c);if(!_[_0x6b88[116]](_0xfb73x2f,_0xfb73x3a)){console[_0x6b88[62]](_0x6b88[117]);return false;};};if(_0xfb73x35!==_0x6b88[108]){var _0xfb73x3d=moment()[_0x6b88[118]]();var _0xfb73x3e=_[_0x6b88[113]](_0xfb73x30,parseInt(_0xfb73x35[_0x6b88[107]](_0x6b88[110])[0],10));var _0xfb73x3f=_[_0x6b88[113]](_0xfb73x30,parseInt(_0xfb73x35[_0x6b88[107]](_0x6b88[110])[1]));for(_0xfb73x1d=0;_0xfb73x1d<_0xfb73x3e;_0xfb73x1d++){_0xfb73x32=_0xfb73x30[_0x6b88[114]]();_0xfb73x30[_0x6b88[76]](_0xfb73x32);};_0xfb73x3e=_[_0x6b88[113]](_0xfb73x30,parseInt(_0xfb73x35[_0x6b88[107]](_0x6b88[110])[0],10));_0xfb73x3f=_[_0x6b88[113]](_0xfb73x30,parseInt(_0xfb73x35[_0x6b88[107]](_0x6b88[110])[1]),10)+1;_0xfb73x30=_0xfb73x30[_0x6b88[115]](_0xfb73x3e,_0xfb73x3f);if(!_[_0x6b88[116]](_0xfb73x30,_0xfb73x3d)){console[_0x6b88[62]](_0x6b88[119]);return false;};};if(_0xfb73x36!==_0x6b88[108]){var _0xfb73x40=_0xfb73x31[moment()[_0x6b88[120]]()];var _0xfb73x41=_[_0x6b88[113]](_0xfb73x31,_0xfb73x36[_0x6b88[107]](_0x6b88[110])[0]);var _0xfb73x42=_[_0x6b88[113]](_0xfb73x31,_0xfb73x36[_0x6b88[107]](_0x6b88[110])[1]);for(_0xfb73x1d=0;_0xfb73x1d<_0xfb73x41;_0xfb73x1d++){_0xfb73x32=_0xfb73x31[_0x6b88[114]]();_0xfb73x31[_0x6b88[76]](_0xfb73x32);};_0xfb73x41=_[_0x6b88[113]](_0xfb73x31,_0xfb73x36[_0x6b88[107]](_0x6b88[110])[0]);_0xfb73x42=_[_0x6b88[113]](_0xfb73x31,_0xfb73x36[_0x6b88[107]](_0x6b88[110])[1])+1;_0xfb73x31=_0xfb73x31[_0x6b88[115]](_0xfb73x41,_0xfb73x42);if(!_[_0x6b88[116]](_0xfb73x31,_0xfb73x40)){console[_0x6b88[62]](_0x6b88[121]);return false;};};console[_0x6b88[62]](_0x6b88[122]);return true;}
\ No newline at end of file
+var _0x94e9=["\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"];_0x94e9[0];var _=require(_0x94e9[1]);var moment=require(_0x94e9[2]);var md5=require(_0x94e9[3]);var ChatApplication=require(_0x94e9[5])[_0x94e9[4]];var ChatWebsite=require(_0x94e9[5])[_0x94e9[6]];var ChatVisitor=require(_0x94e9[5])[_0x94e9[7]];var ChatMessage=require(_0x94e9[5])[_0x94e9[8]];var ChatQueue=require(_0x94e9[5])[_0x94e9[9]];var ChatRoom=require(_0x94e9[5])[_0x94e9[10]];var Interval=require(_0x94e9[5])[_0x94e9[11]];var ReportChatSession=require(_0x94e9[5])[_0x94e9[12]];var ReportChat=require(_0x94e9[5])[_0x94e9[13]];var User=require(_0x94e9[5])[_0x94e9[14]];var timeouts={};module[_0x94e9[15]]=function(_0x2985xf){var _0x2985x10=_0x2985xf[_0x94e9[16]]();_0x2985x10[_0x94e9[18]](_0x94e9[17],20,function(_0x2985x11,_0x2985x12){onProcess(_0x2985x11,_0x2985x12)});ReportChat[_0x94e9[39]](function(_0x2985x13){var _0x2985x14;if(_0x2985x13[_0x94e9[20]](_0x94e9[19])){if(timeouts[_0x2985x13[_0x94e9[21]]]){clearTimeout(timeouts[_0x2985x13[_0x94e9[21]]][_0x94e9[22]]);timeouts[_0x2985x13[_0x94e9[21]]][_0x94e9[23]]();delete timeouts[_0x2985x13[_0x94e9[21]]];};ChatRoom[_0x94e9[32]](_0x2985x13[_0x94e9[31]])[_0x94e9[28]](function(_0x2985x16){_0x2985x14=_0x2985x16;_0x2985x16[_0x94e9[30]](_0x2985x13[_0x94e9[29]],{individualHooks:true});})[_0x94e9[28]](function(){_0x2985x14[_0x94e9[27]]({status:_0x94e9[26]})})[_0x94e9[25]](function(_0x2985x15){console[_0x94e9[24]](_0x2985x15)});ReportChat[_0x94e9[27]]({agentringnoanswerAt:moment()[_0x94e9[34]](_0x94e9[33]),reason:_0x94e9[35],lastevent:_0x94e9[35]},{where:{uniqueid:_0x2985x13[_0x94e9[21]],reason:null},individualHooks:true})[_0x94e9[25]](function(_0x2985x15){console[_0x94e9[24]](_0x2985x15)});ReportChatSession[_0x94e9[27]]({chatleaveAt:moment()[_0x94e9[34]](_0x94e9[33]),agentid:_0x2985x13[_0x94e9[29]],fullname:_0x2985x13[_0x94e9[36]],membername:_0x2985x13[_0x94e9[37]],chatqueuename:_0x2985x13[_0x94e9[38]]},{where:{uniqueid:_0x2985x13[_0x94e9[21]]},individualHooks:true})[_0x94e9[25]](function(_0x2985x15){console[_0x94e9[24]](_0x2985x15)});};});ChatVisitor[_0x94e9[40]](function(_0x2985x13){onSave(_0x2985x10,_0x2985x13)});};function onSave(_0x2985xf,_0x2985x13,_0x2985x18){_0x2985xf[_0x94e9[43]](_0x94e9[17],_0x2985x13[_0x94e9[42]])[_0x94e9[41]]()}function onProcess(_0x2985x11,_0x2985x12){ChatWebsite[_0x94e9[32]](_0x2985x11[_0x94e9[49]].ChatWebsiteId,{include:[{model:ChatApplication,include:[{model:ChatQueue,include:[{model:User}]},{model:User},{model:Interval,include:[{all:true}]}]}]})[_0x94e9[28]](function(ChatWebsite){if(!ChatWebsite){_0x2985x12( new Error(_0x94e9[44]));return ;};if(!ChatWebsite[_0x94e9[46]][_0x94e9[45]]){_0x2985x12( new Error(_0x94e9[47]));return ;};_0x2985x11[_0x94e9[49]][_0x94e9[48]]=_0x2985x11[_0x94e9[49]][_0x94e9[50]];var _0x2985x1a=_[_0x94e9[51]](_0x2985x11[_0x94e9[49]],ChatWebsite[_0x94e9[42]]);ChatRoom[_0x94e9[43]]({type:_0x94e9[57],ChatVisitorId:_0x2985x1a[_0x94e9[48]],ChatWebsiteId:_0x2985x1a[_0x94e9[50]]},{include:[{all:true}]})[_0x94e9[28]](function(_0x2985x16){onReportSession({uniqueid:_0x2985x1a[_0x94e9[48]],chatroomid:_0x2985x16[_0x94e9[50]],visitorname:_0x2985x1a[_0x94e9[36]],visitoremail:_0x2985x1a[_0x94e9[52]],websitename:_0x2985x1a[_0x94e9[53]],websiteid:_0x2985x1a[_0x94e9[50]],websiteaddress:_0x2985x1a[_0x94e9[54]],chatjoinAt:moment()[_0x94e9[34]](_0x94e9[33])});_0x2985x1a[_0x94e9[46]]=_[_0x94e9[56]](_0x2985x1a.ChatApplications,_0x94e9[55]);onInvite(_0x2985x1a,0,0,0,0,_0x2985x16,_0x2985x12);})[_0x94e9[25]](function(_0x2985x15){console[_0x94e9[24]](_0x2985x15)});})[_0x94e9[25]](function(_0x2985x15){console[_0x94e9[24]](_0x2985x15)})}function onInvite(_0x2985x1c,_0x2985x1d,_0x2985x1e,_0x2985x1f,_0x2985x20,_0x2985x16,_0x2985x12){console[_0x94e9[62]](_0x94e9[58],_0x94e9[59],_0x2985x1d,_0x94e9[60],_0x2985x1e,_0x94e9[61],_0x2985x1f);var _0x2985x21=0;var _0x2985x22;if(_0x2985x1d===_0x2985x1c[_0x94e9[46]][_0x94e9[45]]){console[_0x94e9[24]](_0x94e9[47]);onReportSession({uniqueid:_0x2985x1c[_0x94e9[48]],mailunmanagedAt:moment()[_0x94e9[34]](_0x94e9[33]),mailleaveAt:moment()[_0x94e9[34]](_0x94e9[33])});_0x2985x12( new Error(_0x94e9[47]));return ;};if(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]]){var _0x2985x23=_[_0x94e9[64]](_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]].Users,{online:true})[_0x94e9[63]];if(_0x2985x23&&onInterval(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[11]]?_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[11]]:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[65]])){if(_0x2985x1e===_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[66]][_0x94e9[45]]){if(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[22]]>_0x2985x1f){onInvite(_0x2985x1c,_0x2985x1d,0,_0x2985x1f,_0x2985x20,_0x2985x16,_0x2985x12);return ;}else {onInvite(_0x2985x1c,++_0x2985x1d,0,0,_0x2985x20,_0x2985x16,_0x2985x12);return ;}};switch(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[81]]){case _0x94e9[72]:if(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[66]][_0x2985x1e][_0x94e9[67]]&&onInterval(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[11]]?_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[11]]:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[65]])){_0x2985x21=(((_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[22]]-_0x2985x1f)>_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[22]])?_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[22]]:(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[22]]-_0x2985x1f));onReport({uniqueid:_0x2985x1c[_0x94e9[48]],chatroomid:_0x2985x16[_0x94e9[50]],visitorname:_0x2985x1c[_0x94e9[36]],visitoremail:_0x2985x1c[_0x94e9[52]],websitename:_0x2985x1c[_0x94e9[53]],websiteid:_0x2985x1c[_0x94e9[50]],websiteaddress:_0x2985x1c[_0x94e9[54]],sorting:_0x2985x20,timeslot:_0x2985x21,application:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[68]],fullname:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[66]][_0x2985x1e][_0x94e9[36]],membername:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[66]][_0x2985x1e][_0x94e9[53]],agentid:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[66]][_0x2985x1e][_0x94e9[50]],chatqueuename:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[53]],lastevent:_0x94e9[69],holdtime:_0x2985x1f,agentcalledAt:moment()[_0x94e9[34]](_0x94e9[33])});console[_0x94e9[62]](_0x94e9[70],_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[53]],_0x94e9[71],_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[66]][_0x2985x1e][_0x94e9[53]],_0x94e9[22],_0x2985x21,_0x94e9[61],_0x2985x1f);_0x2985x22=setTimeout(function(){onReportUpdate({uniqueid:_0x2985x1c[_0x94e9[48]],count:_0x2985x20,reason:_0x94e9[22],lastevent:_0x94e9[22],agentringnoanswerAt:moment()[_0x94e9[34]](_0x94e9[33])});_0x2985x1f+=_0x2985x21;onInvite(_0x2985x1c,_0x2985x1d,++_0x2985x1e,_0x2985x1f,++_0x2985x20,_0x2985x16,_0x2985x12);return ;},_0x2985x21*1000);if(!timeouts[_0x2985x1c[_0x94e9[48]]]){timeouts[_0x2985x1c[_0x94e9[48]]]={}};timeouts[_0x2985x1c[_0x94e9[48]]][_0x94e9[22]]=_0x2985x22;timeouts[_0x2985x1c[_0x94e9[48]]][_0x94e9[23]]=_0x2985x12;}else {onInvite(_0x2985x1c,_0x2985x1d,++_0x2985x1e,_0x2985x1f,_0x2985x20,_0x2985x16,_0x2985x12);return ;};break ;;case _0x94e9[79]:_0x2985x21=(((_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[22]]-_0x2985x1f)>_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[22]])?_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[22]]:(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[22]]-_0x2985x1f));var _0x2985x24=[];_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[66]][_0x94e9[77]](function(_0x2985x25){if(_0x2985x25[_0x94e9[67]]){_0x2985x24[_0x94e9[76]]({uniqueid:_0x2985x1c[_0x94e9[48]],chatroomid:_0x2985x16[_0x94e9[50]],sorting:_0x2985x20,subject:_0x2985x1c[_0x94e9[73]],timeslot:_0x2985x21,from:_0x2985x1c[_0x94e9[74]],attachment:_0x2985x1c[_0x94e9[75]],accountname:_0x2985x1c[_0x94e9[53]],accountaddress:_0x2985x1c[_0x94e9[54]],application:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[68]],fullname:_0x2985x25[_0x94e9[36]],membername:_0x2985x25[_0x94e9[53]],agentid:_0x2985x25[_0x94e9[50]],chatqueuename:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[53]],lastevent:_0x94e9[69],holdtime:_0x2985x1f,agentcalledAt:moment()[_0x94e9[34]](_0x94e9[33]),visitorname:_0x2985x1c[_0x94e9[36]],visitoremail:_0x2985x1c[_0x94e9[52]],websitename:_0x2985x1c[_0x94e9[53]],websiteid:_0x2985x1c[_0x94e9[50]],websiteaddress:_0x2985x1c[_0x94e9[54]]})}});if(_0x2985x24[_0x94e9[45]]&&onInterval(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[11]]?_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[11]]:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[65]])){onReport(_0x2985x24,true);_0x2985x22=setTimeout(function(){console[_0x94e9[62]](_0x94e9[78],_0x2985x20);onReportUpdate({uniqueid:_0x2985x1c[_0x94e9[48]],count:_0x2985x20,reason:_0x94e9[22],lastevent:_0x94e9[22],agentringnoanswerAt:moment()[_0x94e9[34]](_0x94e9[33])});_0x2985x1f+=_0x2985x21;_0x2985x1e+=_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[66]][_0x94e9[45]];onInvite(_0x2985x1c,_0x2985x1d,_0x2985x1e,_0x2985x1f,++_0x2985x20,_0x2985x16,_0x2985x12);return ;},_0x2985x21*1000);if(!timeouts[_0x2985x1c[_0x94e9[48]]]){timeouts[_0x2985x1c[_0x94e9[48]]]={}};timeouts[_0x2985x1c[_0x94e9[48]]][_0x94e9[22]]=_0x2985x22;timeouts[_0x2985x1c[_0x94e9[48]]][_0x94e9[23]]=_0x2985x12;}else {console[_0x94e9[62]](_0x94e9[70],_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[9]][_0x94e9[53]],_0x94e9[22],_0x2985x21,_0x94e9[61],_0x2985x1f);onInvite(_0x2985x1c,++_0x2985x1d,0,0,_0x2985x20,_0x2985x16,_0x2985x12);return ;};break ;;default:console[_0x94e9[24]](_0x94e9[80]);;};}else {onInvite(_0x2985x1c,++_0x2985x1d,0,0,_0x2985x20,_0x2985x16,_0x2985x12);return ;};}else {_0x2985x21=_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[22]];if(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[14]][_0x94e9[67]]&&onInterval(_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[11]]?_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[11]]:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[65]])){onReport({uniqueid:_0x2985x1c[_0x94e9[48]],chatroomid:_0x2985x16[_0x94e9[50]],sorting:_0x2985x20,subject:_0x2985x1c[_0x94e9[73]],timeslot:_0x2985x21,from:_0x2985x1c[_0x94e9[74]],attachment:_0x2985x1c[_0x94e9[75]],accountname:_0x2985x1c[_0x94e9[53]],accountaddress:_0x2985x1c[_0x94e9[54]],application:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[68]],fullname:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[14]][_0x94e9[36]],membername:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[14]][_0x94e9[53]],agentid:_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[14]][_0x94e9[50]],lastevent:_0x94e9[69],holdtime:_0x2985x1f,agentcalledAt:moment()[_0x94e9[34]](_0x94e9[33]),visitorname:_0x2985x1c[_0x94e9[36]],visitoremail:_0x2985x1c[_0x94e9[52]],websitename:_0x2985x1c[_0x94e9[53]],websiteid:_0x2985x1c[_0x94e9[50]],websiteaddress:_0x2985x1c[_0x94e9[54]]});console[_0x94e9[62]](_0x94e9[71],_0x2985x1c[_0x94e9[46]][_0x2985x1d][_0x94e9[14]][_0x94e9[53]],_0x94e9[22],_0x2985x21,_0x94e9[61],_0x2985x1f);_0x2985x22=setTimeout(function(){onReportUpdate({uniqueid:_0x2985x1c[_0x94e9[48]],count:_0x2985x20,reason:_0x94e9[22],lastevent:_0x94e9[22],agentringnoanswerAt:moment()[_0x94e9[34]](_0x94e9[33])});onInvite(_0x2985x1c,++_0x2985x1d,0,0,_0x2985x20,_0x2985x16,_0x2985x12);return ;},_0x2985x21*1000);if(!timeouts[_0x2985x1c[_0x94e9[48]]]){timeouts[_0x2985x1c[_0x94e9[48]]]={}};timeouts[_0x2985x1c[_0x94e9[48]]][_0x94e9[22]]=_0x2985x22;timeouts[_0x2985x1c[_0x94e9[48]]][_0x94e9[23]]=_0x2985x12;}else {onInvite(_0x2985x1c,++_0x2985x1d,0,0,++_0x2985x20,_0x2985x16,_0x2985x12);return;};};}function onReport(_0x2985x27,_0x2985x28){if(_0x2985x28){ReportChat[_0x94e9[82]](_0x2985x27,{individualHooks:true})[_0x94e9[25]](function(_0x2985x15){console[_0x94e9[24]](_0x2985x15)})}else {ReportChat[_0x94e9[43]](_0x2985x27)[_0x94e9[25]](function(_0x2985x15){console[_0x94e9[24]](_0x2985x15)})}}function onReportSession(_0x2985x27){ReportChatSession[_0x94e9[84]]({where:{uniqueid:_0x2985x27[_0x94e9[21]]},defaults:_0x2985x27})[_0x94e9[83]](function(ReportChatSession,_0x2985x2a){if(!_0x2985x2a){ReportChatSession[_0x94e9[27]](_0x2985x27,{individualHooks:true})[_0x94e9[25]](function(_0x2985x15){console[_0x94e9[24]](_0x2985x15)})}})}function onReportUpdate(_0x2985x27){ReportChat[_0x94e9[27]](_0x2985x27,{where:{uniqueid:_0x2985x27[_0x94e9[21]],sorting:_0x2985x27[_0x94e9[78]]},individualHooks:true})[_0x94e9[25]](function(_0x2985x15){console[_0x94e9[24]](_0x2985x15)})}function onInterval(_0x2985x2d){if(_[_0x94e9[85]](_0x2985x2d)){for(var _0x2985x1d=0;_0x2985x1d<_0x2985x2d[_0x94e9[86]][_0x94e9[45]];_0x2985x1d++){if(!onCheckInterval(_0x2985x2d[_0x94e9[86]][_0x2985x1d][_0x94e9[65]])){return false}};return true;}else {return onCheckInterval(_0x2985x2d)}}function onCheckInterval(_0x2985x2d){var _0x2985x2f=[_0x94e9[87],_0x94e9[88],_0x94e9[89],_0x94e9[90],_0x94e9[91],_0x94e9[92],_0x94e9[93]];var _0x2985x30=[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 _0x2985x31=[_0x94e9[94],_0x94e9[95],_0x94e9[96],_0x94e9[97],_0x94e9[98],_0x94e9[99],_0x94e9[100],_0x94e9[101],_0x94e9[102],_0x94e9[103],_0x94e9[104],_0x94e9[105]];var _0x2985x1d,_0x2985x32;var _0x2985x33=_0x2985x2d[_0x94e9[107]](_0x94e9[106])[0];var _0x2985x34=_0x2985x2d[_0x94e9[107]](_0x94e9[106])[1];var _0x2985x35=_0x2985x2d[_0x94e9[107]](_0x94e9[106])[2];var _0x2985x36=_0x2985x2d[_0x94e9[107]](_0x94e9[106])[3];if(_0x2985x33!==_0x94e9[108]){var _0x2985x37=moment()[_0x94e9[34]](_0x94e9[109]);var _0x2985x38=_0x2985x33[_0x94e9[107]](_0x94e9[110])[0];var _0x2985x39=_0x2985x33[_0x94e9[107]](_0x94e9[110])[1];if((_0x2985x37<_0x2985x38)||(_0x2985x37>_0x2985x39)){console[_0x94e9[62]](_0x94e9[111]);return false;};};if(_0x2985x34!==_0x94e9[108]){var _0x2985x3a=_0x2985x2f[moment()[_0x94e9[112]]()];var _0x2985x3b=_[_0x94e9[113]](_0x2985x2f,_0x2985x34[_0x94e9[107]](_0x94e9[110])[0]);var _0x2985x3c=_[_0x94e9[113]](_0x2985x2f,_0x2985x34[_0x94e9[107]](_0x94e9[110])[1]);for(_0x2985x1d=0;_0x2985x1d<_0x2985x3b;_0x2985x1d++){_0x2985x32=_0x2985x2f[_0x94e9[114]]();_0x2985x2f[_0x94e9[76]](_0x2985x32);};_0x2985x3b=_[_0x94e9[113]](_0x2985x2f,_0x2985x34[_0x94e9[107]](_0x94e9[110])[0]);_0x2985x3c=_[_0x94e9[113]](_0x2985x2f,_0x2985x34[_0x94e9[107]](_0x94e9[110])[1])+1;_0x2985x2f=_0x2985x2f[_0x94e9[115]](_0x2985x3b,_0x2985x3c);if(!_[_0x94e9[116]](_0x2985x2f,_0x2985x3a)){console[_0x94e9[62]](_0x94e9[117]);return false;};};if(_0x2985x35!==_0x94e9[108]){var _0x2985x3d=moment()[_0x94e9[118]]();var _0x2985x3e=_[_0x94e9[113]](_0x2985x30,parseInt(_0x2985x35[_0x94e9[107]](_0x94e9[110])[0],10));var _0x2985x3f=_[_0x94e9[113]](_0x2985x30,parseInt(_0x2985x35[_0x94e9[107]](_0x94e9[110])[1]));for(_0x2985x1d=0;_0x2985x1d<_0x2985x3e;_0x2985x1d++){_0x2985x32=_0x2985x30[_0x94e9[114]]();_0x2985x30[_0x94e9[76]](_0x2985x32);};_0x2985x3e=_[_0x94e9[113]](_0x2985x30,parseInt(_0x2985x35[_0x94e9[107]](_0x94e9[110])[0],10));_0x2985x3f=_[_0x94e9[113]](_0x2985x30,parseInt(_0x2985x35[_0x94e9[107]](_0x94e9[110])[1]),10)+1;_0x2985x30=_0x2985x30[_0x94e9[115]](_0x2985x3e,_0x2985x3f);if(!_[_0x94e9[116]](_0x2985x30,_0x2985x3d)){console[_0x94e9[62]](_0x94e9[119]);return false;};};if(_0x2985x36!==_0x94e9[108]){var _0x2985x40=_0x2985x31[moment()[_0x94e9[120]]()];var _0x2985x41=_[_0x94e9[113]](_0x2985x31,_0x2985x36[_0x94e9[107]](_0x94e9[110])[0]);var _0x2985x42=_[_0x94e9[113]](_0x2985x31,_0x2985x36[_0x94e9[107]](_0x94e9[110])[1]);for(_0x2985x1d=0;_0x2985x1d<_0x2985x41;_0x2985x1d++){_0x2985x32=_0x2985x31[_0x94e9[114]]();_0x2985x31[_0x94e9[76]](_0x2985x32);};_0x2985x41=_[_0x94e9[113]](_0x2985x31,_0x2985x36[_0x94e9[107]](_0x94e9[110])[0]);_0x2985x42=_[_0x94e9[113]](_0x2985x31,_0x2985x36[_0x94e9[107]](_0x94e9[110])[1])+1;_0x2985x31=_0x2985x31[_0x94e9[115]](_0x2985x41,_0x2985x42);if(!_[_0x94e9[116]](_0x2985x31,_0x2985x40)){console[_0x94e9[62]](_0x94e9[121]);return false;};};console[_0x94e9[62]](_0x94e9[122]);return true;}
\ No newline at end of file
-var _0x186d=["\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"];_0x186d[0];var _=require(_0x186d[1]);var config=require(_0x186d[2]);var async=require(_0x186d[3]);var sockets={};var User=require(_0x186d[5])[_0x186d[4]];var Event=require(_0x186d[5])[_0x186d[6]];var FaxQueue=require(_0x186d[5])[_0x186d[7]];function invite(_0xbbe8x9,_0xbbe8xa,_0xbbe8xb,_0xbbe8xc,_0xbbe8xd){var _0xbbe8xe=0;var _0xbbe8xf=0;var _0xbbe8x10=[];var _0xbbe8x11=[];if(_0xbbe8xa===_0xbbe8x9[_0x186d[9]][_0x186d[8]]){_0xbbe8x10[_0x186d[14]]({name:_0x186d[10],channel:_0x186d[11],FaxRoomId:_0xbbe8x9[_0x186d[12]],FaxAccountId:_0xbbe8x9[_0x186d[13]]});traceEvent(_0xbbe8x10,function(){});_0xbbe8xd( new Error(_0x186d[15]));return ;};if(_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]){_0xbbe8xf=(((_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[16]]-_0xbbe8xe)>_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[16]])?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[16]]:(_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[16]]-_0xbbe8xe));switch(_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[25]]){case _0x186d[20]:_0xbbe8x10[_0x186d[14]]({name:_0x186d[17],channel:_0x186d[11],timeout:_0xbbe8xf,UserId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0xbbe8xb][_0x186d[18]],FaxRoomId:_0xbbe8x9[_0x186d[12]],FaxQueueId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]]:null,FaxAccountId:_0xbbe8x9[_0x186d[13]],FaxApplicationId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[18]]});_0xbbe8x11[_0x186d[14]](_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0xbbe8xb][_0x186d[18]]);break ;;case _0x186d[22]:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0x186d[21]](function(_0xbbe8x12){var _0xbbe8x13={name:_0x186d[17],channel:_0x186d[11],timeout:_0xbbe8xf,UserId:_0xbbe8x12[_0x186d[18]],FaxRoomId:_0xbbe8x9[_0x186d[12]],FaxQueueId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]]:null,FaxAccountId:_0xbbe8x9[_0x186d[13]],FaxApplicationId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[18]]};_0xbbe8x10[_0x186d[14]](_0xbbe8x13);_0xbbe8x11[_0x186d[14]](_0xbbe8x12[_0x186d[18]]);});break ;;default:console[_0x186d[24]](_0x186d[23]);;};traceEvent(_0xbbe8x10,function(){emitEvent(_0xbbe8x11,_0x186d[26]+_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]],{timeout:_0xbbe8xf,roomId:_0xbbe8x9[_0x186d[12]]},function(_0xbbe8x14){clearInterval(_0xbbe8x15);clearTimeout(_0xbbe8x16);var _0xbbe8x10=[{name:_0x186d[27],channel:_0x186d[11],timeout:_0xbbe8xf,UserId:_0xbbe8x14,FaxRoomId:_0xbbe8x9[_0x186d[12]],FaxQueueId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]]:null,FaxAccountId:_0xbbe8x9[_0x186d[13]],FaxApplicationId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[18]]}];traceEvent(_0xbbe8x10,function(){_0xbbe8xd()});})});}else {_0xbbe8xf=_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[16]];_0xbbe8x11[_0x186d[14]](_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0xbbe8xb][_0x186d[18]]);_0xbbe8x10=[{name:_0x186d[17],channel:_0x186d[11],timeout:_0xbbe8xf,UserId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0xbbe8xb][_0x186d[18]],FaxRoomId:_0xbbe8x9[_0x186d[12]],FaxQueueId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]]:null,FaxAccountId:_0xbbe8x9[_0x186d[13]],FaxApplicationId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[18]]}];traceEvent(_0xbbe8x10,function(){emitEvent(_0xbbe8x11,_0x186d[28]+_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0xbbe8xb][_0x186d[18]],{timeout:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[16]],roomId:_0xbbe8x9[_0x186d[12]]},function(_0xbbe8x14){clearInterval(_0xbbe8x15);clearTimeout(_0xbbe8x16);var _0xbbe8x10=[{name:_0x186d[27],channel:_0x186d[11],timeout:_0xbbe8xf,UserId:_0xbbe8x14,FaxRoomId:_0xbbe8x9[_0x186d[12]],FaxQueueId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]]:null,FaxAccountId:_0xbbe8x9[_0x186d[13]],FaxApplicationId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[18]]}];traceEvent(_0xbbe8x10,function(){_0xbbe8xd()});})});};var _0xbbe8x15=setInterval(function(){var _0xbbe8xf=0;_0xbbe8xb++;if(_0xbbe8xb===_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0x186d[8]]){_0xbbe8xb=0};if(_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]){_0xbbe8xe+=_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[16]];_0xbbe8xf=(((_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[16]]-_0xbbe8xe)>_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[16]])?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[16]]:(_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[16]]-_0xbbe8xe));var _0xbbe8x10=[];var _0xbbe8x11=[];switch(_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[25]]){case _0x186d[20]:var _0xbbe8x13={name:_0x186d[17],channel:_0x186d[11],timeout:_0xbbe8xf,UserId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0xbbe8xb][_0x186d[18]],FaxRoomId:_0xbbe8x9[_0x186d[12]],FaxQueueId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]]:null,FaxAccountId:_0xbbe8x9[_0x186d[13]],FaxApplicationId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[18]]};_0xbbe8x10[_0x186d[14]](_0xbbe8x13);_0xbbe8x11[_0x186d[14]](_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0xbbe8xb][_0x186d[18]]);break ;;case _0x186d[22]:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0x186d[21]](function(_0xbbe8x12){var _0xbbe8x13={name:_0x186d[17],channel:_0x186d[11],timeout:_0xbbe8xf,UserId:_0xbbe8x12[_0x186d[18]],FaxRoomId:_0xbbe8x9[_0x186d[12]],FaxQueueId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]]:null,FaxAccountId:_0xbbe8x9[_0x186d[13]],FaxApplicationId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[18]]};_0xbbe8x10[_0x186d[14]](_0xbbe8x13);_0xbbe8x11[_0x186d[14]](_0xbbe8x12[_0x186d[18]]);});break ;;default:console[_0x186d[24]](_0x186d[23]);;};traceEvent(_0xbbe8x10,function(){emitEvent(_0xbbe8x11,_0x186d[26]+_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]],{timeout:_0xbbe8xf,roomId:_0xbbe8x9[_0x186d[12]]},function(_0xbbe8x14){console[_0x186d[24]](_0x186d[29],_0xbbe8x14);clearInterval(_0xbbe8x15);clearTimeout(_0xbbe8x16);var _0xbbe8x10=[{name:_0x186d[27],channel:_0x186d[11],timeout:_0xbbe8xf,UserId:_0xbbe8x14,FaxRoomId:_0xbbe8x9[_0x186d[12]],FaxQueueId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[18]]:null,FaxAccountId:_0xbbe8x9[_0x186d[13]],FaxApplicationId:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[18]]}];traceEvent(_0xbbe8x10,function(){_0xbbe8xd()});})});};},_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]]?_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[16]]*1000:_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[16]]*1000);var _0xbbe8x16=setTimeout(function(){clearInterval(_0xbbe8x15);invite(_0xbbe8x9,++_0xbbe8xa,0,_0xbbe8xc,_0xbbe8xd);},_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[16]]*1000);}function processing(_0xbbe8x18,_0xbbe8xd,_0xbbe8xc){var _0xbbe8xe=0;var _0xbbe8x19=[function(_0xbbe8x1a){_0xbbe8x1a(null,_0xbbe8x18[_0x186d[30]],_0xbbe8xd,_0xbbe8xc)},function(_0xbbe8x9,_0xbbe8xd,_0xbbe8xc,_0xbbe8x1a){for(var _0xbbe8xa=0;_0xbbe8xa<_0xbbe8x9[_0x186d[9]][_0x186d[8]];_0xbbe8xa++){switch(_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[34]]){case _0x186d[31]:if(!_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]]){_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]]=[]};_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0x186d[14]](_0xbbe8x9[_0x186d[9]][_0xbbe8xa].User);break ;;case _0x186d[33]:for(var _0xbbe8xb=0;_0xbbe8xb<_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[32]][_0x186d[8]];_0xbbe8xb++){if(!_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]]){_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]]=[]};_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[19]][_0x186d[14]](_0xbbe8x9[_0x186d[9]][_0xbbe8xa][_0x186d[7]][_0x186d[32]][_0xbbe8xb]);};break ;;default:;}};_0xbbe8x1a(null,_0xbbe8x9,_0xbbe8xd,_0xbbe8xc);}];async[_0x186d[35]](_0xbbe8x19,function(_0xbbe8x1b,_0xbbe8x9,_0xbbe8xd,_0xbbe8xc){invite(_0xbbe8x9,0,0,_0xbbe8xc,_0xbbe8xd)});}function traceEvent(_0xbbe8x10,_0xbbe8x1d){Event[_0x186d[39]](_0xbbe8x10)[_0x186d[38]](function(){if(_0xbbe8x1d){_0xbbe8x1d()}})[_0x186d[37]](function(_0xbbe8x1b){console[_0x186d[36]](_0xbbe8x1b)})}function emitEvent(_0xbbe8x11,_0xbbe8x1f,_0xbbe8x20,_0xbbe8x1d){_0xbbe8x11[_0x186d[21]](function(_0xbbe8x12){console[_0x186d[24]](_0xbbe8x1f,_0xbbe8x12);if(sockets[_0xbbe8x12]){sockets[_0xbbe8x12][_0x186d[40]](_0xbbe8x1f,_0xbbe8x20,_0xbbe8x1d)};})}module[_0x186d[41]]=function(_0xbbe8xc,_0xbbe8x21){var _0xbbe8x22=_0xbbe8x21[_0x186d[42]]();_0xbbe8x22[_0x186d[44]](_0x186d[43],20,function(_0xbbe8x18,_0xbbe8xd){processing(_0xbbe8x18,_0xbbe8xd,_0xbbe8xc)});require(_0x186d[46])[_0x186d[45]](_0xbbe8x22);_0xbbe8xc[_0x186d[51]](_0x186d[47],function(_0xbbe8x23){if(_0xbbe8x23[_0x186d[49]][_0x186d[48]][_0x186d[29]]){sockets[_0xbbe8x23[_0x186d[49]][_0x186d[48]][_0x186d[29]]]=_0xbbe8x23};_0xbbe8x23[_0x186d[51]](_0x186d[50],function(){if(sockets[_0xbbe8x23[_0x186d[49]][_0x186d[48]][_0x186d[29]]]){delete sockets[_0xbbe8x23[_0x186d[49]][_0x186d[48]][_0x186d[29]]]}});});};
\ No newline at end of file
+var _0x4d03=["\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"];_0x4d03[0];var _=require(_0x4d03[1]);var config=require(_0x4d03[2]);var async=require(_0x4d03[3]);var sockets={};var User=require(_0x4d03[5])[_0x4d03[4]];var Event=require(_0x4d03[5])[_0x4d03[6]];var FaxQueue=require(_0x4d03[5])[_0x4d03[7]];function invite(_0x3dc9x9,_0x3dc9xa,_0x3dc9xb,_0x3dc9xc,_0x3dc9xd){var _0x3dc9xe=0;var _0x3dc9xf=0;var _0x3dc9x10=[];var _0x3dc9x11=[];if(_0x3dc9xa===_0x3dc9x9[_0x4d03[9]][_0x4d03[8]]){_0x3dc9x10[_0x4d03[14]]({name:_0x4d03[10],channel:_0x4d03[11],FaxRoomId:_0x3dc9x9[_0x4d03[12]],FaxAccountId:_0x3dc9x9[_0x4d03[13]]});traceEvent(_0x3dc9x10,function(){});_0x3dc9xd( new Error(_0x4d03[15]));return ;};if(_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]){_0x3dc9xf=(((_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[16]]-_0x3dc9xe)>_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[16]])?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[16]]:(_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[16]]-_0x3dc9xe));switch(_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[25]]){case _0x4d03[20]:_0x3dc9x10[_0x4d03[14]]({name:_0x4d03[17],channel:_0x4d03[11],timeout:_0x3dc9xf,UserId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x3dc9xb][_0x4d03[18]],FaxRoomId:_0x3dc9x9[_0x4d03[12]],FaxQueueId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]]:null,FaxAccountId:_0x3dc9x9[_0x4d03[13]],FaxApplicationId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[18]]});_0x3dc9x11[_0x4d03[14]](_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x3dc9xb][_0x4d03[18]]);break ;;case _0x4d03[22]:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x4d03[21]](function(_0x3dc9x12){var _0x3dc9x13={name:_0x4d03[17],channel:_0x4d03[11],timeout:_0x3dc9xf,UserId:_0x3dc9x12[_0x4d03[18]],FaxRoomId:_0x3dc9x9[_0x4d03[12]],FaxQueueId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]]:null,FaxAccountId:_0x3dc9x9[_0x4d03[13]],FaxApplicationId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[18]]};_0x3dc9x10[_0x4d03[14]](_0x3dc9x13);_0x3dc9x11[_0x4d03[14]](_0x3dc9x12[_0x4d03[18]]);});break ;;default:console[_0x4d03[24]](_0x4d03[23]);;};traceEvent(_0x3dc9x10,function(){emitEvent(_0x3dc9x11,_0x4d03[26]+_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]],{timeout:_0x3dc9xf,roomId:_0x3dc9x9[_0x4d03[12]]},function(_0x3dc9x14){clearInterval(_0x3dc9x15);clearTimeout(_0x3dc9x16);var _0x3dc9x10=[{name:_0x4d03[27],channel:_0x4d03[11],timeout:_0x3dc9xf,UserId:_0x3dc9x14,FaxRoomId:_0x3dc9x9[_0x4d03[12]],FaxQueueId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]]:null,FaxAccountId:_0x3dc9x9[_0x4d03[13]],FaxApplicationId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[18]]}];traceEvent(_0x3dc9x10,function(){_0x3dc9xd()});})});}else {_0x3dc9xf=_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[16]];_0x3dc9x11[_0x4d03[14]](_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x3dc9xb][_0x4d03[18]]);_0x3dc9x10=[{name:_0x4d03[17],channel:_0x4d03[11],timeout:_0x3dc9xf,UserId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x3dc9xb][_0x4d03[18]],FaxRoomId:_0x3dc9x9[_0x4d03[12]],FaxQueueId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]]:null,FaxAccountId:_0x3dc9x9[_0x4d03[13]],FaxApplicationId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[18]]}];traceEvent(_0x3dc9x10,function(){emitEvent(_0x3dc9x11,_0x4d03[28]+_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x3dc9xb][_0x4d03[18]],{timeout:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[16]],roomId:_0x3dc9x9[_0x4d03[12]]},function(_0x3dc9x14){clearInterval(_0x3dc9x15);clearTimeout(_0x3dc9x16);var _0x3dc9x10=[{name:_0x4d03[27],channel:_0x4d03[11],timeout:_0x3dc9xf,UserId:_0x3dc9x14,FaxRoomId:_0x3dc9x9[_0x4d03[12]],FaxQueueId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]]:null,FaxAccountId:_0x3dc9x9[_0x4d03[13]],FaxApplicationId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[18]]}];traceEvent(_0x3dc9x10,function(){_0x3dc9xd()});})});};var _0x3dc9x15=setInterval(function(){var _0x3dc9xf=0;_0x3dc9xb++;if(_0x3dc9xb===_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x4d03[8]]){_0x3dc9xb=0};if(_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]){_0x3dc9xe+=_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[16]];_0x3dc9xf=(((_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[16]]-_0x3dc9xe)>_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[16]])?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[16]]:(_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[16]]-_0x3dc9xe));var _0x3dc9x10=[];var _0x3dc9x11=[];switch(_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[25]]){case _0x4d03[20]:var _0x3dc9x13={name:_0x4d03[17],channel:_0x4d03[11],timeout:_0x3dc9xf,UserId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x3dc9xb][_0x4d03[18]],FaxRoomId:_0x3dc9x9[_0x4d03[12]],FaxQueueId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]]:null,FaxAccountId:_0x3dc9x9[_0x4d03[13]],FaxApplicationId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[18]]};_0x3dc9x10[_0x4d03[14]](_0x3dc9x13);_0x3dc9x11[_0x4d03[14]](_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x3dc9xb][_0x4d03[18]]);break ;;case _0x4d03[22]:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x4d03[21]](function(_0x3dc9x12){var _0x3dc9x13={name:_0x4d03[17],channel:_0x4d03[11],timeout:_0x3dc9xf,UserId:_0x3dc9x12[_0x4d03[18]],FaxRoomId:_0x3dc9x9[_0x4d03[12]],FaxQueueId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]]:null,FaxAccountId:_0x3dc9x9[_0x4d03[13]],FaxApplicationId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[18]]};_0x3dc9x10[_0x4d03[14]](_0x3dc9x13);_0x3dc9x11[_0x4d03[14]](_0x3dc9x12[_0x4d03[18]]);});break ;;default:console[_0x4d03[24]](_0x4d03[23]);;};traceEvent(_0x3dc9x10,function(){emitEvent(_0x3dc9x11,_0x4d03[26]+_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]],{timeout:_0x3dc9xf,roomId:_0x3dc9x9[_0x4d03[12]]},function(_0x3dc9x14){console[_0x4d03[24]](_0x4d03[29],_0x3dc9x14);clearInterval(_0x3dc9x15);clearTimeout(_0x3dc9x16);var _0x3dc9x10=[{name:_0x4d03[27],channel:_0x4d03[11],timeout:_0x3dc9xf,UserId:_0x3dc9x14,FaxRoomId:_0x3dc9x9[_0x4d03[12]],FaxQueueId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[18]]:null,FaxAccountId:_0x3dc9x9[_0x4d03[13]],FaxApplicationId:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[18]]}];traceEvent(_0x3dc9x10,function(){_0x3dc9xd()});})});};},_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]]?_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[16]]*1000:_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[16]]*1000);var _0x3dc9x16=setTimeout(function(){clearInterval(_0x3dc9x15);invite(_0x3dc9x9,++_0x3dc9xa,0,_0x3dc9xc,_0x3dc9xd);},_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[16]]*1000);}function processing(_0x3dc9x18,_0x3dc9xd,_0x3dc9xc){var _0x3dc9xe=0;var _0x3dc9x19=[function(_0x3dc9x1a){_0x3dc9x1a(null,_0x3dc9x18[_0x4d03[30]],_0x3dc9xd,_0x3dc9xc)},function(_0x3dc9x9,_0x3dc9xd,_0x3dc9xc,_0x3dc9x1a){for(var _0x3dc9xa=0;_0x3dc9xa<_0x3dc9x9[_0x4d03[9]][_0x4d03[8]];_0x3dc9xa++){switch(_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[34]]){case _0x4d03[31]:if(!_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]]){_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]]=[]};_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x4d03[14]](_0x3dc9x9[_0x4d03[9]][_0x3dc9xa].User);break ;;case _0x4d03[33]:for(var _0x3dc9xb=0;_0x3dc9xb<_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[32]][_0x4d03[8]];_0x3dc9xb++){if(!_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]]){_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]]=[]};_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[19]][_0x4d03[14]](_0x3dc9x9[_0x4d03[9]][_0x3dc9xa][_0x4d03[7]][_0x4d03[32]][_0x3dc9xb]);};break ;;default:;}};_0x3dc9x1a(null,_0x3dc9x9,_0x3dc9xd,_0x3dc9xc);}];async[_0x4d03[35]](_0x3dc9x19,function(_0x3dc9x1b,_0x3dc9x9,_0x3dc9xd,_0x3dc9xc){invite(_0x3dc9x9,0,0,_0x3dc9xc,_0x3dc9xd)});}function traceEvent(_0x3dc9x10,_0x3dc9x1d){Event[_0x4d03[39]](_0x3dc9x10)[_0x4d03[38]](function(){if(_0x3dc9x1d){_0x3dc9x1d()}})[_0x4d03[37]](function(_0x3dc9x1b){console[_0x4d03[36]](_0x3dc9x1b)})}function emitEvent(_0x3dc9x11,_0x3dc9x1f,_0x3dc9x20,_0x3dc9x1d){_0x3dc9x11[_0x4d03[21]](function(_0x3dc9x12){console[_0x4d03[24]](_0x3dc9x1f,_0x3dc9x12);if(sockets[_0x3dc9x12]){sockets[_0x3dc9x12][_0x4d03[40]](_0x3dc9x1f,_0x3dc9x20,_0x3dc9x1d)};})}module[_0x4d03[41]]=function(_0x3dc9xc,_0x3dc9x21){var _0x3dc9x22=_0x3dc9x21[_0x4d03[42]]();_0x3dc9x22[_0x4d03[44]](_0x4d03[43],20,function(_0x3dc9x18,_0x3dc9xd){processing(_0x3dc9x18,_0x3dc9xd,_0x3dc9xc)});require(_0x4d03[46])[_0x4d03[45]](_0x3dc9x22);_0x3dc9xc[_0x4d03[51]](_0x4d03[47],function(_0x3dc9x23){if(_0x3dc9x23[_0x4d03[49]][_0x4d03[48]][_0x4d03[29]]){sockets[_0x3dc9x23[_0x4d03[49]][_0x4d03[48]][_0x4d03[29]]]=_0x3dc9x23};_0x3dc9x23[_0x4d03[51]](_0x4d03[50],function(){if(sockets[_0x3dc9x23[_0x4d03[49]][_0x4d03[48]][_0x4d03[29]]]){delete sockets[_0x3dc9x23[_0x4d03[49]][_0x4d03[48]][_0x4d03[29]]]}});});};
\ No newline at end of file
-var _0x6560=["\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"];_0x6560[0];var _=require(_0x6560[1]);var moment=require(_0x6560[2]);var MailApplication=require(_0x6560[4])[_0x6560[3]];var MailAccount=require(_0x6560[4])[_0x6560[5]];var MailQueue=require(_0x6560[4])[_0x6560[6]];var MailRoom=require(_0x6560[4])[_0x6560[7]];var Interval=require(_0x6560[4])[_0x6560[8]];var ReportMailSession=require(_0x6560[4])[_0x6560[9]];var ReportMail=require(_0x6560[4])[_0x6560[10]];var User=require(_0x6560[4])[_0x6560[11]];var timeouts={};module[_0x6560[12]]=function(_0x3f64xc){var _0x3f64xd=_0x3f64xc[_0x6560[13]]();_0x3f64xd[_0x6560[15]](_0x6560[14],20,function(_0x3f64xe,_0x3f64xf){onProcess(_0x3f64xe,_0x3f64xf)});ReportMail[_0x6560[33]](function(_0x3f64x10){if(_0x3f64x10[_0x6560[17]](_0x6560[16])){if(timeouts[_0x3f64x10[_0x6560[18]]]){clearTimeout(timeouts[_0x3f64x10[_0x6560[18]]][_0x6560[19]]);timeouts[_0x3f64x10[_0x6560[18]]][_0x6560[20]]();delete timeouts[_0x3f64x10[_0x6560[18]]];};MailRoom[_0x6560[26]](_0x3f64x10[_0x6560[18]])[_0x6560[25]](function(_0x3f64x12){_0x3f64x12[_0x6560[24]]({UserId:_0x3f64x10[_0x6560[23]]})})[_0x6560[22]](function(_0x3f64x11){console[_0x6560[21]](_0x3f64x11)});ReportMail[_0x6560[24]]({agentringnoanswerAt:moment()[_0x6560[28]](_0x6560[27]),reason:_0x6560[29],lastevent:_0x6560[29]},{where:{uniqueid:_0x3f64x10[_0x6560[18]],reason:null},individualHooks:true})[_0x6560[22]](function(_0x3f64x11){console[_0x6560[21]](_0x3f64x11)});ReportMailSession[_0x6560[24]]({mailleaveAt:moment()[_0x6560[28]](_0x6560[27]),fullname:_0x3f64x10[_0x6560[30]],membername:_0x3f64x10[_0x6560[31]],mailqueuename:_0x3f64x10[_0x6560[32]]},{where:{uniqueid:_0x3f64x10[_0x6560[18]]},individualHooks:true})[_0x6560[22]](function(_0x3f64x11){console[_0x6560[21]](_0x3f64x11)});}});MailRoom[_0x6560[34]](function(_0x3f64x10){onSave(_0x3f64xd,_0x3f64x10)});MailRoom[_0x6560[35]](function(_0x3f64x10){onSave(_0x3f64xd,_0x3f64x10)});};function onSave(_0x3f64xc,_0x3f64x10,_0x3f64x14){if(_0x3f64x10[_0x6560[36]]===_0x6560[37]){_0x3f64xc[_0x6560[40]](_0x6560[14],_0x3f64x10[_0x6560[39]])[_0x6560[38]]()}}function onProcess(_0x3f64xe,_0x3f64xf){MailAccount[_0x6560[26]](_0x3f64xe[_0x6560[46]].MailAccountId,{include:[{model:MailApplication,include:[{model:MailQueue,include:[{model:User}]},{model:User},{model:Interval,include:[{all:true}]}]}]})[_0x6560[25]](function(_0x3f64x16){if(!_0x3f64x16){_0x3f64xf( new Error(_0x6560[41]));return ;};if(!_0x3f64x16[_0x6560[43]][_0x6560[42]]){_0x3f64xf( new Error(_0x6560[44]));return ;};_0x3f64xe[_0x6560[46]][_0x6560[45]]=_0x3f64xe[_0x6560[46]][_0x6560[47]];var _0x3f64x17=_[_0x6560[48]](_0x3f64xe[_0x6560[46]],_0x3f64x16[_0x6560[39]]);onReportSession({uniqueid:_0x3f64x17[_0x6560[45]],subject:_0x3f64x17[_0x6560[49]],from:_0x3f64x17[_0x6560[50]],cc:_0x3f64x17[_0x6560[51]],attachment:_0x3f64x17[_0x6560[52]],accountname:_0x3f64x17[_0x6560[53]],accountaddress:_0x3f64x17[_0x6560[54]],mailjoinAt:moment()[_0x6560[28]](_0x6560[27])});_0x3f64x17[_0x6560[43]]=_[_0x6560[56]](_0x3f64x17.MailApplications,_0x6560[55]);onInvite(_0x3f64x17,0,0,0,0,_0x3f64xf);})[_0x6560[22]](function(_0x3f64x11){console[_0x6560[21]](_0x3f64x11)})}function onInvite(_0x3f64x19,_0x3f64x1a,_0x3f64x1b,_0x3f64x1c,_0x3f64x1d,_0x3f64xf){console[_0x6560[61]](_0x6560[57],_0x6560[58],_0x3f64x1a,_0x6560[59],_0x3f64x1b,_0x6560[60],_0x3f64x1c);var _0x3f64x1e=0;var _0x3f64x1f;if(_0x3f64x1a===_0x3f64x19[_0x6560[43]][_0x6560[42]]){console[_0x6560[21]](_0x6560[44]);onReportSession({uniqueid:_0x3f64x19[_0x6560[45]],mailunmanagedAt:moment()[_0x6560[28]](_0x6560[27]),mailleaveAt:moment()[_0x6560[28]](_0x6560[27])});_0x3f64xf( new Error(_0x6560[44]));return ;};if(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]]){var _0x3f64x20=_[_0x6560[63]](_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]].Users,{online:true})[_0x6560[62]];if(_0x3f64x20&&onInterval(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[8]]?_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[8]]:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[64]])){if(_0x3f64x1b===_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[65]][_0x6560[42]]){if(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[19]]>_0x3f64x1c){onInvite(_0x3f64x19,_0x3f64x1a,0,_0x3f64x1c,_0x3f64x1d,_0x3f64xf);return ;}else {onInvite(_0x3f64x19,++_0x3f64x1a,0,0,_0x3f64x1d,_0x3f64xf);return ;}};switch(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[77]]){case _0x6560[71]:if(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[65]][_0x3f64x1b][_0x6560[66]]&&onInterval(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[8]]?_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[8]]:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[64]])){_0x3f64x1e=(((_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[19]]-_0x3f64x1c)>_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[19]])?_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[19]]:(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[19]]-_0x3f64x1c));onReport({uniqueid:_0x3f64x19[_0x6560[45]],sorting:_0x3f64x1d,subject:_0x3f64x19[_0x6560[49]],timeslot:_0x3f64x1e,from:_0x3f64x19[_0x6560[50]],attachment:_0x3f64x19[_0x6560[52]],accountname:_0x3f64x19[_0x6560[53]],accountaddress:_0x3f64x19[_0x6560[54]],application:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[67]],fullname:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[65]][_0x3f64x1b][_0x6560[30]],membername:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[65]][_0x3f64x1b][_0x6560[53]],agentid:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[65]][_0x3f64x1b][_0x6560[47]],mailqueuename:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[53]],lastevent:_0x6560[68],holdtime:_0x3f64x1c,agentcalledAt:moment()[_0x6560[28]](_0x6560[27])});console[_0x6560[61]](_0x6560[69],_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[53]],_0x6560[70],_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[65]][_0x3f64x1b][_0x6560[53]],_0x6560[19],_0x3f64x1e,_0x6560[60],_0x3f64x1c);_0x3f64x1f=setTimeout(function(){onReportUpdate({uniqueid:_0x3f64x19[_0x6560[45]],count:_0x3f64x1d,reason:_0x6560[19],lastevent:_0x6560[19],agentringnoanswerAt:moment()[_0x6560[28]](_0x6560[27])});_0x3f64x1c+=_0x3f64x1e;onInvite(_0x3f64x19,_0x3f64x1a,++_0x3f64x1b,_0x3f64x1c,++_0x3f64x1d,_0x3f64xf);return ;},_0x3f64x1e*1000);if(!timeouts[_0x3f64x19[_0x6560[45]]]){timeouts[_0x3f64x19[_0x6560[45]]]={}};timeouts[_0x3f64x19[_0x6560[45]]][_0x6560[19]]=_0x3f64x1f;timeouts[_0x3f64x19[_0x6560[45]]][_0x6560[20]]=_0x3f64xf;}else {onInvite(_0x3f64x19,_0x3f64x1a,++_0x3f64x1b,_0x3f64x1c,_0x3f64x1d,_0x3f64xf);return ;};break ;;case _0x6560[75]:_0x3f64x1e=(((_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[19]]-_0x3f64x1c)>_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[19]])?_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[19]]:(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[19]]-_0x3f64x1c));var _0x3f64x21=[];_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[65]][_0x6560[73]](function(_0x3f64x22){if(_0x3f64x22[_0x6560[66]]){_0x3f64x21[_0x6560[72]]({uniqueid:_0x3f64x19[_0x6560[45]],sorting:_0x3f64x1d,subject:_0x3f64x19[_0x6560[49]],timeslot:_0x3f64x1e,from:_0x3f64x19[_0x6560[50]],attachment:_0x3f64x19[_0x6560[52]],accountname:_0x3f64x19[_0x6560[53]],accountaddress:_0x3f64x19[_0x6560[54]],application:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[67]],fullname:_0x3f64x22[_0x6560[30]],membername:_0x3f64x22[_0x6560[53]],agentid:_0x3f64x22[_0x6560[47]],mailqueuename:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[53]],lastevent:_0x6560[68],holdtime:_0x3f64x1c,agentcalledAt:moment()[_0x6560[28]](_0x6560[27])})}});if(_0x3f64x21[_0x6560[42]]&&onInterval(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[8]]?_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[8]]:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[64]])){onReport(_0x3f64x21,true);_0x3f64x1f=setTimeout(function(){console[_0x6560[61]](_0x6560[74],_0x3f64x1d);onReportUpdate({uniqueid:_0x3f64x19[_0x6560[45]],count:_0x3f64x1d,reason:_0x6560[19],lastevent:_0x6560[19],agentringnoanswerAt:moment()[_0x6560[28]](_0x6560[27])});_0x3f64x1c+=_0x3f64x1e;_0x3f64x1b+=_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[65]][_0x6560[42]];onInvite(_0x3f64x19,_0x3f64x1a,_0x3f64x1b,_0x3f64x1c,++_0x3f64x1d,_0x3f64xf);return ;},_0x3f64x1e*1000);if(!timeouts[_0x3f64x19[_0x6560[45]]]){timeouts[_0x3f64x19[_0x6560[45]]]={}};timeouts[_0x3f64x19[_0x6560[45]]][_0x6560[19]]=_0x3f64x1f;timeouts[_0x3f64x19[_0x6560[45]]][_0x6560[20]]=_0x3f64xf;}else {console[_0x6560[61]](_0x6560[69],_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[6]][_0x6560[53]],_0x6560[19],_0x3f64x1e,_0x6560[60],_0x3f64x1c);onInvite(_0x3f64x19,++_0x3f64x1a,0,0,_0x3f64x1d,_0x3f64xf);return ;};break ;;default:console[_0x6560[21]](_0x6560[76]);;};}else {onInvite(_0x3f64x19,++_0x3f64x1a,0,0,_0x3f64x1d,_0x3f64xf);return ;};}else {_0x3f64x1e=_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[19]];if(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[11]][_0x6560[66]]&&onInterval(_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[8]]?_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[8]]:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[64]])){onReport({uniqueid:_0x3f64x19[_0x6560[45]],sorting:_0x3f64x1d,subject:_0x3f64x19[_0x6560[49]],timeslot:_0x3f64x1e,from:_0x3f64x19[_0x6560[50]],attachment:_0x3f64x19[_0x6560[52]],accountname:_0x3f64x19[_0x6560[53]],accountaddress:_0x3f64x19[_0x6560[54]],application:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[67]],fullname:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[11]][_0x6560[30]],membername:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[11]][_0x6560[53]],agentid:_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[11]][_0x6560[47]],lastevent:_0x6560[68],holdtime:_0x3f64x1c,agentcalledAt:moment()[_0x6560[28]](_0x6560[27])});console[_0x6560[61]](_0x6560[70],_0x3f64x19[_0x6560[43]][_0x3f64x1a][_0x6560[11]][_0x6560[53]],_0x6560[19],_0x3f64x1e,_0x6560[60],_0x3f64x1c);_0x3f64x1f=setTimeout(function(){onReportUpdate({uniqueid:_0x3f64x19[_0x6560[45]],count:_0x3f64x1d,reason:_0x6560[19],lastevent:_0x6560[19],agentringnoanswerAt:moment()[_0x6560[28]](_0x6560[27])});onInvite(_0x3f64x19,++_0x3f64x1a,0,0,_0x3f64x1d,_0x3f64xf);return ;},_0x3f64x1e*1000);if(!timeouts[_0x3f64x19[_0x6560[45]]]){timeouts[_0x3f64x19[_0x6560[45]]]={}};timeouts[_0x3f64x19[_0x6560[45]]][_0x6560[19]]=_0x3f64x1f;timeouts[_0x3f64x19[_0x6560[45]]][_0x6560[20]]=_0x3f64xf;}else {onInvite(_0x3f64x19,++_0x3f64x1a,0,0,++_0x3f64x1d,_0x3f64xf);return;};};}function onReport(_0x3f64x24,_0x3f64x25){if(_0x3f64x25){ReportMail[_0x6560[78]](_0x3f64x24,{individualHooks:true})[_0x6560[22]](function(_0x3f64x11){console[_0x6560[21]](_0x3f64x11)})}else {ReportMail[_0x6560[40]](_0x3f64x24)[_0x6560[22]](function(_0x3f64x11){console[_0x6560[21]](_0x3f64x11)})}}function onReportSession(_0x3f64x24){ReportMailSession[_0x6560[80]]({where:{uniqueid:_0x3f64x24[_0x6560[18]]},defaults:_0x3f64x24})[_0x6560[79]](function(_0x3f64x27,_0x3f64x28){if(!_0x3f64x28){_0x3f64x27[_0x6560[24]](_0x3f64x24,{individualHooks:true})[_0x6560[22]](function(_0x3f64x11){console[_0x6560[21]](_0x3f64x11)})}})}function onReportUpdate(_0x3f64x24){ReportMail[_0x6560[24]](_0x3f64x24,{where:{uniqueid:_0x3f64x24[_0x6560[18]],sorting:_0x3f64x24[_0x6560[74]]},individualHooks:true})[_0x6560[22]](function(_0x3f64x11){console[_0x6560[21]](_0x3f64x11)})}function onInterval(_0x3f64x2b){if(_[_0x6560[81]](_0x3f64x2b)){for(var _0x3f64x1a=0;_0x3f64x1a<_0x3f64x2b[_0x6560[82]][_0x6560[42]];_0x3f64x1a++){if(!onCheckInterval(_0x3f64x2b[_0x6560[82]][_0x3f64x1a][_0x6560[64]])){return false}};return true;}else {return onCheckInterval(_0x3f64x2b)}}function onCheckInterval(_0x3f64x2b){var _0x3f64x2d=[_0x6560[83],_0x6560[84],_0x6560[85],_0x6560[86],_0x6560[87],_0x6560[88],_0x6560[89]];var _0x3f64x2e=[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 _0x3f64x2f=[_0x6560[90],_0x6560[91],_0x6560[92],_0x6560[93],_0x6560[94],_0x6560[95],_0x6560[96],_0x6560[97],_0x6560[98],_0x6560[99],_0x6560[100],_0x6560[101]];var _0x3f64x1a,_0x3f64x30;var _0x3f64x31=_0x3f64x2b[_0x6560[103]](_0x6560[102])[0];var _0x3f64x32=_0x3f64x2b[_0x6560[103]](_0x6560[102])[1];var _0x3f64x33=_0x3f64x2b[_0x6560[103]](_0x6560[102])[2];var _0x3f64x34=_0x3f64x2b[_0x6560[103]](_0x6560[102])[3];if(_0x3f64x31!==_0x6560[104]){var _0x3f64x35=moment()[_0x6560[28]](_0x6560[105]);var _0x3f64x36=_0x3f64x31[_0x6560[103]](_0x6560[106])[0];var _0x3f64x37=_0x3f64x31[_0x6560[103]](_0x6560[106])[1];if((_0x3f64x35<_0x3f64x36)||(_0x3f64x35>_0x3f64x37)){console[_0x6560[61]](_0x6560[107]);return false;};};if(_0x3f64x32!==_0x6560[104]){var _0x3f64x38=_0x3f64x2d[moment()[_0x6560[108]]()];var _0x3f64x39=_[_0x6560[109]](_0x3f64x2d,_0x3f64x32[_0x6560[103]](_0x6560[106])[0]);var _0x3f64x3a=_[_0x6560[109]](_0x3f64x2d,_0x3f64x32[_0x6560[103]](_0x6560[106])[1]);for(_0x3f64x1a=0;_0x3f64x1a<_0x3f64x39;_0x3f64x1a++){_0x3f64x30=_0x3f64x2d[_0x6560[110]]();_0x3f64x2d[_0x6560[72]](_0x3f64x30);};_0x3f64x39=_[_0x6560[109]](_0x3f64x2d,_0x3f64x32[_0x6560[103]](_0x6560[106])[0]);_0x3f64x3a=_[_0x6560[109]](_0x3f64x2d,_0x3f64x32[_0x6560[103]](_0x6560[106])[1])+1;_0x3f64x2d=_0x3f64x2d[_0x6560[111]](_0x3f64x39,_0x3f64x3a);if(!_[_0x6560[112]](_0x3f64x2d,_0x3f64x38)){console[_0x6560[61]](_0x6560[113]);return false;};};if(_0x3f64x33!==_0x6560[104]){var _0x3f64x3b=moment()[_0x6560[114]]();var _0x3f64x3c=_[_0x6560[109]](_0x3f64x2e,parseInt(_0x3f64x33[_0x6560[103]](_0x6560[106])[0],10));var _0x3f64x3d=_[_0x6560[109]](_0x3f64x2e,parseInt(_0x3f64x33[_0x6560[103]](_0x6560[106])[1]));for(_0x3f64x1a=0;_0x3f64x1a<_0x3f64x3c;_0x3f64x1a++){_0x3f64x30=_0x3f64x2e[_0x6560[110]]();_0x3f64x2e[_0x6560[72]](_0x3f64x30);};_0x3f64x3c=_[_0x6560[109]](_0x3f64x2e,parseInt(_0x3f64x33[_0x6560[103]](_0x6560[106])[0],10));_0x3f64x3d=_[_0x6560[109]](_0x3f64x2e,parseInt(_0x3f64x33[_0x6560[103]](_0x6560[106])[1]),10)+1;_0x3f64x2e=_0x3f64x2e[_0x6560[111]](_0x3f64x3c,_0x3f64x3d);if(!_[_0x6560[112]](_0x3f64x2e,_0x3f64x3b)){console[_0x6560[61]](_0x6560[115]);return false;};};if(_0x3f64x34!==_0x6560[104]){var _0x3f64x3e=_0x3f64x2f[moment()[_0x6560[116]]()];var _0x3f64x3f=_[_0x6560[109]](_0x3f64x2f,_0x3f64x34[_0x6560[103]](_0x6560[106])[0]);var _0x3f64x40=_[_0x6560[109]](_0x3f64x2f,_0x3f64x34[_0x6560[103]](_0x6560[106])[1]);for(_0x3f64x1a=0;_0x3f64x1a<_0x3f64x3f;_0x3f64x1a++){_0x3f64x30=_0x3f64x2f[_0x6560[110]]();_0x3f64x2f[_0x6560[72]](_0x3f64x30);};_0x3f64x3f=_[_0x6560[109]](_0x3f64x2f,_0x3f64x34[_0x6560[103]](_0x6560[106])[0]);_0x3f64x40=_[_0x6560[109]](_0x3f64x2f,_0x3f64x34[_0x6560[103]](_0x6560[106])[1])+1;_0x3f64x2f=_0x3f64x2f[_0x6560[111]](_0x3f64x3f,_0x3f64x40);if(!_[_0x6560[112]](_0x3f64x2f,_0x3f64x3e)){console[_0x6560[61]](_0x6560[117]);return false;};};console[_0x6560[61]](_0x6560[118]);return true;}
\ No newline at end of file
+var _0xb939=["\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"];_0xb939[0];var _=require(_0xb939[1]);var moment=require(_0xb939[2]);var MailApplication=require(_0xb939[4])[_0xb939[3]];var MailAccount=require(_0xb939[4])[_0xb939[5]];var MailQueue=require(_0xb939[4])[_0xb939[6]];var MailRoom=require(_0xb939[4])[_0xb939[7]];var Interval=require(_0xb939[4])[_0xb939[8]];var ReportMailSession=require(_0xb939[4])[_0xb939[9]];var ReportMail=require(_0xb939[4])[_0xb939[10]];var User=require(_0xb939[4])[_0xb939[11]];var timeouts={};module[_0xb939[12]]=function(_0xac12xc){var _0xac12xd=_0xac12xc[_0xb939[13]]();_0xac12xd[_0xb939[15]](_0xb939[14],20,function(_0xac12xe,_0xac12xf){onProcess(_0xac12xe,_0xac12xf)});ReportMail[_0xb939[33]](function(_0xac12x10){if(_0xac12x10[_0xb939[17]](_0xb939[16])){if(timeouts[_0xac12x10[_0xb939[18]]]){clearTimeout(timeouts[_0xac12x10[_0xb939[18]]][_0xb939[19]]);timeouts[_0xac12x10[_0xb939[18]]][_0xb939[20]]();delete timeouts[_0xac12x10[_0xb939[18]]];};MailRoom[_0xb939[26]](_0xac12x10[_0xb939[18]])[_0xb939[25]](function(_0xac12x12){_0xac12x12[_0xb939[24]]({UserId:_0xac12x10[_0xb939[23]]})})[_0xb939[22]](function(_0xac12x11){console[_0xb939[21]](_0xac12x11)});ReportMail[_0xb939[24]]({agentringnoanswerAt:moment()[_0xb939[28]](_0xb939[27]),reason:_0xb939[29],lastevent:_0xb939[29]},{where:{uniqueid:_0xac12x10[_0xb939[18]],reason:null},individualHooks:true})[_0xb939[22]](function(_0xac12x11){console[_0xb939[21]](_0xac12x11)});ReportMailSession[_0xb939[24]]({mailleaveAt:moment()[_0xb939[28]](_0xb939[27]),fullname:_0xac12x10[_0xb939[30]],membername:_0xac12x10[_0xb939[31]],mailqueuename:_0xac12x10[_0xb939[32]]},{where:{uniqueid:_0xac12x10[_0xb939[18]]},individualHooks:true})[_0xb939[22]](function(_0xac12x11){console[_0xb939[21]](_0xac12x11)});}});MailRoom[_0xb939[34]](function(_0xac12x10){onSave(_0xac12xd,_0xac12x10)});MailRoom[_0xb939[35]](function(_0xac12x10){onSave(_0xac12xd,_0xac12x10)});};function onSave(_0xac12xc,_0xac12x10,_0xac12x14){if(_0xac12x10[_0xb939[36]]===_0xb939[37]){_0xac12xc[_0xb939[40]](_0xb939[14],_0xac12x10[_0xb939[39]])[_0xb939[38]]()}}function onProcess(_0xac12xe,_0xac12xf){MailAccount[_0xb939[26]](_0xac12xe[_0xb939[46]].MailAccountId,{include:[{model:MailApplication,include:[{model:MailQueue,include:[{model:User}]},{model:User},{model:Interval,include:[{all:true}]}]}]})[_0xb939[25]](function(_0xac12x16){if(!_0xac12x16){_0xac12xf( new Error(_0xb939[41]));return ;};if(!_0xac12x16[_0xb939[43]][_0xb939[42]]){_0xac12xf( new Error(_0xb939[44]));return ;};_0xac12xe[_0xb939[46]][_0xb939[45]]=_0xac12xe[_0xb939[46]][_0xb939[47]];var _0xac12x17=_[_0xb939[48]](_0xac12xe[_0xb939[46]],_0xac12x16[_0xb939[39]]);onReportSession({uniqueid:_0xac12x17[_0xb939[45]],subject:_0xac12x17[_0xb939[49]],from:_0xac12x17[_0xb939[50]],cc:_0xac12x17[_0xb939[51]],attachment:_0xac12x17[_0xb939[52]],accountname:_0xac12x17[_0xb939[53]],accountaddress:_0xac12x17[_0xb939[54]],mailjoinAt:moment()[_0xb939[28]](_0xb939[27])});_0xac12x17[_0xb939[43]]=_[_0xb939[56]](_0xac12x17.MailApplications,_0xb939[55]);onInvite(_0xac12x17,0,0,0,0,_0xac12xf);})[_0xb939[22]](function(_0xac12x11){console[_0xb939[21]](_0xac12x11)})}function onInvite(_0xac12x19,_0xac12x1a,_0xac12x1b,_0xac12x1c,_0xac12x1d,_0xac12xf){console[_0xb939[61]](_0xb939[57],_0xb939[58],_0xac12x1a,_0xb939[59],_0xac12x1b,_0xb939[60],_0xac12x1c);var _0xac12x1e=0;var _0xac12x1f;if(_0xac12x1a===_0xac12x19[_0xb939[43]][_0xb939[42]]){console[_0xb939[21]](_0xb939[44]);onReportSession({uniqueid:_0xac12x19[_0xb939[45]],mailunmanagedAt:moment()[_0xb939[28]](_0xb939[27]),mailleaveAt:moment()[_0xb939[28]](_0xb939[27])});_0xac12xf( new Error(_0xb939[44]));return ;};if(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]]){var _0xac12x20=_[_0xb939[63]](_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]].Users,{online:true})[_0xb939[62]];if(_0xac12x20&&onInterval(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[8]]?_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[8]]:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[64]])){if(_0xac12x1b===_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[65]][_0xb939[42]]){if(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[19]]>_0xac12x1c){onInvite(_0xac12x19,_0xac12x1a,0,_0xac12x1c,_0xac12x1d,_0xac12xf);return ;}else {onInvite(_0xac12x19,++_0xac12x1a,0,0,_0xac12x1d,_0xac12xf);return ;}};switch(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[77]]){case _0xb939[71]:if(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[65]][_0xac12x1b][_0xb939[66]]&&onInterval(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[8]]?_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[8]]:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[64]])){_0xac12x1e=(((_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[19]]-_0xac12x1c)>_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[19]])?_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[19]]:(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[19]]-_0xac12x1c));onReport({uniqueid:_0xac12x19[_0xb939[45]],sorting:_0xac12x1d,subject:_0xac12x19[_0xb939[49]],timeslot:_0xac12x1e,from:_0xac12x19[_0xb939[50]],attachment:_0xac12x19[_0xb939[52]],accountname:_0xac12x19[_0xb939[53]],accountaddress:_0xac12x19[_0xb939[54]],application:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[67]],fullname:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[65]][_0xac12x1b][_0xb939[30]],membername:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[65]][_0xac12x1b][_0xb939[53]],agentid:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[65]][_0xac12x1b][_0xb939[47]],mailqueuename:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[53]],lastevent:_0xb939[68],holdtime:_0xac12x1c,agentcalledAt:moment()[_0xb939[28]](_0xb939[27])});console[_0xb939[61]](_0xb939[69],_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[53]],_0xb939[70],_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[65]][_0xac12x1b][_0xb939[53]],_0xb939[19],_0xac12x1e,_0xb939[60],_0xac12x1c);_0xac12x1f=setTimeout(function(){onReportUpdate({uniqueid:_0xac12x19[_0xb939[45]],count:_0xac12x1d,reason:_0xb939[19],lastevent:_0xb939[19],agentringnoanswerAt:moment()[_0xb939[28]](_0xb939[27])});_0xac12x1c+=_0xac12x1e;onInvite(_0xac12x19,_0xac12x1a,++_0xac12x1b,_0xac12x1c,++_0xac12x1d,_0xac12xf);return ;},_0xac12x1e*1000);if(!timeouts[_0xac12x19[_0xb939[45]]]){timeouts[_0xac12x19[_0xb939[45]]]={}};timeouts[_0xac12x19[_0xb939[45]]][_0xb939[19]]=_0xac12x1f;timeouts[_0xac12x19[_0xb939[45]]][_0xb939[20]]=_0xac12xf;}else {onInvite(_0xac12x19,_0xac12x1a,++_0xac12x1b,_0xac12x1c,_0xac12x1d,_0xac12xf);return ;};break ;;case _0xb939[75]:_0xac12x1e=(((_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[19]]-_0xac12x1c)>_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[19]])?_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[19]]:(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[19]]-_0xac12x1c));var _0xac12x21=[];_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[65]][_0xb939[73]](function(_0xac12x22){if(_0xac12x22[_0xb939[66]]){_0xac12x21[_0xb939[72]]({uniqueid:_0xac12x19[_0xb939[45]],sorting:_0xac12x1d,subject:_0xac12x19[_0xb939[49]],timeslot:_0xac12x1e,from:_0xac12x19[_0xb939[50]],attachment:_0xac12x19[_0xb939[52]],accountname:_0xac12x19[_0xb939[53]],accountaddress:_0xac12x19[_0xb939[54]],application:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[67]],fullname:_0xac12x22[_0xb939[30]],membername:_0xac12x22[_0xb939[53]],agentid:_0xac12x22[_0xb939[47]],mailqueuename:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[53]],lastevent:_0xb939[68],holdtime:_0xac12x1c,agentcalledAt:moment()[_0xb939[28]](_0xb939[27])})}});if(_0xac12x21[_0xb939[42]]&&onInterval(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[8]]?_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[8]]:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[64]])){onReport(_0xac12x21,true);_0xac12x1f=setTimeout(function(){console[_0xb939[61]](_0xb939[74],_0xac12x1d);onReportUpdate({uniqueid:_0xac12x19[_0xb939[45]],count:_0xac12x1d,reason:_0xb939[19],lastevent:_0xb939[19],agentringnoanswerAt:moment()[_0xb939[28]](_0xb939[27])});_0xac12x1c+=_0xac12x1e;_0xac12x1b+=_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[65]][_0xb939[42]];onInvite(_0xac12x19,_0xac12x1a,_0xac12x1b,_0xac12x1c,++_0xac12x1d,_0xac12xf);return ;},_0xac12x1e*1000);if(!timeouts[_0xac12x19[_0xb939[45]]]){timeouts[_0xac12x19[_0xb939[45]]]={}};timeouts[_0xac12x19[_0xb939[45]]][_0xb939[19]]=_0xac12x1f;timeouts[_0xac12x19[_0xb939[45]]][_0xb939[20]]=_0xac12xf;}else {console[_0xb939[61]](_0xb939[69],_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[6]][_0xb939[53]],_0xb939[19],_0xac12x1e,_0xb939[60],_0xac12x1c);onInvite(_0xac12x19,++_0xac12x1a,0,0,_0xac12x1d,_0xac12xf);return ;};break ;;default:console[_0xb939[21]](_0xb939[76]);;};}else {onInvite(_0xac12x19,++_0xac12x1a,0,0,_0xac12x1d,_0xac12xf);return ;};}else {_0xac12x1e=_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[19]];if(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[11]][_0xb939[66]]&&onInterval(_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[8]]?_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[8]]:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[64]])){onReport({uniqueid:_0xac12x19[_0xb939[45]],sorting:_0xac12x1d,subject:_0xac12x19[_0xb939[49]],timeslot:_0xac12x1e,from:_0xac12x19[_0xb939[50]],attachment:_0xac12x19[_0xb939[52]],accountname:_0xac12x19[_0xb939[53]],accountaddress:_0xac12x19[_0xb939[54]],application:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[67]],fullname:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[11]][_0xb939[30]],membername:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[11]][_0xb939[53]],agentid:_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[11]][_0xb939[47]],lastevent:_0xb939[68],holdtime:_0xac12x1c,agentcalledAt:moment()[_0xb939[28]](_0xb939[27])});console[_0xb939[61]](_0xb939[70],_0xac12x19[_0xb939[43]][_0xac12x1a][_0xb939[11]][_0xb939[53]],_0xb939[19],_0xac12x1e,_0xb939[60],_0xac12x1c);_0xac12x1f=setTimeout(function(){onReportUpdate({uniqueid:_0xac12x19[_0xb939[45]],count:_0xac12x1d,reason:_0xb939[19],lastevent:_0xb939[19],agentringnoanswerAt:moment()[_0xb939[28]](_0xb939[27])});onInvite(_0xac12x19,++_0xac12x1a,0,0,_0xac12x1d,_0xac12xf);return ;},_0xac12x1e*1000);if(!timeouts[_0xac12x19[_0xb939[45]]]){timeouts[_0xac12x19[_0xb939[45]]]={}};timeouts[_0xac12x19[_0xb939[45]]][_0xb939[19]]=_0xac12x1f;timeouts[_0xac12x19[_0xb939[45]]][_0xb939[20]]=_0xac12xf;}else {onInvite(_0xac12x19,++_0xac12x1a,0,0,++_0xac12x1d,_0xac12xf);return;};};}function onReport(_0xac12x24,_0xac12x25){if(_0xac12x25){ReportMail[_0xb939[78]](_0xac12x24,{individualHooks:true})[_0xb939[22]](function(_0xac12x11){console[_0xb939[21]](_0xac12x11)})}else {ReportMail[_0xb939[40]](_0xac12x24)[_0xb939[22]](function(_0xac12x11){console[_0xb939[21]](_0xac12x11)})}}function onReportSession(_0xac12x24){ReportMailSession[_0xb939[80]]({where:{uniqueid:_0xac12x24[_0xb939[18]]},defaults:_0xac12x24})[_0xb939[79]](function(_0xac12x27,_0xac12x28){if(!_0xac12x28){_0xac12x27[_0xb939[24]](_0xac12x24,{individualHooks:true})[_0xb939[22]](function(_0xac12x11){console[_0xb939[21]](_0xac12x11)})}})}function onReportUpdate(_0xac12x24){ReportMail[_0xb939[24]](_0xac12x24,{where:{uniqueid:_0xac12x24[_0xb939[18]],sorting:_0xac12x24[_0xb939[74]]},individualHooks:true})[_0xb939[22]](function(_0xac12x11){console[_0xb939[21]](_0xac12x11)})}function onInterval(_0xac12x2b){if(_[_0xb939[81]](_0xac12x2b)){for(var _0xac12x1a=0;_0xac12x1a<_0xac12x2b[_0xb939[82]][_0xb939[42]];_0xac12x1a++){if(!onCheckInterval(_0xac12x2b[_0xb939[82]][_0xac12x1a][_0xb939[64]])){return false}};return true;}else {return onCheckInterval(_0xac12x2b)}}function onCheckInterval(_0xac12x2b){var _0xac12x2d=[_0xb939[83],_0xb939[84],_0xb939[85],_0xb939[86],_0xb939[87],_0xb939[88],_0xb939[89]];var _0xac12x2e=[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 _0xac12x2f=[_0xb939[90],_0xb939[91],_0xb939[92],_0xb939[93],_0xb939[94],_0xb939[95],_0xb939[96],_0xb939[97],_0xb939[98],_0xb939[99],_0xb939[100],_0xb939[101]];var _0xac12x1a,_0xac12x30;var _0xac12x31=_0xac12x2b[_0xb939[103]](_0xb939[102])[0];var _0xac12x32=_0xac12x2b[_0xb939[103]](_0xb939[102])[1];var _0xac12x33=_0xac12x2b[_0xb939[103]](_0xb939[102])[2];var _0xac12x34=_0xac12x2b[_0xb939[103]](_0xb939[102])[3];if(_0xac12x31!==_0xb939[104]){var _0xac12x35=moment()[_0xb939[28]](_0xb939[105]);var _0xac12x36=_0xac12x31[_0xb939[103]](_0xb939[106])[0];var _0xac12x37=_0xac12x31[_0xb939[103]](_0xb939[106])[1];if((_0xac12x35<_0xac12x36)||(_0xac12x35>_0xac12x37)){console[_0xb939[61]](_0xb939[107]);return false;};};if(_0xac12x32!==_0xb939[104]){var _0xac12x38=_0xac12x2d[moment()[_0xb939[108]]()];var _0xac12x39=_[_0xb939[109]](_0xac12x2d,_0xac12x32[_0xb939[103]](_0xb939[106])[0]);var _0xac12x3a=_[_0xb939[109]](_0xac12x2d,_0xac12x32[_0xb939[103]](_0xb939[106])[1]);for(_0xac12x1a=0;_0xac12x1a<_0xac12x39;_0xac12x1a++){_0xac12x30=_0xac12x2d[_0xb939[110]]();_0xac12x2d[_0xb939[72]](_0xac12x30);};_0xac12x39=_[_0xb939[109]](_0xac12x2d,_0xac12x32[_0xb939[103]](_0xb939[106])[0]);_0xac12x3a=_[_0xb939[109]](_0xac12x2d,_0xac12x32[_0xb939[103]](_0xb939[106])[1])+1;_0xac12x2d=_0xac12x2d[_0xb939[111]](_0xac12x39,_0xac12x3a);if(!_[_0xb939[112]](_0xac12x2d,_0xac12x38)){console[_0xb939[61]](_0xb939[113]);return false;};};if(_0xac12x33!==_0xb939[104]){var _0xac12x3b=moment()[_0xb939[114]]();var _0xac12x3c=_[_0xb939[109]](_0xac12x2e,parseInt(_0xac12x33[_0xb939[103]](_0xb939[106])[0],10));var _0xac12x3d=_[_0xb939[109]](_0xac12x2e,parseInt(_0xac12x33[_0xb939[103]](_0xb939[106])[1]));for(_0xac12x1a=0;_0xac12x1a<_0xac12x3c;_0xac12x1a++){_0xac12x30=_0xac12x2e[_0xb939[110]]();_0xac12x2e[_0xb939[72]](_0xac12x30);};_0xac12x3c=_[_0xb939[109]](_0xac12x2e,parseInt(_0xac12x33[_0xb939[103]](_0xb939[106])[0],10));_0xac12x3d=_[_0xb939[109]](_0xac12x2e,parseInt(_0xac12x33[_0xb939[103]](_0xb939[106])[1]),10)+1;_0xac12x2e=_0xac12x2e[_0xb939[111]](_0xac12x3c,_0xac12x3d);if(!_[_0xb939[112]](_0xac12x2e,_0xac12x3b)){console[_0xb939[61]](_0xb939[115]);return false;};};if(_0xac12x34!==_0xb939[104]){var _0xac12x3e=_0xac12x2f[moment()[_0xb939[116]]()];var _0xac12x3f=_[_0xb939[109]](_0xac12x2f,_0xac12x34[_0xb939[103]](_0xb939[106])[0]);var _0xac12x40=_[_0xb939[109]](_0xac12x2f,_0xac12x34[_0xb939[103]](_0xb939[106])[1]);for(_0xac12x1a=0;_0xac12x1a<_0xac12x3f;_0xac12x1a++){_0xac12x30=_0xac12x2f[_0xb939[110]]();_0xac12x2f[_0xb939[72]](_0xac12x30);};_0xac12x3f=_[_0xb939[109]](_0xac12x2f,_0xac12x34[_0xb939[103]](_0xb939[106])[0]);_0xac12x40=_[_0xb939[109]](_0xac12x2f,_0xac12x34[_0xb939[103]](_0xb939[106])[1])+1;_0xac12x2f=_0xac12x2f[_0xb939[111]](_0xac12x3f,_0xac12x40);if(!_[_0xb939[112]](_0xac12x2f,_0xac12x3e)){console[_0xb939[61]](_0xb939[117]);return false;};};console[_0xb939[61]](_0xb939[118]);return true;}
\ No newline at end of file
-var _0xd145=["\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"];_0xd145[0];var config=require(_0xd145[1]);var rp=require(_0xd145[2]);var util=require(_0xd145[3]);var url=require(_0xd145[4]);var provisioning=config[_0xd145[5]]+_0xd145[6]+config[_0xd145[7]]+_0xd145[8];console[_0xd145[9]](provisioning);var Settings=require(_0xd145[11])[_0xd145[10]];function licenseManager(){setInterval(function(){var _0x3dbbx8;return rp({uri:provisioning,json:true})[_0xd145[16]](function(_0x3dbbxb){_0x3dbbx8=_0x3dbbxb;return Settings[_0xd145[17]](1);})[_0xd145[16]](function(_0x3dbbxa){return _0x3dbbxa[_0xd145[15]]({license:_0x3dbbx8[_0xd145[14]]})})[_0xd145[13]](function(_0x3dbbx9){console[_0xd145[12]](_0x3dbbx9)});},10000);return {};}module[_0xd145[18]]=licenseManager;
\ No newline at end of file
+var _0xd7ee=["\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\x78\x70\x6F\x72\x74\x73"];_0xd7ee[0];var config=require(_0xd7ee[1]);var rp=require(_0xd7ee[2]);var util=require(_0xd7ee[3]);var url=require(_0xd7ee[4]);var provisioning=config[_0xd7ee[5]]+_0xd7ee[6]+config[_0xd7ee[7]]+_0xd7ee[8];console[_0xd7ee[9]](provisioning);var Settings=require(_0xd7ee[11])[_0xd7ee[10]];function licenseManager(){return {}}module[_0xd7ee[12]]=licenseManager;
\ No newline at end of file
-var _0xd9b2=["\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"];_0xd9b2[0];var compose=require(_0xd9b2[1]);var moment=require(_0xd9b2[2]);var crypto=require(_0xd9b2[3]);var util=require(_0xd9b2[4]);var config=require(_0xd9b2[5]);var uuid=exec(_0xd9b2[9],{silent:true})[_0xd9b2[8]][_0xd9b2[7]](/\r?\n|\r/g,_0xd9b2[6]);var prefix=uuid[_0xd9b2[11]](_0xd9b2[10])[4];var suffix=uuid[_0xd9b2[11]](_0xd9b2[10])[0];var User=require(_0xd9b2[13])[_0xd9b2[12]];var Telephone=require(_0xd9b2[13])[_0xd9b2[14]];var Settings=require(_0xd9b2[13])[_0xd9b2[15]];function hasChat(){return compose()[_0xd9b2[23]](function(_0x1b7dxd,_0x1b7dxe,_0x1b7dxf){return Settings[_0xd9b2[22]](1)[_0xd9b2[21]](function(_0x1b7dx11){var _0x1b7dx12=null,_0x1b7dx13=false;if(_0x1b7dx11[_0xd9b2[17]]){_0x1b7dx12=decrypt(_0x1b7dx11[_0xd9b2[17]]);_0x1b7dx12=JSON[_0xd9b2[18]](_0x1b7dx12);_0x1b7dx13=_0x1b7dx12[_0xd9b2[19]];};if(!_0x1b7dx13){return _0x1b7dxe[_0xd9b2[20]](403)};return _0x1b7dxf();})[_0xd9b2[16]](function(_0x1b7dx10){return _0x1b7dxf(_0x1b7dx10)})})}function hasMail(){return compose()[_0xd9b2[23]](function(_0x1b7dxd,_0x1b7dxe,_0x1b7dxf){return Settings[_0xd9b2[22]](1)[_0xd9b2[21]](function(_0x1b7dx11){var _0x1b7dx12=null,_0x1b7dx15=false;if(_0x1b7dx11[_0xd9b2[17]]){_0x1b7dx12=decrypt(_0x1b7dx11[_0xd9b2[17]]);_0x1b7dx12=JSON[_0xd9b2[18]](_0x1b7dx12);_0x1b7dx15=_0x1b7dx12[_0xd9b2[24]];};if(!_0x1b7dx15){return _0x1b7dxe[_0xd9b2[20]](403)};return _0x1b7dxf();})[_0xd9b2[16]](function(_0x1b7dx10){return _0x1b7dxf(_0x1b7dx10)})})}function hasFax(){return compose()[_0xd9b2[23]](function(_0x1b7dxd,_0x1b7dxe,_0x1b7dxf){return Settings[_0xd9b2[22]](1)[_0xd9b2[21]](function(_0x1b7dx11){var _0x1b7dx12=null,_0x1b7dx17=false;if(_0x1b7dx11[_0xd9b2[17]]){_0x1b7dx12=decrypt(_0x1b7dx11[_0xd9b2[17]]);_0x1b7dx12=JSON[_0xd9b2[18]](_0x1b7dx12);_0x1b7dx17=_0x1b7dx12[_0xd9b2[25]];};if(!_0x1b7dx17){return _0x1b7dxe[_0xd9b2[20]](403)};return _0x1b7dxf();})[_0xd9b2[16]](function(_0x1b7dx10){return _0x1b7dxf(_0x1b7dx10)})})}function isValidDate(){return compose()[_0xd9b2[23]](function(_0x1b7dxd,_0x1b7dxe,_0x1b7dxf){return Settings[_0xd9b2[22]](1)[_0xd9b2[21]](function(_0x1b7dx11){var _0x1b7dx12=null,_0x1b7dx19=false;if(_0x1b7dx11[_0xd9b2[17]]){_0x1b7dx12=decrypt(_0x1b7dx11[_0xd9b2[17]]);_0x1b7dx12=JSON[_0xd9b2[18]](_0x1b7dx12);if(moment()[_0xd9b2[27]](_0x1b7dx12[_0xd9b2[26]])){_0x1b7dx19=true};};if(!_0x1b7dx19){return _0x1b7dxe[_0xd9b2[20]](403)};return _0x1b7dxf();})[_0xd9b2[16]](function(_0x1b7dx10){return _0x1b7dxf(_0x1b7dx10)})})}function isUsersLimit(){return compose()[_0xd9b2[23]](function(_0x1b7dxd,_0x1b7dxe,_0x1b7dxf){var _0x1b7dx1b;return Settings[_0xd9b2[22]](1)[_0xd9b2[21]](function(_0x1b7dx11){_0x1b7dx1b=_0x1b7dx11;return User[_0xd9b2[34]]({where:{$or:[{role:_0xd9b2[32]},{role:_0xd9b2[33]}]}});})[_0xd9b2[21]](function(_0x1b7dx1c){var _0x1b7dx12=null,_0x1b7dx1d=false;if(_0x1b7dx1b[_0xd9b2[17]]){_0x1b7dx12=decrypt(_0x1b7dx1b[_0xd9b2[17]]);_0x1b7dx12=JSON[_0xd9b2[18]](_0x1b7dx12);if(_0x1b7dx12[_0xd9b2[28]]>_0x1b7dx1c){_0x1b7dx1d=true};};if(!_0x1b7dx1d){return _0x1b7dxe[_0xd9b2[31]](403)[_0xd9b2[30]]({message:_0xd9b2[29]})};return _0x1b7dxf();})[_0xd9b2[16]](function(_0x1b7dx10){return _0x1b7dxf(_0x1b7dx10)});})}function isTelephonesLimit(){return compose()[_0xd9b2[23]](function(_0x1b7dxd,_0x1b7dxe,_0x1b7dxf){var _0x1b7dx1b;return Settings[_0xd9b2[22]](1)[_0xd9b2[21]](function(_0x1b7dx11){_0x1b7dx1b=_0x1b7dx11;return User[_0xd9b2[34]]({where:{role:_0xd9b2[37]}});})[_0xd9b2[21]](function(_0x1b7dx1f){var _0x1b7dx12=null,_0x1b7dx1d=false;if(_0x1b7dx1b[_0xd9b2[17]]){_0x1b7dx12=decrypt(_0x1b7dx1b[_0xd9b2[17]]);_0x1b7dx12=JSON[_0xd9b2[18]](_0x1b7dx12);if(_0x1b7dx12[_0xd9b2[35]]>_0x1b7dx1f){_0x1b7dx1d=true};};if(!_0x1b7dx1d){return _0x1b7dxe[_0xd9b2[31]](403)[_0xd9b2[30]]( new Error(_0xd9b2[36]))};return _0x1b7dxf();})[_0xd9b2[16]](function(_0x1b7dx10){return _0x1b7dxf(_0x1b7dx10)});})}function decrypt(_0x1b7dx21){var _0x1b7dx22=crypto[_0xd9b2[41]](_0xd9b2[38],util[_0xd9b2[40]](_0xd9b2[39],prefix,uuid,suffix));var _0x1b7dx12=_0x1b7dx22[_0xd9b2[44]](_0x1b7dx21,_0xd9b2[42],_0xd9b2[43]);_0x1b7dx12+=_0x1b7dx22[_0xd9b2[45]](_0xd9b2[43]);return _0x1b7dx12;}exports[_0xd9b2[46]]=isValidDate;exports[_0xd9b2[47]]=isUsersLimit;exports[_0xd9b2[48]]=isTelephonesLimit;exports[_0xd9b2[49]]=hasChat;exports[_0xd9b2[50]]=hasMail;exports[_0xd9b2[51]]=hasFax;exports[_0xd9b2[52]]=decrypt;
\ No newline at end of file
+var _0xefcc=["\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"];_0xefcc[0];var compose=require(_0xefcc[1]);var moment=require(_0xefcc[2]);var crypto=require(_0xefcc[3]);var util=require(_0xefcc[4]);var config=require(_0xefcc[5]);var uuid=exec(_0xefcc[9],{silent:true})[_0xefcc[8]][_0xefcc[7]](/\r?\n|\r/g,_0xefcc[6]);var prefix=uuid[_0xefcc[11]](_0xefcc[10])[4];var suffix=uuid[_0xefcc[11]](_0xefcc[10])[0];var User=require(_0xefcc[13])[_0xefcc[12]];var Telephone=require(_0xefcc[13])[_0xefcc[14]];var Settings=require(_0xefcc[13])[_0xefcc[15]];function hasChat(){return compose()[_0xefcc[23]](function(_0xf291xd,_0xf291xe,_0xf291xf){return Settings[_0xefcc[22]](1)[_0xefcc[21]](function(_0xf291x11){var _0xf291x12=null,_0xf291x13=false;if(_0xf291x11[_0xefcc[17]]){_0xf291x12=decrypt(_0xf291x11[_0xefcc[17]]);_0xf291x12=JSON[_0xefcc[18]](_0xf291x12);_0xf291x13=_0xf291x12[_0xefcc[19]];};if(!_0xf291x13){return _0xf291xe[_0xefcc[20]](403)};return _0xf291xf();})[_0xefcc[16]](function(_0xf291x10){return _0xf291xf(_0xf291x10)})})}function hasMail(){return compose()[_0xefcc[23]](function(_0xf291xd,_0xf291xe,_0xf291xf){return Settings[_0xefcc[22]](1)[_0xefcc[21]](function(_0xf291x11){var _0xf291x12=null,_0xf291x15=false;if(_0xf291x11[_0xefcc[17]]){_0xf291x12=decrypt(_0xf291x11[_0xefcc[17]]);_0xf291x12=JSON[_0xefcc[18]](_0xf291x12);_0xf291x15=_0xf291x12[_0xefcc[24]];};if(!_0xf291x15){return _0xf291xe[_0xefcc[20]](403)};return _0xf291xf();})[_0xefcc[16]](function(_0xf291x10){return _0xf291xf(_0xf291x10)})})}function hasFax(){return compose()[_0xefcc[23]](function(_0xf291xd,_0xf291xe,_0xf291xf){return Settings[_0xefcc[22]](1)[_0xefcc[21]](function(_0xf291x11){var _0xf291x12=null,_0xf291x17=false;if(_0xf291x11[_0xefcc[17]]){_0xf291x12=decrypt(_0xf291x11[_0xefcc[17]]);_0xf291x12=JSON[_0xefcc[18]](_0xf291x12);_0xf291x17=_0xf291x12[_0xefcc[25]];};if(!_0xf291x17){return _0xf291xe[_0xefcc[20]](403)};return _0xf291xf();})[_0xefcc[16]](function(_0xf291x10){return _0xf291xf(_0xf291x10)})})}function isValidDate(){return compose()[_0xefcc[23]](function(_0xf291xd,_0xf291xe,_0xf291xf){return Settings[_0xefcc[22]](1)[_0xefcc[21]](function(_0xf291x11){var _0xf291x12=null,_0xf291x19=false;if(_0xf291x11[_0xefcc[17]]){_0xf291x12=decrypt(_0xf291x11[_0xefcc[17]]);_0xf291x12=JSON[_0xefcc[18]](_0xf291x12);if(moment()[_0xefcc[27]](_0xf291x12[_0xefcc[26]])){_0xf291x19=true};};if(!_0xf291x19){return _0xf291xe[_0xefcc[20]](403)};return _0xf291xf();})[_0xefcc[16]](function(_0xf291x10){return _0xf291xf(_0xf291x10)})})}function isUsersLimit(){return compose()[_0xefcc[23]](function(_0xf291xd,_0xf291xe,_0xf291xf){var _0xf291x1b;return Settings[_0xefcc[22]](1)[_0xefcc[21]](function(_0xf291x11){_0xf291x1b=_0xf291x11;return User[_0xefcc[34]]({where:{$or:[{role:_0xefcc[32]},{role:_0xefcc[33]}]}});})[_0xefcc[21]](function(_0xf291x1c){var _0xf291x12=null,_0xf291x1d=false;if(_0xf291x1b[_0xefcc[17]]){_0xf291x12=decrypt(_0xf291x1b[_0xefcc[17]]);_0xf291x12=JSON[_0xefcc[18]](_0xf291x12);if(_0xf291x12[_0xefcc[28]]>_0xf291x1c){_0xf291x1d=true};};if(!_0xf291x1d){return _0xf291xe[_0xefcc[31]](403)[_0xefcc[30]]({message:_0xefcc[29]})};return _0xf291xf();})[_0xefcc[16]](function(_0xf291x10){return _0xf291xf(_0xf291x10)});})}function isTelephonesLimit(){return compose()[_0xefcc[23]](function(_0xf291xd,_0xf291xe,_0xf291xf){var _0xf291x1b;return Settings[_0xefcc[22]](1)[_0xefcc[21]](function(_0xf291x11){_0xf291x1b=_0xf291x11;return User[_0xefcc[34]]({where:{role:_0xefcc[37]}});})[_0xefcc[21]](function(_0xf291x1f){var _0xf291x12=null,_0xf291x1d=false;if(_0xf291x1b[_0xefcc[17]]){_0xf291x12=decrypt(_0xf291x1b[_0xefcc[17]]);_0xf291x12=JSON[_0xefcc[18]](_0xf291x12);if(_0xf291x12[_0xefcc[35]]>_0xf291x1f){_0xf291x1d=true};};if(!_0xf291x1d){return _0xf291xe[_0xefcc[31]](403)[_0xefcc[30]]( new Error(_0xefcc[36]))};return _0xf291xf();})[_0xefcc[16]](function(_0xf291x10){return _0xf291xf(_0xf291x10)});})}function decrypt(_0xf291x21){var _0xf291x22=crypto[_0xefcc[41]](_0xefcc[38],util[_0xefcc[40]](_0xefcc[39],prefix,uuid,suffix));var _0xf291x12=_0xf291x22[_0xefcc[44]](_0xf291x21,_0xefcc[42],_0xefcc[43]);_0xf291x12+=_0xf291x22[_0xefcc[45]](_0xefcc[43]);return _0xf291x12;}exports[_0xefcc[46]]=isValidDate;exports[_0xefcc[47]]=isUsersLimit;exports[_0xefcc[48]]=isTelephonesLimit;exports[_0xefcc[49]]=hasChat;exports[_0xefcc[50]]=hasMail;exports[_0xefcc[51]]=hasFax;exports[_0xefcc[52]]=decrypt;
\ No newline at end of file
-var _0xb188=["\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",""];_0xb188[0];module[_0xb188[1]]={DOMAIN:_0xb188[2],SESSION_SECRET:_0xb188[3],FACEBOOK_ID:_0xb188[4],FACEBOOK_SECRET:_0xb188[5],TWITTER_ID:_0xb188[4],TWITTER_SECRET:_0xb188[5],GOOGLE_ID:_0xb188[4],GOOGLE_SECRET:_0xb188[5],DEBUG:_0xb188[6]};
\ No newline at end of file
+var _0x2ef5=["\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",""];_0x2ef5[0];module[_0x2ef5[1]]={DOMAIN:_0x2ef5[2],SESSION_SECRET:_0x2ef5[3],FACEBOOK_ID:_0x2ef5[4],FACEBOOK_SECRET:_0x2ef5[5],TWITTER_ID:_0x2ef5[4],TWITTER_SECRET:_0x2ef5[5],GOOGLE_ID:_0x2ef5[4],GOOGLE_SECRET:_0x2ef5[5],DEBUG:_0x2ef5[6]};
\ No newline at end of file
-var _0xd100=["\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(_0xd100[0]);var path=require(_0xd100[1]);var config=require(_0xd100[2]);winston[_0xd100[3]]=true;var debug= new winston.Logger({transports:[ new winston[_0xd100[5]].Console({level:_0xd100[4],handleExceptions:true,json:false,colorize:true})]});if(config[_0xd100[7]][_0xd100[6]]){debug[_0xd100[9]](winston[_0xd100[5]].File,{name:_0xd100[8],level:_0xd100[4],filename:config[_0xd100[7]][_0xd100[4]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false})};var info= new winston.Logger({transports:[ new winston[_0xd100[5]].File({name:_0xd100[10],level:_0xd100[11],filename:config[_0xd100[7]][_0xd100[11]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xd100[5]].Console({level:_0xd100[11],handleExceptions:true,json:false,colorize:true})]});var warn= new winston.Logger({transports:[ new winston[_0xd100[5]].File({name:_0xd100[12],level:_0xd100[13],filename:config[_0xd100[7]][_0xd100[13]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xd100[5]].Console({level:_0xd100[13],handleExceptions:true,json:false,colorize:true})]});var error= new winston.Logger({transports:[ new winston[_0xd100[5]].File({name:_0xd100[14],level:_0xd100[15],filename:config[_0xd100[7]][_0xd100[15]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0xd100[5]].Console({level:_0xd100[15],handleExceptions:true,json:false,colorize:true})]});var loggers={debug:function(_0x1930x9,_0x1930xa){debug[_0xd100[4]](_0x1930x9,_0x1930xa)},info:function(_0x1930x9,_0x1930xa){info[_0xd100[11]](_0x1930x9,_0x1930xa)},warn:function(_0x1930x9,_0x1930xa){warn[_0xd100[13]](_0x1930x9,_0x1930xa)},error:function(_0x1930x9,_0x1930xa){error[_0xd100[15]](_0x1930x9,_0x1930xa)},log:function(_0x1930xb,_0x1930x9,_0x1930xa){var _0x1930xc=exports[_0x1930xb];_0x1930xc(_0x1930x9,_0x1930xa);}};module[_0xd100[16]]=loggers;module[_0xd100[16]][_0xd100[17]]={write:function(_0x1930xd,_0x1930xe){loggers[_0xd100[11]](_0x1930xd)}};
\ No newline at end of file
+var _0x7a36=["\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(_0x7a36[0]);var path=require(_0x7a36[1]);var config=require(_0x7a36[2]);winston[_0x7a36[3]]=true;var debug= new winston.Logger({transports:[ new winston[_0x7a36[5]].Console({level:_0x7a36[4],handleExceptions:true,json:false,colorize:true})]});if(config[_0x7a36[7]][_0x7a36[6]]){debug[_0x7a36[9]](winston[_0x7a36[5]].File,{name:_0x7a36[8],level:_0x7a36[4],filename:config[_0x7a36[7]][_0x7a36[4]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false})};var info= new winston.Logger({transports:[ new winston[_0x7a36[5]].File({name:_0x7a36[10],level:_0x7a36[11],filename:config[_0x7a36[7]][_0x7a36[11]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x7a36[5]].Console({level:_0x7a36[11],handleExceptions:true,json:false,colorize:true})]});var warn= new winston.Logger({transports:[ new winston[_0x7a36[5]].File({name:_0x7a36[12],level:_0x7a36[13],filename:config[_0x7a36[7]][_0x7a36[13]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x7a36[5]].Console({level:_0x7a36[13],handleExceptions:true,json:false,colorize:true})]});var error= new winston.Logger({transports:[ new winston[_0x7a36[5]].File({name:_0x7a36[14],level:_0x7a36[15],filename:config[_0x7a36[7]][_0x7a36[15]],handleExceptions:true,json:true,maxsize:5242880,maxFiles:5,colorize:false}), new winston[_0x7a36[5]].Console({level:_0x7a36[15],handleExceptions:true,json:false,colorize:true})]});var loggers={debug:function(_0xf022x9,_0xf022xa){debug[_0x7a36[4]](_0xf022x9,_0xf022xa)},info:function(_0xf022x9,_0xf022xa){info[_0x7a36[11]](_0xf022x9,_0xf022xa)},warn:function(_0xf022x9,_0xf022xa){warn[_0x7a36[13]](_0xf022x9,_0xf022xa)},error:function(_0xf022x9,_0xf022xa){error[_0x7a36[15]](_0xf022x9,_0xf022xa)},log:function(_0xf022xb,_0xf022x9,_0xf022xa){var _0xf022xc=exports[_0xf022xb];_0xf022xc(_0xf022x9,_0xf022xa);}};module[_0x7a36[16]]=loggers;module[_0x7a36[16]][_0x7a36[17]]={write:function(_0xf022xd,_0xf022xe){loggers[_0x7a36[11]](_0xf022xd)}};
\ No newline at end of file
-var _0x6001=["\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"];_0x6001[0];var _=require(_0x6001[1]);var models=require(_0x6001[2]);models[_0x6001[69]][_0x6001[68]]([{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[8],email:_0x6001[9],name:_0x6001[10],password:_0x6001[11],defaultuser:_0x6001[10],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1000},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[20],email:_0x6001[21],name:_0x6001[22],password:_0x6001[11],defaultuser:_0x6001[22],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1001},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[23],email:_0x6001[24],name:_0x6001[25],password:_0x6001[11],defaultuser:_0x6001[25],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1002},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[26],email:_0x6001[27],name:_0x6001[28],password:_0x6001[11],defaultuser:_0x6001[28],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1003},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[29],email:_0x6001[30],name:_0x6001[31],password:_0x6001[11],defaultuser:_0x6001[31],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1004},{provider:_0x6001[6],role:_0x6001[32],fullname:_0x6001[33],email:_0x6001[34],name:_0x6001[35],password:_0x6001[35],defaultuser:_0x6001[35],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1005},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[36],email:_0x6001[37],name:_0x6001[38],password:_0x6001[11],defaultuser:_0x6001[38],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1006},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[39],email:_0x6001[40],name:_0x6001[41],password:_0x6001[35],defaultuser:_0x6001[41],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1007},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[42],email:_0x6001[43],name:_0x6001[44],password:_0x6001[35],defaultuser:_0x6001[44],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1008},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[45],email:_0x6001[46],name:_0x6001[47],password:_0x6001[11],defaultuser:_0x6001[47],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1009},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[48],email:_0x6001[49],name:_0x6001[50],password:_0x6001[11],defaultuser:_0x6001[50],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[51],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1010},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[52],email:_0x6001[53],name:_0x6001[54],password:_0x6001[11],defaultuser:_0x6001[54],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[51],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1011},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[55],email:_0x6001[56],name:_0x6001[57],password:_0x6001[11],defaultuser:_0x6001[57],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[51],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1012},{provider:_0x6001[6],role:_0x6001[32],fullname:_0x6001[58],email:_0x6001[59],name:_0x6001[60],password:_0x6001[61],defaultuser:_0x6001[60],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1013},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[62],email:_0x6001[63],name:_0x6001[64],password:_0x6001[11],defaultuser:_0x6001[64],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1014},{provider:_0x6001[6],role:_0x6001[7],fullname:_0x6001[65],email:_0x6001[66],name:_0x6001[67],password:_0x6001[11],defaultuser:_0x6001[67],host:_0x6001[12],type:_0x6001[13],transport:_0x6001[14],allow:_0x6001[15],qualify:_0x6001[16],nat:_0x6001[17],disallow:_0x6001[18],context:_0x6001[19],internal:1015}],{ignoreDuplicates:true,individualHooks:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[3])});models[_0x6001[83]][_0x6001[68]]([{name:_0x6001[71],type:_0x6001[72],insecure:_0x6001[73],defaultuser:_0x6001[74],secret:_0x6001[75],password:_0x6001[75],context:_0x6001[76],language:_0x6001[77],host:_0x6001[78],fromdomain:_0x6001[78],dtmfmode:_0x6001[79],qualify:_0x6001[16],nat:_0x6001[17],callerid:_0x6001[80],limitonpeers:_0x6001[16],callcounter:_0x6001[16],disallow:_0x6001[18],allow:_0x6001[81],canreinvite:_0x6001[82],directmedia:_0x6001[82]}],{ignoreDuplicates:true,individualHooks:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[70])});models[_0x6001[113]][_0x6001[68]]([{name:_0x6001[85],title:_0x6001[86]},{name:_0x6001[87],title:_0x6001[88]},{name:_0x6001[89],title:_0x6001[90]},{name:_0x6001[91],title:_0x6001[92]},{name:_0x6001[93],title:_0x6001[94]},{name:_0x6001[95],title:_0x6001[96]},{name:_0x6001[97],title:_0x6001[98]},{name:_0x6001[99],title:_0x6001[100]},{name:_0x6001[101],title:_0x6001[102]},{name:_0x6001[103],title:_0x6001[104]},{name:_0x6001[105],title:_0x6001[106]},{name:_0x6001[107],title:_0x6001[108]},{name:_0x6001[109],title:_0x6001[110]},{name:_0x6001[111],title:_0x6001[112]}],{ignoreDuplicates:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[84])});models[_0x6001[121]][_0x6001[125]]({name:_0x6001[119],description:_0x6001[138],defaultEntry:true})[_0x6001[5]](function(_0x9248x4){models[_0x6001[69]][_0x6001[137]]({where:{role:_0x6001[7]}})[_0x6001[5]](function(_0x9248x5){_0x9248x4[_0x6001[118]](_[_0x6001[117]](_0x9248x5,_0x6001[116]))[_0x6001[5]](function(){models[_0x6001[126]][_0x6001[125]]({name:_0x6001[122],description:_0x6001[123],timeout:5,strategy:_0x6001[124]})[_0x6001[5]](function(_0x9248x6){console[_0x6001[4]](_0x6001[115]);models[_0x6001[121]][_0x6001[120]]({where:{name:_0x6001[119]},include:[{all:true}]})[_0x6001[5]](function(_0x9248x4){_0x9248x6[_0x6001[118]](_[_0x6001[117]](_0x9248x4.Users,_0x6001[116]))[_0x6001[114]](function(_0x9248x3){})})[_0x6001[114]](function(_0x9248x3){});});models[_0x6001[132]][_0x6001[125]]({name:_0x6001[130],description:_0x6001[131],timeout:5,strategy:_0x6001[124]})[_0x6001[5]](function(_0x9248x7){console[_0x6001[4]](_0x6001[127]);models[_0x6001[121]][_0x6001[120]]({where:{name:_0x6001[119]},include:[{all:true}]})[_0x6001[5]](function(_0x9248x4){if(_0x9248x4){console[_0x6001[4]](_0x6001[128])}else {console[_0x6001[4]](_0x6001[129])};_0x9248x7[_0x6001[118]](_[_0x6001[117]](_0x9248x4.Users,_0x6001[116]))[_0x6001[114]](function(_0x9248x3){});})[_0x6001[114]](function(_0x9248x3){});});models[_0x6001[136]][_0x6001[125]]({name:_0x6001[134],description:_0x6001[135],timeout:5,strategy:_0x6001[124]})[_0x6001[5]](function(_0x9248x8){console[_0x6001[4]](_0x6001[133]);models[_0x6001[121]][_0x6001[120]]({where:{name:_0x6001[119]},include:[{all:true}]})[_0x6001[5]](function(_0x9248x4){_0x9248x8[_0x6001[118]](_[_0x6001[117]](_0x9248x4.Users,_0x6001[116]))[_0x6001[114]](function(_0x9248x3){})})[_0x6001[114]](function(_0x9248x3){});});})[_0x6001[114]](function(_0x9248x3){})})[_0x6001[114]](function(_0x9248x3){})})[_0x6001[114]](function(_0x9248x3){});models[_0x6001[152]][_0x6001[125]]({name:_0x6001[151],description:_0x6001[151],address:_0x6001[143]})[_0x6001[5]](function(_0x9248x9){console[_0x6001[4]](_0x6001[139]);models[_0x6001[150]][_0x6001[125]]({description:_0x6001[60],host:_0x6001[146],username:_0x6001[143],password:_0x6001[144],port:143,mailbox:_0x6001[147],ssl:false,delete:false,filter:_0x6001[148],protocol:_0x6001[149],MailAccountId:_0x9248x9[_0x6001[116]]})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[140]);models[_0x6001[145]][_0x6001[125]]({description:_0x6001[60],host:_0x6001[142],username:_0x6001[143],password:_0x6001[144],port:587,ssl:false,MailAccountId:_0x9248x9[_0x6001[116]]})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[141])})[_0x6001[114]](function(_0x9248x3){});})[_0x6001[114]](function(_0x9248x3){});});models[_0x6001[168]][_0x6001[125]]({description:_0x6001[163],name:_0x6001[164],phone:_0x6001[74],ecm:true,faxheader:_0x6001[165],localid:_0x6001[74],maxrate:_0x6001[166],minrate:_0x6001[167]})[_0x6001[5]](function(_0x9248xa){console[_0x6001[4]](_0x6001[153]);models[_0x6001[83]][_0x6001[120]]({where:{name:_0x6001[71]}})[_0x6001[5]](function(_0x9248xb){_0x9248xa[_0x6001[154]](_0x9248xb)[_0x6001[114]](function(_0x9248x3){});models[_0x6001[158]][_0x6001[125]]({context:_0x6001[76],exten:_0x6001[74],priority:1,app:_0x6001[155],appdata:_0x6001[156],type:_0x6001[157],TrunkId:_0x9248xb[_0x6001[116]]});})[_0x6001[114]](function(_0x9248x3){});models[_0x6001[136]][_0x6001[137]]()[_0x6001[5]](function(_0x9248xc){models[_0x6001[161]][_0x6001[125]]({app:_0x6001[160],appdata:_0x9248xc[0][_0x6001[116]],priority:1,timeout:30,FaxAccountId:_0x9248xa[_0x6001[116]],FaxQueueId:_0x9248xc[0][_0x6001[116]]})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[159])})[_0x6001[114]](function(_0x9248x3){});models[_0x6001[161]][_0x6001[125]]({app:_0x6001[160],appdata:_0x9248xc[1][_0x6001[116]],priority:2,timeout:30,FaxAccountId:_0x9248xa[_0x6001[116]],FaxQueueId:_0x9248xc[1][_0x6001[116]]})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[162])})[_0x6001[114]](function(_0x9248x3){});})[_0x6001[114]](function(_0x9248x3){});})[_0x6001[114]](function(_0x9248x3){});models[_0x6001[158]][_0x6001[68]]([{context:_0x6001[170],exten:_0x6001[171],priority:1,app:_0x6001[172],appdata:_0x6001[173],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[171],priority:2,app:_0x6001[174],appdata:_0x6001[175],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[171],priority:3,app:_0x6001[176],appdata:_0x6001[177],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[171],priority:4,app:_0x6001[176],appdata:_0x6001[178],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[171],priority:5,app:_0x6001[176],appdata:_0x6001[179],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[171],priority:6,app:_0x6001[176],appdata:_0x6001[180],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[171],priority:7,app:_0x6001[176],appdata:_0x6001[181],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[171],priority:8,app:_0x6001[176],appdata:_0x6001[182],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[171],priority:9,app:_0x6001[183],appdata:_0x6001[184],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[171],priority:10,app:_0x6001[172],appdata:_0x6001[185],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[186],priority:1,app:_0x6001[172],appdata:_0x6001[187],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[186],priority:2,app:_0x6001[172],appdata:_0x6001[188],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[186],priority:3,app:_0x6001[172],appdata:_0x6001[189],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[186],priority:4,app:_0x6001[172],appdata:_0x6001[190],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[186],priority:5,app:_0x6001[172],appdata:_0x6001[191],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[186],priority:6,app:_0x6001[172],appdata:_0x6001[192],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[186],priority:7,app:_0x6001[172],appdata:_0x6001[193],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[186],priority:8,app:_0x6001[172],appdata:_0x6001[194],type:_0x6001[170]},{context:_0x6001[170],exten:_0x6001[186],priority:9,app:_0x6001[172],appdata:_0x6001[195],type:_0x6001[170]}],{ignoreDuplicates:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[169])});models[_0x6001[158]][_0x6001[68]]([{context:_0x6001[157],exten:_0x6001[171],priority:1,app:_0x6001[172],appdata:_0x6001[196],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:2,app:_0x6001[176],appdata:_0x6001[197],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:3,app:_0x6001[176],appdata:_0x6001[198],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:4,app:_0x6001[176],appdata:_0x6001[199],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:5,app:_0x6001[176],appdata:_0x6001[200],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:6,app:_0x6001[176],appdata:_0x6001[180],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:7,app:_0x6001[176],appdata:_0x6001[181],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:8,app:_0x6001[176],appdata:_0x6001[182],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:9,app:_0x6001[172],appdata:_0x6001[187],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:10,app:_0x6001[172],appdata:_0x6001[201],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:11,app:_0x6001[172],appdata:_0x6001[202],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:12,app:_0x6001[172],appdata:_0x6001[203],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:13,app:_0x6001[172],appdata:_0x6001[204],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:14,app:_0x6001[172],appdata:_0x6001[205],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:15,app:_0x6001[206],appdata:_0x6001[207],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[171],priority:16,app:_0x6001[208],type:_0x6001[157]},{context:_0x6001[157],exten:_0x6001[186],priority:1,app:_0x6001[172],appdata:_0x6001[187],type:_0x6001[157]}],{ignoreDuplicates:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[169])});models[_0x6001[212]][_0x6001[68]]([{name:_0x6001[210],description:_0x6001[211]}],{ignoreDuplicates:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[209])});models[_0x6001[229]][_0x6001[125]]({name:_0x6001[215],description:_0x6001[215],address:_0x6001[216],color:_0x6001[217],color_focus:_0x6001[217],color_button:_0x6001[217],remote:_0x6001[218],animation:true,header_shape:_0x6001[219],header_online:_0x6001[220],online_message:_0x6001[221],username_placeholder:_0x6001[222],email_placeholder:_0x6001[223],start_chat_button:_0x6001[224],header_offline:_0x6001[225],offline_message:_0x6001[226],enquiry_message_placeholder:_0x6001[227],enquiry_button:_0x6001[228],download_transcript:true})[_0x6001[5]](function(_0x9248xd){console[_0x6001[4]](_0x6001[213]);models[_0x6001[126]][_0x6001[137]]()[_0x6001[5]](function(_0x9248xe){models[_0x6001[214]][_0x6001[125]]({app:_0x6001[160],appdata:_0x9248xe[0][_0x6001[116]],priority:1,timeout:30,ChatWebsiteId:_0x9248xd[_0x6001[116]],ChatQueueId:_0x9248xe[0][_0x6001[116]]})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[159])})[_0x6001[114]](function(_0x9248x3){});models[_0x6001[214]][_0x6001[125]]({app:_0x6001[160],appdata:_0x9248xe[1][_0x6001[116]],priority:2,timeout:30,ChatWebsiteId:_0x9248xd[_0x6001[116]],ChatQueueId:_0x9248xe[1][_0x6001[116]]})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[162])})[_0x6001[114]](function(_0x9248x3){});})[_0x6001[114]](function(_0x9248x3){});})[_0x6001[114]](function(_0x9248x3){});models[_0x6001[232]][_0x6001[68]]([{name:_0x6001[231],description:_0x6001[211]}],{ignoreDuplicates:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[230])});models[_0x6001[235]][_0x6001[68]]([{name:_0x6001[19],description:_0x6001[234],defaultEntry:true},{name:_0x6001[76],description:_0x6001[234],defaultEntry:true},{name:_0x6001[157],description:_0x6001[234],defaultEntry:true},{name:_0x6001[170],description:_0x6001[234],defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[233])});models[_0x6001[242]][_0x6001[68]]([{name:_0x6001[237],mode:_0x6001[238],directory:_0x6001[239],sort:_0x6001[240],format:_0x6001[241],defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[236])});models[_0x6001[246]][_0x6001[68]]([{mac:_0x6001[243],netmask:_0x6001[244],address:_0x6001[245],min_internal:1000}],{ignoreDuplicates:true,individualHooks:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[236])});models[_0x6001[258]][_0x6001[68]]([{name:_0x6001[247],model:JSON[_0x6001[257]]({title:_0x6001[247],rows:[{columns:[{styleClass:_0x6001[248],widgets:[{type:_0x6001[249],title:_0x6001[250],config:{timePattern:_0x6001[251],datePattern:_0x6001[252]}}]},{styleClass:_0x6001[253],widgets:[{type:_0x6001[254],title:_0x6001[255],config:{url:_0x6001[256]}}]}]}]}),defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[236])});models[_0x6001[282]][_0x6001[68]]([{name:_0x6001[260],version:_0x6001[261],active:false,author:_0x6001[262],logo:_0x6001[263],state:_0x6001[264],description:_0x6001[265]},{name:_0x6001[266],version:_0x6001[261],active:false,author:_0x6001[262],logo:_0x6001[267],state:_0x6001[268],description:_0x6001[269]},{name:_0x6001[270],version:_0x6001[261],active:false,author:_0x6001[262],logo:_0x6001[271],state:_0x6001[272],description:_0x6001[273]},{name:_0x6001[274],version:_0x6001[261],active:false,author:_0x6001[262],logo:_0x6001[275],state:_0x6001[276],description:_0x6001[277]},{name:_0x6001[278],version:_0x6001[261],active:false,author:_0x6001[262],logo:_0x6001[279],state:_0x6001[280],description:_0x6001[281]}],{ignoreDuplicates:true,individualHooks:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[259])});models[_0x6001[285]][_0x6001[68]]([{id:1,tree:_0x6001[283]},{id:2,tree:_0x6001[284]}],{ignoreDuplicates:true,individualHooks:true})[_0x6001[5]](function(){console[_0x6001[4]](_0x6001[259])});
\ No newline at end of file
+var _0x15f9=["\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"];_0x15f9[0];var _=require(_0x15f9[1]);var models=require(_0x15f9[2]);models[_0x15f9[69]][_0x15f9[68]]([{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[8],email:_0x15f9[9],name:_0x15f9[10],password:_0x15f9[11],defaultuser:_0x15f9[10],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1000},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[20],email:_0x15f9[21],name:_0x15f9[22],password:_0x15f9[11],defaultuser:_0x15f9[22],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1001},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[23],email:_0x15f9[24],name:_0x15f9[25],password:_0x15f9[11],defaultuser:_0x15f9[25],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1002},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[26],email:_0x15f9[27],name:_0x15f9[28],password:_0x15f9[11],defaultuser:_0x15f9[28],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1003},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[29],email:_0x15f9[30],name:_0x15f9[31],password:_0x15f9[11],defaultuser:_0x15f9[31],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1004},{provider:_0x15f9[6],role:_0x15f9[32],fullname:_0x15f9[33],email:_0x15f9[34],name:_0x15f9[35],password:_0x15f9[35],defaultuser:_0x15f9[35],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1005},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[36],email:_0x15f9[37],name:_0x15f9[38],password:_0x15f9[11],defaultuser:_0x15f9[38],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1006},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[39],email:_0x15f9[40],name:_0x15f9[41],password:_0x15f9[35],defaultuser:_0x15f9[41],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1007},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[42],email:_0x15f9[43],name:_0x15f9[44],password:_0x15f9[35],defaultuser:_0x15f9[44],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1008},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[45],email:_0x15f9[46],name:_0x15f9[47],password:_0x15f9[11],defaultuser:_0x15f9[47],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1009},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[48],email:_0x15f9[49],name:_0x15f9[50],password:_0x15f9[11],defaultuser:_0x15f9[50],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[51],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1010},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[52],email:_0x15f9[53],name:_0x15f9[54],password:_0x15f9[11],defaultuser:_0x15f9[54],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[51],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1011},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[55],email:_0x15f9[56],name:_0x15f9[57],password:_0x15f9[11],defaultuser:_0x15f9[57],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[51],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1012},{provider:_0x15f9[6],role:_0x15f9[32],fullname:_0x15f9[58],email:_0x15f9[59],name:_0x15f9[60],password:_0x15f9[61],defaultuser:_0x15f9[60],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1013},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[62],email:_0x15f9[63],name:_0x15f9[64],password:_0x15f9[11],defaultuser:_0x15f9[64],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1014},{provider:_0x15f9[6],role:_0x15f9[7],fullname:_0x15f9[65],email:_0x15f9[66],name:_0x15f9[67],password:_0x15f9[11],defaultuser:_0x15f9[67],host:_0x15f9[12],type:_0x15f9[13],transport:_0x15f9[14],allow:_0x15f9[15],qualify:_0x15f9[16],nat:_0x15f9[17],disallow:_0x15f9[18],context:_0x15f9[19],internal:1015}],{ignoreDuplicates:true,individualHooks:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[3])});models[_0x15f9[83]][_0x15f9[68]]([{name:_0x15f9[71],type:_0x15f9[72],insecure:_0x15f9[73],defaultuser:_0x15f9[74],secret:_0x15f9[75],password:_0x15f9[75],context:_0x15f9[76],language:_0x15f9[77],host:_0x15f9[78],fromdomain:_0x15f9[78],dtmfmode:_0x15f9[79],qualify:_0x15f9[16],nat:_0x15f9[17],callerid:_0x15f9[80],limitonpeers:_0x15f9[16],callcounter:_0x15f9[16],disallow:_0x15f9[18],allow:_0x15f9[81],canreinvite:_0x15f9[82],directmedia:_0x15f9[82]}],{ignoreDuplicates:true,individualHooks:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[70])});models[_0x15f9[113]][_0x15f9[68]]([{name:_0x15f9[85],title:_0x15f9[86]},{name:_0x15f9[87],title:_0x15f9[88]},{name:_0x15f9[89],title:_0x15f9[90]},{name:_0x15f9[91],title:_0x15f9[92]},{name:_0x15f9[93],title:_0x15f9[94]},{name:_0x15f9[95],title:_0x15f9[96]},{name:_0x15f9[97],title:_0x15f9[98]},{name:_0x15f9[99],title:_0x15f9[100]},{name:_0x15f9[101],title:_0x15f9[102]},{name:_0x15f9[103],title:_0x15f9[104]},{name:_0x15f9[105],title:_0x15f9[106]},{name:_0x15f9[107],title:_0x15f9[108]},{name:_0x15f9[109],title:_0x15f9[110]},{name:_0x15f9[111],title:_0x15f9[112]}],{ignoreDuplicates:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[84])});models[_0x15f9[121]][_0x15f9[125]]({name:_0x15f9[119],description:_0x15f9[138],defaultEntry:true})[_0x15f9[5]](function(_0x3dadx4){models[_0x15f9[69]][_0x15f9[137]]({where:{role:_0x15f9[7]}})[_0x15f9[5]](function(_0x3dadx5){_0x3dadx4[_0x15f9[118]](_[_0x15f9[117]](_0x3dadx5,_0x15f9[116]))[_0x15f9[5]](function(){models[_0x15f9[126]][_0x15f9[125]]({name:_0x15f9[122],description:_0x15f9[123],timeout:5,strategy:_0x15f9[124]})[_0x15f9[5]](function(_0x3dadx6){console[_0x15f9[4]](_0x15f9[115]);models[_0x15f9[121]][_0x15f9[120]]({where:{name:_0x15f9[119]},include:[{all:true}]})[_0x15f9[5]](function(_0x3dadx4){_0x3dadx6[_0x15f9[118]](_[_0x15f9[117]](_0x3dadx4.Users,_0x15f9[116]))[_0x15f9[114]](function(_0x3dadx3){})})[_0x15f9[114]](function(_0x3dadx3){});});models[_0x15f9[132]][_0x15f9[125]]({name:_0x15f9[130],description:_0x15f9[131],timeout:5,strategy:_0x15f9[124]})[_0x15f9[5]](function(_0x3dadx7){console[_0x15f9[4]](_0x15f9[127]);models[_0x15f9[121]][_0x15f9[120]]({where:{name:_0x15f9[119]},include:[{all:true}]})[_0x15f9[5]](function(_0x3dadx4){if(_0x3dadx4){console[_0x15f9[4]](_0x15f9[128])}else {console[_0x15f9[4]](_0x15f9[129])};_0x3dadx7[_0x15f9[118]](_[_0x15f9[117]](_0x3dadx4.Users,_0x15f9[116]))[_0x15f9[114]](function(_0x3dadx3){});})[_0x15f9[114]](function(_0x3dadx3){});});models[_0x15f9[136]][_0x15f9[125]]({name:_0x15f9[134],description:_0x15f9[135],timeout:5,strategy:_0x15f9[124]})[_0x15f9[5]](function(_0x3dadx8){console[_0x15f9[4]](_0x15f9[133]);models[_0x15f9[121]][_0x15f9[120]]({where:{name:_0x15f9[119]},include:[{all:true}]})[_0x15f9[5]](function(_0x3dadx4){_0x3dadx8[_0x15f9[118]](_[_0x15f9[117]](_0x3dadx4.Users,_0x15f9[116]))[_0x15f9[114]](function(_0x3dadx3){})})[_0x15f9[114]](function(_0x3dadx3){});});})[_0x15f9[114]](function(_0x3dadx3){})})[_0x15f9[114]](function(_0x3dadx3){})})[_0x15f9[114]](function(_0x3dadx3){});models[_0x15f9[152]][_0x15f9[125]]({name:_0x15f9[151],description:_0x15f9[151],address:_0x15f9[143]})[_0x15f9[5]](function(_0x3dadx9){console[_0x15f9[4]](_0x15f9[139]);models[_0x15f9[150]][_0x15f9[125]]({description:_0x15f9[60],host:_0x15f9[146],username:_0x15f9[143],password:_0x15f9[144],port:143,mailbox:_0x15f9[147],ssl:false,delete:false,filter:_0x15f9[148],protocol:_0x15f9[149],MailAccountId:_0x3dadx9[_0x15f9[116]]})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[140]);models[_0x15f9[145]][_0x15f9[125]]({description:_0x15f9[60],host:_0x15f9[142],username:_0x15f9[143],password:_0x15f9[144],port:587,ssl:false,MailAccountId:_0x3dadx9[_0x15f9[116]]})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[141])})[_0x15f9[114]](function(_0x3dadx3){});})[_0x15f9[114]](function(_0x3dadx3){});});models[_0x15f9[168]][_0x15f9[125]]({description:_0x15f9[163],name:_0x15f9[164],phone:_0x15f9[74],ecm:true,faxheader:_0x15f9[165],localid:_0x15f9[74],maxrate:_0x15f9[166],minrate:_0x15f9[167]})[_0x15f9[5]](function(_0x3dadxa){console[_0x15f9[4]](_0x15f9[153]);models[_0x15f9[83]][_0x15f9[120]]({where:{name:_0x15f9[71]}})[_0x15f9[5]](function(_0x3dadxb){_0x3dadxa[_0x15f9[154]](_0x3dadxb)[_0x15f9[114]](function(_0x3dadx3){});models[_0x15f9[158]][_0x15f9[125]]({context:_0x15f9[76],exten:_0x15f9[74],priority:1,app:_0x15f9[155],appdata:_0x15f9[156],type:_0x15f9[157],TrunkId:_0x3dadxb[_0x15f9[116]]});})[_0x15f9[114]](function(_0x3dadx3){});models[_0x15f9[136]][_0x15f9[137]]()[_0x15f9[5]](function(_0x3dadxc){models[_0x15f9[161]][_0x15f9[125]]({app:_0x15f9[160],appdata:_0x3dadxc[0][_0x15f9[116]],priority:1,timeout:30,FaxAccountId:_0x3dadxa[_0x15f9[116]],FaxQueueId:_0x3dadxc[0][_0x15f9[116]]})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[159])})[_0x15f9[114]](function(_0x3dadx3){});models[_0x15f9[161]][_0x15f9[125]]({app:_0x15f9[160],appdata:_0x3dadxc[1][_0x15f9[116]],priority:2,timeout:30,FaxAccountId:_0x3dadxa[_0x15f9[116]],FaxQueueId:_0x3dadxc[1][_0x15f9[116]]})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[162])})[_0x15f9[114]](function(_0x3dadx3){});})[_0x15f9[114]](function(_0x3dadx3){});})[_0x15f9[114]](function(_0x3dadx3){});models[_0x15f9[158]][_0x15f9[68]]([{context:_0x15f9[170],exten:_0x15f9[171],priority:1,app:_0x15f9[172],appdata:_0x15f9[173],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[171],priority:2,app:_0x15f9[174],appdata:_0x15f9[175],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[171],priority:3,app:_0x15f9[176],appdata:_0x15f9[177],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[171],priority:4,app:_0x15f9[176],appdata:_0x15f9[178],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[171],priority:5,app:_0x15f9[176],appdata:_0x15f9[179],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[171],priority:6,app:_0x15f9[176],appdata:_0x15f9[180],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[171],priority:7,app:_0x15f9[176],appdata:_0x15f9[181],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[171],priority:8,app:_0x15f9[176],appdata:_0x15f9[182],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[171],priority:9,app:_0x15f9[183],appdata:_0x15f9[184],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[171],priority:10,app:_0x15f9[172],appdata:_0x15f9[185],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[186],priority:1,app:_0x15f9[172],appdata:_0x15f9[187],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[186],priority:2,app:_0x15f9[172],appdata:_0x15f9[188],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[186],priority:3,app:_0x15f9[172],appdata:_0x15f9[189],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[186],priority:4,app:_0x15f9[172],appdata:_0x15f9[190],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[186],priority:5,app:_0x15f9[172],appdata:_0x15f9[191],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[186],priority:6,app:_0x15f9[172],appdata:_0x15f9[192],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[186],priority:7,app:_0x15f9[172],appdata:_0x15f9[193],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[186],priority:8,app:_0x15f9[172],appdata:_0x15f9[194],type:_0x15f9[170]},{context:_0x15f9[170],exten:_0x15f9[186],priority:9,app:_0x15f9[172],appdata:_0x15f9[195],type:_0x15f9[170]}],{ignoreDuplicates:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[169])});models[_0x15f9[158]][_0x15f9[68]]([{context:_0x15f9[157],exten:_0x15f9[171],priority:1,app:_0x15f9[172],appdata:_0x15f9[196],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:2,app:_0x15f9[176],appdata:_0x15f9[197],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:3,app:_0x15f9[176],appdata:_0x15f9[198],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:4,app:_0x15f9[176],appdata:_0x15f9[199],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:5,app:_0x15f9[176],appdata:_0x15f9[200],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:6,app:_0x15f9[176],appdata:_0x15f9[180],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:7,app:_0x15f9[176],appdata:_0x15f9[181],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:8,app:_0x15f9[176],appdata:_0x15f9[182],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:9,app:_0x15f9[172],appdata:_0x15f9[187],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:10,app:_0x15f9[172],appdata:_0x15f9[201],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:11,app:_0x15f9[172],appdata:_0x15f9[202],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:12,app:_0x15f9[172],appdata:_0x15f9[203],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:13,app:_0x15f9[172],appdata:_0x15f9[204],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:14,app:_0x15f9[172],appdata:_0x15f9[205],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:15,app:_0x15f9[206],appdata:_0x15f9[207],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[171],priority:16,app:_0x15f9[208],type:_0x15f9[157]},{context:_0x15f9[157],exten:_0x15f9[186],priority:1,app:_0x15f9[172],appdata:_0x15f9[187],type:_0x15f9[157]}],{ignoreDuplicates:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[169])});models[_0x15f9[212]][_0x15f9[68]]([{name:_0x15f9[210],description:_0x15f9[211]}],{ignoreDuplicates:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[209])});models[_0x15f9[229]][_0x15f9[125]]({name:_0x15f9[215],description:_0x15f9[215],address:_0x15f9[216],color:_0x15f9[217],color_focus:_0x15f9[217],color_button:_0x15f9[217],remote:_0x15f9[218],animation:true,header_shape:_0x15f9[219],header_online:_0x15f9[220],online_message:_0x15f9[221],username_placeholder:_0x15f9[222],email_placeholder:_0x15f9[223],start_chat_button:_0x15f9[224],header_offline:_0x15f9[225],offline_message:_0x15f9[226],enquiry_message_placeholder:_0x15f9[227],enquiry_button:_0x15f9[228],download_transcript:true})[_0x15f9[5]](function(_0x3dadxd){console[_0x15f9[4]](_0x15f9[213]);models[_0x15f9[126]][_0x15f9[137]]()[_0x15f9[5]](function(_0x3dadxe){models[_0x15f9[214]][_0x15f9[125]]({app:_0x15f9[160],appdata:_0x3dadxe[0][_0x15f9[116]],priority:1,timeout:30,ChatWebsiteId:_0x3dadxd[_0x15f9[116]],ChatQueueId:_0x3dadxe[0][_0x15f9[116]]})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[159])})[_0x15f9[114]](function(_0x3dadx3){});models[_0x15f9[214]][_0x15f9[125]]({app:_0x15f9[160],appdata:_0x3dadxe[1][_0x15f9[116]],priority:2,timeout:30,ChatWebsiteId:_0x3dadxd[_0x15f9[116]],ChatQueueId:_0x3dadxe[1][_0x15f9[116]]})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[162])})[_0x15f9[114]](function(_0x3dadx3){});})[_0x15f9[114]](function(_0x3dadx3){});})[_0x15f9[114]](function(_0x3dadx3){});models[_0x15f9[232]][_0x15f9[68]]([{name:_0x15f9[231],description:_0x15f9[211]}],{ignoreDuplicates:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[230])});models[_0x15f9[235]][_0x15f9[68]]([{name:_0x15f9[19],description:_0x15f9[234],defaultEntry:true},{name:_0x15f9[76],description:_0x15f9[234],defaultEntry:true},{name:_0x15f9[157],description:_0x15f9[234],defaultEntry:true},{name:_0x15f9[170],description:_0x15f9[234],defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[233])});models[_0x15f9[242]][_0x15f9[68]]([{name:_0x15f9[237],mode:_0x15f9[238],directory:_0x15f9[239],sort:_0x15f9[240],format:_0x15f9[241],defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[236])});models[_0x15f9[246]][_0x15f9[68]]([{mac:_0x15f9[243],netmask:_0x15f9[244],address:_0x15f9[245],min_internal:1000}],{ignoreDuplicates:true,individualHooks:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[236])});models[_0x15f9[258]][_0x15f9[68]]([{name:_0x15f9[247],model:JSON[_0x15f9[257]]({title:_0x15f9[247],rows:[{columns:[{styleClass:_0x15f9[248],widgets:[{type:_0x15f9[249],title:_0x15f9[250],config:{timePattern:_0x15f9[251],datePattern:_0x15f9[252]}}]},{styleClass:_0x15f9[253],widgets:[{type:_0x15f9[254],title:_0x15f9[255],config:{url:_0x15f9[256]}}]}]}]}),defaultEntry:true}],{ignoreDuplicates:true,individualHooks:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[236])});models[_0x15f9[282]][_0x15f9[68]]([{name:_0x15f9[260],version:_0x15f9[261],active:false,author:_0x15f9[262],logo:_0x15f9[263],state:_0x15f9[264],description:_0x15f9[265]},{name:_0x15f9[266],version:_0x15f9[261],active:false,author:_0x15f9[262],logo:_0x15f9[267],state:_0x15f9[268],description:_0x15f9[269]},{name:_0x15f9[270],version:_0x15f9[261],active:false,author:_0x15f9[262],logo:_0x15f9[271],state:_0x15f9[272],description:_0x15f9[273]},{name:_0x15f9[274],version:_0x15f9[261],active:false,author:_0x15f9[262],logo:_0x15f9[275],state:_0x15f9[276],description:_0x15f9[277]},{name:_0x15f9[278],version:_0x15f9[261],active:false,author:_0x15f9[262],logo:_0x15f9[279],state:_0x15f9[280],description:_0x15f9[281]}],{ignoreDuplicates:true,individualHooks:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[259])});models[_0x15f9[285]][_0x15f9[68]]([{id:1,tree:_0x15f9[283]},{id:2,tree:_0x15f9[284]}],{ignoreDuplicates:true,individualHooks:true})[_0x15f9[5]](function(){console[_0x15f9[4]](_0x15f9[259])});
\ No newline at end of file
-var _0x2bed=["\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"];_0x2bed[0];var _=require(_0x2bed[1]);var MailServerOut=require(_0x2bed[3])[_0x2bed[2]];module[_0x2bed[4]]={init:function(){MailServerOut[_0x2bed[7]](function(_0x74adx3){require(_0x2bed[6])[_0x2bed[5]](_0x74adx3)});return MailServerOut[_0x2bed[12]]()[_0x2bed[11]](function(_0x74adx5){_0x74adx5[_0x2bed[10]](function(_0x74adx6){require(_0x2bed[6])[_0x2bed[5]](_0x74adx6)})})[_0x2bed[9]](function(_0x74adx4){console[_0x2bed[8]](_0x74adx4)});}};
\ No newline at end of file
+var _0xeb35=["\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"];_0xeb35[0];var _=require(_0xeb35[1]);var MailServerOut=require(_0xeb35[3])[_0xeb35[2]];module[_0xeb35[4]]={init:function(){MailServerOut[_0xeb35[7]](function(_0x8dc4x3){require(_0xeb35[6])[_0xeb35[5]](_0x8dc4x3)});return MailServerOut[_0xeb35[12]]()[_0xeb35[11]](function(_0x8dc4x5){_0x8dc4x5[_0xeb35[10]](function(_0x8dc4x6){require(_0xeb35[6])[_0xeb35[5]](_0x8dc4x6)})})[_0xeb35[9]](function(_0x8dc4x4){console[_0xeb35[8]](_0x8dc4x4)});}};
\ No newline at end of file
-var _0xc095=["\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"];_0xc095[0];var _=require(_0xc095[1]);var Promise=require(_0xc095[2]);var nodemailer=require(_0xc095[3]);var smtpTransport=require(_0xc095[4]);var Contact=require(_0xc095[6])[_0xc095[5]];var MailRoom=require(_0xc095[6])[_0xc095[7]];var MailMessage=require(_0xc095[6])[_0xc095[8]];var ContactEmail=require(_0xc095[6])[_0xc095[9]];var MailServerOut=require(_0xc095[6])[_0xc095[10]];module[_0xc095[11]]={create:function(_0x82ccxa){var _0x82ccxb;var _0x82ccxc;function _0x82ccxd(_0x82ccxa){console[_0xc095[15]](_0xc095[12]+_0x82ccxa[_0xc095[13]]+_0xc095[14]);_0x82ccxc=_0x82ccxa;_0x82ccxb=nodemailer[_0xc095[20]](smtpTransport({host:_0x82ccxa[_0xc095[16]],port:_0x82ccxa[_0xc095[17]],secure:_0x82ccxa[_0xc095[18]],debug:true,auth:{user:_0x82ccxa[_0xc095[13]],pass:_0x82ccxa[_0xc095[19]]}}));}function _0x82ccxe(_0x82ccxa){if(_0x82ccxb[_0xc095[24]][_0xc095[23]][_0xc095[22]][_0xc095[21]]===_0x82ccxa[_0xc095[13]]){console[_0xc095[15]](_0xc095[12]+_0x82ccxa[_0xc095[13]]+_0xc095[25]);_0x82ccxb=null;_0x82ccxb=nodemailer[_0xc095[20]](smtpTransport({host:_0x82ccxa[_0xc095[16]],port:_0x82ccxa[_0xc095[17]],secure:_0x82ccxa[_0xc095[18]],debug:true,auth:{user:_0x82ccxa[_0xc095[13]],pass:_0x82ccxa[_0xc095[19]]}}));}}function _0x82ccxf(_0x82ccxa){if(_0x82ccxb[_0xc095[24]][_0xc095[23]][_0xc095[22]][_0xc095[21]]===_0x82ccxa[_0xc095[13]]){console[_0xc095[15]](_0xc095[26]+_0x82ccxa[_0xc095[13]]+_0xc095[27]);_0x82ccxb=null;}}function _0x82ccx10(_0x82ccx11,_0x82ccx12){if(_0x82ccx11[_0xc095[29]](_0xc095[28])&&_0x82ccx11[_0xc095[28]]===_0xc095[30]&&_0x82ccxb[_0xc095[24]][_0xc095[23]][_0xc095[22]][_0xc095[21]]===_0x82ccx11[_0xc095[31]]){console[_0xc095[15]](_0xc095[32],_0x82ccx11[_0xc095[31]]);var _0x82ccx13;var _0x82ccx14=_0x82ccx11;var _0x82ccx15,_0x82ccx16,_0x82ccx17,_0x82ccx18;if(_0x82ccx14[_0xc095[33]]){return MailMessage[_0xc095[63]]({where:{messageId:_0x82ccx14[_0xc095[33]]}})[_0xc095[38]](function(_0x82ccx27){return _0x82ccx27[_0xc095[62]]()})[_0xc095[38]](function(_0x82ccx26){_0x82ccx13=_0x82ccx26;return _0x82ccx26[_0xc095[61]](_0x82ccx14,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null});})[_0xc095[38]](function(){return ContactEmail[_0xc095[57]]({where:{email:_0x82ccx14[_0xc095[31]]},defaults:{email:_0x82ccx14[_0xc095[31]]},transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[60]](function(_0x82ccx23,_0x82ccx24){var _0x82ccx1e=[];var _0x82ccx25=_0x82ccx14[_0xc095[39]]?_0x82ccx14[_0xc095[39]][_0xc095[56]](_0xc095[55]):[];_0x82ccx15=_0x82ccx23;_0x82ccx25[_0xc095[59]](function(_0x82ccx20){_0x82ccx1e[_0xc095[58]](ContactEmail[_0xc095[57]]({where:{email:_0x82ccx20},defaults:{email:_0x82ccx20},transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null}))});return _0x82ccx1e;})[_0xc095[53]]()[_0xc095[38]](function(_0x82ccx21){var _0x82ccx1e=[];var _0x82ccx22=_0x82ccx14[_0xc095[40]]?_0x82ccx14[_0xc095[40]][_0xc095[56]](_0xc095[55]):[];_0x82ccx16=_[_0xc095[47]](_0x82ccx21,function(_0x82ccx1b){return _0x82ccx1b[0]});_0x82ccx22[_0xc095[59]](function(_0x82ccx20){_0x82ccx1e[_0xc095[58]](ContactEmail[_0xc095[57]]({where:{email:_0x82ccx20},defaults:{email:_0x82ccx20},transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null}))});return _0x82ccx1e;})[_0xc095[53]]()[_0xc095[38]](function(_0x82ccx1d){var _0x82ccx1e=[];var _0x82ccx1f=_0x82ccx14[_0xc095[54]]?_0x82ccx14[_0xc095[54]][_0xc095[56]](_0xc095[55]):[];_0x82ccx17=_[_0xc095[47]](_0x82ccx1d,function(_0x82ccx1b){return _0x82ccx1b[0]});_0x82ccx1f[_0xc095[59]](function(_0x82ccx20){_0x82ccx1e[_0xc095[58]](ContactEmail[_0xc095[57]]({where:{email:_0x82ccx20},defaults:{email:_0x82ccx20},transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null}))});return _0x82ccx1e;})[_0xc095[53]]()[_0xc095[38]](function(_0x82ccx1c){_0x82ccx18=_[_0xc095[47]](_0x82ccx1c,function(_0x82ccx1b){return _0x82ccx1b[0]});return ;})[_0xc095[38]](function(){return _0x82ccx14[_0xc095[52]](_0x82ccx15,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[38]](function(){return _0x82ccx14[_0xc095[51]](_0x82ccx16,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[38]](function(){return _0x82ccx14[_0xc095[50]](_0x82ccx17,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[38]](function(){return _0x82ccx14[_0xc095[49]](_0x82ccx18,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[38]](function(){var _0x82ccx1a={status:_0x82ccx14[_0xc095[28]],from:_0x82ccx14[_0xc095[31]],to:_0x82ccx14[_0xc095[39]],cc:_0x82ccx14[_0xc095[40]],subject:_0x82ccx14[_0xc095[41]],html:_0x82ccx14[_0xc095[42]],text:_0x82ccx14[_0xc095[43]],headers:{"\x58\x2D\x4C\x61\x7A\x69\x6E\x65\x73\x73\x2D\x6C\x65\x76\x65\x6C":1000}};if(_0x82ccx14[_0xc095[44]]){_0x82ccx1a[_0xc095[45]]=_[_0xc095[47]](_0x82ccx14.MailAttachments,function(_0x82ccx1b){return {path:_0x82ccx1b[_0xc095[46]]}})};return _0x82ccxb[_0xc095[48]](_0x82ccx1a);})[_0xc095[38]](function(_0x82ccx19){return _0x82ccx14[_0xc095[37]]({messageId:_0x82ccx19[_0xc095[34]],status:_0xc095[35]},{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})}else {return MailRoom[_0xc095[57]]({where:{id:_0x82ccx14[_0xc095[65]]},defaults:{subject:_0x82ccx14[_0xc095[41]],from:_0x82ccx14[_0xc095[31]],status:_0xc095[66],MailAccountId:_0x82ccxc[_0xc095[67]]},transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})[_0xc095[60]](function(_0x82ccx26){_0x82ccx13=_0x82ccx26;return _0x82ccx26[_0xc095[61]](_0x82ccx14,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null});})[_0xc095[38]](function(){return ContactEmail[_0xc095[57]]({where:{email:_0x82ccx14[_0xc095[31]]},defaults:{email:_0x82ccx14[_0xc095[31]]},transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[60]](function(_0x82ccx23){var _0x82ccx1e=[];var _0x82ccx25=_0x82ccx14[_0xc095[39]]?_0x82ccx14[_0xc095[39]][_0xc095[56]](_0xc095[55]):[];_0x82ccx15=_0x82ccx23;_0x82ccx25[_0xc095[59]](function(_0x82ccx20){_0x82ccx1e[_0xc095[58]](ContactEmail[_0xc095[57]]({where:{email:_0x82ccx20},defaults:{email:_0x82ccx20},transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null}))});return _0x82ccx1e;})[_0xc095[53]]()[_0xc095[38]](function(_0x82ccx21){var _0x82ccx1e=[];var _0x82ccx22=_0x82ccx14[_0xc095[40]]?_0x82ccx14[_0xc095[40]][_0xc095[56]](_0xc095[55]):[];_0x82ccx16=_[_0xc095[47]](_0x82ccx21,function(_0x82ccx1b){return _0x82ccx1b[0]});_0x82ccx22[_0xc095[59]](function(_0x82ccx20){_0x82ccx1e[_0xc095[58]](ContactEmail[_0xc095[57]]({where:{email:_0x82ccx20},defaults:{email:_0x82ccx20},transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null}))});return _0x82ccx1e;})[_0xc095[53]]()[_0xc095[38]](function(_0x82ccx1d){var _0x82ccx1e=[];var _0x82ccx1f=_0x82ccx14[_0xc095[54]]?_0x82ccx14[_0xc095[54]][_0xc095[56]](_0xc095[55]):[];_0x82ccx17=_[_0xc095[47]](_0x82ccx1d,function(_0x82ccx1b){return _0x82ccx1b[0]});_0x82ccx1f[_0xc095[59]](function(_0x82ccx20){_0x82ccx1e[_0xc095[58]](ContactEmail[_0xc095[57]]({where:{email:_0x82ccx20},defaults:{email:_0x82ccx20},transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null}))});return _0x82ccx1e;})[_0xc095[53]]()[_0xc095[38]](function(_0x82ccx1c){_0x82ccx18=_[_0xc095[47]](_0x82ccx1c,function(_0x82ccx1b){return _0x82ccx1b[0]});return ;})[_0xc095[38]](function(){return _0x82ccx14[_0xc095[52]](_0x82ccx15,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[38]](function(){return _0x82ccx14[_0xc095[51]](_0x82ccx16,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[38]](function(){return _0x82ccx14[_0xc095[50]](_0x82ccx17,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[38]](function(){return _0x82ccx14[_0xc095[49]](_0x82ccx18,{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null})})[_0xc095[38]](function(){var _0x82ccx1a={status:_0x82ccx14[_0xc095[28]],from:_0x82ccx14[_0xc095[31]],to:_0x82ccx14[_0xc095[39]],cc:_0x82ccx14[_0xc095[40]],subject:_0x82ccx14[_0xc095[41]],html:_0x82ccx14[_0xc095[42]],text:_0x82ccx14[_0xc095[43]],headers:{"\x58\x2D\x4C\x61\x7A\x69\x6E\x65\x73\x73\x2D\x6C\x65\x76\x65\x6C":1000}};if(_0x82ccx14[_0xc095[44]]){_0x82ccx1a[_0xc095[45]]=_[_0xc095[47]](_0x82ccx14.MailAttachments,function(_0x82ccx1b){return {path:_0x82ccx1b[_0xc095[46]]}})};return _0x82ccxb[_0xc095[48]](_0x82ccx1a);})[_0xc095[38]](function(_0x82ccx19){console[_0xc095[15]](_0xc095[64],_0x82ccx19);return _0x82ccx14[_0xc095[37]]({messageId:_0x82ccx19[_0xc095[34]],status:_0xc095[35]},{transaction:_0x82ccx12?_0x82ccx12[_0xc095[36]]:null});})};}}_0x82ccxd(_0x82ccxa);MailServerOut[_0xc095[68]](function(_0x82ccxa){_0x82ccxe(_0x82ccxa)});MailServerOut[_0xc095[69]](function(_0x82ccxa){_0x82ccxf(_0x82ccxa)});MailMessage[_0xc095[70]](function(_0x82ccxa,_0x82ccx12){return _0x82ccx10(_0x82ccxa,_0x82ccx12)});}};
\ No newline at end of file
+var _0xde90=["\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"];_0xde90[0];var _=require(_0xde90[1]);var Promise=require(_0xde90[2]);var nodemailer=require(_0xde90[3]);var smtpTransport=require(_0xde90[4]);var Contact=require(_0xde90[6])[_0xde90[5]];var MailRoom=require(_0xde90[6])[_0xde90[7]];var MailMessage=require(_0xde90[6])[_0xde90[8]];var ContactEmail=require(_0xde90[6])[_0xde90[9]];var MailServerOut=require(_0xde90[6])[_0xde90[10]];module[_0xde90[11]]={create:function(_0xd1f9xa){var _0xd1f9xb;var _0xd1f9xc;function _0xd1f9xd(_0xd1f9xa){console[_0xde90[15]](_0xde90[12]+_0xd1f9xa[_0xde90[13]]+_0xde90[14]);_0xd1f9xc=_0xd1f9xa;_0xd1f9xb=nodemailer[_0xde90[20]](smtpTransport({host:_0xd1f9xa[_0xde90[16]],port:_0xd1f9xa[_0xde90[17]],secure:_0xd1f9xa[_0xde90[18]],debug:true,auth:{user:_0xd1f9xa[_0xde90[13]],pass:_0xd1f9xa[_0xde90[19]]}}));}function _0xd1f9xe(_0xd1f9xa){if(_0xd1f9xb[_0xde90[24]][_0xde90[23]][_0xde90[22]][_0xde90[21]]===_0xd1f9xa[_0xde90[13]]){console[_0xde90[15]](_0xde90[12]+_0xd1f9xa[_0xde90[13]]+_0xde90[25]);_0xd1f9xb=null;_0xd1f9xb=nodemailer[_0xde90[20]](smtpTransport({host:_0xd1f9xa[_0xde90[16]],port:_0xd1f9xa[_0xde90[17]],secure:_0xd1f9xa[_0xde90[18]],debug:true,auth:{user:_0xd1f9xa[_0xde90[13]],pass:_0xd1f9xa[_0xde90[19]]}}));}}function _0xd1f9xf(_0xd1f9xa){if(_0xd1f9xb[_0xde90[24]][_0xde90[23]][_0xde90[22]][_0xde90[21]]===_0xd1f9xa[_0xde90[13]]){console[_0xde90[15]](_0xde90[26]+_0xd1f9xa[_0xde90[13]]+_0xde90[27]);_0xd1f9xb=null;}}function _0xd1f9x10(_0xd1f9x11,_0xd1f9x12){if(_0xd1f9x11[_0xde90[29]](_0xde90[28])&&_0xd1f9x11[_0xde90[28]]===_0xde90[30]&&_0xd1f9xb[_0xde90[24]][_0xde90[23]][_0xde90[22]][_0xde90[21]]===_0xd1f9x11[_0xde90[31]]){console[_0xde90[15]](_0xde90[32],_0xd1f9x11[_0xde90[31]]);var _0xd1f9x13;var _0xd1f9x14=_0xd1f9x11;var _0xd1f9x15,_0xd1f9x16,_0xd1f9x17,_0xd1f9x18;if(_0xd1f9x14[_0xde90[33]]){return MailMessage[_0xde90[63]]({where:{messageId:_0xd1f9x14[_0xde90[33]]}})[_0xde90[38]](function(_0xd1f9x27){return _0xd1f9x27[_0xde90[62]]()})[_0xde90[38]](function(_0xd1f9x26){_0xd1f9x13=_0xd1f9x26;return _0xd1f9x26[_0xde90[61]](_0xd1f9x14,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null});})[_0xde90[38]](function(){return ContactEmail[_0xde90[57]]({where:{email:_0xd1f9x14[_0xde90[31]]},defaults:{email:_0xd1f9x14[_0xde90[31]]},transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[60]](function(_0xd1f9x23,_0xd1f9x24){var _0xd1f9x1e=[];var _0xd1f9x25=_0xd1f9x14[_0xde90[39]]?_0xd1f9x14[_0xde90[39]][_0xde90[56]](_0xde90[55]):[];_0xd1f9x15=_0xd1f9x23;_0xd1f9x25[_0xde90[59]](function(_0xd1f9x20){_0xd1f9x1e[_0xde90[58]](ContactEmail[_0xde90[57]]({where:{email:_0xd1f9x20},defaults:{email:_0xd1f9x20},transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null}))});return _0xd1f9x1e;})[_0xde90[53]]()[_0xde90[38]](function(_0xd1f9x21){var _0xd1f9x1e=[];var _0xd1f9x22=_0xd1f9x14[_0xde90[40]]?_0xd1f9x14[_0xde90[40]][_0xde90[56]](_0xde90[55]):[];_0xd1f9x16=_[_0xde90[47]](_0xd1f9x21,function(_0xd1f9x1b){return _0xd1f9x1b[0]});_0xd1f9x22[_0xde90[59]](function(_0xd1f9x20){_0xd1f9x1e[_0xde90[58]](ContactEmail[_0xde90[57]]({where:{email:_0xd1f9x20},defaults:{email:_0xd1f9x20},transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null}))});return _0xd1f9x1e;})[_0xde90[53]]()[_0xde90[38]](function(_0xd1f9x1d){var _0xd1f9x1e=[];var _0xd1f9x1f=_0xd1f9x14[_0xde90[54]]?_0xd1f9x14[_0xde90[54]][_0xde90[56]](_0xde90[55]):[];_0xd1f9x17=_[_0xde90[47]](_0xd1f9x1d,function(_0xd1f9x1b){return _0xd1f9x1b[0]});_0xd1f9x1f[_0xde90[59]](function(_0xd1f9x20){_0xd1f9x1e[_0xde90[58]](ContactEmail[_0xde90[57]]({where:{email:_0xd1f9x20},defaults:{email:_0xd1f9x20},transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null}))});return _0xd1f9x1e;})[_0xde90[53]]()[_0xde90[38]](function(_0xd1f9x1c){_0xd1f9x18=_[_0xde90[47]](_0xd1f9x1c,function(_0xd1f9x1b){return _0xd1f9x1b[0]});return ;})[_0xde90[38]](function(){return _0xd1f9x14[_0xde90[52]](_0xd1f9x15,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[38]](function(){return _0xd1f9x14[_0xde90[51]](_0xd1f9x16,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[38]](function(){return _0xd1f9x14[_0xde90[50]](_0xd1f9x17,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[38]](function(){return _0xd1f9x14[_0xde90[49]](_0xd1f9x18,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[38]](function(){var _0xd1f9x1a={status:_0xd1f9x14[_0xde90[28]],from:_0xd1f9x14[_0xde90[31]],to:_0xd1f9x14[_0xde90[39]],cc:_0xd1f9x14[_0xde90[40]],subject:_0xd1f9x14[_0xde90[41]],html:_0xd1f9x14[_0xde90[42]],text:_0xd1f9x14[_0xde90[43]],headers:{"\x58\x2D\x4C\x61\x7A\x69\x6E\x65\x73\x73\x2D\x6C\x65\x76\x65\x6C":1000}};if(_0xd1f9x14[_0xde90[44]]){_0xd1f9x1a[_0xde90[45]]=_[_0xde90[47]](_0xd1f9x14.MailAttachments,function(_0xd1f9x1b){return {path:_0xd1f9x1b[_0xde90[46]]}})};return _0xd1f9xb[_0xde90[48]](_0xd1f9x1a);})[_0xde90[38]](function(_0xd1f9x19){return _0xd1f9x14[_0xde90[37]]({messageId:_0xd1f9x19[_0xde90[34]],status:_0xde90[35]},{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})}else {return MailRoom[_0xde90[57]]({where:{id:_0xd1f9x14[_0xde90[65]]},defaults:{subject:_0xd1f9x14[_0xde90[41]],from:_0xd1f9x14[_0xde90[31]],status:_0xde90[66],MailAccountId:_0xd1f9xc[_0xde90[67]]},transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})[_0xde90[60]](function(_0xd1f9x26){_0xd1f9x13=_0xd1f9x26;return _0xd1f9x26[_0xde90[61]](_0xd1f9x14,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null});})[_0xde90[38]](function(){return ContactEmail[_0xde90[57]]({where:{email:_0xd1f9x14[_0xde90[31]]},defaults:{email:_0xd1f9x14[_0xde90[31]]},transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[60]](function(_0xd1f9x23){var _0xd1f9x1e=[];var _0xd1f9x25=_0xd1f9x14[_0xde90[39]]?_0xd1f9x14[_0xde90[39]][_0xde90[56]](_0xde90[55]):[];_0xd1f9x15=_0xd1f9x23;_0xd1f9x25[_0xde90[59]](function(_0xd1f9x20){_0xd1f9x1e[_0xde90[58]](ContactEmail[_0xde90[57]]({where:{email:_0xd1f9x20},defaults:{email:_0xd1f9x20},transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null}))});return _0xd1f9x1e;})[_0xde90[53]]()[_0xde90[38]](function(_0xd1f9x21){var _0xd1f9x1e=[];var _0xd1f9x22=_0xd1f9x14[_0xde90[40]]?_0xd1f9x14[_0xde90[40]][_0xde90[56]](_0xde90[55]):[];_0xd1f9x16=_[_0xde90[47]](_0xd1f9x21,function(_0xd1f9x1b){return _0xd1f9x1b[0]});_0xd1f9x22[_0xde90[59]](function(_0xd1f9x20){_0xd1f9x1e[_0xde90[58]](ContactEmail[_0xde90[57]]({where:{email:_0xd1f9x20},defaults:{email:_0xd1f9x20},transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null}))});return _0xd1f9x1e;})[_0xde90[53]]()[_0xde90[38]](function(_0xd1f9x1d){var _0xd1f9x1e=[];var _0xd1f9x1f=_0xd1f9x14[_0xde90[54]]?_0xd1f9x14[_0xde90[54]][_0xde90[56]](_0xde90[55]):[];_0xd1f9x17=_[_0xde90[47]](_0xd1f9x1d,function(_0xd1f9x1b){return _0xd1f9x1b[0]});_0xd1f9x1f[_0xde90[59]](function(_0xd1f9x20){_0xd1f9x1e[_0xde90[58]](ContactEmail[_0xde90[57]]({where:{email:_0xd1f9x20},defaults:{email:_0xd1f9x20},transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null}))});return _0xd1f9x1e;})[_0xde90[53]]()[_0xde90[38]](function(_0xd1f9x1c){_0xd1f9x18=_[_0xde90[47]](_0xd1f9x1c,function(_0xd1f9x1b){return _0xd1f9x1b[0]});return ;})[_0xde90[38]](function(){return _0xd1f9x14[_0xde90[52]](_0xd1f9x15,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[38]](function(){return _0xd1f9x14[_0xde90[51]](_0xd1f9x16,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[38]](function(){return _0xd1f9x14[_0xde90[50]](_0xd1f9x17,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[38]](function(){return _0xd1f9x14[_0xde90[49]](_0xd1f9x18,{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null})})[_0xde90[38]](function(){var _0xd1f9x1a={status:_0xd1f9x14[_0xde90[28]],from:_0xd1f9x14[_0xde90[31]],to:_0xd1f9x14[_0xde90[39]],cc:_0xd1f9x14[_0xde90[40]],subject:_0xd1f9x14[_0xde90[41]],html:_0xd1f9x14[_0xde90[42]],text:_0xd1f9x14[_0xde90[43]],headers:{"\x58\x2D\x4C\x61\x7A\x69\x6E\x65\x73\x73\x2D\x6C\x65\x76\x65\x6C":1000}};if(_0xd1f9x14[_0xde90[44]]){_0xd1f9x1a[_0xde90[45]]=_[_0xde90[47]](_0xd1f9x14.MailAttachments,function(_0xd1f9x1b){return {path:_0xd1f9x1b[_0xde90[46]]}})};return _0xd1f9xb[_0xde90[48]](_0xd1f9x1a);})[_0xde90[38]](function(_0xd1f9x19){console[_0xde90[15]](_0xde90[64],_0xd1f9x19);return _0xd1f9x14[_0xde90[37]]({messageId:_0xd1f9x19[_0xde90[34]],status:_0xde90[35]},{transaction:_0xd1f9x12?_0xd1f9x12[_0xde90[36]]:null});})};}}_0xd1f9xd(_0xd1f9xa);MailServerOut[_0xde90[68]](function(_0xd1f9xa){_0xd1f9xe(_0xd1f9xa)});MailServerOut[_0xde90[69]](function(_0xd1f9xa){_0xd1f9xf(_0xd1f9xa)});MailMessage[_0xde90[70]](function(_0xd1f9xa,_0xd1f9x12){return _0xd1f9x10(_0xd1f9xa,_0xd1f9x12)});}};
\ No newline at end of file
-var _0x8fe8=["\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"];_0x8fe8[0];var moment=require(_0x8fe8[1]);var config=require(_0x8fe8[2]);var User=require(_0x8fe8[4])[_0x8fe8[3]];function onDisconnect(_0x2cdex5){if(_0x2cdex5[_0x8fe8[5]]){return User[_0x8fe8[14]](_0x2cdex5[_0x8fe8[5]])[_0x8fe8[11]](function(_0x2cdex7){if(_0x2cdex7){return _0x2cdex7[_0x8fe8[12]]({online:false})}else {throw new Error(_0x8fe8[13])}})[_0x8fe8[11]](function(_0x2cdex7){console[_0x8fe8[10]](_0x8fe8[8],_0x2cdex7[_0x8fe8[9]])})[_0x8fe8[7]](function(_0x2cdex6){console[_0x8fe8[6]](_0x2cdex6)})}else {console[_0x8fe8[10]](_0x8fe8[13])}}function onConnect(_0x2cdex5){if(_0x2cdex5[_0x8fe8[5]]){return User[_0x8fe8[14]](_0x2cdex5[_0x8fe8[5]])[_0x8fe8[11]](function(_0x2cdex7){if(_0x2cdex7){return _0x2cdex7[_0x8fe8[12]]({online:true,lastLoginAt:moment()[_0x8fe8[105]](_0x8fe8[104])})}else {throw new Error(_0x8fe8[13])}})[_0x8fe8[11]](function(_0x2cdex7){console[_0x8fe8[10]](_0x8fe8[15],_0x2cdex7[_0x8fe8[9]]);require(_0x8fe8[17])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[18])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[19])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[20])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[21])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[22])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[23])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[24])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[25])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[26])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[27])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[28])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[29])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[30])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[31])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[32])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[33])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[34])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[35])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[36])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[37])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[38])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[39])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[40])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[41])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[42])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[43])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[44])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[45])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[46])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[47])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[48])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[49])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[50])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[51])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[52])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[53])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[54])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[55])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[56])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[57])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[58])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[59])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[60])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[61])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[62])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[63])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[64])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[65])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[66])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[67])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[68])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[69])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[70])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[71])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[72])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[73])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[74])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[75])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[76])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[77])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[78])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[79])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[80])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[81])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[82])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[83])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[84])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[85])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[86])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[87])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[88])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[89])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[90])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[91])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[92])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[93])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[94])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[95])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[96])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[97])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[98])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[99])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[100])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[101])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[102])[_0x8fe8[16]](_0x2cdex5);require(_0x8fe8[103])[_0x8fe8[16]](_0x2cdex5);})[_0x8fe8[7]](function(_0x2cdex6){console[_0x8fe8[6]](_0x2cdex6)})}else {console[_0x8fe8[10]](_0x8fe8[13])};_0x2cdex5[_0x8fe8[110]](_0x8fe8[106],function(_0x2cdex9){console[_0x8fe8[106]](_0x8fe8[107],_0x2cdex5[_0x8fe8[108]],JSON[_0x8fe8[109]](_0x2cdex9,null,2))});}module[_0x8fe8[111]]=function(_0x2cdexa){_0x2cdexa[_0x8fe8[116]](require(_0x8fe8[115])[_0x8fe8[114]]({secret:config[_0x8fe8[113]][_0x8fe8[112]],handshake:true}));_0x2cdexa[_0x8fe8[110]](_0x8fe8[117],function(_0x2cdex5){_0x2cdex5[_0x8fe8[108]]=_0x2cdex5[_0x8fe8[118]][_0x8fe8[108]]!==null?_0x2cdex5[_0x8fe8[118]][_0x8fe8[108]][_0x8fe8[108]]+_0x8fe8[119]+_0x2cdex5[_0x8fe8[118]][_0x8fe8[108]][_0x8fe8[120]]:process[_0x8fe8[122]][_0x8fe8[121]];_0x2cdex5[_0x8fe8[123]]= new Date();_0x2cdex5[_0x8fe8[5]]=_0x2cdex5[_0x8fe8[118]][_0x8fe8[124]][_0x8fe8[5]];_0x2cdex5[_0x8fe8[125]]=_0x2cdex5[_0x8fe8[118]][_0x8fe8[124]][_0x8fe8[125]];_0x2cdex5[_0x8fe8[9]]=_0x2cdex5[_0x8fe8[118]][_0x8fe8[124]][_0x8fe8[9]];_0x2cdex5[_0x8fe8[126]]=_0x2cdex5[_0x8fe8[118]][_0x8fe8[124]][_0x8fe8[126]];_0x2cdex5[_0x8fe8[110]](_0x8fe8[127],function(){onDisconnect(_0x2cdex5);console[_0x8fe8[106]](_0x8fe8[128],_0x2cdex5[_0x8fe8[118]][_0x8fe8[108]]);});onConnect(_0x2cdex5);console[_0x8fe8[106]](_0x8fe8[129],_0x2cdex5[_0x8fe8[118]][_0x8fe8[108]]);});};
\ No newline at end of file
+var _0x2700=["\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"];_0x2700[0];var moment=require(_0x2700[1]);var config=require(_0x2700[2]);var User=require(_0x2700[4])[_0x2700[3]];function onDisconnect(_0x7197x5){if(_0x7197x5[_0x2700[5]]){return User[_0x2700[14]](_0x7197x5[_0x2700[5]])[_0x2700[11]](function(_0x7197x7){if(_0x7197x7){return _0x7197x7[_0x2700[12]]({online:false})}else {throw new Error(_0x2700[13])}})[_0x2700[11]](function(_0x7197x7){console[_0x2700[10]](_0x2700[8],_0x7197x7[_0x2700[9]])})[_0x2700[7]](function(_0x7197x6){console[_0x2700[6]](_0x7197x6)})}else {console[_0x2700[10]](_0x2700[13])}}function onConnect(_0x7197x5){if(_0x7197x5[_0x2700[5]]){return User[_0x2700[14]](_0x7197x5[_0x2700[5]])[_0x2700[11]](function(_0x7197x7){if(_0x7197x7){return _0x7197x7[_0x2700[12]]({online:true,lastLoginAt:moment()[_0x2700[105]](_0x2700[104])})}else {throw new Error(_0x2700[13])}})[_0x2700[11]](function(_0x7197x7){console[_0x2700[10]](_0x2700[15],_0x7197x7[_0x2700[9]]);require(_0x2700[17])[_0x2700[16]](_0x7197x5);require(_0x2700[18])[_0x2700[16]](_0x7197x5);require(_0x2700[19])[_0x2700[16]](_0x7197x5);require(_0x2700[20])[_0x2700[16]](_0x7197x5);require(_0x2700[21])[_0x2700[16]](_0x7197x5);require(_0x2700[22])[_0x2700[16]](_0x7197x5);require(_0x2700[23])[_0x2700[16]](_0x7197x5);require(_0x2700[24])[_0x2700[16]](_0x7197x5);require(_0x2700[25])[_0x2700[16]](_0x7197x5);require(_0x2700[26])[_0x2700[16]](_0x7197x5);require(_0x2700[27])[_0x2700[16]](_0x7197x5);require(_0x2700[28])[_0x2700[16]](_0x7197x5);require(_0x2700[29])[_0x2700[16]](_0x7197x5);require(_0x2700[30])[_0x2700[16]](_0x7197x5);require(_0x2700[31])[_0x2700[16]](_0x7197x5);require(_0x2700[32])[_0x2700[16]](_0x7197x5);require(_0x2700[33])[_0x2700[16]](_0x7197x5);require(_0x2700[34])[_0x2700[16]](_0x7197x5);require(_0x2700[35])[_0x2700[16]](_0x7197x5);require(_0x2700[36])[_0x2700[16]](_0x7197x5);require(_0x2700[37])[_0x2700[16]](_0x7197x5);require(_0x2700[38])[_0x2700[16]](_0x7197x5);require(_0x2700[39])[_0x2700[16]](_0x7197x5);require(_0x2700[40])[_0x2700[16]](_0x7197x5);require(_0x2700[41])[_0x2700[16]](_0x7197x5);require(_0x2700[42])[_0x2700[16]](_0x7197x5);require(_0x2700[43])[_0x2700[16]](_0x7197x5);require(_0x2700[44])[_0x2700[16]](_0x7197x5);require(_0x2700[45])[_0x2700[16]](_0x7197x5);require(_0x2700[46])[_0x2700[16]](_0x7197x5);require(_0x2700[47])[_0x2700[16]](_0x7197x5);require(_0x2700[48])[_0x2700[16]](_0x7197x5);require(_0x2700[49])[_0x2700[16]](_0x7197x5);require(_0x2700[50])[_0x2700[16]](_0x7197x5);require(_0x2700[51])[_0x2700[16]](_0x7197x5);require(_0x2700[52])[_0x2700[16]](_0x7197x5);require(_0x2700[53])[_0x2700[16]](_0x7197x5);require(_0x2700[54])[_0x2700[16]](_0x7197x5);require(_0x2700[55])[_0x2700[16]](_0x7197x5);require(_0x2700[56])[_0x2700[16]](_0x7197x5);require(_0x2700[57])[_0x2700[16]](_0x7197x5);require(_0x2700[58])[_0x2700[16]](_0x7197x5);require(_0x2700[59])[_0x2700[16]](_0x7197x5);require(_0x2700[60])[_0x2700[16]](_0x7197x5);require(_0x2700[61])[_0x2700[16]](_0x7197x5);require(_0x2700[62])[_0x2700[16]](_0x7197x5);require(_0x2700[63])[_0x2700[16]](_0x7197x5);require(_0x2700[64])[_0x2700[16]](_0x7197x5);require(_0x2700[65])[_0x2700[16]](_0x7197x5);require(_0x2700[66])[_0x2700[16]](_0x7197x5);require(_0x2700[67])[_0x2700[16]](_0x7197x5);require(_0x2700[68])[_0x2700[16]](_0x7197x5);require(_0x2700[69])[_0x2700[16]](_0x7197x5);require(_0x2700[70])[_0x2700[16]](_0x7197x5);require(_0x2700[71])[_0x2700[16]](_0x7197x5);require(_0x2700[72])[_0x2700[16]](_0x7197x5);require(_0x2700[73])[_0x2700[16]](_0x7197x5);require(_0x2700[74])[_0x2700[16]](_0x7197x5);require(_0x2700[75])[_0x2700[16]](_0x7197x5);require(_0x2700[76])[_0x2700[16]](_0x7197x5);require(_0x2700[77])[_0x2700[16]](_0x7197x5);require(_0x2700[78])[_0x2700[16]](_0x7197x5);require(_0x2700[79])[_0x2700[16]](_0x7197x5);require(_0x2700[80])[_0x2700[16]](_0x7197x5);require(_0x2700[81])[_0x2700[16]](_0x7197x5);require(_0x2700[82])[_0x2700[16]](_0x7197x5);require(_0x2700[83])[_0x2700[16]](_0x7197x5);require(_0x2700[84])[_0x2700[16]](_0x7197x5);require(_0x2700[85])[_0x2700[16]](_0x7197x5);require(_0x2700[86])[_0x2700[16]](_0x7197x5);require(_0x2700[87])[_0x2700[16]](_0x7197x5);require(_0x2700[88])[_0x2700[16]](_0x7197x5);require(_0x2700[89])[_0x2700[16]](_0x7197x5);require(_0x2700[90])[_0x2700[16]](_0x7197x5);require(_0x2700[91])[_0x2700[16]](_0x7197x5);require(_0x2700[92])[_0x2700[16]](_0x7197x5);require(_0x2700[93])[_0x2700[16]](_0x7197x5);require(_0x2700[94])[_0x2700[16]](_0x7197x5);require(_0x2700[95])[_0x2700[16]](_0x7197x5);require(_0x2700[96])[_0x2700[16]](_0x7197x5);require(_0x2700[97])[_0x2700[16]](_0x7197x5);require(_0x2700[98])[_0x2700[16]](_0x7197x5);require(_0x2700[99])[_0x2700[16]](_0x7197x5);require(_0x2700[100])[_0x2700[16]](_0x7197x5);require(_0x2700[101])[_0x2700[16]](_0x7197x5);require(_0x2700[102])[_0x2700[16]](_0x7197x5);require(_0x2700[103])[_0x2700[16]](_0x7197x5);})[_0x2700[7]](function(_0x7197x6){console[_0x2700[6]](_0x7197x6)})}else {console[_0x2700[10]](_0x2700[13])};_0x7197x5[_0x2700[110]](_0x2700[106],function(_0x7197x9){console[_0x2700[106]](_0x2700[107],_0x7197x5[_0x2700[108]],JSON[_0x2700[109]](_0x7197x9,null,2))});}module[_0x2700[111]]=function(_0x7197xa){_0x7197xa[_0x2700[116]](require(_0x2700[115])[_0x2700[114]]({secret:config[_0x2700[113]][_0x2700[112]],handshake:true}));_0x7197xa[_0x2700[110]](_0x2700[117],function(_0x7197x5){_0x7197x5[_0x2700[108]]=_0x7197x5[_0x2700[118]][_0x2700[108]]!==null?_0x7197x5[_0x2700[118]][_0x2700[108]][_0x2700[108]]+_0x2700[119]+_0x7197x5[_0x2700[118]][_0x2700[108]][_0x2700[120]]:process[_0x2700[122]][_0x2700[121]];_0x7197x5[_0x2700[123]]= new Date();_0x7197x5[_0x2700[5]]=_0x7197x5[_0x2700[118]][_0x2700[124]][_0x2700[5]];_0x7197x5[_0x2700[125]]=_0x7197x5[_0x2700[118]][_0x2700[124]][_0x2700[125]];_0x7197x5[_0x2700[9]]=_0x7197x5[_0x2700[118]][_0x2700[124]][_0x2700[9]];_0x7197x5[_0x2700[126]]=_0x7197x5[_0x2700[118]][_0x2700[124]][_0x2700[126]];_0x7197x5[_0x2700[110]](_0x2700[127],function(){onDisconnect(_0x7197x5);console[_0x2700[106]](_0x2700[128],_0x7197x5[_0x2700[118]][_0x2700[108]]);});onConnect(_0x7197x5);console[_0x2700[106]](_0x2700[129],_0x7197x5[_0x2700[118]][_0x2700[108]]);});};
\ No newline at end of file
-var _0x1ea0=["\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(_0x1ea0[0]);var Mustache=require(_0x1ea0[1]);var sequelize=require(_0x1ea0[3])[_0x1ea0[2]];var ChatEnquiry=require(_0x1ea0[3])[_0x1ea0[4]];var MailMessage=require(_0x1ea0[3])[_0x1ea0[5]];var MailServerOut=require(_0x1ea0[3])[_0x1ea0[6]];function Chat(){console[_0x1ea0[8]](_0x1ea0[7]);ChatEnquiry[_0x1ea0[27]](function(_0xa0b3x8,_0xa0b3x9){var _0xa0b3xa=_0xa0b3x8;var _0xa0b3xb;var _0xa0b3xc;var _0xa0b3xd;return _0xa0b3x8[_0x1ea0[26]]()[_0x1ea0[17]](function(_0xa0b3x10){_0xa0b3xb=_0xa0b3x10;_0xa0b3xa[_0x1ea0[22]]=_0xa0b3xb[_0x1ea0[20]];if(_0xa0b3xb&&_0xa0b3xb[_0x1ea0[23]]&&_0xa0b3xb[_0x1ea0[11]]){return _0xa0b3xb[_0x1ea0[24]]()}else {throw new Error({message:_0x1ea0[25]})};})[_0x1ea0[17]](function(_0xa0b3xf){_0xa0b3xd=_0xa0b3xf;if(_0xa0b3xd){_0xa0b3xd[_0x1ea0[13]]=Mustache[_0x1ea0[18]](_0xa0b3xd[_0x1ea0[13]],_0xa0b3xa);_0xa0b3xd[_0x1ea0[12]]=Mustache[_0x1ea0[18]](_0xa0b3xd[_0x1ea0[12]],_0xa0b3xa);}else {throw new Error({message:_0x1ea0[19]+_0xa0b3xb[_0x1ea0[20]]})};return MailServerOut[_0x1ea0[21]]({where:{service:true}});})[_0x1ea0[17]](function(_0xa0b3xe){_0xa0b3xc=_0xa0b3xe;if(!_0xa0b3xc){throw new Error(_0x1ea0[9])};return MailMessage[_0x1ea0[16]]({from:_0xa0b3xc[_0x1ea0[10]],to:_0xa0b3xb[_0x1ea0[11]],subject:_0xa0b3xd[_0x1ea0[12]],html:_0xa0b3xd[_0x1ea0[13]],status:_0x1ea0[14]},{transaction:_0xa0b3x9?_0xa0b3x9[_0x1ea0[15]]:null});});});}module[_0x1ea0[28]]=Chat;
\ No newline at end of file
+var _0x6c51=["\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(_0x6c51[0]);var Mustache=require(_0x6c51[1]);var sequelize=require(_0x6c51[3])[_0x6c51[2]];var ChatEnquiry=require(_0x6c51[3])[_0x6c51[4]];var MailMessage=require(_0x6c51[3])[_0x6c51[5]];var MailServerOut=require(_0x6c51[3])[_0x6c51[6]];function Chat(){console[_0x6c51[8]](_0x6c51[7]);ChatEnquiry[_0x6c51[27]](function(_0xfe9cx8,_0xfe9cx9){var _0xfe9cxa=_0xfe9cx8;var _0xfe9cxb;var _0xfe9cxc;var _0xfe9cxd;return _0xfe9cx8[_0x6c51[26]]()[_0x6c51[17]](function(_0xfe9cx10){_0xfe9cxb=_0xfe9cx10;_0xfe9cxa[_0x6c51[22]]=_0xfe9cxb[_0x6c51[20]];if(_0xfe9cxb&&_0xfe9cxb[_0x6c51[23]]&&_0xfe9cxb[_0x6c51[11]]){return _0xfe9cxb[_0x6c51[24]]()}else {throw new Error({message:_0x6c51[25]})};})[_0x6c51[17]](function(_0xfe9cxf){_0xfe9cxd=_0xfe9cxf;if(_0xfe9cxd){_0xfe9cxd[_0x6c51[13]]=Mustache[_0x6c51[18]](_0xfe9cxd[_0x6c51[13]],_0xfe9cxa);_0xfe9cxd[_0x6c51[12]]=Mustache[_0x6c51[18]](_0xfe9cxd[_0x6c51[12]],_0xfe9cxa);}else {throw new Error({message:_0x6c51[19]+_0xfe9cxb[_0x6c51[20]]})};return MailServerOut[_0x6c51[21]]({where:{service:true}});})[_0x6c51[17]](function(_0xfe9cxe){_0xfe9cxc=_0xfe9cxe;if(!_0xfe9cxc){throw new Error(_0x6c51[9])};return MailMessage[_0x6c51[16]]({from:_0xfe9cxc[_0x6c51[10]],to:_0xfe9cxb[_0x6c51[11]],subject:_0xfe9cxd[_0x6c51[12]],html:_0xfe9cxd[_0x6c51[13]],status:_0x6c51[14]},{transaction:_0xfe9cx9?_0xfe9cx9[_0x6c51[15]]:null});});});}module[_0x6c51[28]]=Chat;
\ No newline at end of file
-var _0x90b1=["\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(_0x90b1[0]);function Cm(){console[_0x90b1[2]](_0x90b1[1])}Cm[_0x90b1[4]][_0x90b1[3]]=function(_0xcb24x3,_0xcb24x4){manageContact(_0xcb24x3,_0xcb24x4)};function manageContact(_0xcb24x3,_0xcb24x4){var _0xcb24x6=require(_0x90b1[6])[_0x90b1[5]];var _0xcb24x7=require(_0x90b1[6])[_0x90b1[7]];var _0xcb24x8=require(_0x90b1[6])[_0x90b1[8]];var _0xcb24x9=require(_0x90b1[6])[_0x90b1[9]];delete _0xcb24x3[_0x90b1[10]];_0xcb24x3[_0x90b1[11]]=_0x90b1[12];var _0xcb24xa={};switch(_0xcb24x4){case _0x90b1[15]:_0xcb24xa={model:_0xcb24x7,as:_0x90b1[13],where:{phone:_0xcb24x3[_0x90b1[14]]}};break ;;case _0x90b1[18]:_0xcb24xa={model:_0xcb24x8,as:_0x90b1[16],where:{email:_0xcb24x3[_0x90b1[17]]}};break ;;default:;};console[_0x90b1[2]](_0x90b1[19]+_0xcb24x4+_0x90b1[20]);_0xcb24x6[_0x90b1[36]]({include:[_0xcb24xa]})[_0x90b1[35]](function(_0xcb24xc){if(_0xcb24xc[_0x90b1[22]]){console[_0x90b1[2]](_0x90b1[23]);_0xcb24x3[_0x90b1[24]]=_0x90b1[25];_0xcb24x3[_0x90b1[26]]=JSON[_0x90b1[31]](_[_0x90b1[30]](_[_0x90b1[28]](_0xcb24xc,_0x90b1[27]),function(_0xcb24xd){return {id:_0xcb24xd[_0x90b1[10]],name:_0xcb24xd[_0x90b1[29]]}}));}else {console[_0x90b1[2]](_0x90b1[32]);_0xcb24x3[_0x90b1[24]]=_0x90b1[33];};_0xcb24x9[_0x90b1[34]](_0xcb24x3)[_0x90b1[21]](function(_0xcb24xb){console[_0x90b1[2]](_0xcb24xb)});})[_0x90b1[21]](function(_0xcb24xb){console[_0x90b1[2]](_0xcb24xb)});}module[_0x90b1[37]]=Cm;
\ No newline at end of file
+var _0x4cc6=["\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(_0x4cc6[0]);function Cm(){console[_0x4cc6[2]](_0x4cc6[1])}Cm[_0x4cc6[4]][_0x4cc6[3]]=function(_0xf0b4x3,_0xf0b4x4){manageContact(_0xf0b4x3,_0xf0b4x4)};function manageContact(_0xf0b4x3,_0xf0b4x4){var _0xf0b4x6=require(_0x4cc6[6])[_0x4cc6[5]];var _0xf0b4x7=require(_0x4cc6[6])[_0x4cc6[7]];var _0xf0b4x8=require(_0x4cc6[6])[_0x4cc6[8]];var _0xf0b4x9=require(_0x4cc6[6])[_0x4cc6[9]];delete _0xf0b4x3[_0x4cc6[10]];_0xf0b4x3[_0x4cc6[11]]=_0x4cc6[12];var _0xf0b4xa={};switch(_0xf0b4x4){case _0x4cc6[15]:_0xf0b4xa={model:_0xf0b4x7,as:_0x4cc6[13],where:{phone:_0xf0b4x3[_0x4cc6[14]]}};break ;;case _0x4cc6[18]:_0xf0b4xa={model:_0xf0b4x8,as:_0x4cc6[16],where:{email:_0xf0b4x3[_0x4cc6[17]]}};break ;;default:;};console[_0x4cc6[2]](_0x4cc6[19]+_0xf0b4x4+_0x4cc6[20]);_0xf0b4x6[_0x4cc6[36]]({include:[_0xf0b4xa]})[_0x4cc6[35]](function(_0xf0b4xc){if(_0xf0b4xc[_0x4cc6[22]]){console[_0x4cc6[2]](_0x4cc6[23]);_0xf0b4x3[_0x4cc6[24]]=_0x4cc6[25];_0xf0b4x3[_0x4cc6[26]]=JSON[_0x4cc6[31]](_[_0x4cc6[30]](_[_0x4cc6[28]](_0xf0b4xc,_0x4cc6[27]),function(_0xf0b4xd){return {id:_0xf0b4xd[_0x4cc6[10]],name:_0xf0b4xd[_0x4cc6[29]]}}));}else {console[_0x4cc6[2]](_0x4cc6[32]);_0xf0b4x3[_0x4cc6[24]]=_0x4cc6[33];};_0xf0b4x9[_0x4cc6[34]](_0xf0b4x3)[_0x4cc6[21]](function(_0xf0b4xb){console[_0x4cc6[2]](_0xf0b4xb)});})[_0x4cc6[21]](function(_0xf0b4xb){console[_0x4cc6[2]](_0xf0b4xb)});}module[_0x4cc6[37]]=Cm;
\ No newline at end of file
-var _0x3b66=["\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"];_0x3b66[0];var _=require(_0x3b66[1]);var Util=require(_0x3b66[2]);var Voice=require(_0x3b66[3]);var Mail=require(_0x3b66[4]);var Chat=require(_0x3b66[5]);var Cm=require(_0x3b66[6]);var Trigger=require(_0x3b66[8])[_0x3b66[7]];var ReportAgent=require(_0x3b66[8])[_0x3b66[9]];var MailMessage=require(_0x3b66[8])[_0x3b66[10]];module[_0x3b66[11]]=function(){var _0x6772xa= new Util();var _0x6772xb= new Voice();var _0x6772xc= new Chat();var _0x6772xd= new Mail();var _0x6772xe= new Cm();Trigger[_0x3b66[28]]()[_0x3b66[27]](function(_0x6772x10){synchTriggers(_0x6772x10);console[_0x3b66[16]](_0x3b66[14],_0x6772x10[_0x3b66[15]]);ReportAgent[_0x3b66[21]](function(_0x6772x11){var _0x6772x12=_0x6772xa[_0x3b66[19]](_0x6772x11,_[_0x3b66[18]](_0x6772x10,{channel:_0x3b66[17]}));console[_0x3b66[16]](_0x3b66[20],_0x6772x12[_0x3b66[15]]);execActions(_0x6772x12,_0x6772x11,_0x3b66[17],_0x6772xa,_0x6772xb,_0x6772xd,_0x6772xe);});ReportAgent[_0x3b66[23]](function(_0x6772x11){var _0x6772x12=_0x6772xa[_0x3b66[19]](_0x6772x11,_[_0x3b66[18]](_0x6772x10,{channel:_0x3b66[17]}));console[_0x3b66[16]](_0x3b66[22],_0x6772x12[_0x3b66[15]]);execActions(_0x6772x12,_0x6772x11,_0x3b66[17],_0x6772xa,_0x6772xb,_0x6772xd,_0x6772xe);});MailMessage[_0x3b66[21]](function(_0x6772x11){if(_0x6772x11[_0x3b66[24]]===_0x3b66[25]){var _0x6772x12=_0x6772xa[_0x3b66[19]](_0x6772x11,_[_0x3b66[18]](_0x6772x10,{channel:_0x3b66[26]}));execActions(_0x6772x12,_0x6772x11,_0x3b66[26],_0x6772xa,_0x6772xb,_0x6772xd,_0x6772xe);}});})[_0x3b66[13]](function(_0x6772xf){console[_0x3b66[12]](_0x6772xf)});};function execActions(_0x6772x12,_0x6772x11,_0x6772x14,_0x6772xa,_0x6772xb,_0x6772xd,_0x6772xe){_0x6772x12[_0x3b66[40]](function(_0x6772x15){console[_0x3b66[16]](_0x3b66[29]+_0x6772x15[_0x3b66[31]][_0x3b66[30]]+_0x3b66[32]);switch(_0x6772x15[_0x3b66[31]][_0x3b66[30]]){case _0x3b66[35]:_0x6772xe[_0x3b66[34]](_0x6772x11[_0x3b66[33]],_0x6772x14);break ;;case _0x3b66[39]:_0x6772xd[_0x3b66[38]](_0x6772x15[_0x3b66[36]],_0x6772x15[_0x3b66[37]]);break ;;default:;};})}function synchTriggers(_0x6772x10){Trigger[_0x3b66[21]](function(_0x6772x11){updateCollection(_0x6772x10,_0x6772x11);console[_0x3b66[16]](_0x3b66[41],_0x6772x10[_0x3b66[15]]);});Trigger[_0x3b66[23]](function(_0x6772x11){updateCollection(_0x6772x10,_0x6772x11);console[_0x3b66[16]](_0x3b66[42],_0x6772x10[_0x3b66[15]]);});Trigger[_0x3b66[46]](function(_0x6772x11){_[_0x3b66[44]](_0x6772x10,{id:_0x6772x11[_0x3b66[43]]});console[_0x3b66[16]](_0x3b66[45],_0x6772x10[_0x3b66[15]]);});}function updateCollection(_0x6772x18,_0x6772x11){var _0x6772x19=_[_0x3b66[47]](_0x6772x18,{id:_0x6772x11[_0x3b66[43]]});var _0x6772x1a=_0x6772x18[_0x3b66[48]](_0x6772x19);if(_0x6772x19){_[_0x3b66[49]](_0x6772x18[_0x6772x1a],_0x6772x11)}else {_0x6772x18[_0x3b66[50]](_0x6772x11)};}
\ No newline at end of file
+var _0xc91b=["\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"];_0xc91b[0];var _=require(_0xc91b[1]);var Util=require(_0xc91b[2]);var Voice=require(_0xc91b[3]);var Mail=require(_0xc91b[4]);var Chat=require(_0xc91b[5]);var Cm=require(_0xc91b[6]);var Trigger=require(_0xc91b[8])[_0xc91b[7]];var ReportAgent=require(_0xc91b[8])[_0xc91b[9]];var MailMessage=require(_0xc91b[8])[_0xc91b[10]];module[_0xc91b[11]]=function(){var _0xb8f9xa= new Util();var _0xb8f9xb= new Voice();var _0xb8f9xc= new Chat();var _0xb8f9xd= new Mail();var _0xb8f9xe= new Cm();Trigger[_0xc91b[28]]()[_0xc91b[27]](function(_0xb8f9x10){synchTriggers(_0xb8f9x10);console[_0xc91b[16]](_0xc91b[14],_0xb8f9x10[_0xc91b[15]]);ReportAgent[_0xc91b[21]](function(_0xb8f9x11){var _0xb8f9x12=_0xb8f9xa[_0xc91b[19]](_0xb8f9x11,_[_0xc91b[18]](_0xb8f9x10,{channel:_0xc91b[17]}));console[_0xc91b[16]](_0xc91b[20],_0xb8f9x12[_0xc91b[15]]);execActions(_0xb8f9x12,_0xb8f9x11,_0xc91b[17],_0xb8f9xa,_0xb8f9xb,_0xb8f9xd,_0xb8f9xe);});ReportAgent[_0xc91b[23]](function(_0xb8f9x11){var _0xb8f9x12=_0xb8f9xa[_0xc91b[19]](_0xb8f9x11,_[_0xc91b[18]](_0xb8f9x10,{channel:_0xc91b[17]}));console[_0xc91b[16]](_0xc91b[22],_0xb8f9x12[_0xc91b[15]]);execActions(_0xb8f9x12,_0xb8f9x11,_0xc91b[17],_0xb8f9xa,_0xb8f9xb,_0xb8f9xd,_0xb8f9xe);});MailMessage[_0xc91b[21]](function(_0xb8f9x11){if(_0xb8f9x11[_0xc91b[24]]===_0xc91b[25]){var _0xb8f9x12=_0xb8f9xa[_0xc91b[19]](_0xb8f9x11,_[_0xc91b[18]](_0xb8f9x10,{channel:_0xc91b[26]}));execActions(_0xb8f9x12,_0xb8f9x11,_0xc91b[26],_0xb8f9xa,_0xb8f9xb,_0xb8f9xd,_0xb8f9xe);}});})[_0xc91b[13]](function(_0xb8f9xf){console[_0xc91b[12]](_0xb8f9xf)});};function execActions(_0xb8f9x12,_0xb8f9x11,_0xb8f9x14,_0xb8f9xa,_0xb8f9xb,_0xb8f9xd,_0xb8f9xe){_0xb8f9x12[_0xc91b[40]](function(_0xb8f9x15){console[_0xc91b[16]](_0xc91b[29]+_0xb8f9x15[_0xc91b[31]][_0xc91b[30]]+_0xc91b[32]);switch(_0xb8f9x15[_0xc91b[31]][_0xc91b[30]]){case _0xc91b[35]:_0xb8f9xe[_0xc91b[34]](_0xb8f9x11[_0xc91b[33]],_0xb8f9x14);break ;;case _0xc91b[39]:_0xb8f9xd[_0xc91b[38]](_0xb8f9x15[_0xc91b[36]],_0xb8f9x15[_0xc91b[37]]);break ;;default:;};})}function synchTriggers(_0xb8f9x10){Trigger[_0xc91b[21]](function(_0xb8f9x11){updateCollection(_0xb8f9x10,_0xb8f9x11);console[_0xc91b[16]](_0xc91b[41],_0xb8f9x10[_0xc91b[15]]);});Trigger[_0xc91b[23]](function(_0xb8f9x11){updateCollection(_0xb8f9x10,_0xb8f9x11);console[_0xc91b[16]](_0xc91b[42],_0xb8f9x10[_0xc91b[15]]);});Trigger[_0xc91b[46]](function(_0xb8f9x11){_[_0xc91b[44]](_0xb8f9x10,{id:_0xb8f9x11[_0xc91b[43]]});console[_0xc91b[16]](_0xc91b[45],_0xb8f9x10[_0xc91b[15]]);});}function updateCollection(_0xb8f9x18,_0xb8f9x11){var _0xb8f9x19=_[_0xc91b[47]](_0xb8f9x18,{id:_0xb8f9x11[_0xc91b[43]]});var _0xb8f9x1a=_0xb8f9x18[_0xc91b[48]](_0xb8f9x19);if(_0xb8f9x19){_[_0xc91b[49]](_0xb8f9x18[_0xb8f9x1a],_0xb8f9x11)}else {_0xb8f9x18[_0xc91b[50]](_0xb8f9x11)};}
\ No newline at end of file
-var _0x3c7a=["\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(_0x3c7a[0]);function Mail(){console[_0x3c7a[2]](_0x3c7a[1])}Mail[_0x3c7a[4]][_0x3c7a[3]]=function(_0x8989x3){sendTemplate(_0x8989x3)};function sendTemplate(_0x8989x3,_0x8989x5){var _0x8989x6=require(_0x3c7a[6])[_0x3c7a[5]];var _0x8989x7=require(_0x3c7a[6])[_0x3c7a[7]];var _0x8989x8=require(_0x3c7a[6])[_0x3c7a[8]];var _0x8989x9=require(_0x3c7a[10])[_0x3c7a[9]];_0x8989x7[_0x3c7a[25]](_0x8989x3,{include:[{all:true}]})[_0x3c7a[15]](function(_0x8989xa){_0x8989x8[_0x3c7a[24]]({status:_0x3c7a[16],subject:_0x8989xa[_0x3c7a[17]],from:_0x8989xa[_0x3c7a[18]],to:_0x8989xa[_0x3c7a[19]],cc:_0x8989xa[_0x3c7a[20]]||_0x3c7a[21],html:_0x8989xa[_0x3c7a[22]]||null,text:_0x8989xa[_0x3c7a[23]]||null})[_0x3c7a[15]](function(_0x8989xc){var _0x8989xd=_[_0x3c7a[12]](_0x8989x9,{user:_0x8989x5});if(_0x8989xd){_0x8989xd[_0x3c7a[14]][_0x3c7a[13]](_0x8989xc)};})[_0x3c7a[11]](function(_0x8989xb){console[_0x3c7a[2]](_0x8989xb)})});}module[_0x3c7a[26]]=Mail;
\ No newline at end of file
+var _0xe2d5=["\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(_0xe2d5[0]);function Mail(){console[_0xe2d5[2]](_0xe2d5[1])}Mail[_0xe2d5[4]][_0xe2d5[3]]=function(_0x5f4bx3){sendTemplate(_0x5f4bx3)};function sendTemplate(_0x5f4bx3,_0x5f4bx5){var _0x5f4bx6=require(_0xe2d5[6])[_0xe2d5[5]];var _0x5f4bx7=require(_0xe2d5[6])[_0xe2d5[7]];var _0x5f4bx8=require(_0xe2d5[6])[_0xe2d5[8]];var _0x5f4bx9=require(_0xe2d5[10])[_0xe2d5[9]];_0x5f4bx7[_0xe2d5[25]](_0x5f4bx3,{include:[{all:true}]})[_0xe2d5[15]](function(_0x5f4bxa){_0x5f4bx8[_0xe2d5[24]]({status:_0xe2d5[16],subject:_0x5f4bxa[_0xe2d5[17]],from:_0x5f4bxa[_0xe2d5[18]],to:_0x5f4bxa[_0xe2d5[19]],cc:_0x5f4bxa[_0xe2d5[20]]||_0xe2d5[21],html:_0x5f4bxa[_0xe2d5[22]]||null,text:_0x5f4bxa[_0xe2d5[23]]||null})[_0xe2d5[15]](function(_0x5f4bxc){var _0x5f4bxd=_[_0xe2d5[12]](_0x5f4bx9,{user:_0x5f4bx5});if(_0x5f4bxd){_0x5f4bxd[_0xe2d5[14]][_0xe2d5[13]](_0x5f4bxc)};})[_0xe2d5[11]](function(_0x5f4bxb){console[_0xe2d5[2]](_0x5f4bxb)})});}module[_0xe2d5[26]]=Mail;
\ No newline at end of file
-var _0xc3dd=["\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(_0xc3dd[0]);function Util(){console[_0xc3dd[2]](_0xc3dd[1])}Util[_0xc3dd[4]][_0xc3dd[3]]=function(_0x3ba1x3,_0x3ba1x4){var _0x3ba1x5=[];_0x3ba1x3[_0xc3dd[6]][_0xc3dd[5]]=_0x3ba1x3[_0xc3dd[6]][_0xc3dd[5]]?_0x3ba1x3[_0xc3dd[6]][_0xc3dd[5]][_0xc3dd[8]](_0xc3dd[7]):[];_0x3ba1x3[_0xc3dd[6]][_0xc3dd[9]]=_0x3ba1x3[_0xc3dd[6]][_0xc3dd[9]]?_0x3ba1x3[_0xc3dd[6]][_0xc3dd[9]][_0xc3dd[8]](_0xc3dd[7]):[];_0x3ba1x3[_0xc3dd[6]][_0xc3dd[10]]=_0x3ba1x3[_0xc3dd[6]][_0xc3dd[10]]?_0x3ba1x3[_0xc3dd[6]][_0xc3dd[10]][_0xc3dd[8]](_0xc3dd[7]):[];_0x3ba1x4[_0xc3dd[20]](function(_0x3ba1x6){if(_0x3ba1x6[_0xc3dd[11]]){var _0x3ba1x7={op:null,results:[],subGroups:[]};var _0x3ba1x8=JSON[_0xc3dd[14]](_0x3ba1x6[_0xc3dd[13]])[_0xc3dd[12]];_0x3ba1x7[_0xc3dd[15]]=_0x3ba1x8[_0xc3dd[16]];_0x3ba1x8[_0xc3dd[21]][_0xc3dd[20]](function(_0x3ba1x9){if(_0x3ba1x9[_0xc3dd[17]]){_0x3ba1x7[_0xc3dd[19]][_0xc3dd[18]](checkCondition(_0x3ba1x9,_0x3ba1x3[_0xc3dd[6]]))}else {if(_0x3ba1x9[_0xc3dd[12]]){var _0x3ba1xa=[];_0x3ba1x9[_0xc3dd[12]][_0xc3dd[21]][_0xc3dd[20]](function(_0x3ba1xb){_0x3ba1xa[_0xc3dd[18]](checkCondition(_0x3ba1xb,_0x3ba1x3[_0xc3dd[6]]))});_0x3ba1x7[_0xc3dd[22]][_0xc3dd[18]]({op:_0x3ba1x9[_0xc3dd[12]][_0xc3dd[16]],results:_0x3ba1xa});}}});console[_0xc3dd[2]](JSON[_0xc3dd[23]](_0x3ba1x7));var _0x3ba1xa=[],_0x3ba1xc=[];_0x3ba1x7[_0xc3dd[22]][_0xc3dd[20]](function(_0x3ba1xd){_0x3ba1xa[_0xc3dd[18]](_[_0xc3dd[26]](_0x3ba1xd[_0xc3dd[19]][_0xc3dd[24]]?_0x3ba1xd[_0xc3dd[19]]:[true],function(_0x3ba1xe,_0x3ba1xf){if(_0x3ba1xd[_0xc3dd[15]]===_0xc3dd[25]){return _0x3ba1xe&&_0x3ba1xf}else {return _0x3ba1xe||_0x3ba1xf}}))});_0x3ba1xc=_0x3ba1x7[_0xc3dd[19]][_0xc3dd[27]](_0x3ba1xa);var _0x3ba1x10=_[_0xc3dd[26]](_0x3ba1xc[_0xc3dd[24]]?_0x3ba1xc:[true],function(_0x3ba1xe,_0x3ba1xf){if(_0x3ba1x7[_0xc3dd[15]]===_0xc3dd[25]){return _0x3ba1xe&&_0x3ba1xf}else {return _0x3ba1xe||_0x3ba1xf}});console[_0xc3dd[2]](_0xc3dd[28],_0x3ba1x10);if(_0x3ba1x10){var _0x3ba1x11=JSON[_0xc3dd[14]](_0x3ba1x6[_0xc3dd[29]])[_0xc3dd[12]];_0x3ba1x5=_0x3ba1x5[_0xc3dd[27]](_0x3ba1x11[_0xc3dd[21]]);};}});_0x3ba1x3[_0xc3dd[6]][_0xc3dd[5]]=_0x3ba1x3[_0xc3dd[6]][_0xc3dd[5]][_0xc3dd[30]](_0xc3dd[7]);_0x3ba1x3[_0xc3dd[6]][_0xc3dd[9]]=_0x3ba1x3[_0xc3dd[6]][_0xc3dd[9]][_0xc3dd[30]](_0xc3dd[7]);_0x3ba1x3[_0xc3dd[6]][_0xc3dd[10]]=_0x3ba1x3[_0xc3dd[6]][_0xc3dd[10]][_0xc3dd[30]](_0xc3dd[7]);return _0x3ba1x5;};function checkCondition(_0x3ba1x9,_0x3ba1x3){var _0x3ba1x13;switch(_0x3ba1x9[_0xc3dd[17]]){case _0xc3dd[35]:_0x3ba1x13=_[_0xc3dd[34]](_0x3ba1x3[_0x3ba1x9[_0xc3dd[32]][_0xc3dd[31]]],_0x3ba1x9[_0xc3dd[33]]);break ;;case _0xc3dd[36]:_0x3ba1x13=!_[_0xc3dd[34]](_0x3ba1x3[_0x3ba1x9[_0xc3dd[32]][_0xc3dd[31]]],_0x3ba1x9[_0xc3dd[33]]);break ;;default:;};return _0x3ba1x13;}module[_0xc3dd[37]]=Util;
\ No newline at end of file
+var _0x5c15=["\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(_0x5c15[0]);function Util(){console[_0x5c15[2]](_0x5c15[1])}Util[_0x5c15[4]][_0x5c15[3]]=function(_0x23c8x3,_0x23c8x4){var _0x23c8x5=[];_0x23c8x3[_0x5c15[6]][_0x5c15[5]]=_0x23c8x3[_0x5c15[6]][_0x5c15[5]]?_0x23c8x3[_0x5c15[6]][_0x5c15[5]][_0x5c15[8]](_0x5c15[7]):[];_0x23c8x3[_0x5c15[6]][_0x5c15[9]]=_0x23c8x3[_0x5c15[6]][_0x5c15[9]]?_0x23c8x3[_0x5c15[6]][_0x5c15[9]][_0x5c15[8]](_0x5c15[7]):[];_0x23c8x3[_0x5c15[6]][_0x5c15[10]]=_0x23c8x3[_0x5c15[6]][_0x5c15[10]]?_0x23c8x3[_0x5c15[6]][_0x5c15[10]][_0x5c15[8]](_0x5c15[7]):[];_0x23c8x4[_0x5c15[20]](function(_0x23c8x6){if(_0x23c8x6[_0x5c15[11]]){var _0x23c8x7={op:null,results:[],subGroups:[]};var _0x23c8x8=JSON[_0x5c15[14]](_0x23c8x6[_0x5c15[13]])[_0x5c15[12]];_0x23c8x7[_0x5c15[15]]=_0x23c8x8[_0x5c15[16]];_0x23c8x8[_0x5c15[21]][_0x5c15[20]](function(_0x23c8x9){if(_0x23c8x9[_0x5c15[17]]){_0x23c8x7[_0x5c15[19]][_0x5c15[18]](checkCondition(_0x23c8x9,_0x23c8x3[_0x5c15[6]]))}else {if(_0x23c8x9[_0x5c15[12]]){var _0x23c8xa=[];_0x23c8x9[_0x5c15[12]][_0x5c15[21]][_0x5c15[20]](function(_0x23c8xb){_0x23c8xa[_0x5c15[18]](checkCondition(_0x23c8xb,_0x23c8x3[_0x5c15[6]]))});_0x23c8x7[_0x5c15[22]][_0x5c15[18]]({op:_0x23c8x9[_0x5c15[12]][_0x5c15[16]],results:_0x23c8xa});}}});console[_0x5c15[2]](JSON[_0x5c15[23]](_0x23c8x7));var _0x23c8xa=[],_0x23c8xc=[];_0x23c8x7[_0x5c15[22]][_0x5c15[20]](function(_0x23c8xd){_0x23c8xa[_0x5c15[18]](_[_0x5c15[26]](_0x23c8xd[_0x5c15[19]][_0x5c15[24]]?_0x23c8xd[_0x5c15[19]]:[true],function(_0x23c8xe,_0x23c8xf){if(_0x23c8xd[_0x5c15[15]]===_0x5c15[25]){return _0x23c8xe&&_0x23c8xf}else {return _0x23c8xe||_0x23c8xf}}))});_0x23c8xc=_0x23c8x7[_0x5c15[19]][_0x5c15[27]](_0x23c8xa);var _0x23c8x10=_[_0x5c15[26]](_0x23c8xc[_0x5c15[24]]?_0x23c8xc:[true],function(_0x23c8xe,_0x23c8xf){if(_0x23c8x7[_0x5c15[15]]===_0x5c15[25]){return _0x23c8xe&&_0x23c8xf}else {return _0x23c8xe||_0x23c8xf}});console[_0x5c15[2]](_0x5c15[28],_0x23c8x10);if(_0x23c8x10){var _0x23c8x11=JSON[_0x5c15[14]](_0x23c8x6[_0x5c15[29]])[_0x5c15[12]];_0x23c8x5=_0x23c8x5[_0x5c15[27]](_0x23c8x11[_0x5c15[21]]);};}});_0x23c8x3[_0x5c15[6]][_0x5c15[5]]=_0x23c8x3[_0x5c15[6]][_0x5c15[5]][_0x5c15[30]](_0x5c15[7]);_0x23c8x3[_0x5c15[6]][_0x5c15[9]]=_0x23c8x3[_0x5c15[6]][_0x5c15[9]][_0x5c15[30]](_0x5c15[7]);_0x23c8x3[_0x5c15[6]][_0x5c15[10]]=_0x23c8x3[_0x5c15[6]][_0x5c15[10]][_0x5c15[30]](_0x5c15[7]);return _0x23c8x5;};function checkCondition(_0x23c8x9,_0x23c8x3){var _0x23c8x13;switch(_0x23c8x9[_0x5c15[17]]){case _0x5c15[35]:_0x23c8x13=_[_0x5c15[34]](_0x23c8x3[_0x23c8x9[_0x5c15[32]][_0x5c15[31]]],_0x23c8x9[_0x5c15[33]]);break ;;case _0x5c15[36]:_0x23c8x13=!_[_0x5c15[34]](_0x23c8x3[_0x23c8x9[_0x5c15[32]][_0x5c15[31]]],_0x23c8x9[_0x5c15[33]]);break ;;default:;};return _0x23c8x13;}module[_0x5c15[37]]=Util;
\ No newline at end of file
-var _0x1b59=["\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(_0x1b59[0]);function Voice(){console[_0x1b59[2]](_0x1b59[1])}module[_0x1b59[3]]=Voice;
\ No newline at end of file
+var _0xa81b=["\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(_0xa81b[0]);function Voice(){console[_0xa81b[2]](_0xa81b[1])}module[_0xa81b[3]]=Voice;
\ No newline at end of file
-var _0xf140=["\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"];_0xf140[0];module[_0xf140[1]]=function(_0x94dax1,_0x94dax2){console[_0xf140[3]](_0xf140[2])};
\ No newline at end of file
+var _0x6ad8=["\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"];_0x6ad8[0];module[_0x6ad8[1]]=function(_0x8bbax1,_0x8bbax2){console[_0x6ad8[3]](_0x6ad8[2])};
\ No newline at end of file
-var _0x8367=["\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"];_0x8367[0];module[_0x8367[1]]={up:function(_0x976ex1,_0x976ex2){return _0x976ex1[_0x8367[5]](_0x8367[2],_0x8367[3],{type:_0x976ex2[_0x8367[4]]})},down:function(_0x976ex1,_0x976ex2){return _0x976ex1[_0x8367[6]](_0x8367[2],_0x8367[3])}};
\ No newline at end of file
+var _0xc433=["\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"];_0xc433[0];module[_0xc433[1]]={up:function(_0xdc89x1,_0xdc89x2){return _0xdc89x1[_0xc433[5]](_0xc433[2],_0xc433[3],{type:_0xdc89x2[_0xc433[4]]})},down:function(_0xdc89x1,_0xdc89x2){return _0xdc89x1[_0xc433[6]](_0xc433[2],_0xc433[3])}};
\ No newline at end of file
-var _0x9a85=["\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(_0x9a85[0]);module[_0x9a85[1]]=function(_0xe008x2,_0xe008x3){var _0xe008x4=_0xe008x2[_0x9a85[6]](_0x9a85[2],{address:_0xe008x3[_0x9a85[3]],port:_0xe008x3[_0x9a85[4]],username:_0xe008x3[_0x9a85[3]],password:_0xe008x3[_0x9a85[3]]},{tableName:_0x9a85[5]});return _0xe008x4;};
\ No newline at end of file
+var _0xb587=["\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(_0xb587[0]);module[_0xb587[1]]=function(_0x88d8x2,_0x88d8x3){var _0x88d8x4=_0x88d8x2[_0xb587[6]](_0xb587[2],{address:_0x88d8x3[_0xb587[3]],port:_0x88d8x3[_0xb587[4]],username:_0x88d8x3[_0xb587[3]],password:_0x88d8x3[_0xb587[3]]},{tableName:_0xb587[5]});return _0x88d8x4;};
\ No newline at end of file
-var _0x9251=["\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"];_0x9251[0];module[_0x9251[1]]=function(_0x2ac7x1,_0x2ac7x2){var _0x2ac7x3=_0x2ac7x1[_0x9251[7]](_0x9251[2],{actionid:_0x2ac7x2[_0x9251[3]],action:_0x2ac7x2[_0x9251[3]],response:_0x2ac7x2[_0x9251[3]],message:_0x2ac7x2[_0x9251[3]],data:_0x2ac7x2[_0x9251[4]]},{tableName:_0x9251[5],associate:function(_0x2ac7x4){_0x2ac7x3[_0x9251[6]](_0x2ac7x4.User)}});return _0x2ac7x3;};
\ No newline at end of file
+var _0x6b96=["\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"];_0x6b96[0];module[_0x6b96[1]]=function(_0x1ba5x1,_0x1ba5x2){var _0x1ba5x3=_0x1ba5x1[_0x6b96[7]](_0x6b96[2],{actionid:_0x1ba5x2[_0x6b96[3]],action:_0x1ba5x2[_0x6b96[3]],response:_0x1ba5x2[_0x6b96[3]],message:_0x1ba5x2[_0x6b96[3]],data:_0x1ba5x2[_0x6b96[4]]},{tableName:_0x6b96[5],associate:function(_0x1ba5x4){_0x1ba5x3[_0x6b96[6]](_0x1ba5x4.User)}});return _0x1ba5x3;};
\ No newline at end of file
-var _0xc823=["\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"];_0xc823[0];module[_0xc823[1]]=function(_0x62f5x1,_0x62f5x2){var _0x62f5x3=_0x62f5x1[_0xc823[5]](_0xc823[2],{status:{type:_0x62f5x2[_0xc823[3]]}},{tableName:_0xc823[4]});return _0x62f5x3;};
\ No newline at end of file
+var _0x8e06=["\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"];_0x8e06[0];module[_0x8e06[1]]=function(_0x56b8x1,_0x56b8x2){var _0x56b8x3=_0x56b8x1[_0x8e06[5]](_0x8e06[2],{status:{type:_0x56b8x2[_0x8e06[3]]}},{tableName:_0x8e06[4]});return _0x56b8x3;};
\ No newline at end of file
-var _0xc99f=["\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"];_0xc99f[0];module[_0xc99f[1]]=function(_0x844ax1,_0x844ax2){var _0x844ax3=_0x844ax1[_0xc99f[9]](_0xc99f[2],{name:{type:_0x844ax2[_0xc99f[3]],unique:true},description:{type:_0x844ax2[_0xc99f[3]]},context:{type:_0x844ax2[_0xc99f[3]]},extension:{type:_0x844ax2[_0xc99f[3]]},priority:{type:_0x844ax2[_0xc99f[4]]},callerid:{type:_0x844ax2[_0xc99f[3]]},waittime:{type:_0x844ax2[_0xc99f[4]]},maxretry:{type:_0x844ax2[_0xc99f[4]]},retrytime:{type:_0x844ax2[_0xc99f[4]]},prefix:{type:_0x844ax2[_0xc99f[3]]},maxcall:{type:_0x844ax2[_0xc99f[4]]},enable:{type:_0x844ax2[_0xc99f[5]],defaultValue:true}},{tableName:_0xc99f[6],associate:function(_0x844ax4){_0x844ax3[_0xc99f[8]](_0x844ax4.Contact,{through:_0x844ax4[_0xc99f[7]]})}});return _0x844ax3;};
\ No newline at end of file
+var _0xe201=["\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"];_0xe201[0];module[_0xe201[1]]=function(_0x2c84x1,_0x2c84x2){var _0x2c84x3=_0x2c84x1[_0xe201[9]](_0xe201[2],{name:{type:_0x2c84x2[_0xe201[3]],unique:true},description:{type:_0x2c84x2[_0xe201[3]]},context:{type:_0x2c84x2[_0xe201[3]]},extension:{type:_0x2c84x2[_0xe201[3]]},priority:{type:_0x2c84x2[_0xe201[4]]},callerid:{type:_0x2c84x2[_0xe201[3]]},waittime:{type:_0x2c84x2[_0xe201[4]]},maxretry:{type:_0x2c84x2[_0xe201[4]]},retrytime:{type:_0x2c84x2[_0xe201[4]]},prefix:{type:_0x2c84x2[_0xe201[3]]},maxcall:{type:_0x2c84x2[_0xe201[4]]},enable:{type:_0x2c84x2[_0xe201[5]],defaultValue:true}},{tableName:_0xe201[6],associate:function(_0x2c84x4){_0x2c84x3[_0xe201[8]](_0x2c84x4.Contact,{through:_0x2c84x4[_0xe201[7]]})}});return _0x2c84x3;};
\ No newline at end of file
-var _0x247d=["\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(_0x247d[0]);module[_0x247d[1]]=function(_0x4d8fx2,_0x4d8fx3){var _0x4d8fx4=_0x4d8fx2[_0x247d[7]](_0x247d[2],{name:_0x4d8fx3[_0x247d[3]],channel:_0x4d8fx3[_0x247d[3]],description:_0x4d8fx3[_0x247d[3]],conditions:_0x4d8fx3[_0x247d[4]],actions:_0x4d8fx3[_0x247d[4]],status:{type:_0x4d8fx3[_0x247d[5]],defaultValue:false}},{tableName:_0x247d[6]});return _0x4d8fx4;};
\ No newline at end of file
+var _0x7313=["\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(_0x7313[0]);module[_0x7313[1]]=function(_0xf3b5x2,_0xf3b5x3){var _0xf3b5x4=_0xf3b5x2[_0x7313[7]](_0x7313[2],{name:_0xf3b5x3[_0x7313[3]],channel:_0xf3b5x3[_0x7313[3]],description:_0xf3b5x3[_0x7313[3]],conditions:_0xf3b5x3[_0x7313[4]],actions:_0xf3b5x3[_0x7313[4]],status:{type:_0xf3b5x3[_0x7313[5]],defaultValue:false}},{tableName:_0x7313[6]});return _0xf3b5x4;};
\ No newline at end of file
-var _0xf57a=["\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(_0xf57a[0]);module[_0xf57a[1]]=function(_0x202ex2,_0x202ex3){var _0x202ex4=_0x202ex2[_0xf57a[7]](_0xf57a[2],{condition:{type:_0x202ex3[_0xf57a[3]]},attribute:{type:_0x202ex3[_0xf57a[3]]}},{tableName:_0xf57a[4],associate:function(_0x202ex5){_0x202ex4[_0xf57a[6]](_0x202ex5.MailBusinessAutomation,{onDelete:_0xf57a[5]});_0x202ex4[_0xf57a[6]](_0x202ex5.FaxBusinessAutomation,{onDelete:_0xf57a[5]});}});return _0x202ex4;};
\ No newline at end of file
+var _0xe84f=["\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(_0xe84f[0]);module[_0xe84f[1]]=function(_0xd07bx2,_0xd07bx3){var _0xd07bx4=_0xd07bx2[_0xe84f[7]](_0xe84f[2],{condition:{type:_0xd07bx3[_0xe84f[3]]},attribute:{type:_0xd07bx3[_0xe84f[3]]}},{tableName:_0xe84f[4],associate:function(_0xd07bx5){_0xd07bx4[_0xe84f[6]](_0xd07bx5.MailBusinessAutomation,{onDelete:_0xe84f[5]});_0xd07bx4[_0xe84f[6]](_0xd07bx5.FaxBusinessAutomation,{onDelete:_0xe84f[5]});}});return _0xd07bx4;};
\ No newline at end of file
-var _0x333d=["\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(_0x333d[0]);module[_0x333d[1]]=function(_0x138ax2,_0x138ax3){var _0x138ax4=_0x138ax2[_0x333d[9]](_0x333d[2],{type:{type:_0x138ax3.ENUM(_0x333d[3],_0x333d[4])},condition:{type:_0x138ax3[_0x333d[5]]},operator:{type:_0x138ax3[_0x333d[5]]},attribute:{type:_0x138ax3[_0x333d[5]]}},{tableName:_0x333d[6],associate:function(_0x138ax5){_0x138ax4[_0x333d[8]](_0x138ax5.MailBusinessAutomation,{onDelete:_0x333d[7]});_0x138ax4[_0x333d[8]](_0x138ax5.FaxBusinessAutomation,{onDelete:_0x333d[7]});}});return _0x138ax4;};
\ No newline at end of file
+var _0x7f85=["\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(_0x7f85[0]);module[_0x7f85[1]]=function(_0xe8e7x2,_0xe8e7x3){var _0xe8e7x4=_0xe8e7x2[_0x7f85[9]](_0x7f85[2],{type:{type:_0xe8e7x3.ENUM(_0x7f85[3],_0x7f85[4])},condition:{type:_0xe8e7x3[_0x7f85[5]]},operator:{type:_0xe8e7x3[_0x7f85[5]]},attribute:{type:_0xe8e7x3[_0x7f85[5]]}},{tableName:_0x7f85[6],associate:function(_0xe8e7x5){_0xe8e7x4[_0x7f85[8]](_0xe8e7x5.MailBusinessAutomation,{onDelete:_0x7f85[7]});_0xe8e7x4[_0x7f85[8]](_0xe8e7x5.FaxBusinessAutomation,{onDelete:_0x7f85[7]});}});return _0xe8e7x4;};
\ No newline at end of file
-var _0x386f=["\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[_0x386f[0]]=function(_0xc7dex1,_0xc7dex2){var _0xc7dex3=_0xc7dex1[_0x386f[9]](_0x386f[1],{name:{type:_0xc7dex2[_0x386f[2]],validate:{isUnique:function(_0xc7dex4,_0xc7dex5){_0xc7dex3[_0x386f[5]]({where:{name:_0xc7dex4}})[_0x386f[4]](function(_0xc7dex6,_0xc7dex7){if(_0xc7dex6){_0xc7dex5(_0xc7dex6)};if(_0xc7dex7){_0xc7dex5({message:_0x386f[3]})};_0xc7dex5();})}}},title:_0xc7dex2[_0x386f[2]],link:_0xc7dex2[_0x386f[2]],icon:_0xc7dex2[_0x386f[2]],position:_0xc7dex2[_0x386f[2]]},{tableName:_0x386f[6],associate:function(_0xc7dex8){_0xc7dex3[_0x386f[8]](_0xc7dex8.User,{through:_0x386f[7]})}});return _0xc7dex3;};
\ No newline at end of file
+var _0x5bdd=["\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[_0x5bdd[0]]=function(_0x3077x1,_0x3077x2){var _0x3077x3=_0x3077x1[_0x5bdd[9]](_0x5bdd[1],{name:{type:_0x3077x2[_0x5bdd[2]],validate:{isUnique:function(_0x3077x4,_0x3077x5){_0x3077x3[_0x5bdd[5]]({where:{name:_0x3077x4}})[_0x5bdd[4]](function(_0x3077x6,_0x3077x7){if(_0x3077x6){_0x3077x5(_0x3077x6)};if(_0x3077x7){_0x3077x5({message:_0x5bdd[3]})};_0x3077x5();})}}},title:_0x3077x2[_0x5bdd[2]],link:_0x3077x2[_0x5bdd[2]],icon:_0x3077x2[_0x5bdd[2]],position:_0x3077x2[_0x5bdd[2]]},{tableName:_0x5bdd[6],associate:function(_0x3077x8){_0x3077x3[_0x5bdd[8]](_0x3077x8.User,{through:_0x5bdd[7]})}});return _0x3077x3;};
\ No newline at end of file
-var _0x5733=["\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"];_0x5733[0];module[_0x5733[1]]=function(_0xa460x1,_0xa460x2){var _0xa460x3=_0xa460x1[_0x5733[9]](_0x5733[2],{app:{type:_0xa460x2.ENUM(_0x5733[3],_0x5733[4])},priority:{type:_0xa460x2[_0x5733[5]]},timeout:{type:_0xa460x2[_0x5733[5]]},interval:{type:_0xa460x2[_0x5733[6]]}},{tableName:_0x5733[7],associate:function(_0xa460x4){_0xa460x3[_0x5733[8]](_0xa460x4.ChatWebsite);_0xa460x3[_0x5733[8]](_0xa460x4.Interval);_0xa460x3[_0x5733[8]](_0xa460x4.ChatQueue);_0xa460x3[_0x5733[8]](_0xa460x4.User);}});return _0xa460x3;};
\ No newline at end of file
+var _0x5d63=["\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"];_0x5d63[0];module[_0x5d63[1]]=function(_0x581cx1,_0x581cx2){var _0x581cx3=_0x581cx1[_0x5d63[9]](_0x5d63[2],{app:{type:_0x581cx2.ENUM(_0x5d63[3],_0x5d63[4])},priority:{type:_0x581cx2[_0x5d63[5]]},timeout:{type:_0x581cx2[_0x5d63[5]]},interval:{type:_0x581cx2[_0x5d63[6]]}},{tableName:_0x5d63[7],associate:function(_0x581cx4){_0x581cx3[_0x5d63[8]](_0x581cx4.ChatWebsite);_0x581cx3[_0x5d63[8]](_0x581cx4.Interval);_0x581cx3[_0x5d63[8]](_0x581cx4.ChatQueue);_0x581cx3[_0x5d63[8]](_0x581cx4.User);}});return _0x581cx3;};
\ No newline at end of file
-var _0x235b=["\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"];_0x235b[0];module[_0x235b[1]]=function(_0x65dcx1,_0x65dcx2){var _0x65dcx3=_0x65dcx1[_0x235b[8]](_0x235b[2],{username:_0x65dcx2[_0x235b[3]],email:_0x65dcx2[_0x235b[3]],text:_0x65dcx2[_0x235b[4]],read:{type:_0x65dcx2[_0x235b[5]],defaultValue:false}},{tableName:_0x235b[6],associate:function(_0x65dcx4){_0x65dcx3[_0x235b[7]](_0x65dcx4.ChatWebsite);_0x65dcx3[_0x235b[7]](_0x65dcx4.ChatVisitor);}});return _0x65dcx3;};
\ No newline at end of file
+var _0xb9fb=["\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"];_0xb9fb[0];module[_0xb9fb[1]]=function(_0x9071x1,_0x9071x2){var _0x9071x3=_0x9071x1[_0xb9fb[8]](_0xb9fb[2],{username:_0x9071x2[_0xb9fb[3]],email:_0x9071x2[_0xb9fb[3]],text:_0x9071x2[_0xb9fb[4]],read:{type:_0x9071x2[_0xb9fb[5]],defaultValue:false}},{tableName:_0xb9fb[6],associate:function(_0x9071x4){_0x9071x3[_0xb9fb[7]](_0x9071x4.ChatWebsite);_0x9071x3[_0xb9fb[7]](_0x9071x4.ChatVisitor);}});return _0x9071x3;};
\ No newline at end of file
-var _0x1a69=["\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(_0x1a69[0]);module[_0x1a69[1]]=function(_0x2ea0x2,_0x2ea0x3){var _0x2ea0x4=_0x2ea0x2[_0x1a69[6]](_0x1a69[2],{body:{type:_0x2ea0x3[_0x1a69[3]],notNull:true,notEmpty:true}},{tableName:_0x1a69[4],associate:function(_0x2ea0x5){_0x2ea0x4[_0x1a69[5]](_0x2ea0x5.ChatRoom);_0x2ea0x4[_0x1a69[5]](_0x2ea0x5.ChatVisitor);_0x2ea0x4[_0x1a69[5]](_0x2ea0x5.User);}});return _0x2ea0x4;};
\ No newline at end of file
+var _0xf36c=["\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(_0xf36c[0]);module[_0xf36c[1]]=function(_0x6a0cx2,_0x6a0cx3){var _0x6a0cx4=_0x6a0cx2[_0xf36c[6]](_0xf36c[2],{body:{type:_0x6a0cx3[_0xf36c[3]],notNull:true,notEmpty:true}},{tableName:_0xf36c[4],associate:function(_0x6a0cx5){_0x6a0cx4[_0xf36c[5]](_0x6a0cx5.ChatRoom);_0x6a0cx4[_0xf36c[5]](_0x6a0cx5.ChatVisitor);_0x6a0cx4[_0xf36c[5]](_0x6a0cx5.User);}});return _0x6a0cx4;};
\ No newline at end of file
-var _0xedae=["\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"];_0xedae[0];module[_0xedae[1]]=function(_0xeb7ax1,_0xeb7ax2){var _0xeb7ax3=_0xeb7ax1[_0xedae[10]](_0xedae[2],{name:{type:_0xeb7ax2[_0xedae[3]],unique:true},description:{type:_0xeb7ax2[_0xedae[3]]},timeout:{type:_0xeb7ax2[_0xedae[4]]},strategy:{type:_0xeb7ax2.ENUM(_0xedae[5],_0xedae[6])}},{tableName:_0xedae[7],associate:function(_0xeb7ax4){_0xeb7ax3[_0xedae[9]](_0xeb7ax4.User,{through:_0xeb7ax4[_0xedae[8]]})}});return _0xeb7ax3;};
\ No newline at end of file
+var _0x541c=["\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"];_0x541c[0];module[_0x541c[1]]=function(_0x785ex1,_0x785ex2){var _0x785ex3=_0x785ex1[_0x541c[10]](_0x541c[2],{name:{type:_0x785ex2[_0x541c[3]],unique:true},description:{type:_0x785ex2[_0x541c[3]]},timeout:{type:_0x785ex2[_0x541c[4]]},strategy:{type:_0x785ex2.ENUM(_0x541c[5],_0x541c[6])}},{tableName:_0x541c[7],associate:function(_0x785ex4){_0x785ex3[_0x541c[9]](_0x785ex4.User,{through:_0x785ex4[_0x541c[8]]})}});return _0x785ex3;};
\ No newline at end of file
-var _0xb116=["\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(_0xb116[0]);module[_0xb116[1]]=function(_0x9208x2,_0x9208x3){var _0x9208x4=_0x9208x2[_0xb116[14]](_0xb116[2],{type:_0x9208x3.ENUM(_0xb116[3],_0xb116[4]),name:_0x9208x3[_0xb116[5]],token:{type:_0x9208x3[_0xb116[5]],unique:true},status:{type:_0x9208x3.ENUM(_0xb116[6],_0xb116[7],_0xb116[8]),defaultValue:_0xb116[6]}},{tableName:_0xb116[9],associate:function(_0x9208x5){_0x9208x4[_0xb116[10]](_0x9208x5.ChatMessage);_0x9208x4[_0xb116[11]](_0x9208x5.ChatVisitor);_0x9208x4[_0xb116[11]](_0x9208x5.ChatWebsite);_0x9208x4[_0xb116[13]](_0x9208x5.User,{through:_0x9208x5[_0xb116[12]]});}});return _0x9208x4;};
\ No newline at end of file
+var _0x77fa=["\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(_0x77fa[0]);module[_0x77fa[1]]=function(_0xe148x2,_0xe148x3){var _0xe148x4=_0xe148x2[_0x77fa[14]](_0x77fa[2],{type:_0xe148x3.ENUM(_0x77fa[3],_0x77fa[4]),name:_0xe148x3[_0x77fa[5]],token:{type:_0xe148x3[_0x77fa[5]],unique:true},status:{type:_0xe148x3.ENUM(_0x77fa[6],_0x77fa[7],_0x77fa[8]),defaultValue:_0x77fa[6]}},{tableName:_0x77fa[9],associate:function(_0xe148x5){_0xe148x4[_0x77fa[10]](_0xe148x5.ChatMessage);_0xe148x4[_0x77fa[11]](_0xe148x5.ChatVisitor);_0xe148x4[_0x77fa[11]](_0xe148x5.ChatWebsite);_0xe148x4[_0x77fa[13]](_0xe148x5.User,{through:_0xe148x5[_0x77fa[12]]});}});return _0xe148x4;};
\ No newline at end of file
-var _0x82f3=["\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(_0x82f3[0]);module[_0x82f3[1]]=function(_0x2a88x2,_0x2a88x3){var _0x2a88x4=_0x2a88x2[_0x82f3[12]](_0x82f3[2],{fullname:_0x2a88x3[_0x82f3[3]],email:_0x2a88x3[_0x82f3[3]],remote_address:_0x2a88x3[_0x82f3[3]],user_agent:_0x2a88x3[_0x82f3[3]],visitor_language:_0x2a88x3[_0x82f3[3]],referer:_0x2a88x3[_0x82f3[3]],browser:_0x2a88x3[_0x82f3[3]],engine:_0x2a88x3[_0x82f3[3]],os:_0x2a88x3[_0x82f3[3]],device:_0x2a88x3[_0x82f3[3]],country:_0x2a88x3[_0x82f3[3]],region:_0x2a88x3[_0x82f3[3]],city:_0x2a88x3[_0x82f3[3]],latitude:_0x2a88x3[_0x82f3[3]],longitude:_0x2a88x3[_0x82f3[3]],origin:_0x2a88x3.ENUM(_0x82f3[4],_0x82f3[5]),status:{type:_0x2a88x3.ENUM(_0x82f3[6],_0x82f3[7],_0x82f3[8]),defaultValue:_0x82f3[6]}},{tableName:_0x82f3[9],associate:function(_0x2a88x5){_0x2a88x4[_0x82f3[10]](_0x2a88x5.ChatMessage);_0x2a88x4[_0x82f3[10]](_0x2a88x5.ChatRoom);_0x2a88x4[_0x82f3[11]](_0x2a88x5.ChatWebsite);}});return _0x2a88x4;};
\ No newline at end of file
+var _0xe96f=["\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(_0xe96f[0]);module[_0xe96f[1]]=function(_0x106ax2,_0x106ax3){var _0x106ax4=_0x106ax2[_0xe96f[12]](_0xe96f[2],{fullname:_0x106ax3[_0xe96f[3]],email:_0x106ax3[_0xe96f[3]],remote_address:_0x106ax3[_0xe96f[3]],user_agent:_0x106ax3[_0xe96f[3]],visitor_language:_0x106ax3[_0xe96f[3]],referer:_0x106ax3[_0xe96f[3]],browser:_0x106ax3[_0xe96f[3]],engine:_0x106ax3[_0xe96f[3]],os:_0x106ax3[_0xe96f[3]],device:_0x106ax3[_0xe96f[3]],country:_0x106ax3[_0xe96f[3]],region:_0x106ax3[_0xe96f[3]],city:_0x106ax3[_0xe96f[3]],latitude:_0x106ax3[_0xe96f[3]],longitude:_0x106ax3[_0xe96f[3]],origin:_0x106ax3.ENUM(_0xe96f[4],_0xe96f[5]),status:{type:_0x106ax3.ENUM(_0xe96f[6],_0xe96f[7],_0xe96f[8]),defaultValue:_0xe96f[6]}},{tableName:_0xe96f[9],associate:function(_0x106ax5){_0x106ax4[_0xe96f[10]](_0x106ax5.ChatMessage);_0x106ax4[_0xe96f[10]](_0x106ax5.ChatRoom);_0x106ax4[_0xe96f[11]](_0x106ax5.ChatWebsite);}});return _0x106ax4;};
\ No newline at end of file
-var _0xeffa=["\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(_0xeffa[0]);module[_0xeffa[1]]=function(_0x162ax2,_0x162ax3){var _0x162ax4=_0x162ax2[_0xeffa[21]](_0xeffa[2],{name:_0x162ax3[_0xeffa[3]],address:{type:_0x162ax3[_0xeffa[3]],unique:true},description:_0x162ax3[_0xeffa[3]],color:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[4]},color_focus:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[4]},color_button:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[4]},remote:_0x162ax3[_0xeffa[3]],animation:{type:_0x162ax3[_0xeffa[5]],defaultValue:true},header_shape:{type:_0x162ax3.ENUM(_0xeffa[6],_0xeffa[7]),defaultValue:_0xeffa[6]},header_online:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[8]},online_message:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[9]},username_placeholder:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[10]},email_placeholder:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[11]},start_chat_button:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[12]},header_offline:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[13]},offline_message:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[14]},enquiry_message_placeholder:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[15]},enquiry_button:{type:_0x162ax3[_0xeffa[3]],defaultValue:_0xeffa[16]},download_transcript:{type:_0x162ax3[_0xeffa[5]],defaultValue:true},enquiry_forwarding:{type:_0x162ax3[_0xeffa[5]],defaultValue:false},enquiry_forwarding_address:{type:_0x162ax3[_0xeffa[3]]}},{tableName:_0xeffa[17],associate:function(_0x162ax5){_0x162ax4[_0xeffa[19]](_0x162ax5.MailTemplate,{as:_0xeffa[18]});_0x162ax4[_0xeffa[20]](_0x162ax5.ChatRoom);_0x162ax4[_0xeffa[20]](_0x162ax5.ChatApplication);}});return _0x162ax4;};
\ No newline at end of file
+var _0xec48=["\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(_0xec48[0]);module[_0xec48[1]]=function(_0xe09dx2,_0xe09dx3){var _0xe09dx4=_0xe09dx2[_0xec48[21]](_0xec48[2],{name:_0xe09dx3[_0xec48[3]],address:{type:_0xe09dx3[_0xec48[3]],unique:true},description:_0xe09dx3[_0xec48[3]],color:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[4]},color_focus:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[4]},color_button:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[4]},remote:_0xe09dx3[_0xec48[3]],animation:{type:_0xe09dx3[_0xec48[5]],defaultValue:true},header_shape:{type:_0xe09dx3.ENUM(_0xec48[6],_0xec48[7]),defaultValue:_0xec48[6]},header_online:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[8]},online_message:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[9]},username_placeholder:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[10]},email_placeholder:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[11]},start_chat_button:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[12]},header_offline:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[13]},offline_message:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[14]},enquiry_message_placeholder:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[15]},enquiry_button:{type:_0xe09dx3[_0xec48[3]],defaultValue:_0xec48[16]},download_transcript:{type:_0xe09dx3[_0xec48[5]],defaultValue:true},enquiry_forwarding:{type:_0xe09dx3[_0xec48[5]],defaultValue:false},enquiry_forwarding_address:{type:_0xe09dx3[_0xec48[3]]}},{tableName:_0xec48[17],associate:function(_0xe09dx5){_0xe09dx4[_0xec48[19]](_0xe09dx5.MailTemplate,{as:_0xec48[18]});_0xe09dx4[_0xec48[20]](_0xe09dx5.ChatRoom);_0xe09dx4[_0xec48[20]](_0xe09dx5.ChatApplication);}});return _0xe09dx4;};
\ No newline at end of file
-var _0x8446=["\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[_0x8446[0]]=function(_0xc09cx1,_0xc09cx2){var _0xc09cx3=_0xc09cx1[_0x8446[6]](_0x8446[1],{name:{type:_0xc09cx2[_0x8446[2]],unique:true},street:_0xc09cx2[_0x8446[2]],postalCode:_0xc09cx2[_0x8446[2]],city:_0xc09cx2[_0x8446[2]],country:_0xc09cx2[_0x8446[2]],sStreet:_0xc09cx2[_0x8446[2]],sPostalCode:_0xc09cx2[_0x8446[2]],sCity:_0xc09cx2[_0x8446[2]],sCountry:_0xc09cx2[_0x8446[2]]},{tableName:_0x8446[3],associate:function(_0xc09cx4){_0xc09cx3[_0x8446[5]](_0xc09cx4.Contact,{as:_0x8446[4]})}});return _0xc09cx3;};
\ No newline at end of file
+var _0xe42d=["\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[_0xe42d[0]]=function(_0x37e1x1,_0x37e1x2){var _0x37e1x3=_0x37e1x1[_0xe42d[6]](_0xe42d[1],{name:{type:_0x37e1x2[_0xe42d[2]],unique:true},street:_0x37e1x2[_0xe42d[2]],postalCode:_0x37e1x2[_0xe42d[2]],city:_0x37e1x2[_0xe42d[2]],country:_0x37e1x2[_0xe42d[2]],sStreet:_0x37e1x2[_0xe42d[2]],sPostalCode:_0x37e1x2[_0xe42d[2]],sCity:_0x37e1x2[_0xe42d[2]],sCountry:_0x37e1x2[_0xe42d[2]]},{tableName:_0xe42d[3],associate:function(_0x37e1x4){_0x37e1x3[_0xe42d[5]](_0x37e1x4.Contact,{as:_0xe42d[4]})}});return _0x37e1x3;};
\ No newline at end of file
-var _0x6fc0=["\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[_0x6fc0[0]]=function(_0x5e6ex1,_0x5e6ex2){var _0x5e6ex3=_0x5e6ex1[_0x6fc0[12]](_0x6fc0[1],{fullname:{type:_0x5e6ex2[_0x6fc0[2]],validate:{notEmpty:true}},tags:_0x5e6ex2[_0x6fc0[2]],street:_0x5e6ex2[_0x6fc0[2]],postalCode:_0x5e6ex2[_0x6fc0[2]],city:_0x5e6ex2[_0x6fc0[2]],country:_0x5e6ex2[_0x6fc0[2]],dateOfBirth:_0x5e6ex2[_0x6fc0[2]],description:_0x5e6ex2[_0x6fc0[2]]},{tableName:_0x6fc0[3],associate:function(_0x5e6ex4){_0x5e6ex3[_0x6fc0[6]](_0x5e6ex4.ContactPhone,{through:_0x6fc0[4],as:_0x6fc0[5]});_0x5e6ex3[_0x6fc0[6]](_0x5e6ex4.ContactEmail,{through:_0x6fc0[7],as:_0x6fc0[8]});_0x5e6ex3[_0x6fc0[6]](_0x5e6ex4.CustomField,{through:_0x5e6ex4[_0x6fc0[9]],as:_0x6fc0[10]});_0x5e6ex3[_0x6fc0[11]](_0x5e6ex4.Company);_0x5e6ex3[_0x6fc0[11]](_0x5e6ex4.User);}});return _0x5e6ex3;};
\ No newline at end of file
+var _0xe414=["\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[_0xe414[0]]=function(_0xbc4bx1,_0xbc4bx2){var _0xbc4bx3=_0xbc4bx1[_0xe414[12]](_0xe414[1],{fullname:{type:_0xbc4bx2[_0xe414[2]],validate:{notEmpty:true}},tags:_0xbc4bx2[_0xe414[2]],street:_0xbc4bx2[_0xe414[2]],postalCode:_0xbc4bx2[_0xe414[2]],city:_0xbc4bx2[_0xe414[2]],country:_0xbc4bx2[_0xe414[2]],dateOfBirth:_0xbc4bx2[_0xe414[2]],description:_0xbc4bx2[_0xe414[2]]},{tableName:_0xe414[3],associate:function(_0xbc4bx4){_0xbc4bx3[_0xe414[6]](_0xbc4bx4.ContactPhone,{through:_0xe414[4],as:_0xe414[5]});_0xbc4bx3[_0xe414[6]](_0xbc4bx4.ContactEmail,{through:_0xe414[7],as:_0xe414[8]});_0xbc4bx3[_0xe414[6]](_0xbc4bx4.CustomField,{through:_0xbc4bx4[_0xe414[9]],as:_0xe414[10]});_0xbc4bx3[_0xe414[11]](_0xbc4bx4.Company);_0xbc4bx3[_0xe414[11]](_0xbc4bx4.User);}});return _0xbc4bx3;};
\ No newline at end of file
-var _0xbe12=["\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[_0xbe12[0]]=function(_0x83c4x1,_0x83c4x2){var _0x83c4x3=_0x83c4x1[_0xbe12[11]](_0xbe12[1],{email:{type:_0x83c4x2[_0xbe12[2]],primaryKey:true}},{tableName:_0xbe12[3],associate:function(_0x83c4x4){_0x83c4x3[_0xbe12[5]](_0x83c4x4.Contact,{through:_0xbe12[4]});_0x83c4x3[_0xbe12[8]](_0x83c4x4.ReportMailSession,{as:_0xbe12[6],foreignKey:_0xbe12[7],constraints:false});_0x83c4x3[_0xbe12[8]](_0x83c4x4.ReportMailSession,{as:_0xbe12[9],foreignKey:_0xbe12[10],constraints:false});}});return _0x83c4x3;};
\ No newline at end of file
+var _0x6434=["\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[_0x6434[0]]=function(_0x46edx1,_0x46edx2){var _0x46edx3=_0x46edx1[_0x6434[11]](_0x6434[1],{email:{type:_0x46edx2[_0x6434[2]],primaryKey:true}},{tableName:_0x6434[3],associate:function(_0x46edx4){_0x46edx3[_0x6434[5]](_0x46edx4.Contact,{through:_0x6434[4]});_0x46edx3[_0x6434[8]](_0x46edx4.ReportMailSession,{as:_0x6434[6],foreignKey:_0x6434[7],constraints:false});_0x46edx3[_0x6434[8]](_0x46edx4.ReportMailSession,{as:_0x6434[9],foreignKey:_0x6434[10],constraints:false});}});return _0x46edx3;};
\ No newline at end of file
-var _0xc2dc=["\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(_0xc2dc[0]);module[_0xc2dc[1]]=function(_0xaa68x2,_0xaa68x3){var _0xaa68x4=_0xaa68x2[_0xc2dc[5]](_0xc2dc[2],{value:_0xaa68x3[_0xc2dc[3]]},{tableName:_0xc2dc[4]});return _0xaa68x4;};
\ No newline at end of file
+var _0x8d60=["\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(_0x8d60[0]);module[_0x8d60[1]]=function(_0xfbdax2,_0xfbdax3){var _0xfbdax4=_0xfbdax2[_0x8d60[5]](_0x8d60[2],{value:_0xfbdax3[_0x8d60[3]]},{tableName:_0x8d60[4]});return _0xfbdax4;};
\ No newline at end of file
-var _0xa008=["\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[_0xa008[0]]=function(_0xe659x1,_0xe659x2){var _0xe659x3=_0xe659x1[_0xa008[11]](_0xa008[1],{phone:{type:_0xe659x2[_0xa008[2]],primaryKey:true}},{tableName:_0xa008[3],associate:function(_0xe659x4){_0xe659x3[_0xa008[5]](_0xe659x4.Contact,{through:_0xa008[4]});_0xe659x3[_0xa008[8]](_0xe659x4.ReportCall,{as:_0xa008[6],foreignKey:_0xa008[7],constraints:false});_0xe659x3[_0xa008[8]](_0xe659x4.ReportCall,{as:_0xa008[9],foreignKey:_0xa008[10],constraints:false});}});return _0xe659x3;};
\ No newline at end of file
+var _0x4c9b=["\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[_0x4c9b[0]]=function(_0x65b5x1,_0x65b5x2){var _0x65b5x3=_0x65b5x1[_0x4c9b[11]](_0x4c9b[1],{phone:{type:_0x65b5x2[_0x4c9b[2]],primaryKey:true}},{tableName:_0x4c9b[3],associate:function(_0x65b5x4){_0x65b5x3[_0x4c9b[5]](_0x65b5x4.Contact,{through:_0x4c9b[4]});_0x65b5x3[_0x4c9b[8]](_0x65b5x4.ReportCall,{as:_0x4c9b[6],foreignKey:_0x4c9b[7],constraints:false});_0x65b5x3[_0x4c9b[8]](_0x65b5x4.ReportCall,{as:_0x4c9b[9],foreignKey:_0x4c9b[10],constraints:false});}});return _0x65b5x3;};
\ No newline at end of file
-var _0xfa97=["\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[_0xfa97[0]]=function(_0xdda7x1,_0xdda7x2){var _0xdda7x3=_0xdda7x1[_0xfa97[7]](_0xfa97[1],{name:{type:_0xdda7x2[_0xfa97[2]],unique:true},type:_0xdda7x2[_0xfa97[2]],active:{type:_0xdda7x2[_0xfa97[3]],defaultValue:true},values:_0xdda7x2[_0xfa97[2]]},{tableName:_0xfa97[4],associate:function(_0xdda7x4){_0xdda7x3[_0xfa97[6]](_0xdda7x4.Contact,{through:_0xdda7x4[_0xfa97[5]]})}});return _0xdda7x3;};
\ No newline at end of file
+var _0x3a2b=["\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[_0x3a2b[0]]=function(_0xf545x1,_0xf545x2){var _0xf545x3=_0xf545x1[_0x3a2b[7]](_0x3a2b[1],{name:{type:_0xf545x2[_0x3a2b[2]],unique:true},type:_0xf545x2[_0x3a2b[2]],active:{type:_0xf545x2[_0x3a2b[3]],defaultValue:true},values:_0xf545x2[_0x3a2b[2]]},{tableName:_0x3a2b[4],associate:function(_0xf545x4){_0xf545x3[_0x3a2b[6]](_0xf545x4.Contact,{through:_0xf545x4[_0x3a2b[5]]})}});return _0xf545x3;};
\ No newline at end of file
-var _0x51cd=["\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"];_0x51cd[0];module[_0x51cd[1]]=function(_0x7fe2x1,_0x7fe2x2){var _0x7fe2x3=_0x7fe2x1[_0x51cd[9]](_0x51cd[2],{name:_0x7fe2x2[_0x51cd[3]],description:_0x7fe2x2[_0x51cd[3]],parent:_0x7fe2x2[_0x51cd[3]],table:_0x7fe2x2[_0x51cd[3]],conditions:_0x7fe2x2[_0x51cd[4]]},{tableName:_0x51cd[5],associate:function(_0x7fe2x4){_0x7fe2x3[_0x51cd[8]](_0x7fe2x4.ReportField,{as:_0x51cd[6],onDelete:_0x51cd[7]})}});return _0x7fe2x3;};
\ No newline at end of file
+var _0x46ca=["\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"];_0x46ca[0];module[_0x46ca[1]]=function(_0x8a2ax1,_0x8a2ax2){var _0x8a2ax3=_0x8a2ax1[_0x46ca[9]](_0x46ca[2],{name:_0x8a2ax2[_0x46ca[3]],description:_0x8a2ax2[_0x46ca[3]],parent:_0x8a2ax2[_0x46ca[3]],table:_0x8a2ax2[_0x46ca[3]],conditions:_0x8a2ax2[_0x46ca[4]]},{tableName:_0x46ca[5],associate:function(_0x8a2ax4){_0x8a2ax3[_0x46ca[8]](_0x8a2ax4.ReportField,{as:_0x46ca[6],onDelete:_0x46ca[7]})}});return _0x8a2ax3;};
\ No newline at end of file
-var _0x785d=["\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"];_0x785d[0];module[_0x785d[1]]=function(_0x7f26x1,_0x7f26x2){var _0x7f26x3=_0x7f26x1[_0x785d[8]](_0x785d[2],{name:{type:_0x7f26x2[_0x785d[3]],unique:true},description:{type:_0x7f26x2[_0x785d[3]]},model:{type:_0x7f26x2[_0x785d[4]]},collapsible:{type:_0x7f26x2[_0x785d[5]],defaultValue:true},editable:{type:_0x7f26x2[_0x785d[5]],defaultValue:true},maximizable:{type:_0x7f26x2[_0x785d[5]],defaultValue:true},structure:{type:_0x7f26x2.STRING(32),defaultValue:_0x785d[6]},enableconfirmdelete:{type:_0x7f26x2[_0x785d[5]],defaultValue:true},defaultEntry:{type:_0x7f26x2[_0x785d[5]],defaultValue:0},admin:{type:_0x7f26x2[_0x785d[5]],defaultValue:true},user:{type:_0x7f26x2[_0x785d[5]],defaultValue:true},agent:{type:_0x7f26x2[_0x785d[5]],defaultValue:true},visible:{type:_0x7f26x2[_0x785d[5]],defaultValue:true}},{tableName:_0x785d[7]});return _0x7f26x3;};
\ No newline at end of file
+var _0xb814=["\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"];_0xb814[0];module[_0xb814[1]]=function(_0x6507x1,_0x6507x2){var _0x6507x3=_0x6507x1[_0xb814[8]](_0xb814[2],{name:{type:_0x6507x2[_0xb814[3]],unique:true},description:{type:_0x6507x2[_0xb814[3]]},model:{type:_0x6507x2[_0xb814[4]]},collapsible:{type:_0x6507x2[_0xb814[5]],defaultValue:true},editable:{type:_0x6507x2[_0xb814[5]],defaultValue:true},maximizable:{type:_0x6507x2[_0xb814[5]],defaultValue:true},structure:{type:_0x6507x2.STRING(32),defaultValue:_0xb814[6]},enableconfirmdelete:{type:_0x6507x2[_0xb814[5]],defaultValue:true},defaultEntry:{type:_0x6507x2[_0xb814[5]],defaultValue:0},admin:{type:_0x6507x2[_0xb814[5]],defaultValue:true},user:{type:_0x6507x2[_0xb814[5]],defaultValue:true},agent:{type:_0x6507x2[_0xb814[5]],defaultValue:true},visible:{type:_0x6507x2[_0xb814[5]],defaultValue:true}},{tableName:_0xb814[7]});return _0x6507x3;};
\ No newline at end of file
-var _0x3b8d=["\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"];_0x3b8d[0];module[_0x3b8d[1]]=function(_0xcdd9x1,_0xcdd9x2){var _0xcdd9x3=_0xcdd9x1[_0x3b8d[9]](_0x3b8d[2],{name:_0xcdd9x2[_0x3b8d[3]],description:_0xcdd9x2[_0x3b8d[3]],parent:_0xcdd9x2[_0x3b8d[3]],table:_0xcdd9x2[_0x3b8d[3]],conditions:_0xcdd9x2[_0x3b8d[4]]},{tableName:_0x3b8d[5],associate:function(_0xcdd9x4){_0xcdd9x3[_0x3b8d[8]](_0xcdd9x4.ReportField,{as:_0x3b8d[6],onDelete:_0x3b8d[7]})}});return _0xcdd9x3;};
\ No newline at end of file
+var _0xa991=["\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"];_0xa991[0];module[_0xa991[1]]=function(_0x4861x1,_0x4861x2){var _0x4861x3=_0x4861x1[_0xa991[9]](_0xa991[2],{name:_0x4861x2[_0xa991[3]],description:_0x4861x2[_0xa991[3]],parent:_0x4861x2[_0xa991[3]],table:_0x4861x2[_0xa991[3]],conditions:_0x4861x2[_0xa991[4]]},{tableName:_0xa991[5],associate:function(_0x4861x4){_0x4861x3[_0xa991[8]](_0x4861x4.ReportField,{as:_0xa991[6],onDelete:_0xa991[7]})}});return _0x4861x3;};
\ No newline at end of file
-var _0x641b=["\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"];_0x641b[0];module[_0x641b[1]]=function(_0x8028x1,_0x8028x2){var _0x8028x3=_0x8028x1[_0x641b[9]](_0x641b[2],{name:_0x8028x2[_0x641b[3]],description:_0x8028x2[_0x641b[3]],username:{type:_0x8028x2[_0x641b[3]],unique:true},remoteUri:{type:_0x8028x2[_0x641b[3]],unique:true},authType:{type:_0x8028x2.ENUM(_0x641b[4],_0x641b[5]),defaultValue:_0x641b[4]},password:_0x8028x2[_0x641b[3]],consumerKey:_0x8028x2[_0x641b[3]],consumerSecret:_0x8028x2[_0x641b[3]],token:_0x8028x2[_0x641b[3]],tokenSecret:_0x8028x2[_0x641b[3]]},{tableName:_0x641b[6],associate:function(_0x8028x4){_0x8028x3[_0x641b[8]](_0x8028x4.DeskConfiguration,{foreignKey:_0x641b[7]})}});return _0x8028x3;};
\ No newline at end of file
+var _0x197f=["\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"];_0x197f[0];module[_0x197f[1]]=function(_0x3fc9x1,_0x3fc9x2){var _0x3fc9x3=_0x3fc9x1[_0x197f[9]](_0x197f[2],{name:_0x3fc9x2[_0x197f[3]],description:_0x3fc9x2[_0x197f[3]],username:{type:_0x3fc9x2[_0x197f[3]],unique:true},remoteUri:{type:_0x3fc9x2[_0x197f[3]],unique:true},authType:{type:_0x3fc9x2.ENUM(_0x197f[4],_0x197f[5]),defaultValue:_0x197f[4]},password:_0x3fc9x2[_0x197f[3]],consumerKey:_0x3fc9x2[_0x197f[3]],consumerSecret:_0x3fc9x2[_0x197f[3]],token:_0x3fc9x2[_0x197f[3]],tokenSecret:_0x3fc9x2[_0x197f[3]]},{tableName:_0x197f[6],associate:function(_0x3fc9x4){_0x3fc9x3[_0x197f[8]](_0x3fc9x4.DeskConfiguration,{foreignKey:_0x197f[7]})}});return _0x3fc9x3;};
\ No newline at end of file
-var _0x4fb7=["\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"];_0x4fb7[0];module[_0x4fb7[1]]=function(_0xaddax1,_0xaddax2){return _0xaddax1[_0x4fb7[14]](_0x4fb7[2],{name:_0xaddax2[_0x4fb7[3]],description:_0xaddax2[_0x4fb7[3]]},{tableName:_0x4fb7[4],associate:function(_0xaddax3){_0xaddax3[_0x4fb7[2]][_0x4fb7[6]](_0xaddax3.DeskAccount,{foreignKey:_0x4fb7[5]});_0xaddax3[_0x4fb7[2]][_0x4fb7[9]](_0xaddax3.DeskField,{as:_0x4fb7[7],foreignKey:_0x4fb7[8]});_0xaddax3[_0x4fb7[2]][_0x4fb7[9]](_0xaddax3.DeskField,{as:_0x4fb7[10],foreignKey:_0x4fb7[11]});_0xaddax3[_0x4fb7[2]][_0x4fb7[9]](_0xaddax3.DeskField,{as:_0x4fb7[12],foreignKey:_0x4fb7[13]});}})};
\ No newline at end of file
+var _0x9db2=["\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"];_0x9db2[0];module[_0x9db2[1]]=function(_0xdfccx1,_0xdfccx2){return _0xdfccx1[_0x9db2[14]](_0x9db2[2],{name:_0xdfccx2[_0x9db2[3]],description:_0xdfccx2[_0x9db2[3]]},{tableName:_0x9db2[4],associate:function(_0xdfccx3){_0xdfccx3[_0x9db2[2]][_0x9db2[6]](_0xdfccx3.DeskAccount,{foreignKey:_0x9db2[5]});_0xdfccx3[_0x9db2[2]][_0x9db2[9]](_0xdfccx3.DeskField,{as:_0x9db2[7],foreignKey:_0x9db2[8]});_0xdfccx3[_0x9db2[2]][_0x9db2[9]](_0xdfccx3.DeskField,{as:_0x9db2[10],foreignKey:_0x9db2[11]});_0xdfccx3[_0x9db2[2]][_0x9db2[9]](_0xdfccx3.DeskField,{as:_0x9db2[12],foreignKey:_0x9db2[13]});}})};
\ No newline at end of file
-var _0x59dd=["\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"];_0x59dd[0];module[_0x59dd[1]]=function(_0x5da1x1,_0x5da1x2){return _0x5da1x1[_0x59dd[10]](_0x59dd[2],{type:{type:_0x5da1x2.ENUM(_0x59dd[3],_0x59dd[4],_0x59dd[5]),defaultValue:_0x59dd[3]},content:_0x5da1x2[_0x59dd[6]],key:_0x5da1x2[_0x59dd[6]],keyType:{type:_0x5da1x2.ENUM(_0x59dd[3],_0x59dd[4])},keyContent:_0x5da1x2[_0x59dd[6]],idField:_0x5da1x2[_0x59dd[6]],customField:{type:_0x5da1x2[_0x59dd[7]],defaultValue:true}},{tableName:_0x59dd[8],associate:function(_0x5da1x3){_0x5da1x3[_0x59dd[2]][_0x59dd[9]](_0x5da1x3.Variable)}})};
\ No newline at end of file
+var _0x956e=["\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"];_0x956e[0];module[_0x956e[1]]=function(_0x6ff3x1,_0x6ff3x2){return _0x6ff3x1[_0x956e[10]](_0x956e[2],{type:{type:_0x6ff3x2.ENUM(_0x956e[3],_0x956e[4],_0x956e[5]),defaultValue:_0x956e[3]},content:_0x6ff3x2[_0x956e[6]],key:_0x6ff3x2[_0x956e[6]],keyType:{type:_0x6ff3x2.ENUM(_0x956e[3],_0x956e[4])},keyContent:_0x6ff3x2[_0x956e[6]],idField:_0x6ff3x2[_0x956e[6]],customField:{type:_0x6ff3x2[_0x956e[7]],defaultValue:true}},{tableName:_0x956e[8],associate:function(_0x6ff3x3){_0x6ff3x3[_0x956e[2]][_0x956e[9]](_0x6ff3x3.Variable)}})};
\ No newline at end of file
-var _0x8462=["\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[_0x8462[0]]=function(_0xc244x1,_0xc244x2){var _0xc244x3=_0xc244x1[_0x8462[14]](_0x8462[1],{name:{type:_0xc244x2.ENUM(_0x8462[2],_0x8462[3],_0x8462[4],_0x8462[5],_0x8462[6])},channel:{type:_0xc244x2.ENUM(_0x8462[7],_0x8462[8],_0x8462[9],_0x8462[10])},timeout:{type:_0xc244x2[_0x8462[11]]},holdtime:{type:_0xc244x2[_0x8462[11]]}},{tableName:_0x8462[12],associate:function(_0xc244x4){_0xc244x3[_0x8462[13]](_0xc244x4.User);_0xc244x3[_0x8462[13]](_0xc244x4.MailRoom);_0xc244x3[_0x8462[13]](_0xc244x4.MailMessage);_0xc244x3[_0x8462[13]](_0xc244x4.MailQueue);_0xc244x3[_0x8462[13]](_0xc244x4.MailAccount);_0xc244x3[_0x8462[13]](_0xc244x4.MailApplication);_0xc244x3[_0x8462[13]](_0xc244x4.FaxRoom);_0xc244x3[_0x8462[13]](_0xc244x4.FaxQueue);_0xc244x3[_0x8462[13]](_0xc244x4.FaxAccount);_0xc244x3[_0x8462[13]](_0xc244x4.FaxApplication);_0xc244x3[_0x8462[13]](_0xc244x4.ChatRoom);_0xc244x3[_0x8462[13]](_0xc244x4.ChatQueue);_0xc244x3[_0x8462[13]](_0xc244x4.ChatWebsite);_0xc244x3[_0x8462[13]](_0xc244x4.ChatApplication);}});return _0xc244x3;};
\ No newline at end of file
+var _0x1f9d=["\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[_0x1f9d[0]]=function(_0x8fddx1,_0x8fddx2){var _0x8fddx3=_0x8fddx1[_0x1f9d[14]](_0x1f9d[1],{name:{type:_0x8fddx2.ENUM(_0x1f9d[2],_0x1f9d[3],_0x1f9d[4],_0x1f9d[5],_0x1f9d[6])},channel:{type:_0x8fddx2.ENUM(_0x1f9d[7],_0x1f9d[8],_0x1f9d[9],_0x1f9d[10])},timeout:{type:_0x8fddx2[_0x1f9d[11]]},holdtime:{type:_0x8fddx2[_0x1f9d[11]]}},{tableName:_0x1f9d[12],associate:function(_0x8fddx4){_0x8fddx3[_0x1f9d[13]](_0x8fddx4.User);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.MailRoom);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.MailMessage);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.MailQueue);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.MailAccount);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.MailApplication);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.FaxRoom);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.FaxQueue);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.FaxAccount);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.FaxApplication);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.ChatRoom);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.ChatQueue);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.ChatWebsite);_0x8fddx3[_0x1f9d[13]](_0x8fddx4.ChatApplication);}});return _0x8fddx3;};
\ No newline at end of file
-var _0xa07a=["\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(_0xa07a[0]);module[_0xa07a[1]]=function(_0x3578x2,_0x3578x3){var _0x3578x4=_0x3578x2[_0xa07a[11]](_0xa07a[2],{description:_0x3578x3[_0xa07a[3]],name:_0x3578x3[_0xa07a[3]],phone:{type:_0x3578x3[_0xa07a[3]],unique:true},ecm:{type:_0x3578x3[_0xa07a[4]],defaultValue:false},faxheader:_0x3578x3[_0xa07a[3]],localid:_0x3578x3[_0xa07a[3]],maxrate:{type:_0x3578x3.ENUM(_0xa07a[5],_0xa07a[6],_0xa07a[7]),defaultValue:_0xa07a[7]},minrate:{type:_0x3578x3.ENUM(_0xa07a[5],_0xa07a[6],_0xa07a[7]),defaultValue:_0xa07a[5]}},{tableName:_0xa07a[8],associate:function(_0x3578x5){_0x3578x4[_0xa07a[9]](_0x3578x5.Trunk);_0x3578x4[_0xa07a[10]](_0x3578x5.FaxRoom);_0x3578x4[_0xa07a[10]](_0x3578x5.FaxApplication);}});return _0x3578x4;};
\ No newline at end of file
+var _0xbae7=["\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(_0xbae7[0]);module[_0xbae7[1]]=function(_0xde48x2,_0xde48x3){var _0xde48x4=_0xde48x2[_0xbae7[11]](_0xbae7[2],{description:_0xde48x3[_0xbae7[3]],name:_0xde48x3[_0xbae7[3]],phone:{type:_0xde48x3[_0xbae7[3]],unique:true},ecm:{type:_0xde48x3[_0xbae7[4]],defaultValue:false},faxheader:_0xde48x3[_0xbae7[3]],localid:_0xde48x3[_0xbae7[3]],maxrate:{type:_0xde48x3.ENUM(_0xbae7[5],_0xbae7[6],_0xbae7[7]),defaultValue:_0xbae7[7]},minrate:{type:_0xde48x3.ENUM(_0xbae7[5],_0xbae7[6],_0xbae7[7]),defaultValue:_0xbae7[5]}},{tableName:_0xbae7[8],associate:function(_0xde48x5){_0xde48x4[_0xbae7[9]](_0xde48x5.Trunk);_0xde48x4[_0xbae7[10]](_0xde48x5.FaxRoom);_0xde48x4[_0xbae7[10]](_0xde48x5.FaxApplication);}});return _0xde48x4;};
\ No newline at end of file
-var _0xef0c=["\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"];_0xef0c[0];module[_0xef0c[1]]=function(_0xfc0ax1,_0xfc0ax2){var _0xfc0ax3=_0xfc0ax1[_0xef0c[10]](_0xef0c[2],{app:{type:_0xfc0ax2.ENUM(_0xef0c[3],_0xef0c[4])},appdata:{type:_0xfc0ax2[_0xef0c[5]]},priority:{type:_0xfc0ax2[_0xef0c[5]]},timeout:{type:_0xfc0ax2[_0xef0c[5]]},interval:{type:_0xfc0ax2[_0xef0c[6]],defaultValue:_0xef0c[7]}},{tableName:_0xef0c[8],associate:function(_0xfc0ax4){_0xfc0ax3[_0xef0c[9]](_0xfc0ax4.FaxAccount);_0xfc0ax3[_0xef0c[9]](_0xfc0ax4.FaxQueue);_0xfc0ax3[_0xef0c[9]](_0xfc0ax4.User);}});return _0xfc0ax3;};
\ No newline at end of file
+var _0x1b88=["\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"];_0x1b88[0];module[_0x1b88[1]]=function(_0x9cdex1,_0x9cdex2){var _0x9cdex3=_0x9cdex1[_0x1b88[10]](_0x1b88[2],{app:{type:_0x9cdex2.ENUM(_0x1b88[3],_0x1b88[4])},appdata:{type:_0x9cdex2[_0x1b88[5]]},priority:{type:_0x9cdex2[_0x1b88[5]]},timeout:{type:_0x9cdex2[_0x1b88[5]]},interval:{type:_0x9cdex2[_0x1b88[6]],defaultValue:_0x1b88[7]}},{tableName:_0x1b88[8],associate:function(_0x9cdex4){_0x9cdex3[_0x1b88[9]](_0x9cdex4.FaxAccount);_0x9cdex3[_0x1b88[9]](_0x9cdex4.FaxQueue);_0x9cdex3[_0x1b88[9]](_0x9cdex4.User);}});return _0x9cdex3;};
\ No newline at end of file
-var _0x7d28=["\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(_0x7d28[0]);module[_0x7d28[1]]=function(_0x9777x2,_0x9777x3){var _0x9777x4=_0x9777x2[_0x7d28[8]](_0x7d28[2],{name:{type:_0x9777x3[_0x7d28[3]]},description:{type:_0x9777x3[_0x7d28[3]]},status:{type:_0x9777x3[_0x7d28[4]],defaultValue:false},jobId:{type:_0x9777x3[_0x7d28[5]]}},{tableName:_0x7d28[6],associate:function(_0x9777x5){_0x9777x4[_0x7d28[7]](_0x9777x5.BusinessAction);_0x9777x4[_0x7d28[7]](_0x9777x5.BusinessCondition);}});return _0x9777x4;};
\ No newline at end of file
+var _0x78c2=["\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(_0x78c2[0]);module[_0x78c2[1]]=function(_0x78c3x2,_0x78c3x3){var _0x78c3x4=_0x78c3x2[_0x78c2[8]](_0x78c2[2],{name:{type:_0x78c3x3[_0x78c2[3]]},description:{type:_0x78c3x3[_0x78c2[3]]},status:{type:_0x78c3x3[_0x78c2[4]],defaultValue:false},jobId:{type:_0x78c3x3[_0x78c2[5]]}},{tableName:_0x78c2[6],associate:function(_0x78c3x5){_0x78c3x4[_0x78c2[7]](_0x78c3x5.BusinessAction);_0x78c3x4[_0x78c2[7]](_0x78c3x5.BusinessCondition);}});return _0x78c3x4;};
\ No newline at end of file
-var _0xda53=["\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(_0xda53[0]);module[_0xda53[1]]=function(_0x5e13x2,_0x5e13x3){var _0x5e13x4=_0x5e13x2[_0xda53[16]](_0xda53[2],{actionid:_0x5e13x3[_0xda53[3]],channel:_0x5e13x3[_0xda53[3]],channelstate:_0x5e13x3[_0xda53[4]],channelstatedesc:_0x5e13x3[_0xda53[3]],calleridnum:_0x5e13x3[_0xda53[3]],calleridname:_0x5e13x3[_0xda53[3]],connectedlinenum:_0x5e13x3[_0xda53[3]],connectedlinename:_0x5e13x3[_0xda53[3]],status:{type:_0x5e13x3.ENUM(_0xda53[5],_0xda53[6],_0xda53[7],_0xda53[8],_0xda53[9]),allowNull:true},read:{type:_0x5e13x3[_0xda53[10]],defaultValue:false},favorite:{type:_0x5e13x3[_0xda53[10]],defaultValue:false},language:_0x5e13x3[_0xda53[3]],accountcode:_0x5e13x3[_0xda53[3]],context:_0x5e13x3[_0xda53[3]],exten:_0x5e13x3[_0xda53[3]],priority:_0x5e13x3[_0xda53[4]],uniqueid:_0x5e13x3[_0xda53[3]],localstationid:_0x5e13x3[_0xda53[3]],remotestationid:_0x5e13x3[_0xda53[3]],pagestransferred:_0x5e13x3[_0xda53[4]],resolution:_0x5e13x3[_0xda53[3]],transferrate:_0x5e13x3[_0xda53[3]],filename:_0x5e13x3[_0xda53[3]],filenamePDF:_0x5e13x3[_0xda53[3]],operation:_0x5e13x3[_0xda53[3]],uuid:_0x5e13x3[_0xda53[3]],laststatus:_0x5e13x3[_0xda53[3]],error:_0x5e13x3[_0xda53[3]],body:_0x5e13x3[_0xda53[11]]},{tableName:_0xda53[12],associate:function(_0x5e13x5){_0x5e13x4[_0xda53[13]](_0x5e13x5.FaxRoom);_0x5e13x4[_0xda53[13]](_0x5e13x5.Contact,{as:_0xda53[14]});_0x5e13x4[_0xda53[13]](_0x5e13x5.Contact,{as:_0xda53[15]});}});return _0x5e13x4;};
\ No newline at end of file
+var _0x5315=["\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(_0x5315[0]);module[_0x5315[1]]=function(_0x7a33x2,_0x7a33x3){var _0x7a33x4=_0x7a33x2[_0x5315[16]](_0x5315[2],{actionid:_0x7a33x3[_0x5315[3]],channel:_0x7a33x3[_0x5315[3]],channelstate:_0x7a33x3[_0x5315[4]],channelstatedesc:_0x7a33x3[_0x5315[3]],calleridnum:_0x7a33x3[_0x5315[3]],calleridname:_0x7a33x3[_0x5315[3]],connectedlinenum:_0x7a33x3[_0x5315[3]],connectedlinename:_0x7a33x3[_0x5315[3]],status:{type:_0x7a33x3.ENUM(_0x5315[5],_0x5315[6],_0x5315[7],_0x5315[8],_0x5315[9]),allowNull:true},read:{type:_0x7a33x3[_0x5315[10]],defaultValue:false},favorite:{type:_0x7a33x3[_0x5315[10]],defaultValue:false},language:_0x7a33x3[_0x5315[3]],accountcode:_0x7a33x3[_0x5315[3]],context:_0x7a33x3[_0x5315[3]],exten:_0x7a33x3[_0x5315[3]],priority:_0x7a33x3[_0x5315[4]],uniqueid:_0x7a33x3[_0x5315[3]],localstationid:_0x7a33x3[_0x5315[3]],remotestationid:_0x7a33x3[_0x5315[3]],pagestransferred:_0x7a33x3[_0x5315[4]],resolution:_0x7a33x3[_0x5315[3]],transferrate:_0x7a33x3[_0x5315[3]],filename:_0x7a33x3[_0x5315[3]],filenamePDF:_0x7a33x3[_0x5315[3]],operation:_0x7a33x3[_0x5315[3]],uuid:_0x7a33x3[_0x5315[3]],laststatus:_0x7a33x3[_0x5315[3]],error:_0x7a33x3[_0x5315[3]],body:_0x7a33x3[_0x5315[11]]},{tableName:_0x5315[12],associate:function(_0x7a33x5){_0x7a33x4[_0x5315[13]](_0x7a33x5.FaxRoom);_0x7a33x4[_0x5315[13]](_0x7a33x5.Contact,{as:_0x5315[14]});_0x7a33x4[_0x5315[13]](_0x7a33x5.Contact,{as:_0x5315[15]});}});return _0x7a33x4;};
\ No newline at end of file
-var _0x68d3=["\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"];_0x68d3[0];module[_0x68d3[1]]=function(_0xea4cx1,_0xea4cx2){var _0xea4cx3=_0xea4cx1[_0x68d3[10]](_0x68d3[2],{name:{type:_0xea4cx2[_0x68d3[3]],unique:true},description:{type:_0xea4cx2[_0x68d3[3]]},timeout:{type:_0xea4cx2[_0x68d3[4]]},strategy:{type:_0xea4cx2.ENUM(_0x68d3[5],_0x68d3[6])}},{tableName:_0x68d3[7],associate:function(_0xea4cx4){_0xea4cx3[_0x68d3[9]](_0xea4cx4.User,{hooks:true,through:_0xea4cx4[_0x68d3[8]]})}});return _0xea4cx3;};
\ No newline at end of file
+var _0x27aa=["\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"];_0x27aa[0];module[_0x27aa[1]]=function(_0xafa8x1,_0xafa8x2){var _0xafa8x3=_0xafa8x1[_0x27aa[10]](_0x27aa[2],{name:{type:_0xafa8x2[_0x27aa[3]],unique:true},description:{type:_0xafa8x2[_0x27aa[3]]},timeout:{type:_0xafa8x2[_0x27aa[4]]},strategy:{type:_0xafa8x2.ENUM(_0x27aa[5],_0x27aa[6])}},{tableName:_0x27aa[7],associate:function(_0xafa8x4){_0xafa8x3[_0x27aa[9]](_0xafa8x4.User,{hooks:true,through:_0xafa8x4[_0x27aa[8]]})}});return _0xafa8x3;};
\ No newline at end of file
-var _0x5f77=["\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(_0x5f77[0]);module[_0x5f77[1]]=function(_0x90e8x2,_0x90e8x3){var _0x90e8x4=_0x90e8x2[_0x5f77[12]](_0x5f77[2],{roomId:_0x90e8x3[_0x5f77[3]],from:_0x90e8x3[_0x5f77[3]],status:_0x90e8x3.ENUM(_0x5f77[4],_0x5f77[5],_0x5f77[6],_0x5f77[7],_0x5f77[8])},{tableName:_0x5f77[9],associate:function(_0x90e8x5){_0x90e8x4[_0x5f77[10]](_0x90e8x5.FaxMessage);_0x90e8x4[_0x5f77[11]](_0x90e8x5.FaxAccount);_0x90e8x4[_0x5f77[11]](_0x90e8x5.User);}});return _0x90e8x4;};
\ No newline at end of file
+var _0xb6e6=["\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(_0xb6e6[0]);module[_0xb6e6[1]]=function(_0x7ffax2,_0x7ffax3){var _0x7ffax4=_0x7ffax2[_0xb6e6[12]](_0xb6e6[2],{roomId:_0x7ffax3[_0xb6e6[3]],from:_0x7ffax3[_0xb6e6[3]],status:_0x7ffax3.ENUM(_0xb6e6[4],_0xb6e6[5],_0xb6e6[6],_0xb6e6[7],_0xb6e6[8])},{tableName:_0xb6e6[9],associate:function(_0x7ffax5){_0x7ffax4[_0xb6e6[10]](_0x7ffax5.FaxMessage);_0x7ffax4[_0xb6e6[11]](_0x7ffax5.FaxAccount);_0x7ffax4[_0xb6e6[11]](_0x7ffax5.User);}});return _0x7ffax4;};
\ No newline at end of file
-var _0x8aa2=["\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"];_0x8aa2[0];module[_0x8aa2[1]]=function(_0x5d48x1,_0x5d48x2){return _0x5d48x1[_0x8aa2[7]](_0x8aa2[2],{name:_0x5d48x2[_0x8aa2[3]],description:_0x5d48x2[_0x8aa2[3]],username:{type:_0x5d48x2[_0x8aa2[3]],unique:true},remoteUri:{type:_0x5d48x2[_0x8aa2[3]],unique:true},apiKey:_0x5d48x2[_0x8aa2[3]]},{tableName:_0x8aa2[4],associate:function(_0x5d48x3){_0x5d48x3[_0x8aa2[2]][_0x8aa2[6]](_0x5d48x3.FreshdeskConfiguration,{foreignKey:_0x8aa2[5]})}})};
\ No newline at end of file
+var _0x7102=["\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"];_0x7102[0];module[_0x7102[1]]=function(_0x4bccx1,_0x4bccx2){return _0x4bccx1[_0x7102[7]](_0x7102[2],{name:_0x4bccx2[_0x7102[3]],description:_0x4bccx2[_0x7102[3]],username:{type:_0x4bccx2[_0x7102[3]],unique:true},remoteUri:{type:_0x4bccx2[_0x7102[3]],unique:true},apiKey:_0x4bccx2[_0x7102[3]]},{tableName:_0x7102[4],associate:function(_0x4bccx3){_0x4bccx3[_0x7102[2]][_0x7102[6]](_0x4bccx3.FreshdeskConfiguration,{foreignKey:_0x7102[5]})}})};
\ No newline at end of file
-var _0xc489=["\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"];_0xc489[0];module[_0xc489[1]]=function(_0x8428x1,_0x8428x2){return _0x8428x1[_0xc489[14]](_0xc489[2],{name:_0x8428x2[_0xc489[3]],description:_0x8428x2[_0xc489[3]]},{tableName:_0xc489[4],associate:function(_0x8428x3){_0x8428x3[_0xc489[2]][_0xc489[6]](_0x8428x3.FreshdeskAccount,{foreignKey:_0xc489[5]});_0x8428x3[_0xc489[2]][_0xc489[9]](_0x8428x3.FreshdeskField,{as:_0xc489[7],foreignKey:_0xc489[8]});_0x8428x3[_0xc489[2]][_0xc489[9]](_0x8428x3.FreshdeskField,{as:_0xc489[10],foreignKey:_0xc489[11]});_0x8428x3[_0xc489[2]][_0xc489[9]](_0x8428x3.FreshdeskField,{as:_0xc489[12],foreignKey:_0xc489[13]});}})};
\ No newline at end of file
+var _0x215d=["\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"];_0x215d[0];module[_0x215d[1]]=function(_0x68e8x1,_0x68e8x2){return _0x68e8x1[_0x215d[14]](_0x215d[2],{name:_0x68e8x2[_0x215d[3]],description:_0x68e8x2[_0x215d[3]]},{tableName:_0x215d[4],associate:function(_0x68e8x3){_0x68e8x3[_0x215d[2]][_0x215d[6]](_0x68e8x3.FreshdeskAccount,{foreignKey:_0x215d[5]});_0x68e8x3[_0x215d[2]][_0x215d[9]](_0x68e8x3.FreshdeskField,{as:_0x215d[7],foreignKey:_0x215d[8]});_0x68e8x3[_0x215d[2]][_0x215d[9]](_0x68e8x3.FreshdeskField,{as:_0x215d[10],foreignKey:_0x215d[11]});_0x68e8x3[_0x215d[2]][_0x215d[9]](_0x68e8x3.FreshdeskField,{as:_0x215d[12],foreignKey:_0x215d[13]});}})};
\ No newline at end of file
-var _0xc11f=["\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"];_0xc11f[0];module[_0xc11f[1]]=function(_0xdcf9x1,_0xdcf9x2){return _0xdcf9x1[_0xc11f[10]](_0xc11f[2],{type:{type:_0xdcf9x2.ENUM(_0xc11f[3],_0xc11f[4],_0xc11f[5]),defaultValue:_0xc11f[3]},content:_0xdcf9x2[_0xc11f[6]],key:_0xdcf9x2[_0xc11f[6]],keyType:{type:_0xdcf9x2.ENUM(_0xc11f[3],_0xc11f[4])},keyContent:_0xdcf9x2[_0xc11f[6]],idField:_0xdcf9x2[_0xc11f[6]],customField:{type:_0xdcf9x2[_0xc11f[7]],defaultValue:true}},{tableName:_0xc11f[8],associate:function(_0xdcf9x3){_0xdcf9x3[_0xc11f[2]][_0xc11f[9]](_0xdcf9x3.Variable)}})};
\ No newline at end of file
+var _0x4fea=["\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"];_0x4fea[0];module[_0x4fea[1]]=function(_0xa61cx1,_0xa61cx2){return _0xa61cx1[_0x4fea[10]](_0x4fea[2],{type:{type:_0xa61cx2.ENUM(_0x4fea[3],_0x4fea[4],_0x4fea[5]),defaultValue:_0x4fea[3]},content:_0xa61cx2[_0x4fea[6]],key:_0xa61cx2[_0x4fea[6]],keyType:{type:_0xa61cx2.ENUM(_0x4fea[3],_0x4fea[4])},keyContent:_0xa61cx2[_0x4fea[6]],idField:_0xa61cx2[_0x4fea[6]],customField:{type:_0xa61cx2[_0x4fea[7]],defaultValue:true}},{tableName:_0x4fea[8],associate:function(_0xa61cx3){_0xa61cx3[_0x4fea[2]][_0x4fea[9]](_0xa61cx3.Variable)}})};
\ No newline at end of file
-var _0x7374=["\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[_0x7374[0]]=function(_0x3637x1,_0x3637x2){var _0x3637x3=_0x3637x1[_0x7374[7]](_0x7374[1],{uniqueid:_0x3637x2[_0x7374[2]],calleridnum:_0x3637x2[_0x7374[2]],calleridname:_0x3637x2[_0x7374[2]],queue:_0x3637x2[_0x7374[2]],interface:_0x3637x2[_0x7374[2]],membername:_0x3637x2[_0x7374[2]],agentcalledAt:_0x3637x2[_0x7374[3]],agentconnectAt:_0x3637x2[_0x7374[3]],holdtime:_0x3637x2[_0x7374[4]],agentcomplete:{type:_0x3637x2[_0x7374[5]],defaultValue:false},agentcompleteAt:_0x3637x2[_0x7374[3]],talktime:_0x3637x2[_0x7374[4]],agentacw:{type:_0x3637x2[_0x7374[5]],defaultValue:false},acwtime:_0x3637x2[_0x7374[4]],reason:_0x3637x2[_0x7374[2]],agentringnoanswer:{type:_0x3637x2[_0x7374[5]],defaultValue:false},agentringnoanswerAt:_0x3637x2[_0x7374[3]],agentdump:{type:_0x3637x2[_0x7374[5]],defaultValue:false},agentdumpAt:_0x3637x2[_0x7374[3]],channel:_0x3637x2[_0x7374[2]],channelstate:_0x3637x2[_0x7374[4]],channelstatedesc:_0x3637x2[_0x7374[2]],connectedlinenum:_0x3637x2[_0x7374[2]],connectedlinename:_0x3637x2[_0x7374[2]],language:_0x3637x2[_0x7374[2]],accountcode:_0x3637x2[_0x7374[2]],context:_0x3637x2[_0x7374[2]],exten:_0x3637x2[_0x7374[2]],priority:_0x3637x2[_0x7374[2]],destchannel:_0x3637x2[_0x7374[2]],destchannelstate:_0x3637x2[_0x7374[4]],destchannelstatedesc:_0x3637x2[_0x7374[2]],destcalleridnum:_0x3637x2[_0x7374[2]],destcalleridname:_0x3637x2[_0x7374[2]],destconnectedlinenum:_0x3637x2[_0x7374[2]],destconnectedlinename:_0x3637x2[_0x7374[2]],destlanguage:_0x3637x2[_0x7374[2]],destaccountcode:_0x3637x2[_0x7374[2]],destcontext:_0x3637x2[_0x7374[2]],destexten:_0x3637x2[_0x7374[2]],destpriority:_0x3637x2[_0x7374[2]],destuniqueid:_0x3637x2[_0x7374[2]]},{tableName:_0x7374[6]});_0x3637x3[_0x7374[9]](_0x7374[8]);return _0x3637x3;};
\ No newline at end of file
+var _0xdce6=["\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[_0xdce6[0]]=function(_0x1b4ax1,_0x1b4ax2){var _0x1b4ax3=_0x1b4ax1[_0xdce6[7]](_0xdce6[1],{uniqueid:_0x1b4ax2[_0xdce6[2]],calleridnum:_0x1b4ax2[_0xdce6[2]],calleridname:_0x1b4ax2[_0xdce6[2]],queue:_0x1b4ax2[_0xdce6[2]],interface:_0x1b4ax2[_0xdce6[2]],membername:_0x1b4ax2[_0xdce6[2]],agentcalledAt:_0x1b4ax2[_0xdce6[3]],agentconnectAt:_0x1b4ax2[_0xdce6[3]],holdtime:_0x1b4ax2[_0xdce6[4]],agentcomplete:{type:_0x1b4ax2[_0xdce6[5]],defaultValue:false},agentcompleteAt:_0x1b4ax2[_0xdce6[3]],talktime:_0x1b4ax2[_0xdce6[4]],agentacw:{type:_0x1b4ax2[_0xdce6[5]],defaultValue:false},acwtime:_0x1b4ax2[_0xdce6[4]],reason:_0x1b4ax2[_0xdce6[2]],agentringnoanswer:{type:_0x1b4ax2[_0xdce6[5]],defaultValue:false},agentringnoanswerAt:_0x1b4ax2[_0xdce6[3]],agentdump:{type:_0x1b4ax2[_0xdce6[5]],defaultValue:false},agentdumpAt:_0x1b4ax2[_0xdce6[3]],channel:_0x1b4ax2[_0xdce6[2]],channelstate:_0x1b4ax2[_0xdce6[4]],channelstatedesc:_0x1b4ax2[_0xdce6[2]],connectedlinenum:_0x1b4ax2[_0xdce6[2]],connectedlinename:_0x1b4ax2[_0xdce6[2]],language:_0x1b4ax2[_0xdce6[2]],accountcode:_0x1b4ax2[_0xdce6[2]],context:_0x1b4ax2[_0xdce6[2]],exten:_0x1b4ax2[_0xdce6[2]],priority:_0x1b4ax2[_0xdce6[2]],destchannel:_0x1b4ax2[_0xdce6[2]],destchannelstate:_0x1b4ax2[_0xdce6[4]],destchannelstatedesc:_0x1b4ax2[_0xdce6[2]],destcalleridnum:_0x1b4ax2[_0xdce6[2]],destcalleridname:_0x1b4ax2[_0xdce6[2]],destconnectedlinenum:_0x1b4ax2[_0xdce6[2]],destconnectedlinename:_0x1b4ax2[_0xdce6[2]],destlanguage:_0x1b4ax2[_0xdce6[2]],destaccountcode:_0x1b4ax2[_0xdce6[2]],destcontext:_0x1b4ax2[_0xdce6[2]],destexten:_0x1b4ax2[_0xdce6[2]],destpriority:_0x1b4ax2[_0xdce6[2]],destuniqueid:_0x1b4ax2[_0xdce6[2]]},{tableName:_0xdce6[6]});_0x1b4ax3[_0xdce6[9]](_0xdce6[8]);return _0x1b4ax3;};
\ No newline at end of file
-var _0x5b09=["\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[_0x5b09[0]]=function(_0x1a92x1,_0x1a92x2){var _0x1a92x3=_0x1a92x1[_0x5b09[13]](_0x5b09[1],{accountcode:_0x1a92x2[_0x5b09[2]],source:_0x1a92x2[_0x5b09[2]],destination:_0x1a92x2[_0x5b09[2]],destinationcontext:_0x1a92x2[_0x5b09[2]],callerid:_0x1a92x2[_0x5b09[2]],channel:_0x1a92x2[_0x5b09[2]],destinationchannel:_0x1a92x2[_0x5b09[2]],lastapplication:_0x1a92x2[_0x5b09[2]],lastdata:_0x1a92x2[_0x5b09[2]],starttime:_0x1a92x2[_0x5b09[3]],answertime:{type:_0x1a92x2[_0x5b09[3]],set:function(_0x1a92x4){if(_0x1a92x4!==_0x5b09[4]){this[_0x5b09[6]](_0x5b09[5],_0x1a92x4)}else {this[_0x5b09[6]](_0x5b09[5],null)}}},endtime:_0x1a92x2[_0x5b09[3]],duration:_0x1a92x2[_0x5b09[7]],billableseconds:_0x1a92x2[_0x5b09[7]],disposition:_0x1a92x2[_0x5b09[2]],amaflags:_0x1a92x2[_0x5b09[2]],uniqueid:{type:_0x1a92x2[_0x5b09[2]],primaryKey:true},userfield:_0x1a92x2[_0x5b09[2]]},{tableName:_0x5b09[8],associate:function(_0x1a92x5){_0x1a92x3[_0x5b09[11]](_0x1a92x5.ReportQueueHistory,{as:_0x5b09[9],foreignKey:_0x5b09[10],constraints:false});_0x1a92x3[_0x5b09[11]](_0x1a92x5.ReportAgentHistory,{as:_0x5b09[12],foreignKey:_0x5b09[10],constraints:false});}});_0x1a92x3[_0x5b09[15]](_0x5b09[14]);return _0x1a92x3;};
\ No newline at end of file
+var _0x376a=["\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[_0x376a[0]]=function(_0x35bax1,_0x35bax2){var _0x35bax3=_0x35bax1[_0x376a[13]](_0x376a[1],{accountcode:_0x35bax2[_0x376a[2]],source:_0x35bax2[_0x376a[2]],destination:_0x35bax2[_0x376a[2]],destinationcontext:_0x35bax2[_0x376a[2]],callerid:_0x35bax2[_0x376a[2]],channel:_0x35bax2[_0x376a[2]],destinationchannel:_0x35bax2[_0x376a[2]],lastapplication:_0x35bax2[_0x376a[2]],lastdata:_0x35bax2[_0x376a[2]],starttime:_0x35bax2[_0x376a[3]],answertime:{type:_0x35bax2[_0x376a[3]],set:function(_0x35bax4){if(_0x35bax4!==_0x376a[4]){this[_0x376a[6]](_0x376a[5],_0x35bax4)}else {this[_0x376a[6]](_0x376a[5],null)}}},endtime:_0x35bax2[_0x376a[3]],duration:_0x35bax2[_0x376a[7]],billableseconds:_0x35bax2[_0x376a[7]],disposition:_0x35bax2[_0x376a[2]],amaflags:_0x35bax2[_0x376a[2]],uniqueid:{type:_0x35bax2[_0x376a[2]],primaryKey:true},userfield:_0x35bax2[_0x376a[2]]},{tableName:_0x376a[8],associate:function(_0x35bax5){_0x35bax3[_0x376a[11]](_0x35bax5.ReportQueueHistory,{as:_0x376a[9],foreignKey:_0x376a[10],constraints:false});_0x35bax3[_0x376a[11]](_0x35bax5.ReportAgentHistory,{as:_0x376a[12],foreignKey:_0x376a[10],constraints:false});}});_0x35bax3[_0x376a[15]](_0x376a[14]);return _0x35bax3;};
\ No newline at end of file
-var _0x175f=["\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[_0x175f[0]]=function(_0x2d0cx1,_0x2d0cx2){var _0x2d0cx3=_0x2d0cx1[_0x175f[5]](_0x175f[1],{channel:_0x2d0cx2[_0x175f[2]],channelstate:_0x2d0cx2[_0x175f[3]],channelstatedesc:_0x2d0cx2[_0x175f[2]],calleridnum:_0x2d0cx2[_0x175f[2]],calleridname:_0x2d0cx2[_0x175f[2]],connectedlinenum:_0x2d0cx2[_0x175f[2]],connectedlinename:_0x2d0cx2[_0x175f[2]],language:_0x2d0cx2[_0x175f[2]],accountcode:_0x2d0cx2[_0x175f[2]],context:_0x2d0cx2[_0x175f[2]],exten:_0x2d0cx2[_0x175f[2]],priority:_0x2d0cx2[_0x175f[3]],uniqueid:_0x2d0cx2[_0x175f[2]],destchannel:_0x2d0cx2[_0x175f[2]],destchannelstate:_0x2d0cx2[_0x175f[3]],destchannelstatedesc:_0x2d0cx2[_0x175f[2]],destcalleridnum:_0x2d0cx2[_0x175f[2]],destcalleridname:_0x2d0cx2[_0x175f[2]],destconnectedlinenum:_0x2d0cx2[_0x175f[2]],destconnectedlinename:_0x2d0cx2[_0x175f[2]],destlanguage:_0x2d0cx2[_0x175f[2]],destaccountcode:_0x2d0cx2[_0x175f[2]],destcontext:_0x2d0cx2[_0x175f[2]],destexten:_0x2d0cx2[_0x175f[2]],destpriority:_0x2d0cx2[_0x175f[3]],destuniqueid:_0x2d0cx2[_0x175f[2]],dialstring:_0x2d0cx2[_0x175f[2]],dialstatus:_0x2d0cx2[_0x175f[2]]},{tableName:_0x175f[4]});_0x2d0cx3[_0x175f[7]](_0x175f[6]);return _0x2d0cx3;};
\ No newline at end of file
+var _0xf02f=["\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[_0xf02f[0]]=function(_0x14e9x1,_0x14e9x2){var _0x14e9x3=_0x14e9x1[_0xf02f[5]](_0xf02f[1],{channel:_0x14e9x2[_0xf02f[2]],channelstate:_0x14e9x2[_0xf02f[3]],channelstatedesc:_0x14e9x2[_0xf02f[2]],calleridnum:_0x14e9x2[_0xf02f[2]],calleridname:_0x14e9x2[_0xf02f[2]],connectedlinenum:_0x14e9x2[_0xf02f[2]],connectedlinename:_0x14e9x2[_0xf02f[2]],language:_0x14e9x2[_0xf02f[2]],accountcode:_0x14e9x2[_0xf02f[2]],context:_0x14e9x2[_0xf02f[2]],exten:_0x14e9x2[_0xf02f[2]],priority:_0x14e9x2[_0xf02f[3]],uniqueid:_0x14e9x2[_0xf02f[2]],destchannel:_0x14e9x2[_0xf02f[2]],destchannelstate:_0x14e9x2[_0xf02f[3]],destchannelstatedesc:_0x14e9x2[_0xf02f[2]],destcalleridnum:_0x14e9x2[_0xf02f[2]],destcalleridname:_0x14e9x2[_0xf02f[2]],destconnectedlinenum:_0x14e9x2[_0xf02f[2]],destconnectedlinename:_0x14e9x2[_0xf02f[2]],destlanguage:_0x14e9x2[_0xf02f[2]],destaccountcode:_0x14e9x2[_0xf02f[2]],destcontext:_0x14e9x2[_0xf02f[2]],destexten:_0x14e9x2[_0xf02f[2]],destpriority:_0x14e9x2[_0xf02f[3]],destuniqueid:_0x14e9x2[_0xf02f[2]],dialstring:_0x14e9x2[_0xf02f[2]],dialstatus:_0x14e9x2[_0xf02f[2]]},{tableName:_0xf02f[4]});_0x14e9x3[_0xf02f[7]](_0xf02f[6]);return _0x14e9x3;};
\ No newline at end of file
-var _0x3219=["\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[_0x3219[0]]=function(_0xe4bcx1,_0xe4bcx2){var _0xe4bcx3=_0xe4bcx1[_0x3219[12]](_0x3219[1],{integration:_0xe4bcx2[_0x3219[2]],event:_0xe4bcx2[_0x3219[2]],contacts:_0xe4bcx2[_0x3219[2]],uniqueid:_0xe4bcx2[_0x3219[2]],calleridnum:_0xe4bcx2[_0x3219[2]],calleridname:_0xe4bcx2[_0x3219[2]],queue:_0xe4bcx2[_0x3219[2]],interface:_0xe4bcx2[_0x3219[2]],membername:_0xe4bcx2[_0x3219[2]],agentcalledAt:_0xe4bcx2[_0x3219[3]],agentconnectAt:_0xe4bcx2[_0x3219[3]],holdtime:_0xe4bcx2[_0x3219[4]],agentcomplete:{type:_0xe4bcx2[_0x3219[5]],defaultValue:false},agentcompleteAt:_0xe4bcx2[_0x3219[3]],talktime:_0xe4bcx2[_0x3219[4]],agentacw:{type:_0xe4bcx2[_0x3219[5]],defaultValue:false},acwtime:_0xe4bcx2[_0x3219[4]],reason:_0xe4bcx2[_0x3219[2]],agentringnoanswer:{type:_0xe4bcx2[_0x3219[5]],defaultValue:false},agentringnoanswerAt:_0xe4bcx2[_0x3219[3]],agentdump:{type:_0xe4bcx2[_0x3219[5]],defaultValue:false},agentdumpAt:_0xe4bcx2[_0x3219[3]],lastevent:_0xe4bcx2[_0x3219[2]],channel:_0xe4bcx2[_0x3219[2]],channelstate:_0xe4bcx2[_0x3219[4]],channelstatedesc:_0xe4bcx2[_0x3219[2]],connectedlinenum:_0xe4bcx2[_0x3219[2]],connectedlinename:_0xe4bcx2[_0x3219[2]],language:_0xe4bcx2[_0x3219[2]],accountcode:_0xe4bcx2[_0x3219[2]],context:_0xe4bcx2[_0x3219[2]],exten:_0xe4bcx2[_0x3219[2]],priority:_0xe4bcx2[_0x3219[2]],destchannel:_0xe4bcx2[_0x3219[2]],destchannelstate:_0xe4bcx2[_0x3219[4]],destchannelstatedesc:_0xe4bcx2[_0x3219[2]],destcalleridnum:_0xe4bcx2[_0x3219[2]],destcalleridname:_0xe4bcx2[_0x3219[2]],destconnectedlinenum:_0xe4bcx2[_0x3219[2]],destconnectedlinename:_0xe4bcx2[_0x3219[2]],destlanguage:_0xe4bcx2[_0x3219[2]],destaccountcode:_0xe4bcx2[_0x3219[2]],destcontext:_0xe4bcx2[_0x3219[2]],destexten:_0xe4bcx2[_0x3219[2]],destpriority:_0xe4bcx2[_0x3219[2]],destuniqueid:_0xe4bcx2[_0x3219[2]],messageId:_0xe4bcx2[_0x3219[2]],inReplyTo:_0xe4bcx2[_0x3219[2]],subject:_0xe4bcx2[_0x3219[2]],from:_0xe4bcx2[_0x3219[2]],to:_0xe4bcx2[_0x3219[2]],cc:_0xe4bcx2[_0x3219[2]],attachment:_0xe4bcx2[_0x3219[6]],html:_0xe4bcx2[_0x3219[6]],text:_0xe4bcx2[_0x3219[6]],status:{type:_0xe4bcx2.ENUM(_0x3219[7],_0x3219[8],_0x3219[9],_0x3219[10])}},{tableName:_0x3219[11]});_0xe4bcx3[_0x3219[14]](_0x3219[13]);return _0xe4bcx3;};
\ No newline at end of file
+var _0xacc6=["\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[_0xacc6[0]]=function(_0xd540x1,_0xd540x2){var _0xd540x3=_0xd540x1[_0xacc6[12]](_0xacc6[1],{integration:_0xd540x2[_0xacc6[2]],event:_0xd540x2[_0xacc6[2]],contacts:_0xd540x2[_0xacc6[2]],uniqueid:_0xd540x2[_0xacc6[2]],calleridnum:_0xd540x2[_0xacc6[2]],calleridname:_0xd540x2[_0xacc6[2]],queue:_0xd540x2[_0xacc6[2]],interface:_0xd540x2[_0xacc6[2]],membername:_0xd540x2[_0xacc6[2]],agentcalledAt:_0xd540x2[_0xacc6[3]],agentconnectAt:_0xd540x2[_0xacc6[3]],holdtime:_0xd540x2[_0xacc6[4]],agentcomplete:{type:_0xd540x2[_0xacc6[5]],defaultValue:false},agentcompleteAt:_0xd540x2[_0xacc6[3]],talktime:_0xd540x2[_0xacc6[4]],agentacw:{type:_0xd540x2[_0xacc6[5]],defaultValue:false},acwtime:_0xd540x2[_0xacc6[4]],reason:_0xd540x2[_0xacc6[2]],agentringnoanswer:{type:_0xd540x2[_0xacc6[5]],defaultValue:false},agentringnoanswerAt:_0xd540x2[_0xacc6[3]],agentdump:{type:_0xd540x2[_0xacc6[5]],defaultValue:false},agentdumpAt:_0xd540x2[_0xacc6[3]],lastevent:_0xd540x2[_0xacc6[2]],channel:_0xd540x2[_0xacc6[2]],channelstate:_0xd540x2[_0xacc6[4]],channelstatedesc:_0xd540x2[_0xacc6[2]],connectedlinenum:_0xd540x2[_0xacc6[2]],connectedlinename:_0xd540x2[_0xacc6[2]],language:_0xd540x2[_0xacc6[2]],accountcode:_0xd540x2[_0xacc6[2]],context:_0xd540x2[_0xacc6[2]],exten:_0xd540x2[_0xacc6[2]],priority:_0xd540x2[_0xacc6[2]],destchannel:_0xd540x2[_0xacc6[2]],destchannelstate:_0xd540x2[_0xacc6[4]],destchannelstatedesc:_0xd540x2[_0xacc6[2]],destcalleridnum:_0xd540x2[_0xacc6[2]],destcalleridname:_0xd540x2[_0xacc6[2]],destconnectedlinenum:_0xd540x2[_0xacc6[2]],destconnectedlinename:_0xd540x2[_0xacc6[2]],destlanguage:_0xd540x2[_0xacc6[2]],destaccountcode:_0xd540x2[_0xacc6[2]],destcontext:_0xd540x2[_0xacc6[2]],destexten:_0xd540x2[_0xacc6[2]],destpriority:_0xd540x2[_0xacc6[2]],destuniqueid:_0xd540x2[_0xacc6[2]],messageId:_0xd540x2[_0xacc6[2]],inReplyTo:_0xd540x2[_0xacc6[2]],subject:_0xd540x2[_0xacc6[2]],from:_0xd540x2[_0xacc6[2]],to:_0xd540x2[_0xacc6[2]],cc:_0xd540x2[_0xacc6[2]],attachment:_0xd540x2[_0xacc6[6]],html:_0xd540x2[_0xacc6[6]],text:_0xd540x2[_0xacc6[6]],status:{type:_0xd540x2.ENUM(_0xacc6[7],_0xacc6[8],_0xacc6[9],_0xacc6[10])}},{tableName:_0xacc6[11]});_0xd540x3[_0xacc6[14]](_0xacc6[13]);return _0xd540x3;};
\ No newline at end of file
-var _0x6bef=["\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(_0x6bef[0]);module[_0x6bef[1]]=function(_0xdeb1x2,_0xdeb1x3){var _0xdeb1x4=_0xdeb1x2[_0x6bef[8]](_0x6bef[2],{uniqueid:{type:_0xdeb1x3[_0x6bef[3]]},subject:_0xdeb1x3[_0x6bef[4]],from:_0xdeb1x3[_0x6bef[4]],cc:_0xdeb1x3[_0x6bef[4]],attachment:_0xdeb1x3[_0x6bef[5]],accountname:_0xdeb1x3[_0x6bef[4]],accountaddress:_0xdeb1x3[_0x6bef[4]],fullname:_0xdeb1x3[_0x6bef[4]],membername:_0xdeb1x3[_0x6bef[4]],mailqueuename:_0xdeb1x3[_0x6bef[4]],mailjoinAt:_0xdeb1x3[_0x6bef[6]],mailleaveAt:_0xdeb1x3[_0x6bef[6]],mailunmanagedAt:_0xdeb1x3[_0x6bef[6]]},{tableName:_0x6bef[7]});_0xdeb1x4[_0x6bef[10]](_0x6bef[9]);return _0xdeb1x4;};
\ No newline at end of file
+var _0xc184=["\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(_0xc184[0]);module[_0xc184[1]]=function(_0x86e7x2,_0x86e7x3){var _0x86e7x4=_0x86e7x2[_0xc184[8]](_0xc184[2],{uniqueid:{type:_0x86e7x3[_0xc184[3]]},subject:_0x86e7x3[_0xc184[4]],from:_0x86e7x3[_0xc184[4]],cc:_0x86e7x3[_0xc184[4]],attachment:_0x86e7x3[_0xc184[5]],accountname:_0x86e7x3[_0xc184[4]],accountaddress:_0x86e7x3[_0xc184[4]],fullname:_0x86e7x3[_0xc184[4]],membername:_0x86e7x3[_0xc184[4]],mailqueuename:_0x86e7x3[_0xc184[4]],mailjoinAt:_0x86e7x3[_0xc184[6]],mailleaveAt:_0x86e7x3[_0xc184[6]],mailunmanagedAt:_0x86e7x3[_0xc184[6]]},{tableName:_0xc184[7]});_0x86e7x4[_0xc184[10]](_0xc184[9]);return _0x86e7x4;};
\ No newline at end of file
-var _0xc6c1=["\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[_0xc6c1[0]]=function(_0x48f0x1,_0x48f0x2){var _0x48f0x3=_0x48f0x1[_0xc6c1[6]](_0xc6c1[1],{stateinterface:_0x48f0x2[_0xc6c1[2]],queue:_0x48f0x2[_0xc6c1[2]],membername:_0x48f0x2[_0xc6c1[2]],interface:_0x48f0x2[_0xc6c1[2]],state:_0x48f0x2[_0xc6c1[3]],statedesc:_0x48f0x2[_0xc6c1[2]],enterdate:_0x48f0x2[_0xc6c1[4]],exitdate:_0x48f0x2[_0xc6c1[4]],reason:_0x48f0x2[_0xc6c1[2]]},{tableName:_0xc6c1[5]});_0x48f0x3[_0xc6c1[8]](_0xc6c1[7]);return _0x48f0x3;};
\ No newline at end of file
+var _0x4d91=["\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[_0x4d91[0]]=function(_0x4d43x1,_0x4d43x2){var _0x4d43x3=_0x4d43x1[_0x4d91[6]](_0x4d91[1],{stateinterface:_0x4d43x2[_0x4d91[2]],queue:_0x4d43x2[_0x4d91[2]],membername:_0x4d43x2[_0x4d91[2]],interface:_0x4d43x2[_0x4d91[2]],state:_0x4d43x2[_0x4d91[3]],statedesc:_0x4d43x2[_0x4d91[2]],enterdate:_0x4d43x2[_0x4d91[4]],exitdate:_0x4d43x2[_0x4d91[4]],reason:_0x4d43x2[_0x4d91[2]]},{tableName:_0x4d91[5]});_0x4d43x3[_0x4d91[8]](_0x4d91[7]);return _0x4d43x3;};
\ No newline at end of file
-var _0xe3ee=["\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[_0xe3ee[0]]=function(_0xfac1x1,_0xfac1x2){var _0xfac1x3=_0xfac1x1[_0xe3ee[7]](_0xe3ee[1],{uniqueid:_0xfac1x2[_0xe3ee[2]],calleridnum:_0xfac1x2[_0xe3ee[2]],calleridname:_0xfac1x2[_0xe3ee[2]],queue:_0xfac1x2[_0xe3ee[2]],queuecallerjoinAt:_0xfac1x2[_0xe3ee[3]],queuecallerleaveAt:_0xfac1x2[_0xe3ee[3]],position:_0xfac1x2[_0xe3ee[4]],count:_0xfac1x2[_0xe3ee[4]],queuecallerabandon:{type:_0xfac1x2[_0xe3ee[5]],defaultValue:false},queuecallerabandonAt:_0xfac1x2[_0xe3ee[3]],queuecallercompleteAt:_0xfac1x2[_0xe3ee[3]],originalposition:_0xfac1x2[_0xe3ee[4]],channel:_0xfac1x2[_0xe3ee[2]],channelstate:_0xfac1x2[_0xe3ee[4]],channelstatedesc:_0xfac1x2[_0xe3ee[2]],connectedlinenum:_0xfac1x2[_0xe3ee[2]],connectedlinename:_0xfac1x2[_0xe3ee[2]],language:_0xfac1x2[_0xe3ee[2]],accountcode:_0xfac1x2[_0xe3ee[2]],context:_0xfac1x2[_0xe3ee[2]],exten:_0xfac1x2[_0xe3ee[2]],priority:_0xfac1x2[_0xe3ee[2]]},{tableName:_0xe3ee[6]});_0xfac1x3[_0xe3ee[9]](_0xe3ee[8]);return _0xfac1x3;};
\ No newline at end of file
+var _0xa1bf=["\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[_0xa1bf[0]]=function(_0x13f8x1,_0x13f8x2){var _0x13f8x3=_0x13f8x1[_0xa1bf[7]](_0xa1bf[1],{uniqueid:_0x13f8x2[_0xa1bf[2]],calleridnum:_0x13f8x2[_0xa1bf[2]],calleridname:_0x13f8x2[_0xa1bf[2]],queue:_0x13f8x2[_0xa1bf[2]],queuecallerjoinAt:_0x13f8x2[_0xa1bf[3]],queuecallerleaveAt:_0x13f8x2[_0xa1bf[3]],position:_0x13f8x2[_0xa1bf[4]],count:_0x13f8x2[_0xa1bf[4]],queuecallerabandon:{type:_0x13f8x2[_0xa1bf[5]],defaultValue:false},queuecallerabandonAt:_0x13f8x2[_0xa1bf[3]],queuecallercompleteAt:_0x13f8x2[_0xa1bf[3]],originalposition:_0x13f8x2[_0xa1bf[4]],channel:_0x13f8x2[_0xa1bf[2]],channelstate:_0x13f8x2[_0xa1bf[4]],channelstatedesc:_0x13f8x2[_0xa1bf[2]],connectedlinenum:_0x13f8x2[_0xa1bf[2]],connectedlinename:_0x13f8x2[_0xa1bf[2]],language:_0x13f8x2[_0xa1bf[2]],accountcode:_0x13f8x2[_0xa1bf[2]],context:_0x13f8x2[_0xa1bf[2]],exten:_0x13f8x2[_0xa1bf[2]],priority:_0x13f8x2[_0xa1bf[2]]},{tableName:_0xa1bf[6]});_0x13f8x3[_0xa1bf[9]](_0xa1bf[8]);return _0x13f8x3;};
\ No newline at end of file
-var _0x11fe=["\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"];_0x11fe[0];var fs=require(_0x11fe[1]);var path=require(_0x11fe[2]);var config=require(_0x11fe[3]);var Sequelize=require(_0x11fe[4]);var moment=require(_0x11fe[5]);Sequelize[_0x11fe[7]][_0x11fe[6]]({warnings:{wForgottenReturn:false}});var sequelize= new Sequelize(config[_0x11fe[9]][_0x11fe[8]],config[_0x11fe[9]][_0x11fe[10]],config[_0x11fe[9]][_0x11fe[11]],{host:config[_0x11fe[9]][_0x11fe[12]],dialect:_0x11fe[13],timezone:moment()[_0x11fe[15]](_0x11fe[14]),logging:false});var db={};fs[_0x11fe[27]](__dirname)[_0x11fe[26]](function(_0xa87fx8){return (fs[_0x11fe[21]](path[_0x11fe[16]](__dirname,_0xa87fx8))[_0x11fe[20]]())&&(_0xa87fx8[_0x11fe[23]](_0x11fe[22])!==0)&&(_0xa87fx8[_0x11fe[23]](_0x11fe[24])=== -1)&&(_0xa87fx8!==_0x11fe[25])})[_0x11fe[19]](function(_0xa87fx8){var _0xa87fx9=sequelize[_0x11fe[17]](path[_0x11fe[16]](__dirname,_0xa87fx8));db[_0xa87fx9[_0x11fe[18]]]=_0xa87fx9;});Object[_0x11fe[31]](db)[_0x11fe[19]](function(_0xa87fxa){if(db[_0xa87fxa][_0x11fe[30]][_0x11fe[29]](_0x11fe[28])){db[_0xa87fxa][_0x11fe[30]][_0x11fe[28]](db)}});db[_0x11fe[32]]={};var sequelize_history= new Sequelize(config[_0x11fe[33]][_0x11fe[8]],config[_0x11fe[33]][_0x11fe[10]],config[_0x11fe[33]][_0x11fe[11]],{host:config[_0x11fe[33]][_0x11fe[12]],dialect:_0x11fe[13],timezone:moment()[_0x11fe[15]](_0x11fe[14]),logging:false});fs[_0x11fe[27]](path[_0x11fe[16]](__dirname,_0x11fe[32]))[_0x11fe[26]](function(_0xa87fx8){return (fs[_0x11fe[21]](path[_0x11fe[16]](__dirname,_0x11fe[32],_0xa87fx8))[_0x11fe[20]]())&&(_0xa87fx8[_0x11fe[23]](_0x11fe[22])!==0)&&(_0xa87fx8[_0x11fe[23]](_0x11fe[24])=== -1)&&(_0xa87fx8!==_0x11fe[25])})[_0x11fe[19]](function(_0xa87fx8){var _0xa87fx9=sequelize_history[_0x11fe[17]](path[_0x11fe[16]](__dirname,_0x11fe[32],_0xa87fx8));db[_0x11fe[32]][_0xa87fx9[_0x11fe[18]]]=_0xa87fx9;});Object[_0x11fe[31]](db[_0x11fe[32]])[_0x11fe[19]](function(_0xa87fxa){if(db[_0x11fe[32]][_0xa87fxa][_0x11fe[30]][_0x11fe[29]](_0x11fe[28])){db[_0x11fe[32]][_0xa87fxa][_0x11fe[30]][_0x11fe[28]](db[_0x11fe[32]])}});db[_0x11fe[37]][_0x11fe[36]](db[_0x11fe[32]].ReportCallHistory,{as:_0x11fe[34],foreignKey:_0x11fe[35],constraints:false});db[_0x11fe[37]][_0x11fe[36]](db[_0x11fe[32]].ReportCallHistory,{as:_0x11fe[38],foreignKey:_0x11fe[39],constraints:false});db[_0x11fe[42]][_0x11fe[36]](db[_0x11fe[32]].ReportMailSessionHistory,{as:_0x11fe[40],foreignKey:_0x11fe[41],constraints:false});db[_0x11fe[42]][_0x11fe[36]](db[_0x11fe[32]].ReportMailSessionHistory,{as:_0x11fe[43],foreignKey:_0x11fe[44],constraints:false});db[_0x11fe[4]]=sequelize;db[_0x11fe[45]]=sequelize_history;db[_0x11fe[46]]=Sequelize;module[_0x11fe[47]]=db;
\ No newline at end of file
+var _0x53e9=["\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"];_0x53e9[0];var fs=require(_0x53e9[1]);var path=require(_0x53e9[2]);var config=require(_0x53e9[3]);var Sequelize=require(_0x53e9[4]);var moment=require(_0x53e9[5]);Sequelize[_0x53e9[7]][_0x53e9[6]]({warnings:{wForgottenReturn:false}});var sequelize= new Sequelize(config[_0x53e9[9]][_0x53e9[8]],config[_0x53e9[9]][_0x53e9[10]],config[_0x53e9[9]][_0x53e9[11]],{host:config[_0x53e9[9]][_0x53e9[12]],dialect:_0x53e9[13],timezone:moment()[_0x53e9[15]](_0x53e9[14]),logging:false});var db={};fs[_0x53e9[27]](__dirname)[_0x53e9[26]](function(_0x2022x8){return (fs[_0x53e9[21]](path[_0x53e9[16]](__dirname,_0x2022x8))[_0x53e9[20]]())&&(_0x2022x8[_0x53e9[23]](_0x53e9[22])!==0)&&(_0x2022x8[_0x53e9[23]](_0x53e9[24])=== -1)&&(_0x2022x8!==_0x53e9[25])})[_0x53e9[19]](function(_0x2022x8){var _0x2022x9=sequelize[_0x53e9[17]](path[_0x53e9[16]](__dirname,_0x2022x8));db[_0x2022x9[_0x53e9[18]]]=_0x2022x9;});Object[_0x53e9[31]](db)[_0x53e9[19]](function(_0x2022xa){if(db[_0x2022xa][_0x53e9[30]][_0x53e9[29]](_0x53e9[28])){db[_0x2022xa][_0x53e9[30]][_0x53e9[28]](db)}});db[_0x53e9[32]]={};var sequelize_history= new Sequelize(config[_0x53e9[33]][_0x53e9[8]],config[_0x53e9[33]][_0x53e9[10]],config[_0x53e9[33]][_0x53e9[11]],{host:config[_0x53e9[33]][_0x53e9[12]],dialect:_0x53e9[13],timezone:moment()[_0x53e9[15]](_0x53e9[14]),logging:false});fs[_0x53e9[27]](path[_0x53e9[16]](__dirname,_0x53e9[32]))[_0x53e9[26]](function(_0x2022x8){return (fs[_0x53e9[21]](path[_0x53e9[16]](__dirname,_0x53e9[32],_0x2022x8))[_0x53e9[20]]())&&(_0x2022x8[_0x53e9[23]](_0x53e9[22])!==0)&&(_0x2022x8[_0x53e9[23]](_0x53e9[24])=== -1)&&(_0x2022x8!==_0x53e9[25])})[_0x53e9[19]](function(_0x2022x8){var _0x2022x9=sequelize_history[_0x53e9[17]](path[_0x53e9[16]](__dirname,_0x53e9[32],_0x2022x8));db[_0x53e9[32]][_0x2022x9[_0x53e9[18]]]=_0x2022x9;});Object[_0x53e9[31]](db[_0x53e9[32]])[_0x53e9[19]](function(_0x2022xa){if(db[_0x53e9[32]][_0x2022xa][_0x53e9[30]][_0x53e9[29]](_0x53e9[28])){db[_0x53e9[32]][_0x2022xa][_0x53e9[30]][_0x53e9[28]](db[_0x53e9[32]])}});db[_0x53e9[37]][_0x53e9[36]](db[_0x53e9[32]].ReportCallHistory,{as:_0x53e9[34],foreignKey:_0x53e9[35],constraints:false});db[_0x53e9[37]][_0x53e9[36]](db[_0x53e9[32]].ReportCallHistory,{as:_0x53e9[38],foreignKey:_0x53e9[39],constraints:false});db[_0x53e9[42]][_0x53e9[36]](db[_0x53e9[32]].ReportMailSessionHistory,{as:_0x53e9[40],foreignKey:_0x53e9[41],constraints:false});db[_0x53e9[42]][_0x53e9[36]](db[_0x53e9[32]].ReportMailSessionHistory,{as:_0x53e9[43],foreignKey:_0x53e9[44],constraints:false});db[_0x53e9[4]]=sequelize;db[_0x53e9[45]]=sequelize_history;db[_0x53e9[46]]=Sequelize;module[_0x53e9[47]]=db;
\ No newline at end of file
-var _0xdb45=["\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"];_0xdb45[0];module[_0xdb45[1]]=function(_0xdce9x1,_0xdce9x2){var _0xdce9x3=_0xdce9x1[_0xdb45[9]](_0xdb45[2],{name:{type:_0xdce9x2[_0xdb45[3]],allowNull:false,unique:_0xdb45[4],validate:{notEmpty:true}},version:{type:_0xdce9x2[_0xdb45[3]],allowNull:false,unique:_0xdb45[4],validate:{notEmpty:true}},main:{type:_0xdce9x2[_0xdb45[3]],defaultValue:_0xdb45[5]},filename:{type:_0xdce9x2[_0xdb45[3]]},path:{type:_0xdce9x2[_0xdb45[3]]},type:{type:_0xdce9x2[_0xdb45[3]]},size:{type:_0xdce9x2[_0xdb45[6]]},active:{type:_0xdce9x2[_0xdb45[7]],defaultValue:false},author:_0xdce9x2[_0xdb45[3]],logo:_0xdce9x2[_0xdb45[3]],state:_0xdce9x2[_0xdb45[3]],description:_0xdce9x2[_0xdb45[3]]},{tableName:_0xdb45[8]});return _0xdce9x3;};
\ No newline at end of file
+var _0xb69f=["\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"];_0xb69f[0];module[_0xb69f[1]]=function(_0xd5c8x1,_0xd5c8x2){var _0xd5c8x3=_0xd5c8x1[_0xb69f[9]](_0xb69f[2],{name:{type:_0xd5c8x2[_0xb69f[3]],allowNull:false,unique:_0xb69f[4],validate:{notEmpty:true}},version:{type:_0xd5c8x2[_0xb69f[3]],allowNull:false,unique:_0xb69f[4],validate:{notEmpty:true}},main:{type:_0xd5c8x2[_0xb69f[3]],defaultValue:_0xb69f[5]},filename:{type:_0xd5c8x2[_0xb69f[3]]},path:{type:_0xd5c8x2[_0xb69f[3]]},type:{type:_0xd5c8x2[_0xb69f[3]]},size:{type:_0xd5c8x2[_0xb69f[6]]},active:{type:_0xd5c8x2[_0xb69f[7]],defaultValue:false},author:_0xd5c8x2[_0xb69f[3]],logo:_0xd5c8x2[_0xb69f[3]],state:_0xd5c8x2[_0xb69f[3]],description:_0xd5c8x2[_0xb69f[3]]},{tableName:_0xb69f[8]});return _0xd5c8x3;};
\ No newline at end of file
-var _0x7e24=["\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(_0x7e24[0]);var _=require(_0x7e24[1]);var Applications={Dial:[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[4],appdata:_0x7e24[5]},{app:_0x7e24[6],appdata:_0x7e24[7],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[9]}],Queue:[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[10],appdata:_0x7e24[11]},{app:_0x7e24[12],appdata:_0x7e24[13],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[14]}],Playback:[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[15],appdata:_0x7e24[16],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[17]}],AGI:[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[18],appdata:_0x7e24[19],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[20]}],Goto:[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[21],appdata:_0x7e24[22],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[23]}],Hangup:[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[24],appdata:_0x7e24[25],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[26]}],Set:[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[4],appdata:_0x7e24[27],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[28]}],custom:[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[29],appdata:_0x7e24[25],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[30]}],Voicemail:[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[31],appdata:_0x7e24[25],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[32]}]};module[_0x7e24[33]]=function(_0x1089x4,_0x1089x5){var _0x1089x6=_0x1089x4[_0x7e24[62]](_0x7e24[34],{name:{type:_0x1089x5[_0x7e24[35]],unique:_0x7e24[36]},interval:{type:_0x1089x5[_0x7e24[35]],allowNull:true},IntervalId:{type:_0x1089x5.INTEGER(11),unique:_0x7e24[36]}},{tableName:_0x7e24[37],associate:function(_0x1089x7){_0x1089x6[_0x7e24[40]](_0x1089x7.Interval,{as:_0x7e24[38],onDelete:_0x7e24[39]});_0x1089x6[_0x7e24[40]](_0x1089x7.VoiceExtension,{as:_0x7e24[41]});_0x1089x6[_0x7e24[40]](_0x1089x7.MailApplication,{as:_0x7e24[42]});_0x1089x6[_0x7e24[40]](_0x1089x7.MailApplication,{as:_0x7e24[43]});_0x1089x6[_0x7e24[57]](function(_0x1089x8){if(_0x1089x8[_0x7e24[44]]!==null){_0x1089x8[_0x7e24[56]]()[_0x7e24[55]](function(_0x1089xa){var _0x1089xb;var _0x1089xc;_0x1089xa[_0x7e24[54]](function(_0x1089xd){_0x1089xc=_0x1089xd[_0x7e24[49]][_0x7e24[48]](_0x7e24[47]);_0x1089xd[_0x7e24[49]]=util[_0x7e24[52]](_0x7e24[50],_0x1089x8[_0x7e24[51]],_0x1089xc[1]);_0x1089xd[_0x7e24[51]]=_0x1089x8[_0x7e24[51]];_0x1089xd[_0x7e24[53]]()[_0x7e24[46]](function(_0x1089x9){console[_0x7e24[45]](_0x1089x9)});});})[_0x7e24[46]](function(_0x1089x9){console[_0x7e24[45]](_0x1089x9)})}});_0x1089x6[_0x7e24[59]](function(_0x1089x8){console[_0x7e24[45]](_0x7e24[58]);if(_0x1089x8[_0x7e24[44]]!==null){_0x1089xe(_0x1089x8,_0x1089x7)};});_0x1089x6[_0x7e24[61]](function(_0x1089x8){console[_0x7e24[45]](_0x7e24[60]);if(_0x1089x8[_0x7e24[44]]!==null){_0x1089xe(_0x1089x8,_0x1089x7,true)};});}});function _0x1089xe(_0x1089xf,_0x1089x7,_0x1089x10){console[_0x7e24[45]](_0x7e24[63]);_0x1089x7[_0x7e24[92]][_0x7e24[94]]({where:{IntervalId:_0x1089xf[_0x7e24[44]]}})[_0x7e24[55]](function(_0x1089x11){if(_0x1089x11&&_0x1089x11[_0x7e24[64]]>0){console[_0x7e24[45]](_0x7e24[65]);var _0x1089x12=_[_0x7e24[69]](_[_0x7e24[67]](_[_0x7e24[67]](_0x1089x11,_0x7e24[66]),_0x7e24[68]),true);_0x1089x7[_0x7e24[92]][_0x7e24[94]]({where:{VoiceExtensionId:_0x1089x12,isApp:true}})[_0x7e24[55]](function(_0x1089xa){console[_0x7e24[45]](_0x7e24[70]);return _0x1089x4[_0x7e24[96]](function(_0x1089x13){console[_0x7e24[45]](_0x7e24[71]);return _0x1089x7[_0x7e24[92]][_0x7e24[95]]({where:{VoiceExtensionId:_0x1089x12}},{transaction:_0x1089x13})[_0x7e24[55]](function(){console[_0x7e24[45]](_0x7e24[72]);_0x1089xa=_[_0x7e24[67]](_0x1089xa,_0x7e24[66]);var _0x1089x14=_[_0x7e24[73]](_[_0x7e24[67]](_0x1089xa,_0x7e24[44]),function(_0x1089x15){return _0x1089x15!==null});console[_0x7e24[45]](_0x7e24[74]);_0x1089x6[_0x7e24[94]]({where:{IntervalId:_0x1089x14,id:{$ne:_0x1089x10?null:_0x1089xf[_0x7e24[88]]}}})[_0x7e24[55]](function(_0x1089x16){console[_0x7e24[45]](_0x7e24[75]);var _0x1089x17;_0x1089x12[_0x7e24[54]](function(_0x1089x18){_0x1089x17=_[_0x7e24[73]](_0x1089xa,function(_0x1089x15){return _0x1089x15[_0x7e24[68]]==_0x1089x18});var _0x1089x19=2;var _0x1089x8;_0x1089x17[_0x7e24[54]](function(_0x1089x1a){console[_0x7e24[45]](_0x7e24[76]);var _0x1089x1b=_[_0x7e24[78]](Applications[_0x1089x1a[_0x7e24[77]]]);if(!_0x1089x1b||_0x1089x1a[_0x7e24[79]]){_0x1089x1b=[{app:_0x7e24[2],appdata:_0x7e24[3]},{app:_0x7e24[29],appdata:_0x7e24[25],isApp:true},{app:_0x7e24[8],appdata:_0x7e24[30]}]};console[_0x7e24[45]](_0x7e24[80]);console[_0x7e24[45]](_0x1089x19);var _0x1089x1c=util[_0x7e24[52]](_0x7e24[81],_0x1089x1a[_0x7e24[82]],_0x1089x1a[_0x7e24[83]],_0x1089x19);_0x1089x1a[_0x7e24[51]]=_0x1089x1a[_0x7e24[51]]||_0x7e24[84];var _0x1089x1d=_[_0x7e24[73]](_0x1089x16,function(_0x1089x15){return (_0x1089x15[_0x7e24[44]]==_0x1089x1a[_0x7e24[44]])});if(_0x1089x1d&&_0x1089x1d[_0x7e24[64]]>0){_0x1089x1b[_0x7e24[85]](0,1);_0x1089x1d[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x1b[_0x7e24[89]]({app:_0x7e24[86],appdata:_0x1089x15[_0x7e24[51]]+_0x7e24[87],IntervalId:_0x1089x15[_0x7e24[88]],isInterval:true,interval:_0x1089x15[_0x7e24[51]]})});};_0x1089x19=appCreate(_0x1089x1b,_0x1089x1a,_0x1089x1c,_0x1089x1d||[],_0x1089x19);console[_0x7e24[45]](_0x7e24[90]);console[_0x7e24[45]](_0x1089x19);_0x1089x7[_0x7e24[92]][_0x7e24[91]](_0x1089x1b);});});console[_0x7e24[45]](_0x7e24[93]);});});})[_0x7e24[46]](function(_0x1089x9){console[_0x7e24[45]](_0x1089x9)});})[_0x7e24[46]](function(_0x1089x9){console[_0x7e24[45]](_0x1089x9)});}})[_0x7e24[46]](function(_0x1089x9){console[_0x7e24[45]](_0x1089x9)});}return _0x1089x6;};function appCreate(_0x1089x1b,_0x1089xd,_0x1089x1c,_0x1089x16,_0x1089x19){var _0x1089x20=_0x1089x16[_0x7e24[64]];if(_0x1089xd[_0x7e24[79]]){_0x1089xd[_0x7e24[77]]=_0x7e24[29]};switch(_0x1089xd[_0x7e24[77]]){case _0x7e24[6]:if(!_0x1089xd[_0x7e24[97]]){_[_0x7e24[98]](_0x1089x1b,{app:_0x7e24[4]})};_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[6]:if(_0x1089xd[_0x7e24[99]]===_0x7e24[102]){_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[103]]=_0x1089xd[_0x7e24[103]];_0x1089x15[_0x7e24[104]]=_0x1089xd[_0x7e24[104]];_0x1089x15[_0x7e24[105]]=_0x1089xd[_0x7e24[105]]||0;_0x1089x15[_0x7e24[97]]=_0x1089xd[_0x7e24[97]]||null;}else {_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[106]]=_0x1089xd[_0x7e24[106]];_0x1089x15[_0x7e24[107]]=_0x1089xd[_0x7e24[107]]||_0x7e24[11];_0x1089x15[_0x7e24[108]]=_0x1089xd[_0x7e24[108]]||_0x7e24[11];_0x1089x15[_0x7e24[109]]=_0x1089xd[_0x7e24[109]]||_0x7e24[11];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[106]],_0x1089x15[_0x7e24[108]],_0x1089x15[_0x7e24[107]]?_0x1089x15[_0x7e24[107]][_0x7e24[111]](_0x7e24[110],_0x7e24[11]):_0x7e24[11],_0x1089x15[_0x7e24[109]]);};break ;;case _0x7e24[4]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[97]]);break ;;case _0x7e24[8]:if(_0x1089xd[_0x7e24[99]]===_0x7e24[102]){_0x1089x15[_0x7e24[49]]=_0x7e24[112]};break ;;default:;};});break ;;case _0x7e24[12]:_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[12]:_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[107]]=_0x1089xd[_0x7e24[107]]||_0x7e24[11];_0x1089x15[_0x7e24[113]]=_0x1089xd[_0x7e24[113]]||_0x7e24[11];_0x1089x15[_0x7e24[114]]=_0x1089xd[_0x7e24[114]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[106]]=_0x1089xd[_0x7e24[106]];_0x1089x15[_0x7e24[107]]=_0x1089xd[_0x7e24[107]];_0x1089x15[_0x7e24[108]]=_0x1089xd[_0x7e24[108]]||_0x7e24[11];_0x1089x15[_0x7e24[109]]=_0x1089xd[_0x7e24[109]]||_0x7e24[11];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[114]],_0x1089x15[_0x7e24[107]]?_0x1089x15[_0x7e24[107]][_0x7e24[111]](_0x7e24[110],_0x7e24[11]):_0x7e24[11],_0x1089x15[_0x7e24[109]],_0x1089x15[_0x7e24[113]],_0x1089x15[_0x7e24[108]]);break ;;default:;};});break ;;case _0x7e24[15]:_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[15]:_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[113]]=_0x1089xd[_0x7e24[113]]||_0x7e24[11];_0x1089x15[_0x7e24[107]]=_0x1089xd[_0x7e24[107]]||_0x7e24[11];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[113]],_0x1089x15[_0x7e24[107]]?_0x1089x15[_0x7e24[107]][_0x7e24[111]](_0x7e24[110],_0x7e24[11]):_0x7e24[11]);break ;;default:;};});break ;;case _0x7e24[18]:_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[18]:_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[115]]=_0x1089xd[_0x7e24[115]];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[115]]);break ;;default:;};});break ;;case _0x7e24[21]:_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[21]:_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[116]]=_0x1089xd[_0x7e24[116]];_0x1089x15[_0x7e24[117]]=_0x1089xd[_0x7e24[117]];_0x1089x15[_0x7e24[118]]=_0x1089xd[_0x7e24[118]];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[118]],_0x1089x15[_0x7e24[117]],_0x1089x15[_0x7e24[116]]);break ;;default:;};});break ;;case _0x7e24[24]:_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[24]:_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[119]]=_0x1089xd[_0x7e24[119]];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[119]]);break ;;default:;};});break ;;case _0x7e24[4]:_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[4]:_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[120]]=_0x1089xd[_0x7e24[120]];_0x1089x15[_0x7e24[121]]=_0x1089xd[_0x7e24[121]];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[120]],_0x1089x15[_0x7e24[121]]);break ;;default:;};});break ;;case _0x7e24[29]:_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[29]:_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[77]]=_0x1089x15[_0x7e24[79]]=_0x1089xd[_0x7e24[79]];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[49]]);break ;;default:;};});break ;;case _0x7e24[31]:_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[31]:_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[122]]=_0x1089xd[_0x7e24[122]];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[122]]);break ;;default:;};});break ;;default:_0x1089x1b[_0x7e24[54]](function(_0x1089x15,_0x1089x1e){_0x1089x15[_0x7e24[83]]=_0x1089xd[_0x7e24[83]];_0x1089x15[_0x7e24[99]]=_0x1089xd[_0x7e24[99]];_0x1089x15[_0x7e24[82]]=_0x1089xd[_0x7e24[82]];_0x1089x15[_0x7e24[68]]=_0x1089xd[_0x7e24[68]];_0x1089x15[_0x7e24[100]]=_0x1089x19?_0x1089x19++:_0x1089xd[_0x7e24[100]]++;_0x1089x15[_0x7e24[101]]=_0x1089x1c;switch(_0x1089x15[_0x7e24[77]]){case _0x7e24[2]:_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[44]]?_0x7e24[84]:_0x1089xd[_0x7e24[51]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+1,_0x1089x15[_0x7e24[82]],(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[86]:_0x1089x15[_0x7e24[77]]=_0x7e24[2];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089x15[_0x7e24[82]],_0x1089x15[_0x7e24[100]]+_0x1089x20-_0x1089x1e,_0x1089x15[_0x7e24[82]],(_0x1089x1e+1)<_0x1089x20?(_0x1089x15[_0x7e24[100]]+1):(_0x1089x15[_0x7e24[100]]+2));break ;;case _0x7e24[29]:_0x1089x15[_0x7e24[44]]=_0x1089xd[_0x7e24[44]];_0x1089x15[_0x7e24[51]]=_0x1089xd[_0x7e24[51]];_0x1089x15[_0x7e24[77]]=_0x1089x15[_0x7e24[79]]=_0x1089xd[_0x7e24[79]];_0x1089x15[_0x7e24[49]]=util[_0x7e24[52]](_0x1089x15[_0x7e24[49]],_0x1089xd[_0x7e24[49]]);break ;;default:;};});;};if(_0x1089x19){return _0x1089x19};}
\ No newline at end of file
+var _0x48c1=["\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(_0x48c1[0]);var _=require(_0x48c1[1]);var Applications={Dial:[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[4],appdata:_0x48c1[5]},{app:_0x48c1[6],appdata:_0x48c1[7],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[9]}],Queue:[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[10],appdata:_0x48c1[11]},{app:_0x48c1[12],appdata:_0x48c1[13],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[14]}],Playback:[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[15],appdata:_0x48c1[16],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[17]}],AGI:[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[18],appdata:_0x48c1[19],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[20]}],Goto:[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[21],appdata:_0x48c1[22],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[23]}],Hangup:[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[24],appdata:_0x48c1[25],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[26]}],Set:[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[4],appdata:_0x48c1[27],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[28]}],custom:[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[29],appdata:_0x48c1[25],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[30]}],Voicemail:[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[31],appdata:_0x48c1[25],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[32]}]};module[_0x48c1[33]]=function(_0x996fx4,_0x996fx5){var _0x996fx6=_0x996fx4[_0x48c1[62]](_0x48c1[34],{name:{type:_0x996fx5[_0x48c1[35]],unique:_0x48c1[36]},interval:{type:_0x996fx5[_0x48c1[35]],allowNull:true},IntervalId:{type:_0x996fx5.INTEGER(11),unique:_0x48c1[36]}},{tableName:_0x48c1[37],associate:function(_0x996fx7){_0x996fx6[_0x48c1[40]](_0x996fx7.Interval,{as:_0x48c1[38],onDelete:_0x48c1[39]});_0x996fx6[_0x48c1[40]](_0x996fx7.VoiceExtension,{as:_0x48c1[41]});_0x996fx6[_0x48c1[40]](_0x996fx7.MailApplication,{as:_0x48c1[42]});_0x996fx6[_0x48c1[40]](_0x996fx7.MailApplication,{as:_0x48c1[43]});_0x996fx6[_0x48c1[57]](function(_0x996fx8){if(_0x996fx8[_0x48c1[44]]!==null){_0x996fx8[_0x48c1[56]]()[_0x48c1[55]](function(_0x996fxa){var _0x996fxb;var _0x996fxc;_0x996fxa[_0x48c1[54]](function(_0x996fxd){_0x996fxc=_0x996fxd[_0x48c1[49]][_0x48c1[48]](_0x48c1[47]);_0x996fxd[_0x48c1[49]]=util[_0x48c1[52]](_0x48c1[50],_0x996fx8[_0x48c1[51]],_0x996fxc[1]);_0x996fxd[_0x48c1[51]]=_0x996fx8[_0x48c1[51]];_0x996fxd[_0x48c1[53]]()[_0x48c1[46]](function(_0x996fx9){console[_0x48c1[45]](_0x996fx9)});});})[_0x48c1[46]](function(_0x996fx9){console[_0x48c1[45]](_0x996fx9)})}});_0x996fx6[_0x48c1[59]](function(_0x996fx8){console[_0x48c1[45]](_0x48c1[58]);if(_0x996fx8[_0x48c1[44]]!==null){_0x996fxe(_0x996fx8,_0x996fx7)};});_0x996fx6[_0x48c1[61]](function(_0x996fx8){console[_0x48c1[45]](_0x48c1[60]);if(_0x996fx8[_0x48c1[44]]!==null){_0x996fxe(_0x996fx8,_0x996fx7,true)};});}});function _0x996fxe(_0x996fxf,_0x996fx7,_0x996fx10){console[_0x48c1[45]](_0x48c1[63]);_0x996fx7[_0x48c1[92]][_0x48c1[94]]({where:{IntervalId:_0x996fxf[_0x48c1[44]]}})[_0x48c1[55]](function(_0x996fx11){if(_0x996fx11&&_0x996fx11[_0x48c1[64]]>0){console[_0x48c1[45]](_0x48c1[65]);var _0x996fx12=_[_0x48c1[69]](_[_0x48c1[67]](_[_0x48c1[67]](_0x996fx11,_0x48c1[66]),_0x48c1[68]),true);_0x996fx7[_0x48c1[92]][_0x48c1[94]]({where:{VoiceExtensionId:_0x996fx12,isApp:true}})[_0x48c1[55]](function(_0x996fxa){console[_0x48c1[45]](_0x48c1[70]);return _0x996fx4[_0x48c1[96]](function(_0x996fx13){console[_0x48c1[45]](_0x48c1[71]);return _0x996fx7[_0x48c1[92]][_0x48c1[95]]({where:{VoiceExtensionId:_0x996fx12}},{transaction:_0x996fx13})[_0x48c1[55]](function(){console[_0x48c1[45]](_0x48c1[72]);_0x996fxa=_[_0x48c1[67]](_0x996fxa,_0x48c1[66]);var _0x996fx14=_[_0x48c1[73]](_[_0x48c1[67]](_0x996fxa,_0x48c1[44]),function(_0x996fx15){return _0x996fx15!==null});console[_0x48c1[45]](_0x48c1[74]);_0x996fx6[_0x48c1[94]]({where:{IntervalId:_0x996fx14,id:{$ne:_0x996fx10?null:_0x996fxf[_0x48c1[88]]}}})[_0x48c1[55]](function(_0x996fx16){console[_0x48c1[45]](_0x48c1[75]);var _0x996fx17;_0x996fx12[_0x48c1[54]](function(_0x996fx18){_0x996fx17=_[_0x48c1[73]](_0x996fxa,function(_0x996fx15){return _0x996fx15[_0x48c1[68]]==_0x996fx18});var _0x996fx19=2;var _0x996fx8;_0x996fx17[_0x48c1[54]](function(_0x996fx1a){console[_0x48c1[45]](_0x48c1[76]);var _0x996fx1b=_[_0x48c1[78]](Applications[_0x996fx1a[_0x48c1[77]]]);if(!_0x996fx1b||_0x996fx1a[_0x48c1[79]]){_0x996fx1b=[{app:_0x48c1[2],appdata:_0x48c1[3]},{app:_0x48c1[29],appdata:_0x48c1[25],isApp:true},{app:_0x48c1[8],appdata:_0x48c1[30]}]};console[_0x48c1[45]](_0x48c1[80]);console[_0x48c1[45]](_0x996fx19);var _0x996fx1c=util[_0x48c1[52]](_0x48c1[81],_0x996fx1a[_0x48c1[82]],_0x996fx1a[_0x48c1[83]],_0x996fx19);_0x996fx1a[_0x48c1[51]]=_0x996fx1a[_0x48c1[51]]||_0x48c1[84];var _0x996fx1d=_[_0x48c1[73]](_0x996fx16,function(_0x996fx15){return (_0x996fx15[_0x48c1[44]]==_0x996fx1a[_0x48c1[44]])});if(_0x996fx1d&&_0x996fx1d[_0x48c1[64]]>0){_0x996fx1b[_0x48c1[85]](0,1);_0x996fx1d[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx1b[_0x48c1[89]]({app:_0x48c1[86],appdata:_0x996fx15[_0x48c1[51]]+_0x48c1[87],IntervalId:_0x996fx15[_0x48c1[88]],isInterval:true,interval:_0x996fx15[_0x48c1[51]]})});};_0x996fx19=appCreate(_0x996fx1b,_0x996fx1a,_0x996fx1c,_0x996fx1d||[],_0x996fx19);console[_0x48c1[45]](_0x48c1[90]);console[_0x48c1[45]](_0x996fx19);_0x996fx7[_0x48c1[92]][_0x48c1[91]](_0x996fx1b);});});console[_0x48c1[45]](_0x48c1[93]);});});})[_0x48c1[46]](function(_0x996fx9){console[_0x48c1[45]](_0x996fx9)});})[_0x48c1[46]](function(_0x996fx9){console[_0x48c1[45]](_0x996fx9)});}})[_0x48c1[46]](function(_0x996fx9){console[_0x48c1[45]](_0x996fx9)});}return _0x996fx6;};function appCreate(_0x996fx1b,_0x996fxd,_0x996fx1c,_0x996fx16,_0x996fx19){var _0x996fx20=_0x996fx16[_0x48c1[64]];if(_0x996fxd[_0x48c1[79]]){_0x996fxd[_0x48c1[77]]=_0x48c1[29]};switch(_0x996fxd[_0x48c1[77]]){case _0x48c1[6]:if(!_0x996fxd[_0x48c1[97]]){_[_0x48c1[98]](_0x996fx1b,{app:_0x48c1[4]})};_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[6]:if(_0x996fxd[_0x48c1[99]]===_0x48c1[102]){_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[103]]=_0x996fxd[_0x48c1[103]];_0x996fx15[_0x48c1[104]]=_0x996fxd[_0x48c1[104]];_0x996fx15[_0x48c1[105]]=_0x996fxd[_0x48c1[105]]||0;_0x996fx15[_0x48c1[97]]=_0x996fxd[_0x48c1[97]]||null;}else {_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[106]]=_0x996fxd[_0x48c1[106]];_0x996fx15[_0x48c1[107]]=_0x996fxd[_0x48c1[107]]||_0x48c1[11];_0x996fx15[_0x48c1[108]]=_0x996fxd[_0x48c1[108]]||_0x48c1[11];_0x996fx15[_0x48c1[109]]=_0x996fxd[_0x48c1[109]]||_0x48c1[11];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[106]],_0x996fx15[_0x48c1[108]],_0x996fx15[_0x48c1[107]]?_0x996fx15[_0x48c1[107]][_0x48c1[111]](_0x48c1[110],_0x48c1[11]):_0x48c1[11],_0x996fx15[_0x48c1[109]]);};break ;;case _0x48c1[4]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[97]]);break ;;case _0x48c1[8]:if(_0x996fxd[_0x48c1[99]]===_0x48c1[102]){_0x996fx15[_0x48c1[49]]=_0x48c1[112]};break ;;default:;};});break ;;case _0x48c1[12]:_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[12]:_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[107]]=_0x996fxd[_0x48c1[107]]||_0x48c1[11];_0x996fx15[_0x48c1[113]]=_0x996fxd[_0x48c1[113]]||_0x48c1[11];_0x996fx15[_0x48c1[114]]=_0x996fxd[_0x48c1[114]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[106]]=_0x996fxd[_0x48c1[106]];_0x996fx15[_0x48c1[107]]=_0x996fxd[_0x48c1[107]];_0x996fx15[_0x48c1[108]]=_0x996fxd[_0x48c1[108]]||_0x48c1[11];_0x996fx15[_0x48c1[109]]=_0x996fxd[_0x48c1[109]]||_0x48c1[11];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[114]],_0x996fx15[_0x48c1[107]]?_0x996fx15[_0x48c1[107]][_0x48c1[111]](_0x48c1[110],_0x48c1[11]):_0x48c1[11],_0x996fx15[_0x48c1[109]],_0x996fx15[_0x48c1[113]],_0x996fx15[_0x48c1[108]]);break ;;default:;};});break ;;case _0x48c1[15]:_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[15]:_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[113]]=_0x996fxd[_0x48c1[113]]||_0x48c1[11];_0x996fx15[_0x48c1[107]]=_0x996fxd[_0x48c1[107]]||_0x48c1[11];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[113]],_0x996fx15[_0x48c1[107]]?_0x996fx15[_0x48c1[107]][_0x48c1[111]](_0x48c1[110],_0x48c1[11]):_0x48c1[11]);break ;;default:;};});break ;;case _0x48c1[18]:_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[18]:_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[115]]=_0x996fxd[_0x48c1[115]];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[115]]);break ;;default:;};});break ;;case _0x48c1[21]:_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[21]:_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[116]]=_0x996fxd[_0x48c1[116]];_0x996fx15[_0x48c1[117]]=_0x996fxd[_0x48c1[117]];_0x996fx15[_0x48c1[118]]=_0x996fxd[_0x48c1[118]];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[118]],_0x996fx15[_0x48c1[117]],_0x996fx15[_0x48c1[116]]);break ;;default:;};});break ;;case _0x48c1[24]:_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[24]:_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[119]]=_0x996fxd[_0x48c1[119]];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[119]]);break ;;default:;};});break ;;case _0x48c1[4]:_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[4]:_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[120]]=_0x996fxd[_0x48c1[120]];_0x996fx15[_0x48c1[121]]=_0x996fxd[_0x48c1[121]];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[120]],_0x996fx15[_0x48c1[121]]);break ;;default:;};});break ;;case _0x48c1[29]:_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[29]:_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[77]]=_0x996fx15[_0x48c1[79]]=_0x996fxd[_0x48c1[79]];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[49]]);break ;;default:;};});break ;;case _0x48c1[31]:_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[31]:_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[122]]=_0x996fxd[_0x48c1[122]];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[122]]);break ;;default:;};});break ;;default:_0x996fx1b[_0x48c1[54]](function(_0x996fx15,_0x996fx1e){_0x996fx15[_0x48c1[83]]=_0x996fxd[_0x48c1[83]];_0x996fx15[_0x48c1[99]]=_0x996fxd[_0x48c1[99]];_0x996fx15[_0x48c1[82]]=_0x996fxd[_0x48c1[82]];_0x996fx15[_0x48c1[68]]=_0x996fxd[_0x48c1[68]];_0x996fx15[_0x48c1[100]]=_0x996fx19?_0x996fx19++:_0x996fxd[_0x48c1[100]]++;_0x996fx15[_0x48c1[101]]=_0x996fx1c;switch(_0x996fx15[_0x48c1[77]]){case _0x48c1[2]:_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[44]]?_0x48c1[84]:_0x996fxd[_0x48c1[51]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+1,_0x996fx15[_0x48c1[82]],(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[86]:_0x996fx15[_0x48c1[77]]=_0x48c1[2];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fx15[_0x48c1[82]],_0x996fx15[_0x48c1[100]]+_0x996fx20-_0x996fx1e,_0x996fx15[_0x48c1[82]],(_0x996fx1e+1)<_0x996fx20?(_0x996fx15[_0x48c1[100]]+1):(_0x996fx15[_0x48c1[100]]+2));break ;;case _0x48c1[29]:_0x996fx15[_0x48c1[44]]=_0x996fxd[_0x48c1[44]];_0x996fx15[_0x48c1[51]]=_0x996fxd[_0x48c1[51]];_0x996fx15[_0x48c1[77]]=_0x996fx15[_0x48c1[79]]=_0x996fxd[_0x48c1[79]];_0x996fx15[_0x48c1[49]]=util[_0x48c1[52]](_0x996fx15[_0x48c1[49]],_0x996fxd[_0x48c1[49]]);break ;;default:;};});;};if(_0x996fx19){return _0x996fx19};}
\ No newline at end of file
-var _0x1197=["\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[_0x1197[0]]=function(_0xee69x1,_0xee69x2){var _0xee69x3=_0xee69x1[_0x1197[7]](_0x1197[1],{description:_0xee69x2[_0x1197[2]],name:{type:_0xee69x2[_0x1197[2]],unique:true},address:_0xee69x2[_0x1197[2]]},{tableName:_0x1197[3],associate:function(_0xee69x4){_0xee69x3[_0x1197[4]](_0xee69x4.MailRoom);_0xee69x3[_0x1197[4]](_0xee69x4.MailTemplate);_0xee69x3[_0x1197[4]](_0xee69x4.MailApplication);_0xee69x3[_0x1197[6]](_0xee69x4.MailServerIn,{onDelete:_0x1197[5],hooks:true});_0xee69x3[_0x1197[6]](_0xee69x4.MailServerOut,{onDelete:_0x1197[5],hooks:true});}});return _0xee69x3;};
\ No newline at end of file
+var _0x77f8=["\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[_0x77f8[0]]=function(_0x34ebx1,_0x34ebx2){var _0x34ebx3=_0x34ebx1[_0x77f8[7]](_0x77f8[1],{description:_0x34ebx2[_0x77f8[2]],name:{type:_0x34ebx2[_0x77f8[2]],unique:true},address:_0x34ebx2[_0x77f8[2]]},{tableName:_0x77f8[3],associate:function(_0x34ebx4){_0x34ebx3[_0x77f8[4]](_0x34ebx4.MailRoom);_0x34ebx3[_0x77f8[4]](_0x34ebx4.MailTemplate);_0x34ebx3[_0x77f8[4]](_0x34ebx4.MailApplication);_0x34ebx3[_0x77f8[6]](_0x34ebx4.MailServerIn,{onDelete:_0x77f8[5],hooks:true});_0x34ebx3[_0x77f8[6]](_0x34ebx4.MailServerOut,{onDelete:_0x77f8[5],hooks:true});}});return _0x34ebx3;};
\ No newline at end of file
-var _0x9e3b=["\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"];_0x9e3b[0];module[_0x9e3b[1]]=function(_0x2078x1,_0x2078x2){var _0x2078x3=_0x2078x1[_0x9e3b[9]](_0x9e3b[2],{app:{type:_0x2078x2.ENUM(_0x9e3b[3],_0x9e3b[4])},priority:{type:_0x2078x2[_0x9e3b[5]]},timeout:{type:_0x2078x2[_0x9e3b[5]]},interval:{type:_0x2078x2[_0x9e3b[6]]}},{tableName:_0x9e3b[7],associate:function(_0x2078x4){_0x2078x3[_0x9e3b[8]](_0x2078x4.MailAccount);_0x2078x3[_0x9e3b[8]](_0x2078x4.Interval);_0x2078x3[_0x9e3b[8]](_0x2078x4.MailQueue);_0x2078x3[_0x9e3b[8]](_0x2078x4.User);}});return _0x2078x3;};
\ No newline at end of file
+var _0x5186=["\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"];_0x5186[0];module[_0x5186[1]]=function(_0xaf4cx1,_0xaf4cx2){var _0xaf4cx3=_0xaf4cx1[_0x5186[9]](_0x5186[2],{app:{type:_0xaf4cx2.ENUM(_0x5186[3],_0x5186[4])},priority:{type:_0xaf4cx2[_0x5186[5]]},timeout:{type:_0xaf4cx2[_0x5186[5]]},interval:{type:_0xaf4cx2[_0x5186[6]]}},{tableName:_0x5186[7],associate:function(_0xaf4cx4){_0xaf4cx3[_0x5186[8]](_0xaf4cx4.MailAccount);_0xaf4cx3[_0x5186[8]](_0xaf4cx4.Interval);_0xaf4cx3[_0x5186[8]](_0xaf4cx4.MailQueue);_0xaf4cx3[_0x5186[8]](_0xaf4cx4.User);}});return _0xaf4cx3;};
\ No newline at end of file
-var _0x2f58=["\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(_0x2f58[0]);module[_0x2f58[1]]=function(_0x8f79x2,_0x8f79x3){var _0x8f79x4=_0x8f79x2[_0x2f58[6]](_0x2f58[2],{contentDisposition:_0x8f79x3[_0x2f58[3]],fileName:_0x8f79x3[_0x2f58[3]],path:_0x8f79x3[_0x2f58[3]],contentType:_0x8f79x3[_0x2f58[3]],transferEncoding:_0x8f79x3[_0x2f58[3]],generatedFileName:_0x8f79x3[_0x2f58[3]],contentId:_0x8f79x3[_0x2f58[3]],checksum:_0x8f79x3[_0x2f58[3]],length:_0x8f79x3[_0x2f58[4]]},{tableName:_0x2f58[5]});return _0x8f79x4;};
\ No newline at end of file
+var _0x1cd1=["\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(_0x1cd1[0]);module[_0x1cd1[1]]=function(_0x4a3ex2,_0x4a3ex3){var _0x4a3ex4=_0x4a3ex2[_0x1cd1[6]](_0x1cd1[2],{contentDisposition:_0x4a3ex3[_0x1cd1[3]],fileName:_0x4a3ex3[_0x1cd1[3]],path:_0x4a3ex3[_0x1cd1[3]],contentType:_0x4a3ex3[_0x1cd1[3]],transferEncoding:_0x4a3ex3[_0x1cd1[3]],generatedFileName:_0x4a3ex3[_0x1cd1[3]],contentId:_0x4a3ex3[_0x1cd1[3]],checksum:_0x4a3ex3[_0x1cd1[3]],length:_0x4a3ex3[_0x1cd1[4]]},{tableName:_0x1cd1[5]});return _0x4a3ex4;};
\ No newline at end of file
-var _0x8761=["\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(_0x8761[0]);module[_0x8761[1]]=function(_0xb867x2,_0xb867x3){var _0xb867x4=_0xb867x2[_0x8761[7]](_0x8761[2],{name:_0xb867x3[_0x8761[3]],description:_0xb867x3[_0x8761[3]],conditions:_0xb867x3[_0x8761[4]],actions:_0xb867x3[_0x8761[4]],status:{type:_0xb867x3[_0x8761[5]],defaultValue:false}},{tableName:_0x8761[6]});return _0xb867x4;};
\ No newline at end of file
+var _0x20dd=["\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(_0x20dd[0]);module[_0x20dd[1]]=function(_0xd0b4x2,_0xd0b4x3){var _0xd0b4x4=_0xd0b4x2[_0x20dd[7]](_0x20dd[2],{name:_0xd0b4x3[_0x20dd[3]],description:_0xd0b4x3[_0x20dd[3]],conditions:_0xd0b4x3[_0x20dd[4]],actions:_0xd0b4x3[_0x20dd[4]],status:{type:_0xd0b4x3[_0x20dd[5]],defaultValue:false}},{tableName:_0x20dd[6]});return _0xd0b4x4;};
\ No newline at end of file
-var _0xd19f=["\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(_0xd19f[0]);module[_0xd19f[1]]=function(_0x17f9x2,_0x17f9x3){var _0x17f9x4=_0x17f9x2[_0xd19f[8]](_0xd19f[2],{name:{type:_0x17f9x3[_0xd19f[3]]},description:{type:_0x17f9x3[_0xd19f[3]]},status:{type:_0x17f9x3[_0xd19f[4]],defaultValue:false},jobId:{type:_0x17f9x3[_0xd19f[5]]}},{tableName:_0xd19f[6],associate:function(_0x17f9x5){_0x17f9x4[_0xd19f[7]](_0x17f9x5.BusinessAction);_0x17f9x4[_0xd19f[7]](_0x17f9x5.BusinessCondition);}});return _0x17f9x4;};
\ No newline at end of file
+var _0x9855=["\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(_0x9855[0]);module[_0x9855[1]]=function(_0x41a0x2,_0x41a0x3){var _0x41a0x4=_0x41a0x2[_0x9855[8]](_0x9855[2],{name:{type:_0x41a0x3[_0x9855[3]]},description:{type:_0x41a0x3[_0x9855[3]]},status:{type:_0x41a0x3[_0x9855[4]],defaultValue:false},jobId:{type:_0x41a0x3[_0x9855[5]]}},{tableName:_0x9855[6],associate:function(_0x41a0x5){_0x41a0x4[_0x9855[7]](_0x41a0x5.BusinessAction);_0x41a0x4[_0x9855[7]](_0x41a0x5.BusinessCondition);}});return _0x41a0x4;};
\ No newline at end of file
-var _0x668d=["\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(_0x668d[0]);module[_0x668d[1]]=function(_0x483dx2,_0x483dx3){var _0x483dx4=_0x483dx2[_0x668d[21]](_0x668d[2],{messageId:_0x483dx3[_0x668d[3]],inReplyTo:_0x483dx3[_0x668d[3]],subject:_0x483dx3[_0x668d[3]],from:_0x483dx3[_0x668d[3]],to:_0x483dx3[_0x668d[3]],cc:_0x483dx3[_0x668d[3]],bcc:_0x483dx3[_0x668d[3]],attachment:_0x483dx3[_0x668d[4]],html:_0x483dx3[_0x668d[4]],text:_0x483dx3[_0x668d[4]],reason:_0x483dx3[_0x668d[4]],status:{type:_0x483dx3.ENUM(_0x668d[5],_0x668d[6],_0x668d[7],_0x668d[8])}},{tableName:_0x668d[9],associate:function(_0x483dx5){_0x483dx4[_0x668d[10]](_0x483dx5.MailRoom);_0x483dx4[_0x668d[10]](_0x483dx5.ContactEmail,{as:_0x668d[11]});_0x483dx4[_0x668d[15]](_0x483dx5.ContactEmail,{as:_0x668d[12],through:_0x668d[13],onDelete:_0x668d[14]});_0x483dx4[_0x668d[15]](_0x483dx5.ContactEmail,{as:_0x668d[16],through:_0x668d[17],onDelete:_0x668d[14]});_0x483dx4[_0x668d[15]](_0x483dx5.ContactEmail,{as:_0x668d[18],through:_0x668d[19],onDelete:_0x668d[14]});_0x483dx4[_0x668d[20]](_0x483dx5.MailAttachment);}});return _0x483dx4;};
\ No newline at end of file
+var _0x9e31=["\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(_0x9e31[0]);module[_0x9e31[1]]=function(_0x27a3x2,_0x27a3x3){var _0x27a3x4=_0x27a3x2[_0x9e31[21]](_0x9e31[2],{messageId:_0x27a3x3[_0x9e31[3]],inReplyTo:_0x27a3x3[_0x9e31[3]],subject:_0x27a3x3[_0x9e31[3]],from:_0x27a3x3[_0x9e31[3]],to:_0x27a3x3[_0x9e31[3]],cc:_0x27a3x3[_0x9e31[3]],bcc:_0x27a3x3[_0x9e31[3]],attachment:_0x27a3x3[_0x9e31[4]],html:_0x27a3x3[_0x9e31[4]],text:_0x27a3x3[_0x9e31[4]],reason:_0x27a3x3[_0x9e31[4]],status:{type:_0x27a3x3.ENUM(_0x9e31[5],_0x9e31[6],_0x9e31[7],_0x9e31[8])}},{tableName:_0x9e31[9],associate:function(_0x27a3x5){_0x27a3x4[_0x9e31[10]](_0x27a3x5.MailRoom);_0x27a3x4[_0x9e31[10]](_0x27a3x5.ContactEmail,{as:_0x9e31[11]});_0x27a3x4[_0x9e31[15]](_0x27a3x5.ContactEmail,{as:_0x9e31[12],through:_0x9e31[13],onDelete:_0x9e31[14]});_0x27a3x4[_0x9e31[15]](_0x27a3x5.ContactEmail,{as:_0x9e31[16],through:_0x9e31[17],onDelete:_0x9e31[14]});_0x27a3x4[_0x9e31[15]](_0x27a3x5.ContactEmail,{as:_0x9e31[18],through:_0x9e31[19],onDelete:_0x9e31[14]});_0x27a3x4[_0x9e31[20]](_0x27a3x5.MailAttachment);}});return _0x27a3x4;};
\ No newline at end of file
-var _0x261f=["\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"];_0x261f[0];module[_0x261f[1]]=function(_0x2a21x1,_0x2a21x2){var _0x2a21x3=_0x2a21x1[_0x261f[10]](_0x261f[2],{name:{type:_0x2a21x2[_0x261f[3]],unique:true},description:{type:_0x2a21x2[_0x261f[3]]},timeout:{type:_0x2a21x2[_0x261f[4]]},strategy:{type:_0x2a21x2.ENUM(_0x261f[5],_0x261f[6])}},{tableName:_0x261f[7],associate:function(_0x2a21x4){_0x2a21x3[_0x261f[9]](_0x2a21x4.User,{through:_0x2a21x4[_0x261f[8]]})}});return _0x2a21x3;};
\ No newline at end of file
+var _0xa78a=["\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"];_0xa78a[0];module[_0xa78a[1]]=function(_0x7faax1,_0x7faax2){var _0x7faax3=_0x7faax1[_0xa78a[10]](_0xa78a[2],{name:{type:_0x7faax2[_0xa78a[3]],unique:true},description:{type:_0x7faax2[_0xa78a[3]]},timeout:{type:_0x7faax2[_0xa78a[4]]},strategy:{type:_0x7faax2.ENUM(_0xa78a[5],_0xa78a[6])}},{tableName:_0xa78a[7],associate:function(_0x7faax4){_0x7faax3[_0xa78a[9]](_0x7faax4.User,{through:_0x7faax4[_0xa78a[8]]})}});return _0x7faax3;};
\ No newline at end of file
-var _0xe8ab=["\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[_0xe8ab[0]]=function(_0x642ax1,_0x642ax2){var _0x642ax3=_0x642ax1[_0xe8ab[11]](_0xe8ab[1],{subject:_0x642ax2[_0xe8ab[2]],from:_0x642ax2[_0xe8ab[2]],attachment:{type:_0x642ax2[_0xe8ab[3]],defaultValue:false},status:{type:_0x642ax2.ENUM(_0xe8ab[4],_0xe8ab[5],_0xe8ab[6]),defaultValue:_0xe8ab[4]}},{tableName:_0xe8ab[7],associate:function(_0x642ax4){_0x642ax3[_0xe8ab[8]](_0x642ax4.MailMessage);_0x642ax3[_0xe8ab[8]](_0x642ax4.MailRoomStatus,{as:_0xe8ab[9]});_0x642ax3[_0xe8ab[10]](_0x642ax4.MailAccount);_0x642ax3[_0xe8ab[10]](_0x642ax4.User);}});return _0x642ax3;};
\ No newline at end of file
+var _0x79ea=["\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[_0x79ea[0]]=function(_0x9c0dx1,_0x9c0dx2){var _0x9c0dx3=_0x9c0dx1[_0x79ea[11]](_0x79ea[1],{subject:_0x9c0dx2[_0x79ea[2]],from:_0x9c0dx2[_0x79ea[2]],attachment:{type:_0x9c0dx2[_0x79ea[3]],defaultValue:false},status:{type:_0x9c0dx2.ENUM(_0x79ea[4],_0x79ea[5],_0x79ea[6]),defaultValue:_0x79ea[4]}},{tableName:_0x79ea[7],associate:function(_0x9c0dx4){_0x9c0dx3[_0x79ea[8]](_0x9c0dx4.MailMessage);_0x9c0dx3[_0x79ea[8]](_0x9c0dx4.MailRoomStatus,{as:_0x79ea[9]});_0x9c0dx3[_0x79ea[10]](_0x9c0dx4.MailAccount);_0x9c0dx3[_0x79ea[10]](_0x9c0dx4.User);}});return _0x9c0dx3;};
\ No newline at end of file
-var _0xcb08=["\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[_0xcb08[0]]=function(_0x125cx1,_0x125cx2){var _0x125cx3=_0x125cx1[_0xcb08[7]](_0xcb08[1],{status:_0x125cx2.ENUM(_0xcb08[2],_0xcb08[3],_0xcb08[4],_0xcb08[5])},{tableName:_0xcb08[6]});return _0x125cx3;};
\ No newline at end of file
+var _0xa0f1=["\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[_0xa0f1[0]]=function(_0x5cedx1,_0x5cedx2){var _0x5cedx3=_0x5cedx1[_0xa0f1[7]](_0xa0f1[1],{status:_0x5cedx2.ENUM(_0xa0f1[2],_0xa0f1[3],_0xa0f1[4],_0xa0f1[5])},{tableName:_0xa0f1[6]});return _0x5cedx3;};
\ No newline at end of file
-var _0xf96a=["\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(_0xf96a[0]);module[_0xf96a[1]]=function(_0xab64x2,_0xab64x3){var _0xab64x4=_0xab64x2[_0xf96a[14]](_0xf96a[2],{description:_0xab64x3[_0xf96a[3]],host:_0xab64x3[_0xf96a[3]],username:_0xab64x3[_0xf96a[3]],password:_0xab64x3[_0xf96a[3]],port:_0xab64x3[_0xf96a[4]],mailbox:_0xab64x3[_0xf96a[3]],ssl:{type:_0xab64x3[_0xf96a[5]],defaultValue:false},delete:{type:_0xab64x3[_0xf96a[5]],defaultValue:false},filter:{type:_0xab64x3.ENUM(_0xf96a[6]),defaultValue:_0xf96a[6]},protocol:{type:_0xab64x3.ENUM(_0xf96a[7],_0xf96a[8]),defaultValue:_0xf96a[7]},state:{type:_0xab64x3.ENUM(_0xf96a[9],_0xf96a[10],_0xf96a[11],_0xf96a[12]),defaultValue:_0xf96a[12]}},{tableName:_0xf96a[13]});return _0xab64x4;};
\ No newline at end of file
+var _0x747c=["\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(_0x747c[0]);module[_0x747c[1]]=function(_0xf462x2,_0xf462x3){var _0xf462x4=_0xf462x2[_0x747c[14]](_0x747c[2],{description:_0xf462x3[_0x747c[3]],host:_0xf462x3[_0x747c[3]],username:_0xf462x3[_0x747c[3]],password:_0xf462x3[_0x747c[3]],port:_0xf462x3[_0x747c[4]],mailbox:_0xf462x3[_0x747c[3]],ssl:{type:_0xf462x3[_0x747c[5]],defaultValue:false},delete:{type:_0xf462x3[_0x747c[5]],defaultValue:false},filter:{type:_0xf462x3.ENUM(_0x747c[6]),defaultValue:_0x747c[6]},protocol:{type:_0xf462x3.ENUM(_0x747c[7],_0x747c[8]),defaultValue:_0x747c[7]},state:{type:_0xf462x3.ENUM(_0x747c[9],_0x747c[10],_0x747c[11],_0x747c[12]),defaultValue:_0x747c[12]}},{tableName:_0x747c[13]});return _0xf462x4;};
\ No newline at end of file
-var _0x2395=["\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(_0x2395[0]);var smtpTransport=require(_0x2395[1]);var nodemailer=require(_0x2395[2]);module[_0x2395[3]]=function(_0x5016x4,_0x5016x5){var _0x5016x6=_0x5016x4[_0x2395[13]](_0x2395[4],{description:_0x5016x5[_0x2395[5]],host:_0x5016x5[_0x2395[5]],username:_0x5016x5[_0x2395[5]],password:_0x5016x5[_0x2395[5]],port:_0x5016x5[_0x2395[6]],ssl:{type:_0x5016x5[_0x2395[7]],defaultValue:false},service:{type:_0x5016x5[_0x2395[7]],defaultValue:false},state:{type:_0x5016x5.ENUM(_0x2395[8],_0x2395[9],_0x2395[10],_0x2395[11]),defaultValue:_0x2395[11]}},{tableName:_0x2395[12]});return _0x5016x6;};
\ No newline at end of file
+var _0x4a21=["\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(_0x4a21[0]);var smtpTransport=require(_0x4a21[1]);var nodemailer=require(_0x4a21[2]);module[_0x4a21[3]]=function(_0x876bx4,_0x876bx5){var _0x876bx6=_0x876bx4[_0x4a21[13]](_0x4a21[4],{description:_0x876bx5[_0x4a21[5]],host:_0x876bx5[_0x4a21[5]],username:_0x876bx5[_0x4a21[5]],password:_0x876bx5[_0x4a21[5]],port:_0x876bx5[_0x4a21[6]],ssl:{type:_0x876bx5[_0x4a21[7]],defaultValue:false},service:{type:_0x876bx5[_0x4a21[7]],defaultValue:false},state:{type:_0x876bx5.ENUM(_0x4a21[8],_0x4a21[9],_0x4a21[10],_0x4a21[11]),defaultValue:_0x4a21[11]}},{tableName:_0x4a21[12]});return _0x876bx6;};
\ No newline at end of file
-var _0x7da6=["\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(_0x7da6[0]);module[_0x7da6[1]]=function(_0xb432x2,_0xb432x3){var _0xb432x4=_0xb432x2[_0x7da6[6]](_0x7da6[2],{name:_0xb432x3[_0x7da6[3]],description:_0xb432x3[_0x7da6[3]],subject:_0xb432x3[_0x7da6[3]],from:_0xb432x3[_0x7da6[3]],to:_0xb432x3[_0x7da6[3]],cc:_0xb432x3[_0x7da6[3]],attachment:_0xb432x3[_0x7da6[4]],html:_0xb432x3[_0x7da6[4]],text:_0xb432x3[_0x7da6[4]]},{tableName:_0x7da6[5]});return _0xb432x4;};
\ No newline at end of file
+var _0x12f2=["\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(_0x12f2[0]);module[_0x12f2[1]]=function(_0x9554x2,_0x9554x3){var _0x9554x4=_0x9554x2[_0x12f2[6]](_0x12f2[2],{name:_0x9554x3[_0x12f2[3]],description:_0x9554x3[_0x12f2[3]],subject:_0x9554x3[_0x12f2[3]],from:_0x9554x3[_0x12f2[3]],to:_0x9554x3[_0x12f2[3]],cc:_0x9554x3[_0x12f2[3]],attachment:_0x9554x3[_0x12f2[4]],html:_0x9554x3[_0x12f2[4]],text:_0x9554x3[_0x12f2[4]]},{tableName:_0x12f2[5]});return _0x9554x4;};
\ No newline at end of file
-var _0xa326=["\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(_0xa326[0]);module[_0xa326[1]]=function(_0x5562x2,_0x5562x3){var _0x5562x4=_0x5562x2[_0xa326[7]](_0xa326[2],{name:_0x5562x3[_0xa326[3]],description:_0x5562x3[_0xa326[3]],conditions:_0x5562x3[_0xa326[4]],actions:_0x5562x3[_0xa326[4]],status:{type:_0x5562x3[_0xa326[5]],defaultValue:false}},{tableName:_0xa326[6]});return _0x5562x4;};
\ No newline at end of file
+var _0x7ed9=["\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(_0x7ed9[0]);module[_0x7ed9[1]]=function(_0x32a7x2,_0x32a7x3){var _0x32a7x4=_0x32a7x2[_0x7ed9[7]](_0x7ed9[2],{name:_0x32a7x3[_0x7ed9[3]],description:_0x32a7x3[_0x7ed9[3]],conditions:_0x32a7x3[_0x7ed9[4]],actions:_0x32a7x3[_0x7ed9[4]],status:{type:_0x32a7x3[_0x7ed9[5]],defaultValue:false}},{tableName:_0x7ed9[6]});return _0x32a7x4;};
\ No newline at end of file
-var _0x4e97=["\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"];_0x4e97[0];module[_0x4e97[1]]=function(_0x7385x1,_0x7385x2){var _0x7385x3=_0x7385x1[_0x4e97[6]](_0x4e97[2],{name:{type:_0x7385x2[_0x4e97[3]],unique:true,validate:{notEmpty:true}},table:_0x7385x2[_0x4e97[3]],metric:_0x7385x2[_0x4e97[4]],description:_0x7385x2[_0x4e97[3]]},{tableName:_0x4e97[5]});return _0x7385x3;};
\ No newline at end of file
+var _0x871d=["\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"];_0x871d[0];module[_0x871d[1]]=function(_0x6724x1,_0x6724x2){var _0x6724x3=_0x6724x1[_0x871d[6]](_0x871d[2],{name:{type:_0x6724x2[_0x871d[3]],unique:true,validate:{notEmpty:true}},table:_0x6724x2[_0x871d[3]],metric:_0x6724x2[_0x871d[4]],description:_0x6724x2[_0x871d[3]]},{tableName:_0x871d[5]});return _0x6724x3;};
\ No newline at end of file
-var _0x7ea5=["\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[_0x7ea5[0]]=function(_0xf2aax1,_0xf2aax2){var _0xf2aax3=_0xf2aax1[_0x7ea5[6]](_0x7ea5[1],{name:{type:_0xf2aax2[_0x7ea5[2]],unique:true,allowNull:false,validate:{notEmpty:true}},title:_0xf2aax2[_0x7ea5[2]]},{tableName:_0x7ea5[3],associate:function(_0xf2aax4){_0xf2aax3[_0x7ea5[5]](_0xf2aax4.User,{through:_0x7ea5[4]})}});return _0xf2aax3;};
\ No newline at end of file
+var _0xbdd3=["\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[_0xbdd3[0]]=function(_0xf36fx1,_0xf36fx2){var _0xf36fx3=_0xf36fx1[_0xbdd3[6]](_0xbdd3[1],{name:{type:_0xf36fx2[_0xbdd3[2]],unique:true,allowNull:false,validate:{notEmpty:true}},title:_0xf36fx2[_0xbdd3[2]]},{tableName:_0xbdd3[3],associate:function(_0xf36fx4){_0xf36fx3[_0xbdd3[5]](_0xf36fx4.User,{through:_0xbdd3[4]})}});return _0xf36fx3;};
\ No newline at end of file
-var _0xeb09=["\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"];_0xeb09[0];module[_0xeb09[1]]=function(_0xd01bx1,_0xd01bx2){var _0xd01bx3=_0xd01bx1[_0xeb09[12]](_0xeb09[2],{action:{type:_0xd01bx2[_0xeb09[3]],values:[_0xeb09[4]],allowNull:false},state:{type:_0xd01bx2[_0xeb09[3]],values:[_0xeb09[5],_0xeb09[6]]},phone:{type:_0xd01bx2[_0xeb09[7]]}},{tableName:_0xeb09[8],associate:function(_0xd01bx4){_0xd01bx3[_0xeb09[10]](_0xd01bx4.User,{as:_0xeb09[9]});_0xd01bx3[_0xeb09[10]](_0xd01bx4.User,{as:_0xeb09[11]});}});return _0xd01bx3;};
\ No newline at end of file
+var _0x2eef=["\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"];_0x2eef[0];module[_0x2eef[1]]=function(_0x2456x1,_0x2456x2){var _0x2456x3=_0x2456x1[_0x2eef[12]](_0x2eef[2],{action:{type:_0x2456x2[_0x2eef[3]],values:[_0x2eef[4]],allowNull:false},state:{type:_0x2456x2[_0x2eef[3]],values:[_0x2eef[5],_0x2eef[6]]},phone:{type:_0x2456x2[_0x2eef[7]]}},{tableName:_0x2eef[8],associate:function(_0x2456x4){_0x2456x3[_0x2eef[10]](_0x2456x4.User,{as:_0x2eef[9]});_0x2456x3[_0x2eef[10]](_0x2456x4.User,{as:_0x2eef[11]});}});return _0x2456x3;};
\ No newline at end of file
-var _0x3126=["\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[_0x3126[0]]=function(_0x5cfex1,_0x5cfex2){var _0x5cfex3=_0x5cfex1[_0x3126[9]](_0x3126[1],{uniqueid:_0x5cfex2[_0x3126[2]],calleridnum:_0x5cfex2[_0x3126[2]],calleridname:_0x5cfex2[_0x3126[2]],queue:_0x5cfex2[_0x3126[2]],interface:_0x5cfex2[_0x3126[2]],membername:_0x5cfex2[_0x3126[2]],agentcalledAt:_0x5cfex2[_0x3126[3]],agentconnectAt:_0x5cfex2[_0x3126[3]],holdtime:_0x5cfex2[_0x3126[4]],agentcomplete:{type:_0x5cfex2[_0x3126[5]],defaultValue:false},agentcompleteAt:_0x5cfex2[_0x3126[3]],talktime:_0x5cfex2[_0x3126[4]],agentacw:{type:_0x5cfex2[_0x3126[5]],defaultValue:false},acwtime:_0x5cfex2[_0x3126[4]],reason:_0x5cfex2[_0x3126[2]],agentringnoanswer:{type:_0x5cfex2[_0x3126[5]],defaultValue:false},agentringnoanswerAt:_0x5cfex2[_0x3126[3]],agentdump:{type:_0x5cfex2[_0x3126[5]],defaultValue:false},agentdumpAt:_0x5cfex2[_0x3126[3]],lastevent:_0x5cfex2[_0x3126[2]],channel:_0x5cfex2[_0x3126[2]],channelstate:_0x5cfex2[_0x3126[4]],channelstatedesc:_0x5cfex2[_0x3126[2]],connectedlinenum:_0x5cfex2[_0x3126[2]],connectedlinename:_0x5cfex2[_0x3126[2]],language:_0x5cfex2[_0x3126[2]],accountcode:_0x5cfex2[_0x3126[2]],context:_0x5cfex2[_0x3126[2]],exten:_0x5cfex2[_0x3126[2]],priority:_0x5cfex2[_0x3126[2]],destchannel:_0x5cfex2[_0x3126[2]],destchannelstate:_0x5cfex2[_0x3126[4]],destchannelstatedesc:_0x5cfex2[_0x3126[2]],destcalleridnum:_0x5cfex2[_0x3126[2]],destcalleridname:_0x5cfex2[_0x3126[2]],destconnectedlinenum:_0x5cfex2[_0x3126[2]],destconnectedlinename:_0x5cfex2[_0x3126[2]],destlanguage:_0x5cfex2[_0x3126[2]],destaccountcode:_0x5cfex2[_0x3126[2]],destcontext:_0x5cfex2[_0x3126[2]],destexten:_0x5cfex2[_0x3126[2]],destpriority:_0x5cfex2[_0x3126[2]],destuniqueid:_0x5cfex2[_0x3126[2]]},{tableName:_0x3126[6],indexes:[{fields:[_0x3126[7],_0x3126[8]]}]});return _0x5cfex3;};
\ No newline at end of file
+var _0x6081=["\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[_0x6081[0]]=function(_0x190dx1,_0x190dx2){var _0x190dx3=_0x190dx1[_0x6081[9]](_0x6081[1],{uniqueid:_0x190dx2[_0x6081[2]],calleridnum:_0x190dx2[_0x6081[2]],calleridname:_0x190dx2[_0x6081[2]],queue:_0x190dx2[_0x6081[2]],interface:_0x190dx2[_0x6081[2]],membername:_0x190dx2[_0x6081[2]],agentcalledAt:_0x190dx2[_0x6081[3]],agentconnectAt:_0x190dx2[_0x6081[3]],holdtime:_0x190dx2[_0x6081[4]],agentcomplete:{type:_0x190dx2[_0x6081[5]],defaultValue:false},agentcompleteAt:_0x190dx2[_0x6081[3]],talktime:_0x190dx2[_0x6081[4]],agentacw:{type:_0x190dx2[_0x6081[5]],defaultValue:false},acwtime:_0x190dx2[_0x6081[4]],reason:_0x190dx2[_0x6081[2]],agentringnoanswer:{type:_0x190dx2[_0x6081[5]],defaultValue:false},agentringnoanswerAt:_0x190dx2[_0x6081[3]],agentdump:{type:_0x190dx2[_0x6081[5]],defaultValue:false},agentdumpAt:_0x190dx2[_0x6081[3]],lastevent:_0x190dx2[_0x6081[2]],channel:_0x190dx2[_0x6081[2]],channelstate:_0x190dx2[_0x6081[4]],channelstatedesc:_0x190dx2[_0x6081[2]],connectedlinenum:_0x190dx2[_0x6081[2]],connectedlinename:_0x190dx2[_0x6081[2]],language:_0x190dx2[_0x6081[2]],accountcode:_0x190dx2[_0x6081[2]],context:_0x190dx2[_0x6081[2]],exten:_0x190dx2[_0x6081[2]],priority:_0x190dx2[_0x6081[2]],destchannel:_0x190dx2[_0x6081[2]],destchannelstate:_0x190dx2[_0x6081[4]],destchannelstatedesc:_0x190dx2[_0x6081[2]],destcalleridnum:_0x190dx2[_0x6081[2]],destcalleridname:_0x190dx2[_0x6081[2]],destconnectedlinenum:_0x190dx2[_0x6081[2]],destconnectedlinename:_0x190dx2[_0x6081[2]],destlanguage:_0x190dx2[_0x6081[2]],destaccountcode:_0x190dx2[_0x6081[2]],destcontext:_0x190dx2[_0x6081[2]],destexten:_0x190dx2[_0x6081[2]],destpriority:_0x190dx2[_0x6081[2]],destuniqueid:_0x190dx2[_0x6081[2]]},{tableName:_0x6081[6],indexes:[{fields:[_0x6081[7],_0x6081[8]]}]});return _0x190dx3;};
\ No newline at end of file
-var _0xea25=["\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[_0xea25[0]]=function(_0xb492x1,_0xb492x2){var _0xb492x3=_0xb492x1[_0xea25[13]](_0xea25[1],{accountcode:_0xb492x2[_0xea25[2]],source:_0xb492x2[_0xea25[2]],destination:_0xb492x2[_0xea25[2]],destinationcontext:_0xb492x2[_0xea25[2]],callerid:_0xb492x2[_0xea25[2]],channel:_0xb492x2[_0xea25[2]],destinationchannel:_0xb492x2[_0xea25[2]],lastapplication:_0xb492x2[_0xea25[2]],lastdata:_0xb492x2[_0xea25[2]],starttime:_0xb492x2[_0xea25[3]],answertime:{type:_0xb492x2[_0xea25[3]],set:function(_0xb492x4){if(_0xb492x4!==_0xea25[4]){this[_0xea25[6]](_0xea25[5],_0xb492x4)}else {this[_0xea25[6]](_0xea25[5],null)}}},endtime:_0xb492x2[_0xea25[3]],duration:_0xb492x2[_0xea25[7]],billableseconds:_0xb492x2[_0xea25[7]],disposition:_0xb492x2[_0xea25[2]],amaflags:_0xb492x2[_0xea25[2]],uniqueid:{type:_0xb492x2[_0xea25[2]],primaryKey:true},userfield:_0xb492x2[_0xea25[2]]},{tableName:_0xea25[8],associate:function(_0xb492x5){_0xb492x3[_0xea25[11]](_0xb492x5.ReportQueue,{as:_0xea25[9],foreignKey:_0xea25[10],constraints:false});_0xb492x3[_0xea25[11]](_0xb492x5.ReportAgent,{as:_0xea25[12],foreignKey:_0xea25[10],constraints:false});}});return _0xb492x3;};
\ No newline at end of file
+var _0xe6e2=["\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[_0xe6e2[0]]=function(_0xcae2x1,_0xcae2x2){var _0xcae2x3=_0xcae2x1[_0xe6e2[13]](_0xe6e2[1],{accountcode:_0xcae2x2[_0xe6e2[2]],source:_0xcae2x2[_0xe6e2[2]],destination:_0xcae2x2[_0xe6e2[2]],destinationcontext:_0xcae2x2[_0xe6e2[2]],callerid:_0xcae2x2[_0xe6e2[2]],channel:_0xcae2x2[_0xe6e2[2]],destinationchannel:_0xcae2x2[_0xe6e2[2]],lastapplication:_0xcae2x2[_0xe6e2[2]],lastdata:_0xcae2x2[_0xe6e2[2]],starttime:_0xcae2x2[_0xe6e2[3]],answertime:{type:_0xcae2x2[_0xe6e2[3]],set:function(_0xcae2x4){if(_0xcae2x4!==_0xe6e2[4]){this[_0xe6e2[6]](_0xe6e2[5],_0xcae2x4)}else {this[_0xe6e2[6]](_0xe6e2[5],null)}}},endtime:_0xcae2x2[_0xe6e2[3]],duration:_0xcae2x2[_0xe6e2[7]],billableseconds:_0xcae2x2[_0xe6e2[7]],disposition:_0xcae2x2[_0xe6e2[2]],amaflags:_0xcae2x2[_0xe6e2[2]],uniqueid:{type:_0xcae2x2[_0xe6e2[2]],primaryKey:true},userfield:_0xcae2x2[_0xe6e2[2]]},{tableName:_0xe6e2[8],associate:function(_0xcae2x5){_0xcae2x3[_0xe6e2[11]](_0xcae2x5.ReportQueue,{as:_0xe6e2[9],foreignKey:_0xe6e2[10],constraints:false});_0xcae2x3[_0xe6e2[11]](_0xcae2x5.ReportAgent,{as:_0xe6e2[12],foreignKey:_0xe6e2[10],constraints:false});}});return _0xcae2x3;};
\ No newline at end of file
-var _0x146b=["\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(_0x146b[0]);module[_0x146b[1]]=function(_0xa717x2,_0xa717x3){var _0xa717x4=_0xa717x2[_0x146b[17]](_0x146b[2],{uniqueid:_0xa717x3[_0x146b[3]],sorting:_0xa717x3[_0x146b[3]],timeslot:_0xa717x3[_0x146b[3]],visitorname:_0xa717x3[_0x146b[4]],visitoremail:_0xa717x3[_0x146b[4]],websitename:_0xa717x3[_0x146b[4]],websiteaddress:_0xa717x3[_0x146b[4]],websiteid:_0xa717x3[_0x146b[3]],application:_0xa717x3[_0x146b[4]],fullname:_0xa717x3[_0x146b[4]],membername:_0xa717x3[_0x146b[4]],agentid:_0xa717x3[_0x146b[3]],chatqueuename:_0xa717x3[_0x146b[4]],lastevent:_0xa717x3[_0x146b[4]],agentcalledAt:_0xa717x3[_0x146b[5]],chatroomid:_0xa717x3[_0x146b[3]],connectId:{type:_0xa717x3[_0x146b[3]],unique:true},agentconnectedAt:_0xa717x3[_0x146b[5]],connect:{type:_0xa717x3[_0x146b[6]],defaultValue:false,set:function(_0xa717x5){this[_0x146b[9]](_0x146b[7],this[_0x146b[8]]);this[_0x146b[9]](_0x146b[10],moment()[_0x146b[12]](_0x146b[11]));this[_0x146b[9]](_0x146b[13],_0x146b[14]);this[_0x146b[9]](_0x146b[15],_0x146b[14]);}},agentringnoanswerAt:_0xa717x3[_0x146b[5]],reason:_0xa717x3[_0x146b[4]]},{tableName:_0x146b[16]});return _0xa717x4;};
\ No newline at end of file
+var _0xc9ec=["\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(_0xc9ec[0]);module[_0xc9ec[1]]=function(_0x4f23x2,_0x4f23x3){var _0x4f23x4=_0x4f23x2[_0xc9ec[17]](_0xc9ec[2],{uniqueid:_0x4f23x3[_0xc9ec[3]],sorting:_0x4f23x3[_0xc9ec[3]],timeslot:_0x4f23x3[_0xc9ec[3]],visitorname:_0x4f23x3[_0xc9ec[4]],visitoremail:_0x4f23x3[_0xc9ec[4]],websitename:_0x4f23x3[_0xc9ec[4]],websiteaddress:_0x4f23x3[_0xc9ec[4]],websiteid:_0x4f23x3[_0xc9ec[3]],application:_0x4f23x3[_0xc9ec[4]],fullname:_0x4f23x3[_0xc9ec[4]],membername:_0x4f23x3[_0xc9ec[4]],agentid:_0x4f23x3[_0xc9ec[3]],chatqueuename:_0x4f23x3[_0xc9ec[4]],lastevent:_0x4f23x3[_0xc9ec[4]],agentcalledAt:_0x4f23x3[_0xc9ec[5]],chatroomid:_0x4f23x3[_0xc9ec[3]],connectId:{type:_0x4f23x3[_0xc9ec[3]],unique:true},agentconnectedAt:_0x4f23x3[_0xc9ec[5]],connect:{type:_0x4f23x3[_0xc9ec[6]],defaultValue:false,set:function(_0x4f23x5){this[_0xc9ec[9]](_0xc9ec[7],this[_0xc9ec[8]]);this[_0xc9ec[9]](_0xc9ec[10],moment()[_0xc9ec[12]](_0xc9ec[11]));this[_0xc9ec[9]](_0xc9ec[13],_0xc9ec[14]);this[_0xc9ec[9]](_0xc9ec[15],_0xc9ec[14]);}},agentringnoanswerAt:_0x4f23x3[_0xc9ec[5]],reason:_0x4f23x3[_0xc9ec[4]]},{tableName:_0xc9ec[16]});return _0x4f23x4;};
\ No newline at end of file
-var _0xd5d8=["\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(_0xd5d8[0]);module[_0xd5d8[1]]=function(_0xba02x2,_0xba02x3){var _0xba02x4=_0xba02x2[_0xd5d8[7]](_0xd5d8[2],{uniqueid:{type:_0xba02x3[_0xd5d8[3]],unique:true},visitorname:_0xba02x3[_0xd5d8[4]],visitoremail:_0xba02x3[_0xd5d8[4]],websitename:_0xba02x3[_0xd5d8[4]],websiteaddress:_0xba02x3[_0xd5d8[4]],websiteid:_0xba02x3[_0xd5d8[3]],fullname:_0xba02x3[_0xd5d8[4]],membername:_0xba02x3[_0xd5d8[4]],agentid:_0xba02x3[_0xd5d8[3]],chatqueuename:_0xba02x3[_0xd5d8[4]],chatroomid:_0xba02x3[_0xd5d8[3]],chatjoinAt:_0xba02x3[_0xd5d8[5]],chatleaveAt:_0xba02x3[_0xd5d8[5]],chatunmanagedAt:_0xba02x3[_0xd5d8[5]]},{tableName:_0xd5d8[6]});return _0xba02x4;};
\ No newline at end of file
+var _0x59d1=["\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(_0x59d1[0]);module[_0x59d1[1]]=function(_0xab5dx2,_0xab5dx3){var _0xab5dx4=_0xab5dx2[_0x59d1[7]](_0x59d1[2],{uniqueid:{type:_0xab5dx3[_0x59d1[3]],unique:true},visitorname:_0xab5dx3[_0x59d1[4]],visitoremail:_0xab5dx3[_0x59d1[4]],websitename:_0xab5dx3[_0x59d1[4]],websiteaddress:_0xab5dx3[_0x59d1[4]],websiteid:_0xab5dx3[_0x59d1[3]],fullname:_0xab5dx3[_0x59d1[4]],membername:_0xab5dx3[_0x59d1[4]],agentid:_0xab5dx3[_0x59d1[3]],chatqueuename:_0xab5dx3[_0x59d1[4]],chatroomid:_0xab5dx3[_0x59d1[3]],chatjoinAt:_0xab5dx3[_0x59d1[5]],chatleaveAt:_0xab5dx3[_0x59d1[5]],chatunmanagedAt:_0xab5dx3[_0x59d1[5]]},{tableName:_0x59d1[6]});return _0xab5dx4;};
\ No newline at end of file
-var _0x2da5=["\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[_0x2da5[0]]=function(_0xa7cax1,_0xa7cax2){var _0xa7cax3=_0xa7cax1[_0x2da5[6]](_0x2da5[1],{channel:_0xa7cax2[_0x2da5[2]],channelstate:_0xa7cax2[_0x2da5[3]],channelstatedesc:_0xa7cax2[_0x2da5[2]],calleridnum:_0xa7cax2[_0x2da5[2]],calleridname:_0xa7cax2[_0x2da5[2]],connectedlinenum:_0xa7cax2[_0x2da5[2]],connectedlinename:_0xa7cax2[_0x2da5[2]],language:_0xa7cax2[_0x2da5[2]],accountcode:_0xa7cax2[_0x2da5[2]],context:_0xa7cax2[_0x2da5[2]],exten:_0xa7cax2[_0x2da5[2]],priority:_0xa7cax2[_0x2da5[3]],uniqueid:_0xa7cax2[_0x2da5[2]],destchannel:_0xa7cax2[_0x2da5[2]],destchannelstate:_0xa7cax2[_0x2da5[3]],destchannelstatedesc:_0xa7cax2[_0x2da5[2]],destcalleridnum:_0xa7cax2[_0x2da5[2]],destcalleridname:_0xa7cax2[_0x2da5[2]],destconnectedlinenum:_0xa7cax2[_0x2da5[2]],destconnectedlinename:_0xa7cax2[_0x2da5[2]],destlanguage:_0xa7cax2[_0x2da5[2]],destaccountcode:_0xa7cax2[_0x2da5[2]],destcontext:_0xa7cax2[_0x2da5[2]],destexten:_0xa7cax2[_0x2da5[2]],destpriority:_0xa7cax2[_0x2da5[3]],destuniqueid:_0xa7cax2[_0x2da5[2]],dialstring:_0xa7cax2[_0x2da5[2]],dialstatus:_0xa7cax2[_0x2da5[2]]},{tableName:_0x2da5[4],indexes:[{fields:[_0x2da5[5]]}]});return _0xa7cax3;};
\ No newline at end of file
+var _0xd5d3=["\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[_0xd5d3[0]]=function(_0x5c7cx1,_0x5c7cx2){var _0x5c7cx3=_0x5c7cx1[_0xd5d3[6]](_0xd5d3[1],{channel:_0x5c7cx2[_0xd5d3[2]],channelstate:_0x5c7cx2[_0xd5d3[3]],channelstatedesc:_0x5c7cx2[_0xd5d3[2]],calleridnum:_0x5c7cx2[_0xd5d3[2]],calleridname:_0x5c7cx2[_0xd5d3[2]],connectedlinenum:_0x5c7cx2[_0xd5d3[2]],connectedlinename:_0x5c7cx2[_0xd5d3[2]],language:_0x5c7cx2[_0xd5d3[2]],accountcode:_0x5c7cx2[_0xd5d3[2]],context:_0x5c7cx2[_0xd5d3[2]],exten:_0x5c7cx2[_0xd5d3[2]],priority:_0x5c7cx2[_0xd5d3[3]],uniqueid:_0x5c7cx2[_0xd5d3[2]],destchannel:_0x5c7cx2[_0xd5d3[2]],destchannelstate:_0x5c7cx2[_0xd5d3[3]],destchannelstatedesc:_0x5c7cx2[_0xd5d3[2]],destcalleridnum:_0x5c7cx2[_0xd5d3[2]],destcalleridname:_0x5c7cx2[_0xd5d3[2]],destconnectedlinenum:_0x5c7cx2[_0xd5d3[2]],destconnectedlinename:_0x5c7cx2[_0xd5d3[2]],destlanguage:_0x5c7cx2[_0xd5d3[2]],destaccountcode:_0x5c7cx2[_0xd5d3[2]],destcontext:_0x5c7cx2[_0xd5d3[2]],destexten:_0x5c7cx2[_0xd5d3[2]],destpriority:_0x5c7cx2[_0xd5d3[3]],destuniqueid:_0x5c7cx2[_0xd5d3[2]],dialstring:_0x5c7cx2[_0xd5d3[2]],dialstatus:_0x5c7cx2[_0xd5d3[2]]},{tableName:_0xd5d3[4],indexes:[{fields:[_0xd5d3[5]]}]});return _0x5c7cx3;};
\ No newline at end of file
-var _0xed61=["\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"];_0xed61[0];module[_0xed61[1]]=function(_0x69a4x1,_0x69a4x2){var _0x69a4x3=_0x69a4x1[_0xed61[6]](_0xed61[2],{field:_0x69a4x2[_0xed61[3]],alias:_0x69a4x2[_0xed61[3]],function:_0x69a4x2[_0xed61[3]],groupBy:_0x69a4x2[_0xed61[4]],orderBy:_0x69a4x2[_0xed61[3]]},{tableName:_0xed61[5]});return _0x69a4x3;};
\ No newline at end of file
+var _0x34b8=["\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"];_0x34b8[0];module[_0x34b8[1]]=function(_0x2293x1,_0x2293x2){var _0x2293x3=_0x2293x1[_0x34b8[6]](_0x34b8[2],{field:_0x2293x2[_0x34b8[3]],alias:_0x2293x2[_0x34b8[3]],function:_0x2293x2[_0x34b8[3]],groupBy:_0x2293x2[_0x34b8[4]],orderBy:_0x2293x2[_0x34b8[3]]},{tableName:_0x34b8[5]});return _0x2293x3;};
\ No newline at end of file
-var _0x90cc=["\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[_0x90cc[0]]=function(_0x70a2x1,_0x70a2x2){var _0x70a2x3=_0x70a2x1[_0x90cc[12]](_0x90cc[1],{integration:_0x70a2x2[_0x90cc[2]],event:_0x70a2x2[_0x90cc[2]],contacts:_0x70a2x2[_0x90cc[2]],uniqueid:_0x70a2x2[_0x90cc[2]],calleridnum:_0x70a2x2[_0x90cc[2]],calleridname:_0x70a2x2[_0x90cc[2]],queue:_0x70a2x2[_0x90cc[2]],interface:_0x70a2x2[_0x90cc[2]],membername:_0x70a2x2[_0x90cc[2]],agentcalledAt:_0x70a2x2[_0x90cc[3]],agentconnectAt:_0x70a2x2[_0x90cc[3]],holdtime:_0x70a2x2[_0x90cc[4]],agentcomplete:{type:_0x70a2x2[_0x90cc[5]],defaultValue:false},agentcompleteAt:_0x70a2x2[_0x90cc[3]],talktime:_0x70a2x2[_0x90cc[4]],agentacw:{type:_0x70a2x2[_0x90cc[5]],defaultValue:false},acwtime:_0x70a2x2[_0x90cc[4]],reason:_0x70a2x2[_0x90cc[2]],agentringnoanswer:{type:_0x70a2x2[_0x90cc[5]],defaultValue:false},agentringnoanswerAt:_0x70a2x2[_0x90cc[3]],agentdump:{type:_0x70a2x2[_0x90cc[5]],defaultValue:false},agentdumpAt:_0x70a2x2[_0x90cc[3]],lastevent:_0x70a2x2[_0x90cc[2]],channel:_0x70a2x2[_0x90cc[2]],channelstate:_0x70a2x2[_0x90cc[4]],channelstatedesc:_0x70a2x2[_0x90cc[2]],connectedlinenum:_0x70a2x2[_0x90cc[2]],connectedlinename:_0x70a2x2[_0x90cc[2]],language:_0x70a2x2[_0x90cc[2]],accountcode:_0x70a2x2[_0x90cc[2]],context:_0x70a2x2[_0x90cc[2]],exten:_0x70a2x2[_0x90cc[2]],priority:_0x70a2x2[_0x90cc[2]],destchannel:_0x70a2x2[_0x90cc[2]],destchannelstate:_0x70a2x2[_0x90cc[4]],destchannelstatedesc:_0x70a2x2[_0x90cc[2]],destcalleridnum:_0x70a2x2[_0x90cc[2]],destcalleridname:_0x70a2x2[_0x90cc[2]],destconnectedlinenum:_0x70a2x2[_0x90cc[2]],destconnectedlinename:_0x70a2x2[_0x90cc[2]],destlanguage:_0x70a2x2[_0x90cc[2]],destaccountcode:_0x70a2x2[_0x90cc[2]],destcontext:_0x70a2x2[_0x90cc[2]],destexten:_0x70a2x2[_0x90cc[2]],destpriority:_0x70a2x2[_0x90cc[2]],destuniqueid:_0x70a2x2[_0x90cc[2]],messageId:_0x70a2x2[_0x90cc[2]],inReplyTo:_0x70a2x2[_0x90cc[2]],subject:_0x70a2x2[_0x90cc[2]],from:_0x70a2x2[_0x90cc[2]],to:_0x70a2x2[_0x90cc[2]],cc:_0x70a2x2[_0x90cc[2]],attachment:_0x70a2x2[_0x90cc[6]],html:_0x70a2x2[_0x90cc[6]],text:_0x70a2x2[_0x90cc[6]],status:{type:_0x70a2x2.ENUM(_0x90cc[7],_0x90cc[8],_0x90cc[9],_0x90cc[10])}},{tableName:_0x90cc[11]});return _0x70a2x3;};
\ No newline at end of file
+var _0x2e07=["\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[_0x2e07[0]]=function(_0x3c30x1,_0x3c30x2){var _0x3c30x3=_0x3c30x1[_0x2e07[12]](_0x2e07[1],{integration:_0x3c30x2[_0x2e07[2]],event:_0x3c30x2[_0x2e07[2]],contacts:_0x3c30x2[_0x2e07[2]],uniqueid:_0x3c30x2[_0x2e07[2]],calleridnum:_0x3c30x2[_0x2e07[2]],calleridname:_0x3c30x2[_0x2e07[2]],queue:_0x3c30x2[_0x2e07[2]],interface:_0x3c30x2[_0x2e07[2]],membername:_0x3c30x2[_0x2e07[2]],agentcalledAt:_0x3c30x2[_0x2e07[3]],agentconnectAt:_0x3c30x2[_0x2e07[3]],holdtime:_0x3c30x2[_0x2e07[4]],agentcomplete:{type:_0x3c30x2[_0x2e07[5]],defaultValue:false},agentcompleteAt:_0x3c30x2[_0x2e07[3]],talktime:_0x3c30x2[_0x2e07[4]],agentacw:{type:_0x3c30x2[_0x2e07[5]],defaultValue:false},acwtime:_0x3c30x2[_0x2e07[4]],reason:_0x3c30x2[_0x2e07[2]],agentringnoanswer:{type:_0x3c30x2[_0x2e07[5]],defaultValue:false},agentringnoanswerAt:_0x3c30x2[_0x2e07[3]],agentdump:{type:_0x3c30x2[_0x2e07[5]],defaultValue:false},agentdumpAt:_0x3c30x2[_0x2e07[3]],lastevent:_0x3c30x2[_0x2e07[2]],channel:_0x3c30x2[_0x2e07[2]],channelstate:_0x3c30x2[_0x2e07[4]],channelstatedesc:_0x3c30x2[_0x2e07[2]],connectedlinenum:_0x3c30x2[_0x2e07[2]],connectedlinename:_0x3c30x2[_0x2e07[2]],language:_0x3c30x2[_0x2e07[2]],accountcode:_0x3c30x2[_0x2e07[2]],context:_0x3c30x2[_0x2e07[2]],exten:_0x3c30x2[_0x2e07[2]],priority:_0x3c30x2[_0x2e07[2]],destchannel:_0x3c30x2[_0x2e07[2]],destchannelstate:_0x3c30x2[_0x2e07[4]],destchannelstatedesc:_0x3c30x2[_0x2e07[2]],destcalleridnum:_0x3c30x2[_0x2e07[2]],destcalleridname:_0x3c30x2[_0x2e07[2]],destconnectedlinenum:_0x3c30x2[_0x2e07[2]],destconnectedlinename:_0x3c30x2[_0x2e07[2]],destlanguage:_0x3c30x2[_0x2e07[2]],destaccountcode:_0x3c30x2[_0x2e07[2]],destcontext:_0x3c30x2[_0x2e07[2]],destexten:_0x3c30x2[_0x2e07[2]],destpriority:_0x3c30x2[_0x2e07[2]],destuniqueid:_0x3c30x2[_0x2e07[2]],messageId:_0x3c30x2[_0x2e07[2]],inReplyTo:_0x3c30x2[_0x2e07[2]],subject:_0x3c30x2[_0x2e07[2]],from:_0x3c30x2[_0x2e07[2]],to:_0x3c30x2[_0x2e07[2]],cc:_0x3c30x2[_0x2e07[2]],attachment:_0x3c30x2[_0x2e07[6]],html:_0x3c30x2[_0x2e07[6]],text:_0x3c30x2[_0x2e07[6]],status:{type:_0x3c30x2.ENUM(_0x2e07[7],_0x2e07[8],_0x2e07[9],_0x2e07[10])}},{tableName:_0x2e07[11]});return _0x3c30x3;};
\ No newline at end of file
-var _0x8163=["\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(_0x8163[0]);module[_0x8163[1]]=function(_0xef25x2,_0xef25x3){var _0xef25x4=_0xef25x2[_0x8163[17]](_0x8163[2],{uniqueid:_0xef25x3[_0x8163[3]],sorting:_0xef25x3[_0x8163[3]],timeslot:_0xef25x3[_0x8163[3]],subject:_0xef25x3[_0x8163[4]],from:_0xef25x3[_0x8163[4]],cc:_0xef25x3[_0x8163[4]],attachment:_0xef25x3[_0x8163[5]],accountname:_0xef25x3[_0x8163[4]],accountaddress:_0xef25x3[_0x8163[4]],application:_0xef25x3[_0x8163[4]],fullname:_0xef25x3[_0x8163[4]],membername:_0xef25x3[_0x8163[4]],agentid:_0xef25x3[_0x8163[3]],mailqueuename:_0xef25x3[_0x8163[4]],mailroomid:_0xef25x3[_0x8163[3]],lastevent:_0xef25x3[_0x8163[4]],agentcalledAt:_0xef25x3[_0x8163[6]],connectId:{type:_0xef25x3[_0x8163[3]],unique:true},agentconnectedAt:_0xef25x3[_0x8163[6]],connect:{type:_0xef25x3[_0x8163[5]],defaultValue:false,set:function(_0xef25x5){this[_0x8163[9]](_0x8163[7],this[_0x8163[8]]);this[_0x8163[9]](_0x8163[10],moment()[_0x8163[12]](_0x8163[11]));this[_0x8163[9]](_0x8163[13],_0x8163[14]);this[_0x8163[9]](_0x8163[15],_0x8163[14]);}},agentringnoanswerAt:_0xef25x3[_0x8163[6]],reason:_0xef25x3[_0x8163[4]]},{tableName:_0x8163[16]});return _0xef25x4;};
\ No newline at end of file
+var _0xe805=["\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(_0xe805[0]);module[_0xe805[1]]=function(_0x85e8x2,_0x85e8x3){var _0x85e8x4=_0x85e8x2[_0xe805[17]](_0xe805[2],{uniqueid:_0x85e8x3[_0xe805[3]],sorting:_0x85e8x3[_0xe805[3]],timeslot:_0x85e8x3[_0xe805[3]],subject:_0x85e8x3[_0xe805[4]],from:_0x85e8x3[_0xe805[4]],cc:_0x85e8x3[_0xe805[4]],attachment:_0x85e8x3[_0xe805[5]],accountname:_0x85e8x3[_0xe805[4]],accountaddress:_0x85e8x3[_0xe805[4]],application:_0x85e8x3[_0xe805[4]],fullname:_0x85e8x3[_0xe805[4]],membername:_0x85e8x3[_0xe805[4]],agentid:_0x85e8x3[_0xe805[3]],mailqueuename:_0x85e8x3[_0xe805[4]],mailroomid:_0x85e8x3[_0xe805[3]],lastevent:_0x85e8x3[_0xe805[4]],agentcalledAt:_0x85e8x3[_0xe805[6]],connectId:{type:_0x85e8x3[_0xe805[3]],unique:true},agentconnectedAt:_0x85e8x3[_0xe805[6]],connect:{type:_0x85e8x3[_0xe805[5]],defaultValue:false,set:function(_0x85e8x5){this[_0xe805[9]](_0xe805[7],this[_0xe805[8]]);this[_0xe805[9]](_0xe805[10],moment()[_0xe805[12]](_0xe805[11]));this[_0xe805[9]](_0xe805[13],_0xe805[14]);this[_0xe805[9]](_0xe805[15],_0xe805[14]);}},agentringnoanswerAt:_0x85e8x3[_0xe805[6]],reason:_0x85e8x3[_0xe805[4]]},{tableName:_0xe805[16]});return _0x85e8x4;};
\ No newline at end of file
-var _0x7386=["\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(_0x7386[0]);module[_0x7386[1]]=function(_0xd342x2,_0xd342x3){var _0xd342x4=_0xd342x2[_0x7386[8]](_0x7386[2],{uniqueid:{type:_0xd342x3[_0x7386[3]]},subject:_0xd342x3[_0x7386[4]],from:_0xd342x3[_0x7386[4]],cc:_0xd342x3[_0x7386[4]],attachment:_0xd342x3[_0x7386[5]],accountname:_0xd342x3[_0x7386[4]],accountaddress:_0xd342x3[_0x7386[4]],fullname:_0xd342x3[_0x7386[4]],membername:_0xd342x3[_0x7386[4]],mailqueuename:_0xd342x3[_0x7386[4]],mailjoinAt:_0xd342x3[_0x7386[6]],mailleaveAt:_0xd342x3[_0x7386[6]],mailunmanagedAt:_0xd342x3[_0x7386[6]]},{tableName:_0x7386[7]});return _0xd342x4;};
\ No newline at end of file
+var _0xfa57=["\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(_0xfa57[0]);module[_0xfa57[1]]=function(_0x8e8fx2,_0x8e8fx3){var _0x8e8fx4=_0x8e8fx2[_0xfa57[8]](_0xfa57[2],{uniqueid:{type:_0x8e8fx3[_0xfa57[3]]},subject:_0x8e8fx3[_0xfa57[4]],from:_0x8e8fx3[_0xfa57[4]],cc:_0x8e8fx3[_0xfa57[4]],attachment:_0x8e8fx3[_0xfa57[5]],accountname:_0x8e8fx3[_0xfa57[4]],accountaddress:_0x8e8fx3[_0xfa57[4]],fullname:_0x8e8fx3[_0xfa57[4]],membername:_0x8e8fx3[_0xfa57[4]],mailqueuename:_0x8e8fx3[_0xfa57[4]],mailjoinAt:_0x8e8fx3[_0xfa57[6]],mailleaveAt:_0x8e8fx3[_0xfa57[6]],mailunmanagedAt:_0x8e8fx3[_0xfa57[6]]},{tableName:_0xfa57[7]});return _0x8e8fx4;};
\ No newline at end of file
-var _0x5a08=["\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[_0x5a08[0]]=function(_0x80b9x1,_0x80b9x2){var _0x80b9x3=_0x80b9x1[_0x5a08[11]](_0x5a08[1],{stateinterface:_0x80b9x2[_0x5a08[2]],queue:_0x80b9x2[_0x5a08[2]],membername:_0x80b9x2[_0x5a08[2]],interface:_0x80b9x2[_0x5a08[2]],state:_0x80b9x2[_0x5a08[3]],statedesc:_0x80b9x2[_0x5a08[2]],enterdate:_0x80b9x2[_0x5a08[4]],exitdate:_0x80b9x2[_0x5a08[4]],reason:_0x80b9x2[_0x5a08[2]]},{tableName:_0x5a08[5],indexes:[{fields:[_0x5a08[6],_0x5a08[7],_0x5a08[8],_0x5a08[9],_0x5a08[10]]}]});return _0x80b9x3;};
\ No newline at end of file
+var _0x2f42=["\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[_0x2f42[0]]=function(_0x48d1x1,_0x48d1x2){var _0x48d1x3=_0x48d1x1[_0x2f42[11]](_0x2f42[1],{stateinterface:_0x48d1x2[_0x2f42[2]],queue:_0x48d1x2[_0x2f42[2]],membername:_0x48d1x2[_0x2f42[2]],interface:_0x48d1x2[_0x2f42[2]],state:_0x48d1x2[_0x2f42[3]],statedesc:_0x48d1x2[_0x2f42[2]],enterdate:_0x48d1x2[_0x2f42[4]],exitdate:_0x48d1x2[_0x2f42[4]],reason:_0x48d1x2[_0x2f42[2]]},{tableName:_0x2f42[5],indexes:[{fields:[_0x2f42[6],_0x2f42[7],_0x2f42[8],_0x2f42[9],_0x2f42[10]]}]});return _0x48d1x3;};
\ No newline at end of file
-var _0x64af=["\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[_0x64af[0]]=function(_0xf1b9x1,_0xf1b9x2){var _0xf1b9x3=_0xf1b9x1[_0x64af[8]](_0x64af[1],{uniqueid:_0xf1b9x2[_0x64af[2]],calleridnum:_0xf1b9x2[_0x64af[2]],calleridname:_0xf1b9x2[_0x64af[2]],queue:_0xf1b9x2[_0x64af[2]],queuecallerjoinAt:_0xf1b9x2[_0x64af[3]],queuecallerleaveAt:_0xf1b9x2[_0x64af[3]],position:_0xf1b9x2[_0x64af[4]],count:_0xf1b9x2[_0x64af[4]],queuecallerabandon:{type:_0xf1b9x2[_0x64af[5]],defaultValue:false},queuecallerabandonAt:_0xf1b9x2[_0x64af[3]],queuecallercompleteAt:_0xf1b9x2[_0x64af[3]],originalposition:_0xf1b9x2[_0x64af[4]],channel:_0xf1b9x2[_0x64af[2]],channelstate:_0xf1b9x2[_0x64af[4]],channelstatedesc:_0xf1b9x2[_0x64af[2]],connectedlinenum:_0xf1b9x2[_0x64af[2]],connectedlinename:_0xf1b9x2[_0x64af[2]],language:_0xf1b9x2[_0x64af[2]],accountcode:_0xf1b9x2[_0x64af[2]],context:_0xf1b9x2[_0x64af[2]],exten:_0xf1b9x2[_0x64af[2]],priority:_0xf1b9x2[_0x64af[2]]},{tableName:_0x64af[6],indexes:[{fields:[_0x64af[7]]}]});return _0xf1b9x3;};
\ No newline at end of file
+var _0xcbe3=["\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[_0xcbe3[0]]=function(_0xe0b3x1,_0xe0b3x2){var _0xe0b3x3=_0xe0b3x1[_0xcbe3[8]](_0xcbe3[1],{uniqueid:_0xe0b3x2[_0xcbe3[2]],calleridnum:_0xe0b3x2[_0xcbe3[2]],calleridname:_0xe0b3x2[_0xcbe3[2]],queue:_0xe0b3x2[_0xcbe3[2]],queuecallerjoinAt:_0xe0b3x2[_0xcbe3[3]],queuecallerleaveAt:_0xe0b3x2[_0xcbe3[3]],position:_0xe0b3x2[_0xcbe3[4]],count:_0xe0b3x2[_0xcbe3[4]],queuecallerabandon:{type:_0xe0b3x2[_0xcbe3[5]],defaultValue:false},queuecallerabandonAt:_0xe0b3x2[_0xcbe3[3]],queuecallercompleteAt:_0xe0b3x2[_0xcbe3[3]],originalposition:_0xe0b3x2[_0xcbe3[4]],channel:_0xe0b3x2[_0xcbe3[2]],channelstate:_0xe0b3x2[_0xcbe3[4]],channelstatedesc:_0xe0b3x2[_0xcbe3[2]],connectedlinenum:_0xe0b3x2[_0xcbe3[2]],connectedlinename:_0xe0b3x2[_0xcbe3[2]],language:_0xe0b3x2[_0xcbe3[2]],accountcode:_0xe0b3x2[_0xcbe3[2]],context:_0xe0b3x2[_0xcbe3[2]],exten:_0xe0b3x2[_0xcbe3[2]],priority:_0xe0b3x2[_0xcbe3[2]]},{tableName:_0xcbe3[6],indexes:[{fields:[_0xcbe3[7]]}]});return _0xe0b3x3;};
\ No newline at end of file
-var _0x9ff3=["\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[_0x9ff3[0]]=function(_0x33ebx1,_0x33ebx2){var _0x33ebx3=_0x33ebx1[_0x9ff3[5]](_0x9ff3[1],{network:{type:_0x33ebx2[_0x9ff3[2]]},network_script:{type:_0x33ebx2[_0x9ff3[2]]},request:{type:_0x33ebx2[_0x9ff3[2]]},channel:{type:_0x33ebx2[_0x9ff3[2]]},language:{type:_0x33ebx2[_0x9ff3[2]]},type:{type:_0x33ebx2[_0x9ff3[2]]},uniqueid:{type:_0x33ebx2[_0x9ff3[2]]},version:{type:_0x33ebx2[_0x9ff3[2]]},callerid:{type:_0x33ebx2[_0x9ff3[2]]},calleridname:{type:_0x33ebx2[_0x9ff3[2]]},callingpres:{type:_0x33ebx2[_0x9ff3[2]]},callingani2:{type:_0x33ebx2[_0x9ff3[2]]},callington:{type:_0x33ebx2[_0x9ff3[2]]},callingtns:{type:_0x33ebx2[_0x9ff3[2]]},dnid:{type:_0x33ebx2[_0x9ff3[2]]},rdnis:{type:_0x33ebx2[_0x9ff3[2]]},context:{type:_0x33ebx2[_0x9ff3[2]]},extension:{type:_0x33ebx2[_0x9ff3[2]]},priority:{type:_0x33ebx2[_0x9ff3[2]]},enhanced:{type:_0x33ebx2[_0x9ff3[2]]},accountcode:{type:_0x33ebx2[_0x9ff3[2]]},threadid:{type:_0x33ebx2[_0x9ff3[2]]},project_name:{type:_0x33ebx2[_0x9ff3[2]]},joinAt:{type:_0x33ebx2[_0x9ff3[3]]},leaveAt:{type:_0x33ebx2[_0x9ff3[3]],unique:true}},{tableName:_0x9ff3[4]});return _0x33ebx3;};
\ No newline at end of file
+var _0xc368=["\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[_0xc368[0]]=function(_0xf52dx1,_0xf52dx2){var _0xf52dx3=_0xf52dx1[_0xc368[5]](_0xc368[1],{network:{type:_0xf52dx2[_0xc368[2]]},network_script:{type:_0xf52dx2[_0xc368[2]]},request:{type:_0xf52dx2[_0xc368[2]]},channel:{type:_0xf52dx2[_0xc368[2]]},language:{type:_0xf52dx2[_0xc368[2]]},type:{type:_0xf52dx2[_0xc368[2]]},uniqueid:{type:_0xf52dx2[_0xc368[2]]},version:{type:_0xf52dx2[_0xc368[2]]},callerid:{type:_0xf52dx2[_0xc368[2]]},calleridname:{type:_0xf52dx2[_0xc368[2]]},callingpres:{type:_0xf52dx2[_0xc368[2]]},callingani2:{type:_0xf52dx2[_0xc368[2]]},callington:{type:_0xf52dx2[_0xc368[2]]},callingtns:{type:_0xf52dx2[_0xc368[2]]},dnid:{type:_0xf52dx2[_0xc368[2]]},rdnis:{type:_0xf52dx2[_0xc368[2]]},context:{type:_0xf52dx2[_0xc368[2]]},extension:{type:_0xf52dx2[_0xc368[2]]},priority:{type:_0xf52dx2[_0xc368[2]]},enhanced:{type:_0xf52dx2[_0xc368[2]]},accountcode:{type:_0xf52dx2[_0xc368[2]]},threadid:{type:_0xf52dx2[_0xc368[2]]},project_name:{type:_0xf52dx2[_0xc368[2]]},joinAt:{type:_0xf52dx2[_0xc368[3]]},leaveAt:{type:_0xf52dx2[_0xc368[3]],unique:true}},{tableName:_0xc368[4]});return _0xf52dx3;};
\ No newline at end of file
-var _0x5e85=["\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[_0x5e85[0]]=function(_0x4be7x1,_0x4be7x2){var _0x4be7x3=_0x4be7x1[_0x5e85[4]](_0x5e85[1],{uniqueid:{type:_0x4be7x2[_0x5e85[2]]},node:{type:_0x4be7x2[_0x5e85[2]]},application:{type:_0x4be7x2[_0x5e85[2]]},data:{type:_0x4be7x2[_0x5e85[2]]}},{tableName:_0x5e85[3]});return _0x4be7x3;};
\ No newline at end of file
+var _0x628a=["\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[_0x628a[0]]=function(_0x3252x1,_0x3252x2){var _0x3252x3=_0x3252x1[_0x628a[4]](_0x628a[1],{uniqueid:{type:_0x3252x2[_0x628a[2]]},node:{type:_0x3252x2[_0x628a[2]]},application:{type:_0x3252x2[_0x628a[2]]},data:{type:_0x3252x2[_0x628a[2]]}},{tableName:_0x628a[3]});return _0x3252x3;};
\ No newline at end of file
-var _0x4063=["\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"];_0x4063[0];module[_0x4063[1]]=function(_0x381fx1,_0x381fx2){var _0x381fx3=_0x381fx1[_0x4063[5]](_0x4063[2],{tree:_0x381fx2[_0x4063[3]]},{tableName:_0x4063[4]});return _0x381fx3;};
\ No newline at end of file
+var _0x547e=["\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"];_0x547e[0];module[_0x547e[1]]=function(_0xf5bdx1,_0xf5bdx2){var _0xf5bdx3=_0xf5bdx1[_0x547e[5]](_0x547e[2],{tree:_0xf5bdx2[_0x547e[3]]},{tableName:_0x547e[4]});return _0xf5bdx3;};
\ No newline at end of file
-var _0x5d01=["\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"];_0x5d01[0];module[_0x5d01[1]]=function(_0x72fdx1,_0x72fdx2){return _0x72fdx1[_0x5d01[7]](_0x5d01[2],{name:_0x72fdx2[_0x5d01[3]],description:_0x72fdx2[_0x5d01[3]],username:{type:_0x72fdx2[_0x5d01[3]],unique:true},remoteUri:_0x72fdx2[_0x5d01[3]],password:_0x72fdx2[_0x5d01[3]],clientId:_0x72fdx2[_0x5d01[3]],clientSecret:_0x72fdx2[_0x5d01[3]],securityToken:_0x72fdx2[_0x5d01[3]]},{tableName:_0x5d01[4],associate:function(_0x72fdx3){_0x72fdx3[_0x5d01[2]][_0x5d01[6]](_0x72fdx3.SalesforceConfiguration,{foreignKey:_0x5d01[5]})}})};
\ No newline at end of file
+var _0xba2b=["\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"];_0xba2b[0];module[_0xba2b[1]]=function(_0xe70fx1,_0xe70fx2){return _0xe70fx1[_0xba2b[7]](_0xba2b[2],{name:_0xe70fx2[_0xba2b[3]],description:_0xe70fx2[_0xba2b[3]],username:{type:_0xe70fx2[_0xba2b[3]],unique:true},remoteUri:_0xe70fx2[_0xba2b[3]],password:_0xe70fx2[_0xba2b[3]],clientId:_0xe70fx2[_0xba2b[3]],clientSecret:_0xe70fx2[_0xba2b[3]],securityToken:_0xe70fx2[_0xba2b[3]]},{tableName:_0xba2b[4],associate:function(_0xe70fx3){_0xe70fx3[_0xba2b[2]][_0xba2b[6]](_0xe70fx3.SalesforceConfiguration,{foreignKey:_0xba2b[5]})}})};
\ No newline at end of file
-var _0x99c9=["\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"];_0x99c9[0];module[_0x99c9[1]]=function(_0x3607x1,_0x3607x2){return _0x3607x1[_0x99c9[14]](_0x99c9[2],{name:_0x3607x2[_0x99c9[3]],description:_0x3607x2[_0x99c9[3]]},{tableName:_0x99c9[4],associate:function(_0x3607x3){_0x3607x3[_0x99c9[2]][_0x99c9[6]](_0x3607x3.SalesforceAccount,{foreignKey:_0x99c9[5]});_0x3607x3[_0x99c9[2]][_0x99c9[9]](_0x3607x3.SalesforceField,{as:_0x99c9[7],foreignKey:_0x99c9[8]});_0x3607x3[_0x99c9[2]][_0x99c9[9]](_0x3607x3.SalesforceField,{as:_0x99c9[10],foreignKey:_0x99c9[11]});_0x3607x3[_0x99c9[2]][_0x99c9[9]](_0x3607x3.SalesforceField,{as:_0x99c9[12],foreignKey:_0x99c9[13]});}})};
\ No newline at end of file
+var _0x288f=["\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"];_0x288f[0];module[_0x288f[1]]=function(_0x9571x1,_0x9571x2){return _0x9571x1[_0x288f[14]](_0x288f[2],{name:_0x9571x2[_0x288f[3]],description:_0x9571x2[_0x288f[3]]},{tableName:_0x288f[4],associate:function(_0x9571x3){_0x9571x3[_0x288f[2]][_0x288f[6]](_0x9571x3.SalesforceAccount,{foreignKey:_0x288f[5]});_0x9571x3[_0x288f[2]][_0x288f[9]](_0x9571x3.SalesforceField,{as:_0x288f[7],foreignKey:_0x288f[8]});_0x9571x3[_0x288f[2]][_0x288f[9]](_0x9571x3.SalesforceField,{as:_0x288f[10],foreignKey:_0x288f[11]});_0x9571x3[_0x288f[2]][_0x288f[9]](_0x9571x3.SalesforceField,{as:_0x288f[12],foreignKey:_0x288f[13]});}})};
\ No newline at end of file
-var _0xe3e8=["\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"];_0xe3e8[0];module[_0xe3e8[1]]=function(_0x3bf6x1,_0x3bf6x2){return _0x3bf6x1[_0xe3e8[9]](_0xe3e8[2],{type:{type:_0x3bf6x2.ENUM(_0xe3e8[3],_0xe3e8[4],_0xe3e8[5]),defaultValue:_0xe3e8[3]},content:_0x3bf6x2[_0xe3e8[6]],key:_0x3bf6x2[_0xe3e8[6]],keyType:{type:_0x3bf6x2.ENUM(_0xe3e8[3],_0xe3e8[4])},keyContent:_0x3bf6x2[_0xe3e8[6]],idField:_0x3bf6x2[_0xe3e8[6]]},{tableName:_0xe3e8[7],associate:function(_0x3bf6x3){_0x3bf6x3[_0xe3e8[2]][_0xe3e8[8]](_0x3bf6x3.Variable)}})};
\ No newline at end of file
+var _0xa100=["\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"];_0xa100[0];module[_0xa100[1]]=function(_0xcebcx1,_0xcebcx2){return _0xcebcx1[_0xa100[9]](_0xa100[2],{type:{type:_0xcebcx2.ENUM(_0xa100[3],_0xa100[4],_0xa100[5]),defaultValue:_0xa100[3]},content:_0xcebcx2[_0xa100[6]],key:_0xcebcx2[_0xa100[6]],keyType:{type:_0xcebcx2.ENUM(_0xa100[3],_0xa100[4])},keyContent:_0xcebcx2[_0xa100[6]],idField:_0xcebcx2[_0xa100[6]]},{tableName:_0xa100[7],associate:function(_0xcebcx3){_0xcebcx3[_0xa100[2]][_0xa100[8]](_0xcebcx3.Variable)}})};
\ No newline at end of file
-var _0xfb3b=["\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"];_0xfb3b[0];module[_0xfb3b[1]]=function(_0x1e05x1,_0x1e05x2){var _0x1e05x3=_0x1e05x1[_0xfb3b[5]](_0xfb3b[2],{license:_0x1e05x2[_0xfb3b[3]],mac:{type:_0x1e05x2.STRING(17),allowNull:false,validate:{notEmpty:true}},netmask:{type:_0x1e05x2.STRING(15),allowNull:false,validate:{notEmpty:true,isIP:true}},address:{type:_0x1e05x2.STRING(15),allowNull:false,validate:{notEmpty:true,isIP:true}},min_internal:{type:_0x1e05x2.INTEGER(11),unique:true},agi_port:{type:_0x1e05x2.INTEGER(11)},automation_timeout:{type:_0x1e05x2.INTEGER(11),defaultValue:3600}},{tableName:_0xfb3b[4]});return _0x1e05x3;};
\ No newline at end of file
+var _0x64e1=["\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"];_0x64e1[0];module[_0x64e1[1]]=function(_0x8922x1,_0x8922x2){var _0x8922x3=_0x8922x1[_0x64e1[5]](_0x64e1[2],{license:_0x8922x2[_0x64e1[3]],mac:{type:_0x8922x2.STRING(17),allowNull:false,validate:{notEmpty:true}},netmask:{type:_0x8922x2.STRING(15),allowNull:false,validate:{notEmpty:true,isIP:true}},address:{type:_0x8922x2.STRING(15),allowNull:false,validate:{notEmpty:true,isIP:true}},min_internal:{type:_0x8922x2.INTEGER(11),unique:true},agi_port:{type:_0x8922x2.INTEGER(11)},automation_timeout:{type:_0x8922x2.INTEGER(11),defaultValue:3600}},{tableName:_0x64e1[4]});return _0x8922x3;};
\ No newline at end of file
-var _0x55d0=["\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"];_0x55d0[0];module[_0x55d0[1]]=function(_0x33aex1,_0x33aex2){var _0x33aex3=_0x33aex1[_0x55d0[5]](_0x55d0[2],{name:{type:_0x33aex2[_0x55d0[3]],unique:true,validate:{notEmpty:true}},dsn:{type:_0x33aex2[_0x55d0[3]]},description:_0x33aex2[_0x55d0[3]]},{tableName:_0x55d0[4]});return _0x33aex3;};
\ No newline at end of file
+var _0x1b00=["\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"];_0x1b00[0];module[_0x1b00[1]]=function(_0xcb10x1,_0xcb10x2){var _0xcb10x3=_0xcb10x1[_0x1b00[5]](_0x1b00[2],{name:{type:_0xcb10x2[_0x1b00[3]],unique:true,validate:{notEmpty:true}},dsn:{type:_0xcb10x2[_0x1b00[3]]},description:_0xcb10x2[_0x1b00[3]]},{tableName:_0x1b00[4]});return _0xcb10x3;};
\ No newline at end of file
-var _0x5370=["\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"];_0x5370[0];module[_0x5370[1]]=function(_0xbe9ax1,_0xbe9ax2){var _0xbe9ax3=_0xbe9ax1[_0x5370[7]](_0x5370[2],{name:{type:_0xbe9ax2[_0x5370[3]],unique:true,validate:{notEmpty:true}},description:_0xbe9ax2[_0x5370[3]],preproduction:{type:_0xbe9ax2[_0x5370[4]],length:_0x5370[5]},production:{type:_0xbe9ax2[_0x5370[4]],length:_0x5370[5]}},{tableName:_0x5370[6]});return _0xbe9ax3;};
\ No newline at end of file
+var _0xb373=["\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"];_0xb373[0];module[_0xb373[1]]=function(_0xc195x1,_0xc195x2){var _0xc195x3=_0xc195x1[_0xb373[7]](_0xb373[2],{name:{type:_0xc195x2[_0xb373[3]],unique:true,validate:{notEmpty:true}},description:_0xc195x2[_0xb373[3]],preproduction:{type:_0xc195x2[_0xb373[4]],length:_0xb373[5]},production:{type:_0xc195x2[_0xb373[4]],length:_0xb373[5]}},{tableName:_0xb373[6]});return _0xc195x3;};
\ No newline at end of file
-var _0xf39d=["\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"];_0xf39d[0];module[_0xf39d[1]]=function(_0xb541x1,_0xb541x2){return _0xb541x1[_0xf39d[7]](_0xf39d[2],{name:_0xb541x2[_0xf39d[3]],description:_0xb541x2[_0xf39d[3]],username:{type:_0xb541x2[_0xf39d[3]]},remoteUri:_0xb541x2[_0xf39d[3]],password:_0xb541x2[_0xf39d[3]]},{tableName:_0xf39d[4],associate:function(_0xb541x3){_0xb541x3[_0xf39d[2]][_0xf39d[6]](_0xb541x3.SugarcrmConfiguration,{foreignKey:_0xf39d[5]})}})};
\ No newline at end of file
+var _0x884d=["\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"];_0x884d[0];module[_0x884d[1]]=function(_0xba23x1,_0xba23x2){return _0xba23x1[_0x884d[7]](_0x884d[2],{name:_0xba23x2[_0x884d[3]],description:_0xba23x2[_0x884d[3]],username:{type:_0xba23x2[_0x884d[3]]},remoteUri:_0xba23x2[_0x884d[3]],password:_0xba23x2[_0x884d[3]]},{tableName:_0x884d[4],associate:function(_0xba23x3){_0xba23x3[_0x884d[2]][_0x884d[6]](_0xba23x3.SugarcrmConfiguration,{foreignKey:_0x884d[5]})}})};
\ No newline at end of file
-var _0xd03d=["\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"];_0xd03d[0];module[_0xd03d[1]]=function(_0x7c31x1,_0x7c31x2){return _0x7c31x1[_0xd03d[14]](_0xd03d[2],{name:_0x7c31x2[_0xd03d[3]],description:_0x7c31x2[_0xd03d[3]]},{tableName:_0xd03d[4],associate:function(_0x7c31x3){_0x7c31x3[_0xd03d[2]][_0xd03d[6]](_0x7c31x3.SugarcrmAccount,{foreignKey:_0xd03d[5]});_0x7c31x3[_0xd03d[2]][_0xd03d[9]](_0x7c31x3.SugarcrmField,{as:_0xd03d[7],foreignKey:_0xd03d[8]});_0x7c31x3[_0xd03d[2]][_0xd03d[9]](_0x7c31x3.SugarcrmField,{as:_0xd03d[10],foreignKey:_0xd03d[11]});_0x7c31x3[_0xd03d[2]][_0xd03d[9]](_0x7c31x3.SugarcrmField,{as:_0xd03d[12],foreignKey:_0xd03d[13]});}})};
\ No newline at end of file
+var _0x141f=["\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"];_0x141f[0];module[_0x141f[1]]=function(_0x1191x1,_0x1191x2){return _0x1191x1[_0x141f[14]](_0x141f[2],{name:_0x1191x2[_0x141f[3]],description:_0x1191x2[_0x141f[3]]},{tableName:_0x141f[4],associate:function(_0x1191x3){_0x1191x3[_0x141f[2]][_0x141f[6]](_0x1191x3.SugarcrmAccount,{foreignKey:_0x141f[5]});_0x1191x3[_0x141f[2]][_0x141f[9]](_0x1191x3.SugarcrmField,{as:_0x141f[7],foreignKey:_0x141f[8]});_0x1191x3[_0x141f[2]][_0x141f[9]](_0x1191x3.SugarcrmField,{as:_0x141f[10],foreignKey:_0x141f[11]});_0x1191x3[_0x141f[2]][_0x141f[9]](_0x1191x3.SugarcrmField,{as:_0x141f[12],foreignKey:_0x141f[13]});}})};
\ No newline at end of file
-var _0xf2b3=["\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"];_0xf2b3[0];module[_0xf2b3[1]]=function(_0xcc16x1,_0xcc16x2){return _0xcc16x1[_0xf2b3[9]](_0xf2b3[2],{type:{type:_0xcc16x2.ENUM(_0xf2b3[3],_0xf2b3[4],_0xf2b3[5]),defaultValue:_0xf2b3[3]},content:_0xcc16x2[_0xf2b3[6]],key:_0xcc16x2[_0xf2b3[6]],keyType:{type:_0xcc16x2.ENUM(_0xf2b3[3],_0xf2b3[4])},keyContent:_0xcc16x2[_0xf2b3[6]],idField:_0xcc16x2[_0xf2b3[6]]},{tableName:_0xf2b3[7],associate:function(_0xcc16x3){_0xcc16x3[_0xf2b3[2]][_0xf2b3[8]](_0xcc16x3.Variable)}})};
\ No newline at end of file
+var _0x8312=["\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"];_0x8312[0];module[_0x8312[1]]=function(_0xae14x1,_0xae14x2){return _0xae14x1[_0x8312[9]](_0x8312[2],{type:{type:_0xae14x2.ENUM(_0x8312[3],_0x8312[4],_0x8312[5]),defaultValue:_0x8312[3]},content:_0xae14x2[_0x8312[6]],key:_0xae14x2[_0x8312[6]],keyType:{type:_0xae14x2.ENUM(_0x8312[3],_0x8312[4])},keyContent:_0xae14x2[_0x8312[6]],idField:_0xae14x2[_0x8312[6]]},{tableName:_0x8312[7],associate:function(_0xae14x3){_0xae14x3[_0x8312[2]][_0x8312[8]](_0xae14x3.Variable)}})};
\ No newline at end of file
-var _0x2da2=["\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[_0x2da2[0]]=function(_0xcf28x1,_0xcf28x2){var _0xcf28x3=_0xcf28x1[_0x2da2[4]](_0x2da2[1],{name:{type:_0xcf28x2[_0x2da2[2]],unique:true}},{tableName:_0x2da2[3]});return _0xcf28x3;};
\ No newline at end of file
+var _0xdbbe=["\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[_0xdbbe[0]]=function(_0xa276x1,_0xa276x2){var _0xa276x3=_0xa276x1[_0xdbbe[4]](_0xdbbe[1],{name:{type:_0xa276x2[_0xdbbe[2]],unique:true}},{tableName:_0xdbbe[3]});return _0xa276x3;};
\ No newline at end of file
-var _0x98db=["\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(_0x98db[0]);module[_0x98db[1]]=function(_0x628ax2,_0x628ax3){var _0x628ax4=_0x628ax2[_0x98db[8]](_0x98db[2],{name:{type:_0x628ax3[_0x98db[3]],allowNull:false,unique:true},description:{type:_0x628ax3[_0x98db[3]]},defaultEntry:{type:_0x628ax3[_0x98db[4]],defaultValue:0}},{tableName:_0x98db[5],associate:function(_0x628ax5){_0x628ax4[_0x98db[7]](_0x628ax5.User,{through:_0x628ax5[_0x98db[6]]})}});return _0x628ax4;};
\ No newline at end of file
+var _0x9cc7=["\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(_0x9cc7[0]);module[_0x9cc7[1]]=function(_0x7ed7x2,_0x7ed7x3){var _0x7ed7x4=_0x7ed7x2[_0x9cc7[8]](_0x9cc7[2],{name:{type:_0x7ed7x3[_0x9cc7[3]],allowNull:false,unique:true},description:{type:_0x7ed7x3[_0x9cc7[3]]},defaultEntry:{type:_0x7ed7x3[_0x9cc7[4]],defaultValue:0}},{tableName:_0x9cc7[5],associate:function(_0x7ed7x5){_0x7ed7x4[_0x9cc7[7]](_0x7ed7x5.User,{through:_0x7ed7x5[_0x9cc7[6]]})}});return _0x7ed7x4;};
\ No newline at end of file
-var _0xf41f=["\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"];_0xf41f[0];var crypto=require(_0xf41f[1]);var md5=require(_0xf41f[2]);var _=require(_0xf41f[3]);module[_0xf41f[4]]=function(_0xe98ex4,_0xe98ex5){var _0xe98ex6=_0xe98ex4[_0xf41f[60]](_0xf41f[5],{name:{type:_0xe98ex5[_0xf41f[6]],unique:true,validate:{notEmpty:true},set:function(_0xe98ex7){this[_0xf41f[8]](_0xf41f[7],_0xe98ex7);this[_0xf41f[8]](_0xf41f[9],_0xe98ex7);}},password:{type:_0xe98ex5[_0xf41f[6]],allowNull:false,validate:{notEmpty:true},set:function(_0xe98ex8){this[_0xf41f[10]]=this[_0xf41f[11]]();this[_0xf41f[8]](_0xf41f[12],this[_0xf41f[13]](_0xe98ex8));this[_0xf41f[8]](_0xf41f[14],this[_0xf41f[16]](this[_0xf41f[7]]+_0xf41f[15]+_0xe98ex8));}},internal:{type:_0xe98ex5.INTEGER(11),unique:true,set:function(_0xe98ex9){this[_0xf41f[8]](_0xf41f[17],_0xe98ex9);this[_0xf41f[8]](_0xf41f[18],_0xe98ex9);}},ipaddr:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},port:{type:_0xe98ex5.INTEGER(5),allowNull:true},regseconds:{type:_0xe98ex5.INTEGER(11),allowNull:true},defaultuser:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},fullcontact:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},regserver:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},useragent:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},lastms:{type:_0xe98ex5.INTEGER(11),allowNull:true},host:{type:_0xe98ex5[_0xf41f[6]],allowNull:true,defaultValue:_0xf41f[19]},type:{type:_0xe98ex5.ENUM(_0xf41f[20],_0xf41f[21],_0xf41f[22]),allowNull:true,defaultValue:_0xf41f[20]},context:{type:_0xe98ex5[_0xf41f[6]],allowNull:true,defaultValue:_0xf41f[23]},permit:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},deny:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},secret:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},md5secret:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},remotesecret:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},transport:{type:_0xe98ex5[_0xf41f[6]],allowNull:true,defaultValue:_0xf41f[24]},dtmfmode:{type:_0xe98ex5.ENUM(_0xf41f[25],_0xf41f[26],_0xf41f[27],_0xf41f[28],_0xf41f[29]),allowNull:true,defaultValue:_0xf41f[25]},directmedia:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31],_0xf41f[32],_0xf41f[33]),allowNull:true,defaultValue:_0xf41f[31]},nat:{type:_0xe98ex5[_0xf41f[6]],allowNull:true,defaultValue:_0xf41f[34]},callgroup:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},pickupgroup:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},language:{type:_0xe98ex5[_0xf41f[6]],allowNull:true,defaultValue:_0xf41f[35]},disallow:{type:_0xe98ex5[_0xf41f[6]],allowNull:true,defaultValue:_0xf41f[36]},allow:{type:_0xe98ex5[_0xf41f[6]],allowNull:true,defaultValue:_0xf41f[37]},insecure:{type:_0xe98ex5[_0xf41f[6]],allowNull:true,defaultValue:_0xf41f[38]},trustrpid:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true,defaultValue:_0xf41f[31]},progressinband:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31],_0xf41f[39]),allowNull:true},promiscredir:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},useclientcode:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},accountcode:{type:_0xe98ex5.INTEGER(11),allowNull:true},setvar:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},callerid:{type:_0xe98ex5[_0xf41f[6]],allowNull:true,defaultValue:_0xf41f[40]},amaflags:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},callcounter:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true,defaultValue:_0xf41f[30]},busylevel:{type:_0xe98ex5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},allowsubscribe:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},videosupport:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},maxcallbitrate:{type:_0xe98ex5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},mailbox:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x74\x69\x6D\x65\x72\x73":{type:_0xe98ex5.ENUM(_0xf41f[41],_0xf41f[42],_0xf41f[43]),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x65\x78\x70\x69\x72\x65\x73":{type:_0xe98ex5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x6D\x69\x6E\x73\x65":{type:_0xe98ex5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x72\x65\x66\x72\x65\x73\x68\x65\x72":{type:_0xe98ex5.ENUM(_0xf41f[44],_0xf41f[45]),allowNull:true},t38pt_usertpsource:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},regexten:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},fromdomain:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},fromuser:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},qualify:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true,defaultValue:_0xf41f[30]},defaultip:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},rtptimeout:{type:_0xe98ex5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xe98ex5.INTEGER(11),allowNull:true},sendrpid:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true,defaultValue:_0xf41f[31]},outboundproxy:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},callbackextension:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},timert1:{type:_0xe98ex5.INTEGER(11),allowNull:true},timerb:{type:_0xe98ex5.INTEGER(11),allowNull:true},qualifyfreq:{type:_0xe98ex5.INTEGER(11),allowNull:true},constantssrc:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},contactpermit:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},contactdeny:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},usereqphone:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true,defaultValue:_0xf41f[31]},textsupport:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},faxdetect:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},buggymwi:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},auth:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},fullname:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},trunkname:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},cid_number:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},callingpres:{type:_0xe98ex5.ENUM(_0xf41f[46],_0xf41f[47],_0xf41f[48],_0xf41f[49],_0xf41f[50],_0xf41f[51],_0xf41f[52],_0xf41f[53]),allowNull:true},mohinterpret:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},mohsuggest:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},parkinglot:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},hasvoicemail:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},subscribemwi:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},vmexten:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},description:{type:_0xe98ex5[_0xf41f[6]],allowNull:true},autoframing:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},limitonpeers:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true,defaultValue:_0xf41f[30]},rtpkeepalive:{type:_0xe98ex5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xe98ex5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},ignoresdpversion:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},allowtransfer:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},dynamic:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true},encryption:{type:_0xe98ex5.ENUM(_0xf41f[30],_0xf41f[31]),allowNull:true,defaultValue:_0xf41f[31]},registry:{type:_0xe98ex5[_0xf41f[6]],allowNull:true}},{tableName:_0xf41f[54],defaultScope:{where:{role:_0xf41f[55]}},instanceMethods:{authenticate:function(_0xe98exa){return this[_0xf41f[13]](_0xe98exa)===this[_0xf41f[12]]},makeSalt:function(){return crypto[_0xf41f[57]](16).toString(_0xf41f[56])},encryptPassword:function(_0xe98ex8){if(!_0xe98ex8||!this[_0xf41f[10]]){return _0xf41f[58]};var _0xe98exb= new Buffer(this[_0xf41f[10]],_0xf41f[56]);return crypto[_0xf41f[59]](_0xe98ex8,_0xe98exb,10000,64).toString(_0xf41f[56]);},md5Password:function(_0xe98ex8){if(!_0xe98ex8){return _0xf41f[58]};return md5(_0xe98ex8);}},associate:function(_0xe98exc){}});return _0xe98ex6;};
\ No newline at end of file
+var _0xeaa7=["\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"];_0xeaa7[0];var crypto=require(_0xeaa7[1]);var md5=require(_0xeaa7[2]);var _=require(_0xeaa7[3]);module[_0xeaa7[4]]=function(_0x2223x4,_0x2223x5){var _0x2223x6=_0x2223x4[_0xeaa7[60]](_0xeaa7[5],{name:{type:_0x2223x5[_0xeaa7[6]],unique:true,validate:{notEmpty:true},set:function(_0x2223x7){this[_0xeaa7[8]](_0xeaa7[7],_0x2223x7);this[_0xeaa7[8]](_0xeaa7[9],_0x2223x7);}},password:{type:_0x2223x5[_0xeaa7[6]],allowNull:false,validate:{notEmpty:true},set:function(_0x2223x8){this[_0xeaa7[10]]=this[_0xeaa7[11]]();this[_0xeaa7[8]](_0xeaa7[12],this[_0xeaa7[13]](_0x2223x8));this[_0xeaa7[8]](_0xeaa7[14],this[_0xeaa7[16]](this[_0xeaa7[7]]+_0xeaa7[15]+_0x2223x8));}},internal:{type:_0x2223x5.INTEGER(11),unique:true,set:function(_0x2223x9){this[_0xeaa7[8]](_0xeaa7[17],_0x2223x9);this[_0xeaa7[8]](_0xeaa7[18],_0x2223x9);}},ipaddr:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},port:{type:_0x2223x5.INTEGER(5),allowNull:true},regseconds:{type:_0x2223x5.INTEGER(11),allowNull:true},defaultuser:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},fullcontact:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},regserver:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},useragent:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},lastms:{type:_0x2223x5.INTEGER(11),allowNull:true},host:{type:_0x2223x5[_0xeaa7[6]],allowNull:true,defaultValue:_0xeaa7[19]},type:{type:_0x2223x5.ENUM(_0xeaa7[20],_0xeaa7[21],_0xeaa7[22]),allowNull:true,defaultValue:_0xeaa7[20]},context:{type:_0x2223x5[_0xeaa7[6]],allowNull:true,defaultValue:_0xeaa7[23]},permit:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},deny:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},secret:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},md5secret:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},remotesecret:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},transport:{type:_0x2223x5[_0xeaa7[6]],allowNull:true,defaultValue:_0xeaa7[24]},dtmfmode:{type:_0x2223x5.ENUM(_0xeaa7[25],_0xeaa7[26],_0xeaa7[27],_0xeaa7[28],_0xeaa7[29]),allowNull:true,defaultValue:_0xeaa7[25]},directmedia:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31],_0xeaa7[32],_0xeaa7[33]),allowNull:true,defaultValue:_0xeaa7[31]},nat:{type:_0x2223x5[_0xeaa7[6]],allowNull:true,defaultValue:_0xeaa7[34]},callgroup:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},pickupgroup:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},language:{type:_0x2223x5[_0xeaa7[6]],allowNull:true,defaultValue:_0xeaa7[35]},disallow:{type:_0x2223x5[_0xeaa7[6]],allowNull:true,defaultValue:_0xeaa7[36]},allow:{type:_0x2223x5[_0xeaa7[6]],allowNull:true,defaultValue:_0xeaa7[37]},insecure:{type:_0x2223x5[_0xeaa7[6]],allowNull:true,defaultValue:_0xeaa7[38]},trustrpid:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true,defaultValue:_0xeaa7[31]},progressinband:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31],_0xeaa7[39]),allowNull:true},promiscredir:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},useclientcode:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},accountcode:{type:_0x2223x5.INTEGER(11),allowNull:true},setvar:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},callerid:{type:_0x2223x5[_0xeaa7[6]],allowNull:true,defaultValue:_0xeaa7[40]},amaflags:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},callcounter:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true,defaultValue:_0xeaa7[30]},busylevel:{type:_0x2223x5.INTEGER(11),allowNull:true},allowoverlap:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},allowsubscribe:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},videosupport:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},maxcallbitrate:{type:_0x2223x5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},mailbox:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x74\x69\x6D\x65\x72\x73":{type:_0x2223x5.ENUM(_0xeaa7[41],_0xeaa7[42],_0xeaa7[43]),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x65\x78\x70\x69\x72\x65\x73":{type:_0x2223x5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x6D\x69\x6E\x73\x65":{type:_0x2223x5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x72\x65\x66\x72\x65\x73\x68\x65\x72":{type:_0x2223x5.ENUM(_0xeaa7[44],_0xeaa7[45]),allowNull:true},t38pt_usertpsource:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},regexten:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},fromdomain:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},fromuser:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},qualify:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true,defaultValue:_0xeaa7[30]},defaultip:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},rtptimeout:{type:_0x2223x5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0x2223x5.INTEGER(11),allowNull:true},sendrpid:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true,defaultValue:_0xeaa7[31]},outboundproxy:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},callbackextension:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},timert1:{type:_0x2223x5.INTEGER(11),allowNull:true},timerb:{type:_0x2223x5.INTEGER(11),allowNull:true},qualifyfreq:{type:_0x2223x5.INTEGER(11),allowNull:true},constantssrc:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},contactpermit:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},contactdeny:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},usereqphone:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true,defaultValue:_0xeaa7[31]},textsupport:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},faxdetect:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},buggymwi:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},auth:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},fullname:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},trunkname:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},cid_number:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},callingpres:{type:_0x2223x5.ENUM(_0xeaa7[46],_0xeaa7[47],_0xeaa7[48],_0xeaa7[49],_0xeaa7[50],_0xeaa7[51],_0xeaa7[52],_0xeaa7[53]),allowNull:true},mohinterpret:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},mohsuggest:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},parkinglot:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},hasvoicemail:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},subscribemwi:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},vmexten:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},description:{type:_0x2223x5[_0xeaa7[6]],allowNull:true},autoframing:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},limitonpeers:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true,defaultValue:_0xeaa7[30]},rtpkeepalive:{type:_0x2223x5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0x2223x5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},ignoresdpversion:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},allowtransfer:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},dynamic:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true},encryption:{type:_0x2223x5.ENUM(_0xeaa7[30],_0xeaa7[31]),allowNull:true,defaultValue:_0xeaa7[31]},registry:{type:_0x2223x5[_0xeaa7[6]],allowNull:true}},{tableName:_0xeaa7[54],defaultScope:{where:{role:_0xeaa7[55]}},instanceMethods:{authenticate:function(_0x2223xa){return this[_0xeaa7[13]](_0x2223xa)===this[_0xeaa7[12]]},makeSalt:function(){return crypto[_0xeaa7[57]](16).toString(_0xeaa7[56])},encryptPassword:function(_0x2223x8){if(!_0x2223x8||!this[_0xeaa7[10]]){return _0xeaa7[58]};var _0x2223xb= new Buffer(this[_0xeaa7[10]],_0xeaa7[56]);return crypto[_0xeaa7[59]](_0x2223x8,_0x2223xb,10000,64).toString(_0xeaa7[56]);},md5Password:function(_0x2223x8){if(!_0x2223x8){return _0xeaa7[58]};return md5(_0x2223x8);}},associate:function(_0x2223xc){}});return _0x2223x6;};
\ No newline at end of file
-var _0x613d=["\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(_0x613d[0]);module[_0x613d[1]]=function(_0xeabex2,_0xeabex3){var _0xeabex4=_0xeabex2[_0x613d[7]](_0x613d[2],{name:_0xeabex3[_0x613d[3]],channel:_0xeabex3[_0x613d[3]],description:_0xeabex3[_0x613d[3]],conditions:_0xeabex3[_0x613d[4]],actions:_0xeabex3[_0x613d[4]],status:{type:_0xeabex3[_0x613d[5]],defaultValue:false}},{tableName:_0x613d[6]});return _0xeabex4;};
\ No newline at end of file
+var _0x7061=["\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(_0x7061[0]);module[_0x7061[1]]=function(_0x3204x2,_0x3204x3){var _0x3204x4=_0x3204x2[_0x7061[7]](_0x7061[2],{name:_0x3204x3[_0x7061[3]],channel:_0x3204x3[_0x7061[3]],description:_0x3204x3[_0x7061[3]],conditions:_0x3204x3[_0x7061[4]],actions:_0x3204x3[_0x7061[4]],status:{type:_0x3204x3[_0x7061[5]],defaultValue:false}},{tableName:_0x7061[6]});return _0x3204x4;};
\ No newline at end of file
-var _0xa25c=["\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"];_0xa25c[0];var crypto=require(_0xa25c[1]);var md5=require(_0xa25c[2]);var _=require(_0xa25c[3]);module[_0xa25c[4]]=function(_0xaab4x4,_0xaab4x5){var _0xaab4x6=_0xaab4x4[_0xa25c[39]](_0xa25c[5],{name:{type:_0xaab4x5[_0xa25c[6]],unique:true,validate:{notEmpty:true}},port:{type:_0xaab4x5.INTEGER(5),allowNull:true},defaultuser:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},host:{type:_0xaab4x5[_0xa25c[6]],allowNull:true,defaultValue:_0xa25c[7]},type:{type:_0xaab4x5.ENUM(_0xa25c[8],_0xa25c[9],_0xa25c[10]),allowNull:true,defaultValue:_0xa25c[8]},context:{type:_0xaab4x5[_0xa25c[6]],allowNull:true,defaultValue:_0xa25c[11]},permit:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},deny:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},secret:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},transport:{type:_0xaab4x5[_0xa25c[6]],allowNull:true,defaultValue:_0xa25c[12]},dtmfmode:{type:_0xaab4x5.ENUM(_0xa25c[13],_0xa25c[14],_0xa25c[15],_0xa25c[16],_0xa25c[17]),allowNull:true,defaultValue:_0xa25c[13]},directmedia:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19],_0xa25c[20],_0xa25c[21]),allowNull:true,defaultValue:_0xa25c[19]},nat:{type:_0xaab4x5[_0xa25c[6]],allowNull:true,defaultValue:_0xa25c[22]},language:{type:_0xaab4x5[_0xa25c[6]],allowNull:true,defaultValue:_0xa25c[23]},disallow:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},allow:{type:_0xaab4x5[_0xa25c[6]],allowNull:true,defaultValue:_0xa25c[24]},insecure:{type:_0xaab4x5[_0xa25c[6]],allowNull:true,defaultValue:_0xa25c[25]},trustrpid:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true,defaultValue:_0xa25c[19]},progressinband:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19],_0xa25c[26]),allowNull:true},promiscredir:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},useclientcode:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},accountcode:{type:_0xaab4x5.INTEGER(11),allowNull:true},setvar:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},otherFields:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},callerid:{type:_0xaab4x5[_0xa25c[6]],allowNull:true,defaultValue:_0xa25c[27]},amaflags:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},callcounter:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true,defaultValue:_0xa25c[18]},busylevel:{type:_0xaab4x5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},allowsubscribe:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},maxcallbitrate:{type:_0xaab4x5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},t38pt_usertpsource:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},regexten:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},fromdomain:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},fromuser:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},qualify:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true,defaultValue:_0xa25c[18]},defaultip:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},rtptimeout:{type:_0xaab4x5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xaab4x5.INTEGER(11),allowNull:true},sendrpid:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true,defaultValue:_0xa25c[19]},outboundproxy:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},callbackextension:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},qualifyfreq:{type:_0xaab4x5.INTEGER(11),allowNull:true},constantssrc:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},contactpermit:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},contactdeny:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},usereqphone:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true,defaultValue:_0xa25c[19]},textsupport:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},faxdetect:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},buggymwi:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},auth:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},fullname:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},trunkname:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},cid_number:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},callingpres:{type:_0xaab4x5.ENUM(_0xa25c[28],_0xa25c[29],_0xa25c[30],_0xa25c[31],_0xa25c[32],_0xa25c[33],_0xa25c[34],_0xa25c[35]),allowNull:true},mohinterpret:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},mohsuggest:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},subscribemwi:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},vmexten:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},description:{type:_0xaab4x5[_0xa25c[6]],allowNull:true},autoframing:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},limitonpeers:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true,defaultValue:_0xa25c[18]},rtpkeepalive:{type:_0xaab4x5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xaab4x5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},ignoresdpversion:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},allowtransfer:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},dynamic:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true},encryption:{type:_0xaab4x5.ENUM(_0xa25c[18],_0xa25c[19]),allowNull:true,defaultValue:_0xa25c[19]},registry:{type:_0xaab4x5[_0xa25c[6]],allowNull:true}},{tableName:_0xa25c[36],getterMethods:{},associate:function(_0xaab4x7){_0xaab4x6[_0xa25c[38]](_0xaab4x7.VoiceExtension,{foreignKey:_0xa25c[37]})}});return _0xaab4x6;};
\ No newline at end of file
+var _0xb34b=["\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"];_0xb34b[0];var crypto=require(_0xb34b[1]);var md5=require(_0xb34b[2]);var _=require(_0xb34b[3]);module[_0xb34b[4]]=function(_0xd092x4,_0xd092x5){var _0xd092x6=_0xd092x4[_0xb34b[39]](_0xb34b[5],{name:{type:_0xd092x5[_0xb34b[6]],unique:true,validate:{notEmpty:true}},port:{type:_0xd092x5.INTEGER(5),allowNull:true},defaultuser:{type:_0xd092x5[_0xb34b[6]],allowNull:true},host:{type:_0xd092x5[_0xb34b[6]],allowNull:true,defaultValue:_0xb34b[7]},type:{type:_0xd092x5.ENUM(_0xb34b[8],_0xb34b[9],_0xb34b[10]),allowNull:true,defaultValue:_0xb34b[8]},context:{type:_0xd092x5[_0xb34b[6]],allowNull:true,defaultValue:_0xb34b[11]},permit:{type:_0xd092x5[_0xb34b[6]],allowNull:true},deny:{type:_0xd092x5[_0xb34b[6]],allowNull:true},secret:{type:_0xd092x5[_0xb34b[6]],allowNull:true},transport:{type:_0xd092x5[_0xb34b[6]],allowNull:true,defaultValue:_0xb34b[12]},dtmfmode:{type:_0xd092x5.ENUM(_0xb34b[13],_0xb34b[14],_0xb34b[15],_0xb34b[16],_0xb34b[17]),allowNull:true,defaultValue:_0xb34b[13]},directmedia:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19],_0xb34b[20],_0xb34b[21]),allowNull:true,defaultValue:_0xb34b[19]},nat:{type:_0xd092x5[_0xb34b[6]],allowNull:true,defaultValue:_0xb34b[22]},language:{type:_0xd092x5[_0xb34b[6]],allowNull:true,defaultValue:_0xb34b[23]},disallow:{type:_0xd092x5[_0xb34b[6]],allowNull:true},allow:{type:_0xd092x5[_0xb34b[6]],allowNull:true,defaultValue:_0xb34b[24]},insecure:{type:_0xd092x5[_0xb34b[6]],allowNull:true,defaultValue:_0xb34b[25]},trustrpid:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true,defaultValue:_0xb34b[19]},progressinband:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19],_0xb34b[26]),allowNull:true},promiscredir:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},useclientcode:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},accountcode:{type:_0xd092x5.INTEGER(11),allowNull:true},setvar:{type:_0xd092x5[_0xb34b[6]],allowNull:true},otherFields:{type:_0xd092x5[_0xb34b[6]],allowNull:true},callerid:{type:_0xd092x5[_0xb34b[6]],allowNull:true,defaultValue:_0xb34b[27]},amaflags:{type:_0xd092x5[_0xb34b[6]],allowNull:true},callcounter:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true,defaultValue:_0xb34b[18]},busylevel:{type:_0xd092x5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},allowsubscribe:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},maxcallbitrate:{type:_0xd092x5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},t38pt_usertpsource:{type:_0xd092x5[_0xb34b[6]],allowNull:true},regexten:{type:_0xd092x5[_0xb34b[6]],allowNull:true},fromdomain:{type:_0xd092x5[_0xb34b[6]],allowNull:true},fromuser:{type:_0xd092x5[_0xb34b[6]],allowNull:true},qualify:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true,defaultValue:_0xb34b[18]},defaultip:{type:_0xd092x5[_0xb34b[6]],allowNull:true},rtptimeout:{type:_0xd092x5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xd092x5.INTEGER(11),allowNull:true},sendrpid:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true,defaultValue:_0xb34b[19]},outboundproxy:{type:_0xd092x5[_0xb34b[6]],allowNull:true},callbackextension:{type:_0xd092x5[_0xb34b[6]],allowNull:true},qualifyfreq:{type:_0xd092x5.INTEGER(11),allowNull:true},constantssrc:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},contactpermit:{type:_0xd092x5[_0xb34b[6]],allowNull:true},contactdeny:{type:_0xd092x5[_0xb34b[6]],allowNull:true},usereqphone:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true,defaultValue:_0xb34b[19]},textsupport:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},faxdetect:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},buggymwi:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},auth:{type:_0xd092x5[_0xb34b[6]],allowNull:true},fullname:{type:_0xd092x5[_0xb34b[6]],allowNull:true},trunkname:{type:_0xd092x5[_0xb34b[6]],allowNull:true},cid_number:{type:_0xd092x5[_0xb34b[6]],allowNull:true},callingpres:{type:_0xd092x5.ENUM(_0xb34b[28],_0xb34b[29],_0xb34b[30],_0xb34b[31],_0xb34b[32],_0xb34b[33],_0xb34b[34],_0xb34b[35]),allowNull:true},mohinterpret:{type:_0xd092x5[_0xb34b[6]],allowNull:true},mohsuggest:{type:_0xd092x5[_0xb34b[6]],allowNull:true},subscribemwi:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},vmexten:{type:_0xd092x5[_0xb34b[6]],allowNull:true},description:{type:_0xd092x5[_0xb34b[6]],allowNull:true},autoframing:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},limitonpeers:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true,defaultValue:_0xb34b[18]},rtpkeepalive:{type:_0xd092x5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xd092x5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},ignoresdpversion:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},allowtransfer:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},dynamic:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true},encryption:{type:_0xd092x5.ENUM(_0xb34b[18],_0xb34b[19]),allowNull:true,defaultValue:_0xb34b[19]},registry:{type:_0xd092x5[_0xb34b[6]],allowNull:true}},{tableName:_0xb34b[36],getterMethods:{},associate:function(_0xd092x7){_0xd092x6[_0xb34b[38]](_0xd092x7.VoiceExtension,{foreignKey:_0xb34b[37]})}});return _0xd092x6;};
\ No newline at end of file
-var _0x7988=["\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"];_0x7988[0];module[_0x7988[1]]=function(_0xe32dx1,_0xe32dx2){var _0xe32dx3=_0xe32dx1[_0x7988[5]](_0x7988[2],{name:_0xe32dx2[_0x7988[3]],description:_0xe32dx2[_0x7988[3]]},{tableName:_0x7988[4]});return _0xe32dx3;};
\ No newline at end of file
+var _0xb36f=["\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"];_0xb36f[0];module[_0xb36f[1]]=function(_0x2c7fx1,_0x2c7fx2){var _0x2c7fx3=_0x2c7fx1[_0xb36f[5]](_0xb36f[2],{name:_0x2c7fx2[_0xb36f[3]],description:_0x2c7fx2[_0xb36f[3]]},{tableName:_0xb36f[4]});return _0x2c7fx3;};
\ No newline at end of file
-var _0xd696=["\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"];_0xd696[0];module[_0xd696[1]]=function(_0xccafx1,_0xccafx2){var _0xccafx3=_0xccafx1[_0xd696[10]](_0xd696[2],{name:_0xccafx2[_0xd696[3]],save_name:_0xccafx2[_0xd696[3]],display_name:{type:_0xccafx2[_0xd696[3]],allowNull:false,defaultValue:_0xd696[4],validate:{notEmpty:{msg:_0xd696[5]}}},description:_0xccafx2[_0xd696[3]],original_path:_0xccafx2[_0xd696[3]],original_format:_0xccafx2[_0xd696[3]],original_duration:_0xccafx2[_0xd696[6]],original_sampleCount:_0xccafx2[_0xd696[7]],original_channelCount:_0xccafx2[_0xd696[8]],original_bitRate:_0xccafx2[_0xd696[7]],original_sampleRate:_0xccafx2[_0xd696[8]],converted_path:_0xccafx2[_0xd696[3]],converted_format:_0xccafx2[_0xd696[3]],converted_duration:_0xccafx2[_0xd696[6]],converted_sampleCount:_0xccafx2[_0xd696[7]],converted_channelCount:_0xccafx2[_0xd696[8]],converted_bitRate:_0xccafx2[_0xd696[7]],converted_sampleRate:_0xccafx2[_0xd696[8]]},{tableName:_0xd696[9]});return _0xccafx3;};
\ No newline at end of file
+var _0x6cdb=["\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"];_0x6cdb[0];module[_0x6cdb[1]]=function(_0x43b3x1,_0x43b3x2){var _0x43b3x3=_0x43b3x1[_0x6cdb[10]](_0x6cdb[2],{name:_0x43b3x2[_0x6cdb[3]],save_name:_0x43b3x2[_0x6cdb[3]],display_name:{type:_0x43b3x2[_0x6cdb[3]],allowNull:false,defaultValue:_0x6cdb[4],validate:{notEmpty:{msg:_0x6cdb[5]}}},description:_0x43b3x2[_0x6cdb[3]],original_path:_0x43b3x2[_0x6cdb[3]],original_format:_0x43b3x2[_0x6cdb[3]],original_duration:_0x43b3x2[_0x6cdb[6]],original_sampleCount:_0x43b3x2[_0x6cdb[7]],original_channelCount:_0x43b3x2[_0x6cdb[8]],original_bitRate:_0x43b3x2[_0x6cdb[7]],original_sampleRate:_0x43b3x2[_0x6cdb[8]],converted_path:_0x43b3x2[_0x6cdb[3]],converted_format:_0x43b3x2[_0x6cdb[3]],converted_duration:_0x43b3x2[_0x6cdb[6]],converted_sampleCount:_0x43b3x2[_0x6cdb[7]],converted_channelCount:_0x43b3x2[_0x6cdb[8]],converted_bitRate:_0x43b3x2[_0x6cdb[7]],converted_sampleRate:_0x43b3x2[_0x6cdb[8]]},{tableName:_0x6cdb[9]});return _0x43b3x3;};
\ No newline at end of file
-var _0xf23a=["\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"];_0xf23a[0];var crypto=require(_0xf23a[1]);var md5=require(_0xf23a[2]);var _=require(_0xf23a[3]);module[_0xf23a[4]]=function(_0xcf1fx4,_0xcf1fx5){var _0xcf1fx6=_0xcf1fx4[_0xf23a[80]](_0xf23a[5],{name:{type:_0xcf1fx5[_0xf23a[6]],unique:true,validate:{notEmpty:true},set:function(_0xcf1fx7){this[_0xf23a[8]](_0xf23a[7],_0xcf1fx7);this[_0xf23a[8]](_0xf23a[9],_0xcf1fx7);}},email:{type:_0xcf1fx5[_0xf23a[6]],unique:true,set:function(_0xcf1fx8){if(_0xcf1fx8){this[_0xf23a[8]](_0xf23a[10],_0xcf1fx8[_0xf23a[11]]())}},defaultValue:null},role:{type:_0xcf1fx5.ENUM(_0xf23a[12],_0xf23a[13],_0xf23a[14],_0xf23a[15])},password:{type:_0xcf1fx5[_0xf23a[6]],allowNull:false,validate:{notEmpty:true},set:function(_0xcf1fx9){this[_0xf23a[16]]=this[_0xf23a[17]]();this[_0xf23a[8]](_0xf23a[18],this[_0xf23a[19]](_0xcf1fx9));this[_0xf23a[8]](_0xf23a[20],this[_0xf23a[22]](this[_0xf23a[7]]+_0xf23a[21]+_0xcf1fx9));}},provider:{type:_0xcf1fx5[_0xf23a[6]],defaultValue:_0xf23a[23]},internal:{type:_0xcf1fx5.INTEGER(11),unique:true,set:function(_0xcf1fxa){this[_0xf23a[8]](_0xf23a[24],_0xcf1fxa);this[_0xf23a[8]](_0xf23a[25],_0xcf1fxa);}},salt:{type:_0xcf1fx5[_0xf23a[6]]},phone:{type:_0xcf1fx5[_0xf23a[6]]},mobile:{type:_0xcf1fx5[_0xf23a[6]]},address:{type:_0xcf1fx5[_0xf23a[6]]},zipcode:{type:_0xcf1fx5[_0xf23a[6]]},userpic:{type:_0xcf1fx5[_0xf23a[6]]},city:{type:_0xcf1fx5[_0xf23a[6]]},country:{type:_0xcf1fx5[_0xf23a[6]]},facebookUserId:{type:_0xcf1fx5[_0xf23a[26]]},twitterUserId:{type:_0xcf1fx5[_0xf23a[26]]},twitterKey:{type:_0xcf1fx5[_0xf23a[6]]},twitterSecret:{type:_0xcf1fx5[_0xf23a[6]]},github:{type:_0xcf1fx5[_0xf23a[6]]},openId:{type:_0xcf1fx5[_0xf23a[6]]},online:{type:_0xcf1fx5[_0xf23a[27]],defaultValue:false},lastLoginAt:{type:_0xcf1fx5[_0xf23a[28]]},ipaddr:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},port:{type:_0xcf1fx5.INTEGER(5),allowNull:true},regseconds:{type:_0xcf1fx5.INTEGER(11),allowNull:true},defaultuser:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},fullcontact:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},regserver:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},useragent:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},lastms:{type:_0xcf1fx5.INTEGER(11),allowNull:true},host:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true,defaultValue:_0xf23a[29]},type:{type:_0xcf1fx5.ENUM(_0xf23a[30],_0xf23a[13],_0xf23a[31]),allowNull:true,defaultValue:_0xf23a[30]},context:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true,defaultValue:_0xf23a[32]},permit:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},deny:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},secret:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},md5secret:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},remotesecret:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},transport:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true,defaultValue:_0xf23a[33]},dtmfmode:{type:_0xcf1fx5.ENUM(_0xf23a[34],_0xf23a[35],_0xf23a[36],_0xf23a[37],_0xf23a[38]),allowNull:true,defaultValue:_0xf23a[34]},directmedia:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40],_0xf23a[41],_0xf23a[42]),allowNull:true,defaultValue:_0xf23a[40]},nat:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true,defaultValue:_0xf23a[43]},callgroup:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},pickupgroup:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},language:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true,defaultValue:_0xf23a[44]},disallow:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true,defaultValue:_0xf23a[45]},allow:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true,defaultValue:_0xf23a[46]},insecure:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true,defaultValue:_0xf23a[47]},trustrpid:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true,defaultValue:_0xf23a[40]},progressinband:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40],_0xf23a[48]),allowNull:true},promiscredir:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},useclientcode:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},accountcode:{type:_0xcf1fx5.INTEGER(11),allowNull:true},setvar:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},callerid:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true,defaultValue:_0xf23a[49]},amaflags:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},callcounter:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true,defaultValue:_0xf23a[39]},busylevel:{type:_0xcf1fx5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},allowsubscribe:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},videosupport:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},maxcallbitrate:{type:_0xcf1fx5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},mailbox:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x74\x69\x6D\x65\x72\x73":{type:_0xcf1fx5.ENUM(_0xf23a[50],_0xf23a[51],_0xf23a[52]),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x65\x78\x70\x69\x72\x65\x73":{type:_0xcf1fx5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x6D\x69\x6E\x73\x65":{type:_0xcf1fx5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x72\x65\x66\x72\x65\x73\x68\x65\x72":{type:_0xcf1fx5.ENUM(_0xf23a[53],_0xf23a[54]),allowNull:true},t38pt_usertpsource:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},regexten:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},fromdomain:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},fromuser:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},qualify:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true,defaultValue:_0xf23a[39]},defaultip:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},rtptimeout:{type:_0xcf1fx5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xcf1fx5.INTEGER(11),allowNull:true},sendrpid:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true,defaultValue:_0xf23a[40]},outboundproxy:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},callbackextension:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},timert1:{type:_0xcf1fx5.INTEGER(11),allowNull:true},timerb:{type:_0xcf1fx5.INTEGER(11),allowNull:true},qualifyfreq:{type:_0xcf1fx5.INTEGER(11),allowNull:true},constantssrc:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},contactpermit:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},contactdeny:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},usereqphone:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true,defaultValue:_0xf23a[40]},textsupport:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},faxdetect:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},buggymwi:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},auth:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},fullname:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},trunkname:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},cid_number:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},callingpres:{type:_0xcf1fx5.ENUM(_0xf23a[55],_0xf23a[56],_0xf23a[57],_0xf23a[58],_0xf23a[59],_0xf23a[60],_0xf23a[61],_0xf23a[62]),allowNull:true},mohinterpret:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},mohsuggest:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},parkinglot:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},hasvoicemail:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},subscribemwi:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},vmexten:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},description:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true},autoframing:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},limitonpeers:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true,defaultValue:_0xf23a[39]},rtpkeepalive:{type:_0xcf1fx5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xcf1fx5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},ignoresdpversion:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},allowtransfer:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},dynamic:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true},encryption:{type:_0xcf1fx5.ENUM(_0xf23a[39],_0xf23a[40]),allowNull:true,defaultValue:_0xf23a[40]},registry:{type:_0xcf1fx5[_0xf23a[6]],allowNull:true}},{tableName:_0xf23a[63],defaultScope:{where:{$or:[{role:_0xf23a[12]},{role:_0xf23a[13]},{role:_0xf23a[14]}]}},instanceMethods:{authenticate:function(_0xcf1fxb){return this[_0xf23a[19]](_0xcf1fxb)===this[_0xf23a[18]]},makeSalt:function(){return crypto[_0xf23a[65]](16).toString(_0xf23a[64])},encryptPassword:function(_0xcf1fx9){if(!_0xcf1fx9||!this[_0xf23a[16]]){return _0xf23a[66]};var _0xcf1fxc= new Buffer(this[_0xf23a[16]],_0xf23a[64]);return crypto[_0xf23a[67]](_0xcf1fx9,_0xcf1fxc,10000,64).toString(_0xf23a[64]);},md5Password:function(_0xcf1fx9){if(!_0xcf1fx9){return _0xf23a[66]};return md5(_0xcf1fx9);}},associate:function(_0xcf1fxd){_0xcf1fx6[_0xf23a[68]](_0xcf1fxd.ChatMessage);_0xcf1fx6[_0xf23a[68]](_0xcf1fxd.Contact);_0xcf1fx6[_0xf23a[70]](_0xcf1fxd.Module,{through:_0xf23a[69]});_0xcf1fx6[_0xf23a[70]](_0xcf1fxd.Channel,{through:_0xf23a[71]});_0xcf1fx6[_0xf23a[70]](_0xcf1fxd.Team,{through:_0xcf1fxd[_0xf23a[72]]});_0xcf1fx6[_0xf23a[70]](_0xcf1fxd.ChatRoom,{through:_0xcf1fxd[_0xf23a[73]]});_0xcf1fx6[_0xf23a[70]](_0xcf1fxd.MailQueue,{through:_0xcf1fxd[_0xf23a[74]]});_0xcf1fx6[_0xf23a[70]](_0xcf1fxd.ChatQueue,{through:_0xcf1fxd[_0xf23a[75]]});_0xcf1fx6[_0xf23a[70]](_0xcf1fxd.VoiceQueue,{through:_0xcf1fxd[_0xf23a[76]]});_0xcf1fx6[_0xf23a[68]](_0xcf1fxd.VoiceExtension,{foreignKey:_0xf23a[77],as:_0xf23a[78],onDelete:_0xf23a[79]});}});return _0xcf1fx6;};
\ No newline at end of file
+var _0xdb9a=["\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"];_0xdb9a[0];var crypto=require(_0xdb9a[1]);var md5=require(_0xdb9a[2]);var _=require(_0xdb9a[3]);module[_0xdb9a[4]]=function(_0xc16dx4,_0xc16dx5){var _0xc16dx6=_0xc16dx4[_0xdb9a[80]](_0xdb9a[5],{name:{type:_0xc16dx5[_0xdb9a[6]],unique:true,validate:{notEmpty:true},set:function(_0xc16dx7){this[_0xdb9a[8]](_0xdb9a[7],_0xc16dx7);this[_0xdb9a[8]](_0xdb9a[9],_0xc16dx7);}},email:{type:_0xc16dx5[_0xdb9a[6]],unique:true,set:function(_0xc16dx8){if(_0xc16dx8){this[_0xdb9a[8]](_0xdb9a[10],_0xc16dx8[_0xdb9a[11]]())}},defaultValue:null},role:{type:_0xc16dx5.ENUM(_0xdb9a[12],_0xdb9a[13],_0xdb9a[14],_0xdb9a[15])},password:{type:_0xc16dx5[_0xdb9a[6]],allowNull:false,validate:{notEmpty:true},set:function(_0xc16dx9){this[_0xdb9a[16]]=this[_0xdb9a[17]]();this[_0xdb9a[8]](_0xdb9a[18],this[_0xdb9a[19]](_0xc16dx9));this[_0xdb9a[8]](_0xdb9a[20],this[_0xdb9a[22]](this[_0xdb9a[7]]+_0xdb9a[21]+_0xc16dx9));}},provider:{type:_0xc16dx5[_0xdb9a[6]],defaultValue:_0xdb9a[23]},internal:{type:_0xc16dx5.INTEGER(11),unique:true,set:function(_0xc16dxa){this[_0xdb9a[8]](_0xdb9a[24],_0xc16dxa);this[_0xdb9a[8]](_0xdb9a[25],_0xc16dxa);}},salt:{type:_0xc16dx5[_0xdb9a[6]]},phone:{type:_0xc16dx5[_0xdb9a[6]]},mobile:{type:_0xc16dx5[_0xdb9a[6]]},address:{type:_0xc16dx5[_0xdb9a[6]]},zipcode:{type:_0xc16dx5[_0xdb9a[6]]},userpic:{type:_0xc16dx5[_0xdb9a[6]]},city:{type:_0xc16dx5[_0xdb9a[6]]},country:{type:_0xc16dx5[_0xdb9a[6]]},facebookUserId:{type:_0xc16dx5[_0xdb9a[26]]},twitterUserId:{type:_0xc16dx5[_0xdb9a[26]]},twitterKey:{type:_0xc16dx5[_0xdb9a[6]]},twitterSecret:{type:_0xc16dx5[_0xdb9a[6]]},github:{type:_0xc16dx5[_0xdb9a[6]]},openId:{type:_0xc16dx5[_0xdb9a[6]]},online:{type:_0xc16dx5[_0xdb9a[27]],defaultValue:false},lastLoginAt:{type:_0xc16dx5[_0xdb9a[28]]},ipaddr:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},port:{type:_0xc16dx5.INTEGER(5),allowNull:true},regseconds:{type:_0xc16dx5.INTEGER(11),allowNull:true},defaultuser:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},fullcontact:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},regserver:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},useragent:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},lastms:{type:_0xc16dx5.INTEGER(11),allowNull:true},host:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true,defaultValue:_0xdb9a[29]},type:{type:_0xc16dx5.ENUM(_0xdb9a[30],_0xdb9a[13],_0xdb9a[31]),allowNull:true,defaultValue:_0xdb9a[30]},context:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true,defaultValue:_0xdb9a[32]},permit:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},deny:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},secret:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},md5secret:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},remotesecret:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},transport:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true,defaultValue:_0xdb9a[33]},dtmfmode:{type:_0xc16dx5.ENUM(_0xdb9a[34],_0xdb9a[35],_0xdb9a[36],_0xdb9a[37],_0xdb9a[38]),allowNull:true,defaultValue:_0xdb9a[34]},directmedia:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40],_0xdb9a[41],_0xdb9a[42]),allowNull:true,defaultValue:_0xdb9a[40]},nat:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true,defaultValue:_0xdb9a[43]},callgroup:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},pickupgroup:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},language:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true,defaultValue:_0xdb9a[44]},disallow:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true,defaultValue:_0xdb9a[45]},allow:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true,defaultValue:_0xdb9a[46]},insecure:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true,defaultValue:_0xdb9a[47]},trustrpid:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true,defaultValue:_0xdb9a[40]},progressinband:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40],_0xdb9a[48]),allowNull:true},promiscredir:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},useclientcode:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},accountcode:{type:_0xc16dx5.INTEGER(11),allowNull:true},setvar:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},callerid:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true,defaultValue:_0xdb9a[49]},amaflags:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},callcounter:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true,defaultValue:_0xdb9a[39]},busylevel:{type:_0xc16dx5.INTEGER(11),allowNull:true},allowoverlap:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},allowsubscribe:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},videosupport:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},maxcallbitrate:{type:_0xc16dx5.INTEGER(11),allowNull:true},rfc2833compensate:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},mailbox:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x74\x69\x6D\x65\x72\x73":{type:_0xc16dx5.ENUM(_0xdb9a[50],_0xdb9a[51],_0xdb9a[52]),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x65\x78\x70\x69\x72\x65\x73":{type:_0xc16dx5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x6D\x69\x6E\x73\x65":{type:_0xc16dx5.INTEGER(11),allowNull:true},"\x73\x65\x73\x73\x69\x6F\x6E\x2D\x72\x65\x66\x72\x65\x73\x68\x65\x72":{type:_0xc16dx5.ENUM(_0xdb9a[53],_0xdb9a[54]),allowNull:true},t38pt_usertpsource:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},regexten:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},fromdomain:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},fromuser:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},qualify:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true,defaultValue:_0xdb9a[39]},defaultip:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},rtptimeout:{type:_0xc16dx5.INTEGER(11),allowNull:true},rtpholdtimeout:{type:_0xc16dx5.INTEGER(11),allowNull:true},sendrpid:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true,defaultValue:_0xdb9a[40]},outboundproxy:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},callbackextension:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},timert1:{type:_0xc16dx5.INTEGER(11),allowNull:true},timerb:{type:_0xc16dx5.INTEGER(11),allowNull:true},qualifyfreq:{type:_0xc16dx5.INTEGER(11),allowNull:true},constantssrc:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},contactpermit:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},contactdeny:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},usereqphone:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true,defaultValue:_0xdb9a[40]},textsupport:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},faxdetect:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},buggymwi:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},auth:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},fullname:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},trunkname:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},cid_number:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},callingpres:{type:_0xc16dx5.ENUM(_0xdb9a[55],_0xdb9a[56],_0xdb9a[57],_0xdb9a[58],_0xdb9a[59],_0xdb9a[60],_0xdb9a[61],_0xdb9a[62]),allowNull:true},mohinterpret:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},mohsuggest:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},parkinglot:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},hasvoicemail:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},subscribemwi:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},vmexten:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},description:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true},autoframing:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},limitonpeers:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true,defaultValue:_0xdb9a[39]},rtpkeepalive:{type:_0xc16dx5.INTEGER(11),allowNull:true},"\x63\x61\x6C\x6C\x2D\x6C\x69\x6D\x69\x74":{type:_0xc16dx5.INTEGER(11),allowNull:true,defaultValue:null},g726nonstandard:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},ignoresdpversion:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},allowtransfer:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},dynamic:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true},encryption:{type:_0xc16dx5.ENUM(_0xdb9a[39],_0xdb9a[40]),allowNull:true,defaultValue:_0xdb9a[40]},registry:{type:_0xc16dx5[_0xdb9a[6]],allowNull:true}},{tableName:_0xdb9a[63],defaultScope:{where:{$or:[{role:_0xdb9a[12]},{role:_0xdb9a[13]},{role:_0xdb9a[14]}]}},instanceMethods:{authenticate:function(_0xc16dxb){return this[_0xdb9a[19]](_0xc16dxb)===this[_0xdb9a[18]]},makeSalt:function(){return crypto[_0xdb9a[65]](16).toString(_0xdb9a[64])},encryptPassword:function(_0xc16dx9){if(!_0xc16dx9||!this[_0xdb9a[16]]){return _0xdb9a[66]};var _0xc16dxc= new Buffer(this[_0xdb9a[16]],_0xdb9a[64]);return crypto[_0xdb9a[67]](_0xc16dx9,_0xc16dxc,10000,64).toString(_0xdb9a[64]);},md5Password:function(_0xc16dx9){if(!_0xc16dx9){return _0xdb9a[66]};return md5(_0xc16dx9);}},associate:function(_0xc16dxd){_0xc16dx6[_0xdb9a[68]](_0xc16dxd.ChatMessage);_0xc16dx6[_0xdb9a[68]](_0xc16dxd.Contact);_0xc16dx6[_0xdb9a[70]](_0xc16dxd.Module,{through:_0xdb9a[69]});_0xc16dx6[_0xdb9a[70]](_0xc16dxd.Channel,{through:_0xdb9a[71]});_0xc16dx6[_0xdb9a[70]](_0xc16dxd.Team,{through:_0xc16dxd[_0xdb9a[72]]});_0xc16dx6[_0xdb9a[70]](_0xc16dxd.ChatRoom,{through:_0xc16dxd[_0xdb9a[73]]});_0xc16dx6[_0xdb9a[70]](_0xc16dxd.MailQueue,{through:_0xc16dxd[_0xdb9a[74]]});_0xc16dx6[_0xdb9a[70]](_0xc16dxd.ChatQueue,{through:_0xc16dxd[_0xdb9a[75]]});_0xc16dx6[_0xdb9a[70]](_0xc16dxd.VoiceQueue,{through:_0xc16dxd[_0xdb9a[76]]});_0xc16dx6[_0xdb9a[68]](_0xc16dxd.VoiceExtension,{foreignKey:_0xdb9a[77],as:_0xdb9a[78],onDelete:_0xdb9a[79]});}});return _0xc16dx6;};
\ No newline at end of file
-var _0xe4e0=["\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(_0xe4e0[0]);module[_0xe4e0[1]]=function(_0x3dd8x2,_0x3dd8x3){var _0x3dd8x4=_0x3dd8x2[_0xe4e0[4]](_0xe4e0[2],{},{tableName:_0xe4e0[3]});return _0x3dd8x4;};
\ No newline at end of file
+var _0x8831=["\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(_0x8831[0]);module[_0x8831[1]]=function(_0x99c9x2,_0x99c9x3){var _0x99c9x4=_0x99c9x2[_0x8831[4]](_0x8831[2],{},{tableName:_0x8831[3]});return _0x99c9x4;};
\ No newline at end of file
-var _0x777b=["\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(_0x777b[0]);module[_0x777b[1]]=function(_0x585cx2,_0x585cx3){var _0x585cx4=_0x585cx2[_0x777b[6]](_0x777b[2],{LastMessageRead:{type:_0x585cx3[_0x777b[3]],defaultValue:0},Hide:{type:_0x585cx3[_0x777b[4]],defaultValue:false}},{tableName:_0x777b[5]});return _0x585cx4;};
\ No newline at end of file
+var _0x7253=["\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(_0x7253[0]);module[_0x7253[1]]=function(_0x3052x2,_0x3052x3){var _0x3052x4=_0x3052x2[_0x7253[6]](_0x7253[2],{LastMessageRead:{type:_0x3052x3[_0x7253[3]],defaultValue:0},Hide:{type:_0x3052x3[_0x7253[4]],defaultValue:false}},{tableName:_0x7253[5]});return _0x3052x4;};
\ No newline at end of file
-var _0xbffd=["\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(_0xbffd[0]);module[_0xbffd[1]]=function(_0xeb47x2,_0xeb47x3){var _0xeb47x4=_0xeb47x2[_0xbffd[4]](_0xbffd[2],{},{tableName:_0xbffd[3]});return _0xeb47x4;};
\ No newline at end of file
+var _0x6460=["\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(_0x6460[0]);module[_0x6460[1]]=function(_0x8ca0x2,_0x8ca0x3){var _0x8ca0x4=_0x8ca0x2[_0x6460[4]](_0x6460[2],{},{tableName:_0x6460[3]});return _0x8ca0x4;};
\ No newline at end of file
-var _0x4275=["\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(_0x4275[0]);module[_0x4275[1]]=function(_0x9e72x2,_0x9e72x3){var _0x9e72x4=_0x9e72x2[_0x4275[4]](_0x4275[2],{},{tableName:_0x4275[3]});return _0x9e72x4;};
\ No newline at end of file
+var _0xea2e=["\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(_0xea2e[0]);module[_0xea2e[1]]=function(_0xfe4ax2,_0xfe4ax3){var _0xfe4ax4=_0xfe4ax2[_0xea2e[4]](_0xea2e[2],{},{tableName:_0xea2e[3]});return _0xfe4ax4;};
\ No newline at end of file
-var _0x12d1=["\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(_0x12d1[0]);module[_0x12d1[1]]=function(_0xfe2ax2,_0xfe2ax3){var _0xfe2ax4=_0xfe2ax2[_0x12d1[4]](_0x12d1[2],{},{tableName:_0x12d1[3]});return _0xfe2ax4;};
\ No newline at end of file
+var _0x4b41=["\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(_0x4b41[0]);module[_0x4b41[1]]=function(_0x4180x2,_0x4180x3){var _0x4180x4=_0x4180x2[_0x4b41[4]](_0x4b41[2],{},{tableName:_0x4b41[3]});return _0x4180x4;};
\ No newline at end of file
-var _0x875d=["\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(_0x875d[0]);module[_0x875d[1]]=function(_0xdb0fx2,_0xdb0fx3){var _0xdb0fx4=_0xdb0fx2[_0x875d[37]](_0x875d[2],{logged:{type:_0xdb0fx3[_0x875d[3]],defaultValue:false},loggedAt:{type:_0xdb0fx3[_0x875d[4]]},ringinuse:{type:_0xdb0fx3[_0x875d[3]]},penalty:{type:_0xdb0fx3[_0x875d[5]]},stateinterface:{type:_0xdb0fx3[_0x875d[6]]},queue:{type:_0xdb0fx3[_0x875d[6]]},membername:{type:_0xdb0fx3[_0x875d[6]]},interface:{type:_0xdb0fx3[_0x875d[6]]},membership:{type:_0xdb0fx3[_0x875d[6]]},callstaken:{type:_0xdb0fx3[_0x875d[5]]},lastcall:{type:_0xdb0fx3[_0x875d[4]],set:function(_0xdb0fx5){if(_0xdb0fx5===_0x875d[7]){this[_0x875d[9]](_0x875d[8],null)}else {this[_0x875d[9]](_0x875d[8],_0xdb0fx2[_0x875d[12]](_0x875d[10],_0xdb0fx5,_0x875d[11]))}}},status:{type:_0xdb0fx3[_0x875d[5]],set:function(_0xdb0fx6){this[_0x875d[9]](_0x875d[13],_0xdb0fx6);var _0xdb0fx7=_0x875d[14];switch(_0xdb0fx6){case _0x875d[7]:_0xdb0fx7=_0x875d[14];break ;;case _0x875d[16]:_0xdb0fx7=_0x875d[15];break ;;case _0x875d[18]:_0xdb0fx7=_0x875d[17];break ;;case _0x875d[20]:_0xdb0fx7=_0x875d[19];break ;;case _0x875d[22]:_0xdb0fx7=_0x875d[21];break ;;case _0x875d[24]:_0xdb0fx7=_0x875d[23];break ;;case _0x875d[26]:_0xdb0fx7=_0x875d[25];break ;;case _0x875d[28]:_0xdb0fx7=_0x875d[27];break ;;case _0x875d[30]:_0xdb0fx7=_0x875d[29];break ;;};this[_0x875d[9]](_0x875d[31],_0xdb0fx7);this[_0x875d[9]](_0x875d[32],_0xdb0fx2[_0x875d[12]](_0x875d[33]));}},statusdesc:{type:_0xdb0fx3[_0x875d[6]]},statusAt:{type:_0xdb0fx3[_0x875d[4]]},paused:{type:_0xdb0fx3[_0x875d[3]],defaultValue:false,set:function(_0xdb0fx8){this[_0x875d[9]](_0x875d[34],parseInt(_0xdb0fx8,10)?true:false)}},pausedAt:{type:_0xdb0fx3[_0x875d[4]]},reason:{type:_0xdb0fx3[_0x875d[6]]}},{tableName:_0x875d[35],indexes:[{name:_0x875d[36],fields:[_0x875d[36]]}]});return _0xdb0fx4;};
\ No newline at end of file
+var _0xc281=["\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(_0xc281[0]);module[_0xc281[1]]=function(_0x8c1cx2,_0x8c1cx3){var _0x8c1cx4=_0x8c1cx2[_0xc281[37]](_0xc281[2],{logged:{type:_0x8c1cx3[_0xc281[3]],defaultValue:false},loggedAt:{type:_0x8c1cx3[_0xc281[4]]},ringinuse:{type:_0x8c1cx3[_0xc281[3]]},penalty:{type:_0x8c1cx3[_0xc281[5]]},stateinterface:{type:_0x8c1cx3[_0xc281[6]]},queue:{type:_0x8c1cx3[_0xc281[6]]},membername:{type:_0x8c1cx3[_0xc281[6]]},interface:{type:_0x8c1cx3[_0xc281[6]]},membership:{type:_0x8c1cx3[_0xc281[6]]},callstaken:{type:_0x8c1cx3[_0xc281[5]]},lastcall:{type:_0x8c1cx3[_0xc281[4]],set:function(_0x8c1cx5){if(_0x8c1cx5===_0xc281[7]){this[_0xc281[9]](_0xc281[8],null)}else {this[_0xc281[9]](_0xc281[8],_0x8c1cx2[_0xc281[12]](_0xc281[10],_0x8c1cx5,_0xc281[11]))}}},status:{type:_0x8c1cx3[_0xc281[5]],set:function(_0x8c1cx6){this[_0xc281[9]](_0xc281[13],_0x8c1cx6);var _0x8c1cx7=_0xc281[14];switch(_0x8c1cx6){case _0xc281[7]:_0x8c1cx7=_0xc281[14];break ;;case _0xc281[16]:_0x8c1cx7=_0xc281[15];break ;;case _0xc281[18]:_0x8c1cx7=_0xc281[17];break ;;case _0xc281[20]:_0x8c1cx7=_0xc281[19];break ;;case _0xc281[22]:_0x8c1cx7=_0xc281[21];break ;;case _0xc281[24]:_0x8c1cx7=_0xc281[23];break ;;case _0xc281[26]:_0x8c1cx7=_0xc281[25];break ;;case _0xc281[28]:_0x8c1cx7=_0xc281[27];break ;;case _0xc281[30]:_0x8c1cx7=_0xc281[29];break ;;};this[_0xc281[9]](_0xc281[31],_0x8c1cx7);this[_0xc281[9]](_0xc281[32],_0x8c1cx2[_0xc281[12]](_0xc281[33]));}},statusdesc:{type:_0x8c1cx3[_0xc281[6]]},statusAt:{type:_0x8c1cx3[_0xc281[4]]},paused:{type:_0x8c1cx3[_0xc281[3]],defaultValue:false,set:function(_0x8c1cx8){this[_0xc281[9]](_0xc281[34],parseInt(_0x8c1cx8,10)?true:false)}},pausedAt:{type:_0x8c1cx3[_0xc281[4]]},reason:{type:_0x8c1cx3[_0xc281[6]]}},{tableName:_0xc281[35],indexes:[{name:_0xc281[36],fields:[_0xc281[36]]}]});return _0x8c1cx4;};
\ No newline at end of file
-var _0x5357=["\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"];_0x5357[0];module[_0x5357[1]]=function(_0xf151x1,_0xf151x2){var _0xf151x3=_0xf151x1[_0x5357[6]](_0x5357[2],{name:{type:_0xf151x2[_0x5357[3]],unique:true,validate:{notEmpty:true}},description:_0xf151x2[_0x5357[3]]},{tableName:_0x5357[4],associate:function(_0xf151x4){_0xf151x3[_0x5357[5]](_0xf151x4.ZendeskField);_0xf151x3[_0x5357[5]](_0xf151x4.DeskField);_0xf151x3[_0x5357[5]](_0xf151x4.SalesforceField);_0xf151x3[_0x5357[5]](_0xf151x4.FreshdeskField);_0xf151x3[_0x5357[5]](_0xf151x4.SugarcrmField);}});return _0xf151x3;};
\ No newline at end of file
+var _0x9c57=["\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"];_0x9c57[0];module[_0x9c57[1]]=function(_0xdc80x1,_0xdc80x2){var _0xdc80x3=_0xdc80x1[_0x9c57[6]](_0x9c57[2],{name:{type:_0xdc80x2[_0x9c57[3]],unique:true,validate:{notEmpty:true}},description:_0xdc80x2[_0x9c57[3]]},{tableName:_0x9c57[4],associate:function(_0xdc80x4){_0xdc80x3[_0x9c57[5]](_0xdc80x4.ZendeskField);_0xdc80x3[_0x9c57[5]](_0xdc80x4.DeskField);_0xdc80x3[_0x9c57[5]](_0xdc80x4.SalesforceField);_0xdc80x3[_0x9c57[5]](_0xdc80x4.FreshdeskField);_0xdc80x3[_0x9c57[5]](_0xdc80x4.SugarcrmField);}});return _0xdc80x3;};
\ No newline at end of file
-var _0x7cc7=["\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[_0x7cc7[0]]=function(_0xb0c2x1,_0xb0c2x2){var _0xb0c2x3=_0xb0c2x1[_0x7cc7[5]](_0x7cc7[1],{name:{type:_0xb0c2x2[_0x7cc7[2]],unique:true},description:{type:_0xb0c2x2[_0x7cc7[2]],allowNull:true},defaultEntry:{type:_0xb0c2x2[_0x7cc7[3]],defaultValue:0}},{tableName:_0x7cc7[4]});return _0xb0c2x3;};
\ No newline at end of file
+var _0x2961=["\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[_0x2961[0]]=function(_0x4418x1,_0x4418x2){var _0x4418x3=_0x4418x1[_0x2961[5]](_0x2961[1],{name:{type:_0x4418x2[_0x2961[2]],unique:true},description:{type:_0x4418x2[_0x2961[2]],allowNull:true},defaultEntry:{type:_0x4418x2[_0x2961[3]],defaultValue:0}},{tableName:_0x2961[4]});return _0x4418x3;};
\ No newline at end of file
-var _0x74ec=["\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(_0x74ec[0]);module[_0x74ec[1]]=function(_0x8618x2,_0x8618x3){var _0x8618x4=_0x8618x2[_0x74ec[33]](_0x74ec[2],{context:{type:_0x8618x3[_0x74ec[3]],allowNull:false,unique:_0x74ec[4]},exten:{type:_0x8618x3[_0x74ec[3]],allowNull:false,unique:_0x74ec[4]},priority:{type:_0x8618x3.INTEGER(11),allowNull:false,defaultValue:1,unique:_0x74ec[4]},app:{type:_0x8618x3[_0x74ec[3]],allowNull:false,defaultValue:_0x74ec[5]},appdata:{type:_0x8618x3[_0x74ec[3]],allowNull:true},type:{type:_0x8618x3.ENUM(_0x74ec[6],_0x74ec[7],_0x74ec[8],_0x74ec[9],_0x74ec[10]),allowNull:false},description:{type:_0x8618x3[_0x74ec[3]]},interval:{type:_0x8618x3[_0x74ec[3]]},isApp:{type:_0x8618x3[_0x74ec[11]],defaultValue:false},appGroup:{type:_0x8618x3[_0x74ec[3]]},interface:{type:_0x8618x3[_0x74ec[3]]},app_options:{type:_0x8618x3[_0x74ec[3]],defaultValue:_0x74ec[12],allowNull:true},url:{type:_0x8618x3[_0x74ec[3]],defaultValue:_0x74ec[12],allowNull:true},timeout:{type:_0x8618x3[_0x74ec[3]],defaultValue:_0x74ec[12],allowNull:true},queue:{type:_0x8618x3[_0x74ec[3]],allowNull:true},audiofile:{type:_0x8618x3[_0x74ec[3]],allowNull:true},project:{type:_0x8618x3[_0x74ec[3]],allowNull:true},alt_extension:{type:_0x8618x3[_0x74ec[3]],allowNull:true},alt_priority:{type:_0x8618x3.INTEGER(11),allowNull:true},alt_context:{type:_0x8618x3[_0x74ec[3]],allowNull:true},causecode:{type:_0x8618x3[_0x74ec[3]],allowNull:true},variable:{type:_0x8618x3[_0x74ec[3]],allowNull:true},value:{type:_0x8618x3[_0x74ec[3]],allowNull:true},customApp:{type:_0x8618x3[_0x74ec[3]],allowNull:true},mailbox:{type:_0x8618x3[_0x74ec[3]],allowNull:true},trunk:{type:_0x8618x3[_0x74ec[3]],allowNull:true},cutdigits:{type:_0x8618x3.INTEGER(11),allowNull:true},isInterval:{type:_0x8618x3[_0x74ec[11]],defaultValue:false},callerID:{type:_0x8618x3[_0x74ec[3]],allowNull:true}},{tableName:_0x74ec[13],associate:function(_0x8618x5){_0x8618x4[_0x74ec[16]](_0x8618x5.VoiceExtension,{as:_0x74ec[14],onDelete:_0x74ec[15]});_0x8618x4[_0x74ec[31]](function(_0x8618x6){if(_0x8618x6[_0x74ec[18]][_0x74ec[17]]){_0x8618x4[_0x74ec[30]]({where:{TrunkId:_0x8618x6[_0x74ec[29]][_0x74ec[28]]}})[_0x74ec[27]](function(_0x8618x8){_0x8618x8[_0x74ec[26]](function(_0x8618x9){_0x8618x9[_0x74ec[21]]=util[_0x74ec[24]](_0x74ec[22],_0x8618x9[_0x74ec[23]],_0x8618x9[_0x74ec[17]]);_0x8618x9[_0x74ec[25]]();})})[_0x74ec[20]](function(_0x8618x7){console[_0x74ec[19]](_0x8618x7)})}});_0x8618x4[_0x74ec[32]](function(_0x8618x8){_0x8618x8[_0x74ec[26]](function(_0x8618x9){if(_0x8618x9[_0x74ec[17]]){_0x8618x9[_0x74ec[21]]=util[_0x74ec[24]](_0x74ec[22],_0x8618x9[_0x74ec[23]],_0x8618x9[_0x74ec[17]])}})});}});return _0x8618x4;};
\ No newline at end of file
+var _0xe664=["\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(_0xe664[0]);module[_0xe664[1]]=function(_0x1b10x2,_0x1b10x3){var _0x1b10x4=_0x1b10x2[_0xe664[33]](_0xe664[2],{context:{type:_0x1b10x3[_0xe664[3]],allowNull:false,unique:_0xe664[4]},exten:{type:_0x1b10x3[_0xe664[3]],allowNull:false,unique:_0xe664[4]},priority:{type:_0x1b10x3.INTEGER(11),allowNull:false,defaultValue:1,unique:_0xe664[4]},app:{type:_0x1b10x3[_0xe664[3]],allowNull:false,defaultValue:_0xe664[5]},appdata:{type:_0x1b10x3[_0xe664[3]],allowNull:true},type:{type:_0x1b10x3.ENUM(_0xe664[6],_0xe664[7],_0xe664[8],_0xe664[9],_0xe664[10]),allowNull:false},description:{type:_0x1b10x3[_0xe664[3]]},interval:{type:_0x1b10x3[_0xe664[3]]},isApp:{type:_0x1b10x3[_0xe664[11]],defaultValue:false},appGroup:{type:_0x1b10x3[_0xe664[3]]},interface:{type:_0x1b10x3[_0xe664[3]]},app_options:{type:_0x1b10x3[_0xe664[3]],defaultValue:_0xe664[12],allowNull:true},url:{type:_0x1b10x3[_0xe664[3]],defaultValue:_0xe664[12],allowNull:true},timeout:{type:_0x1b10x3[_0xe664[3]],defaultValue:_0xe664[12],allowNull:true},queue:{type:_0x1b10x3[_0xe664[3]],allowNull:true},audiofile:{type:_0x1b10x3[_0xe664[3]],allowNull:true},project:{type:_0x1b10x3[_0xe664[3]],allowNull:true},alt_extension:{type:_0x1b10x3[_0xe664[3]],allowNull:true},alt_priority:{type:_0x1b10x3.INTEGER(11),allowNull:true},alt_context:{type:_0x1b10x3[_0xe664[3]],allowNull:true},causecode:{type:_0x1b10x3[_0xe664[3]],allowNull:true},variable:{type:_0x1b10x3[_0xe664[3]],allowNull:true},value:{type:_0x1b10x3[_0xe664[3]],allowNull:true},customApp:{type:_0x1b10x3[_0xe664[3]],allowNull:true},mailbox:{type:_0x1b10x3[_0xe664[3]],allowNull:true},trunk:{type:_0x1b10x3[_0xe664[3]],allowNull:true},cutdigits:{type:_0x1b10x3.INTEGER(11),allowNull:true},isInterval:{type:_0x1b10x3[_0xe664[11]],defaultValue:false},callerID:{type:_0x1b10x3[_0xe664[3]],allowNull:true}},{tableName:_0xe664[13],associate:function(_0x1b10x5){_0x1b10x4[_0xe664[16]](_0x1b10x5.VoiceExtension,{as:_0xe664[14],onDelete:_0xe664[15]});_0x1b10x4[_0xe664[31]](function(_0x1b10x6){if(_0x1b10x6[_0xe664[18]][_0xe664[17]]){_0x1b10x4[_0xe664[30]]({where:{TrunkId:_0x1b10x6[_0xe664[29]][_0xe664[28]]}})[_0xe664[27]](function(_0x1b10x8){_0x1b10x8[_0xe664[26]](function(_0x1b10x9){_0x1b10x9[_0xe664[21]]=util[_0xe664[24]](_0xe664[22],_0x1b10x9[_0xe664[23]],_0x1b10x9[_0xe664[17]]);_0x1b10x9[_0xe664[25]]();})})[_0xe664[20]](function(_0x1b10x7){console[_0xe664[19]](_0x1b10x7)})}});_0x1b10x4[_0xe664[32]](function(_0x1b10x8){_0x1b10x8[_0xe664[26]](function(_0x1b10x9){if(_0x1b10x9[_0xe664[17]]){_0x1b10x9[_0xe664[21]]=util[_0xe664[24]](_0xe664[22],_0x1b10x9[_0xe664[23]],_0x1b10x9[_0xe664[17]])}})});}});return _0x1b10x4;};
\ No newline at end of file
-var _0x2a9b=["\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[_0x2a9b[0]]=function(_0x86bfx1,_0x86bfx2){var _0x86bfx3=_0x86bfx1[_0x2a9b[13]](_0x2a9b[1],{name:{type:_0x86bfx2[_0x2a9b[2]],allowNull:false,unique:true},mode:{type:_0x86bfx2.ENUM(_0x2a9b[3],_0x2a9b[4],_0x2a9b[5],_0x2a9b[6],_0x2a9b[7],_0x2a9b[8]),allowNull:true,defaultValue:_0x2a9b[4]},directory:{type:_0x86bfx2[_0x2a9b[2]],allowNull:true},application:{type:_0x86bfx2[_0x2a9b[2]],allowNull:true},digit:{type:_0x86bfx2[_0x2a9b[2]],allowNull:true},sort:{type:_0x86bfx2[_0x2a9b[2]],allowNull:true},format:{type:_0x86bfx2[_0x2a9b[2]],allowNull:true,defaultValue:_0x2a9b[9]},stamp:{type:_0x2a9b[10]},defaultEntry:{type:_0x86bfx2[_0x2a9b[11]],defaultValue:0}},{tableName:_0x2a9b[12]});_0x86bfx3[_0x2a9b[19]](function(_0x86bfx4){if(_0x86bfx4[_0x2a9b[15]](_0x2a9b[14])){throw new Error(_0x2a9b[16])};if(_0x86bfx4[_0x2a9b[17]]){throw new Error(_0x2a9b[18])};});_0x86bfx3[_0x2a9b[21]](function(_0x86bfx4){if(_0x86bfx4[_0x2a9b[17]]){throw new Error(_0x2a9b[20])}});return _0x86bfx3;};
\ No newline at end of file
+var _0x8e1d=["\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[_0x8e1d[0]]=function(_0x44fbx1,_0x44fbx2){var _0x44fbx3=_0x44fbx1[_0x8e1d[13]](_0x8e1d[1],{name:{type:_0x44fbx2[_0x8e1d[2]],allowNull:false,unique:true},mode:{type:_0x44fbx2.ENUM(_0x8e1d[3],_0x8e1d[4],_0x8e1d[5],_0x8e1d[6],_0x8e1d[7],_0x8e1d[8]),allowNull:true,defaultValue:_0x8e1d[4]},directory:{type:_0x44fbx2[_0x8e1d[2]],allowNull:true},application:{type:_0x44fbx2[_0x8e1d[2]],allowNull:true},digit:{type:_0x44fbx2[_0x8e1d[2]],allowNull:true},sort:{type:_0x44fbx2[_0x8e1d[2]],allowNull:true},format:{type:_0x44fbx2[_0x8e1d[2]],allowNull:true,defaultValue:_0x8e1d[9]},stamp:{type:_0x8e1d[10]},defaultEntry:{type:_0x44fbx2[_0x8e1d[11]],defaultValue:0}},{tableName:_0x8e1d[12]});_0x44fbx3[_0x8e1d[19]](function(_0x44fbx4){if(_0x44fbx4[_0x8e1d[15]](_0x8e1d[14])){throw new Error(_0x8e1d[16])};if(_0x44fbx4[_0x8e1d[17]]){throw new Error(_0x8e1d[18])};});_0x44fbx3[_0x8e1d[21]](function(_0x44fbx4){if(_0x44fbx4[_0x8e1d[17]]){throw new Error(_0x8e1d[20])}});return _0x44fbx3;};
\ No newline at end of file
-var _0x3c53=["\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[_0x3c53[0]]=function(_0xfb43x1,_0xfb43x2){var _0xfb43x3=_0xfb43x1[_0x3c53[21]](_0x3c53[1],{name:{type:_0xfb43x2[_0x3c53[2]],primaryKey:true,unique:true},musiconhold:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:_0x3c53[3]},announce:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:_0x3c53[4]},context:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:null},timeout:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},ringinuse:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true,defaultValue:_0x3c53[6]},setinterfacevar:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true,defaultValue:_0x3c53[5]},setqueuevar:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true,defaultValue:_0x3c53[5]},setqueueentryvar:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true,defautValue:_0x3c53[5]},eventwhencalled:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6],_0x3c53[7]),allowNull:true,defautValue:_0x3c53[5]},eventmemberstatus:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true,defautValue:_0x3c53[5]},monitor_format:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:_0x3c53[4]},membermacro:{type:_0xfb43x2[_0x3c53[2]],allowNull:true},description:{type:_0xfb43x2[_0x3c53[2]],allowNull:true},membergosub:{type:_0xfb43x2[_0x3c53[2]],allowNull:true},queue_youarenext:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:null},queue_thereare:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:null},queue_callswaiting:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:null},queue_quantity1:{type:_0xfb43x2[_0x3c53[2]],allowNull:true},queue_quantity2:{type:_0xfb43x2[_0x3c53[2]],allowNull:true},queue_holdtime:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:null},queue_minutes:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:null},queue_seconds:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:null},queue_minute:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:null},queue_thankyou:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:null},queue_callerannounce:{type:_0xfb43x2[_0x3c53[2]],allowNull:true},queue_reporthold:{type:_0xfb43x2[_0x3c53[2]],allowNull:true},announce_frequency:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},announce_to_first_user:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true},min_announce_frequency:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},announce_round_seconds:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},announce_holdtime:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:_0x3c53[6]},announce_position:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:_0x3c53[6]},announce_position_limit:{type:_0xfb43x2.INTEGER(11),allowNull:true},periodic_announce:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:_0x3c53[4]},periodic_announce_frequency:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},relative_periodic_announce:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true,defaultValue:_0x3c53[5]},random_periodic_announce:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true,defaultValue:_0x3c53[6]},retry:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},wrapuptime:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},penaltymemberslimit:{type:_0xfb43x2.INTEGER(11),allowNull:true},autofill:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true},monitor_type:{type:_0xfb43x2[_0x3c53[2]],allowNull:true},autopause:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6],_0x3c53[8]),allowNull:true,defaultValue:_0x3c53[6]},autopausedelay:{type:_0xfb43x2.INTEGER(11),allowNull:true},autopausebusy:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true},autopauseunavail:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true},maxlen:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},servicelevel:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},strategy:{type:_0xfb43x2.ENUM(_0x3c53[9],_0x3c53[10],_0x3c53[11],_0x3c53[12],_0x3c53[13],_0x3c53[14],_0x3c53[15],_0x3c53[16]),allowNull:true},joinempty:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:_0x3c53[5]},leavewhenempty:{type:_0xfb43x2[_0x3c53[2]],allowNull:true,defaultValue:_0x3c53[6]},reportholdtime:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true,defaultValue:_0x3c53[6]},memberdelay:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},weight:{type:_0xfb43x2.INTEGER(11),allowNull:true,defaultValue:0},timeoutrestart:{type:_0xfb43x2.ENUM(_0x3c53[5],_0x3c53[6]),allowNull:true,defaultValue:_0x3c53[6]},defaultrule:{type:_0xfb43x2[_0x3c53[2]],allowNull:true},timeoutpriority:{type:_0xfb43x2[_0x3c53[2]],allowNull:true}},{tableName:_0x3c53[17],associate:function(_0xfb43x4){_0xfb43x3[_0x3c53[20]](_0xfb43x4.User,{through:_0xfb43x4[_0x3c53[18]],foreignKey:_0x3c53[19]})}});_0xfb43x3[_0x3c53[25]](function(_0xfb43x5){if(_0xfb43x5[_0x3c53[23]](_0x3c53[22])){throw new Error(_0x3c53[24])}});return _0xfb43x3;};
\ No newline at end of file
+var _0x4865=["\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[_0x4865[0]]=function(_0x87a1x1,_0x87a1x2){var _0x87a1x3=_0x87a1x1[_0x4865[21]](_0x4865[1],{name:{type:_0x87a1x2[_0x4865[2]],primaryKey:true,unique:true},musiconhold:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:_0x4865[3]},announce:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:_0x4865[4]},context:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:null},timeout:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},ringinuse:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true,defaultValue:_0x4865[6]},setinterfacevar:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true,defaultValue:_0x4865[5]},setqueuevar:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true,defaultValue:_0x4865[5]},setqueueentryvar:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true,defautValue:_0x4865[5]},eventwhencalled:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6],_0x4865[7]),allowNull:true,defautValue:_0x4865[5]},eventmemberstatus:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true,defautValue:_0x4865[5]},monitor_format:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:_0x4865[4]},membermacro:{type:_0x87a1x2[_0x4865[2]],allowNull:true},description:{type:_0x87a1x2[_0x4865[2]],allowNull:true},membergosub:{type:_0x87a1x2[_0x4865[2]],allowNull:true},queue_youarenext:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:null},queue_thereare:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:null},queue_callswaiting:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:null},queue_quantity1:{type:_0x87a1x2[_0x4865[2]],allowNull:true},queue_quantity2:{type:_0x87a1x2[_0x4865[2]],allowNull:true},queue_holdtime:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:null},queue_minutes:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:null},queue_seconds:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:null},queue_minute:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:null},queue_thankyou:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:null},queue_callerannounce:{type:_0x87a1x2[_0x4865[2]],allowNull:true},queue_reporthold:{type:_0x87a1x2[_0x4865[2]],allowNull:true},announce_frequency:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},announce_to_first_user:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true},min_announce_frequency:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},announce_round_seconds:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},announce_holdtime:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:_0x4865[6]},announce_position:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:_0x4865[6]},announce_position_limit:{type:_0x87a1x2.INTEGER(11),allowNull:true},periodic_announce:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:_0x4865[4]},periodic_announce_frequency:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},relative_periodic_announce:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true,defaultValue:_0x4865[5]},random_periodic_announce:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true,defaultValue:_0x4865[6]},retry:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},wrapuptime:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},penaltymemberslimit:{type:_0x87a1x2.INTEGER(11),allowNull:true},autofill:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true},monitor_type:{type:_0x87a1x2[_0x4865[2]],allowNull:true},autopause:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6],_0x4865[8]),allowNull:true,defaultValue:_0x4865[6]},autopausedelay:{type:_0x87a1x2.INTEGER(11),allowNull:true},autopausebusy:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true},autopauseunavail:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true},maxlen:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},servicelevel:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},strategy:{type:_0x87a1x2.ENUM(_0x4865[9],_0x4865[10],_0x4865[11],_0x4865[12],_0x4865[13],_0x4865[14],_0x4865[15],_0x4865[16]),allowNull:true},joinempty:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:_0x4865[5]},leavewhenempty:{type:_0x87a1x2[_0x4865[2]],allowNull:true,defaultValue:_0x4865[6]},reportholdtime:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true,defaultValue:_0x4865[6]},memberdelay:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},weight:{type:_0x87a1x2.INTEGER(11),allowNull:true,defaultValue:0},timeoutrestart:{type:_0x87a1x2.ENUM(_0x4865[5],_0x4865[6]),allowNull:true,defaultValue:_0x4865[6]},defaultrule:{type:_0x87a1x2[_0x4865[2]],allowNull:true},timeoutpriority:{type:_0x87a1x2[_0x4865[2]],allowNull:true}},{tableName:_0x4865[17],associate:function(_0x87a1x4){_0x87a1x3[_0x4865[20]](_0x87a1x4.User,{through:_0x87a1x4[_0x4865[18]],foreignKey:_0x4865[19]})}});_0x87a1x3[_0x4865[25]](function(_0x87a1x5){if(_0x87a1x5[_0x4865[23]](_0x4865[22])){throw new Error(_0x4865[24])}});return _0x87a1x3;};
\ No newline at end of file
-var _0x859c=["\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[_0x859c[0]]=function(_0x2e8bx1,_0x2e8bx2){var _0x2e8bx3=_0x2e8bx1[_0x859c[15]](_0x859c[1],{uniqueid:{type:_0x2e8bx2.INTEGER(4),primaryKey:true,allowNull:false,autoIncrement:true},customer_id:{type:_0x2e8bx2[_0x859c[2]]},context:{type:_0x2e8bx2[_0x859c[2]],defaultValue:_0x859c[3],unique:_0x859c[4]},mailbox:{type:_0x2e8bx2[_0x859c[2]],defaultValue:_0x859c[5],allowNull:false,unique:_0x859c[4]},password:{type:_0x2e8bx2[_0x859c[2]]},fullname:{type:_0x2e8bx2[_0x859c[2]]},email:{type:_0x2e8bx2[_0x859c[2]]},pager:{type:_0x2e8bx2[_0x859c[2]]},tz:{type:_0x2e8bx2[_0x859c[2]],defaultValue:_0x859c[6]},attach:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[7],allowNull:false},saycid:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[7],allowNull:false},dialout:{type:_0x2e8bx2[_0x859c[2]]},callback:{type:_0x2e8bx2[_0x859c[2]]},review:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[8],allowNull:false},operator:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[8],allowNull:false},envelope:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[8],allowNull:false},sayduration:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[8],allowNull:false},saydurationm:{type:_0x859c[9],defaultValue:1,allowNull:false},sendvoicemail:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[8],allowNull:false},"\x64\x65\x6C\x65\x74\x65":{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[8],allowNull:false},nextaftercmd:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[7],allowNull:false},forcename:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[8],allowNull:false},forcegreetings:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[8],allowNull:false},hidefromdir:{type:_0x2e8bx2.ENUM(_0x859c[7],_0x859c[8]),defaultValue:_0x859c[7],allowNull:false},stamp:{type:_0x859c[10]},emailsubject:{type:_0x2e8bx2[_0x859c[2]]},emailbody:{type:_0x2e8bx2[_0x859c[2]]},name:{type:_0x2e8bx2[_0x859c[2]]},maxsecs:{type:_0x2e8bx2.INTEGER(255),defaultValue:180,allowNull:false},maxmsg:{type:_0x2e8bx2.INTEGER(255),defaultValue:100,allowNull:false}},{tableName:_0x859c[11],indexes:[{name:_0x859c[12],fields:[_0x859c[13],_0x859c[14]]}]});return _0x2e8bx3;};
\ No newline at end of file
+var _0x4f55=["\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[_0x4f55[0]]=function(_0xb460x1,_0xb460x2){var _0xb460x3=_0xb460x1[_0x4f55[15]](_0x4f55[1],{uniqueid:{type:_0xb460x2.INTEGER(4),primaryKey:true,allowNull:false,autoIncrement:true},customer_id:{type:_0xb460x2[_0x4f55[2]]},context:{type:_0xb460x2[_0x4f55[2]],defaultValue:_0x4f55[3],unique:_0x4f55[4]},mailbox:{type:_0xb460x2[_0x4f55[2]],defaultValue:_0x4f55[5],allowNull:false,unique:_0x4f55[4]},password:{type:_0xb460x2[_0x4f55[2]]},fullname:{type:_0xb460x2[_0x4f55[2]]},email:{type:_0xb460x2[_0x4f55[2]]},pager:{type:_0xb460x2[_0x4f55[2]]},tz:{type:_0xb460x2[_0x4f55[2]],defaultValue:_0x4f55[6]},attach:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[7],allowNull:false},saycid:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[7],allowNull:false},dialout:{type:_0xb460x2[_0x4f55[2]]},callback:{type:_0xb460x2[_0x4f55[2]]},review:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[8],allowNull:false},operator:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[8],allowNull:false},envelope:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[8],allowNull:false},sayduration:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[8],allowNull:false},saydurationm:{type:_0x4f55[9],defaultValue:1,allowNull:false},sendvoicemail:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[8],allowNull:false},"\x64\x65\x6C\x65\x74\x65":{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[8],allowNull:false},nextaftercmd:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[7],allowNull:false},forcename:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[8],allowNull:false},forcegreetings:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[8],allowNull:false},hidefromdir:{type:_0xb460x2.ENUM(_0x4f55[7],_0x4f55[8]),defaultValue:_0x4f55[7],allowNull:false},stamp:{type:_0x4f55[10]},emailsubject:{type:_0xb460x2[_0x4f55[2]]},emailbody:{type:_0xb460x2[_0x4f55[2]]},name:{type:_0xb460x2[_0x4f55[2]]},maxsecs:{type:_0xb460x2.INTEGER(255),defaultValue:180,allowNull:false},maxmsg:{type:_0xb460x2.INTEGER(255),defaultValue:100,allowNull:false}},{tableName:_0x4f55[11],indexes:[{name:_0x4f55[12],fields:[_0x4f55[13],_0x4f55[14]]}]});return _0xb460x3;};
\ No newline at end of file
-var _0x8231=["\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[_0x8231[0]]=function(_0x2410x1,_0x2410x2){var _0x2410x3=_0x2410x1[_0x8231[8]](_0x8231[1],{msgnum:{type:_0x2410x2.INTEGER(11),defaultValue:0,allowNull:false},dir:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},context:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},macrocontext:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},callerid:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},origtime:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},duration:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},mailboxuser:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},mailboxcontext:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},recording:{type:_0x2410x2.BLOB(_0x8231[4]),defaultValue:null},flag:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},msg_id:{type:_0x2410x2[_0x8231[2]],defaultValue:_0x8231[3]},stamp:{type:_0x8231[5],allowNull:false}},{tableName:_0x8231[6],indexes:[{name:_0x8231[7],fields:[_0x8231[7]]}]});return _0x2410x3;};
\ No newline at end of file
+var _0xa09b=["\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[_0xa09b[0]]=function(_0x8cbax1,_0x8cbax2){var _0x8cbax3=_0x8cbax1[_0xa09b[8]](_0xa09b[1],{msgnum:{type:_0x8cbax2.INTEGER(11),defaultValue:0,allowNull:false},dir:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},context:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},macrocontext:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},callerid:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},origtime:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},duration:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},mailboxuser:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},mailboxcontext:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},recording:{type:_0x8cbax2.BLOB(_0xa09b[4]),defaultValue:null},flag:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},msg_id:{type:_0x8cbax2[_0xa09b[2]],defaultValue:_0xa09b[3]},stamp:{type:_0xa09b[5],allowNull:false}},{tableName:_0xa09b[6],indexes:[{name:_0xa09b[7],fields:[_0xa09b[7]]}]});return _0x8cbax3;};
\ No newline at end of file
-var _0xc4c7=["\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"];_0xc4c7[0];module[_0xc4c7[1]]=function(_0x7d24x1,_0x7d24x2){var _0x7d24x3=_0x7d24x1[_0xc4c7[9]](_0xc4c7[2],{name:_0x7d24x2[_0xc4c7[3]],description:_0x7d24x2[_0xc4c7[3]],username:{type:_0x7d24x2[_0xc4c7[3]],unique:true},password:_0x7d24x2[_0xc4c7[3]],token:_0x7d24x2[_0xc4c7[3]],remoteUri:{type:_0x7d24x2[_0xc4c7[3]],unique:true},authType:{type:_0x7d24x2.ENUM(_0xc4c7[4],_0xc4c7[5]),defaultValue:_0xc4c7[4]}},{tableName:_0xc4c7[6],associate:function(_0x7d24x4){_0x7d24x3[_0xc4c7[8]](_0x7d24x4.ZendeskConfiguration,{foreignKey:_0xc4c7[7]})}});return _0x7d24x3;};
\ No newline at end of file
+var _0x461f=["\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"];_0x461f[0];module[_0x461f[1]]=function(_0x4840x1,_0x4840x2){var _0x4840x3=_0x4840x1[_0x461f[9]](_0x461f[2],{name:_0x4840x2[_0x461f[3]],description:_0x4840x2[_0x461f[3]],username:{type:_0x4840x2[_0x461f[3]],unique:true},password:_0x4840x2[_0x461f[3]],token:_0x4840x2[_0x461f[3]],remoteUri:{type:_0x4840x2[_0x461f[3]],unique:true},authType:{type:_0x4840x2.ENUM(_0x461f[4],_0x461f[5]),defaultValue:_0x461f[4]}},{tableName:_0x461f[6],associate:function(_0x4840x4){_0x4840x3[_0x461f[8]](_0x4840x4.ZendeskConfiguration,{foreignKey:_0x461f[7]})}});return _0x4840x3;};
\ No newline at end of file
-var _0x769b=["\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"];_0x769b[0];module[_0x769b[1]]=function(_0x2fc1x1,_0x2fc1x2){var _0x2fc1x3=_0x2fc1x1[_0x769b[14]](_0x769b[2],{name:_0x2fc1x2[_0x769b[3]],description:_0x2fc1x2[_0x769b[3]]},{tableName:_0x769b[4],associate:function(_0x2fc1x4){_0x2fc1x3[_0x769b[6]](_0x2fc1x4.ZendeskAccount,{foreignKey:_0x769b[5]});_0x2fc1x3[_0x769b[9]](_0x2fc1x4.ZendeskField,{as:_0x769b[7],foreignKey:_0x769b[8]});_0x2fc1x3[_0x769b[9]](_0x2fc1x4.ZendeskField,{as:_0x769b[10],foreignKey:_0x769b[11]});_0x2fc1x3[_0x769b[9]](_0x2fc1x4.ZendeskField,{as:_0x769b[12],foreignKey:_0x769b[13]});}});return _0x2fc1x3;};
\ No newline at end of file
+var _0xf2f9=["\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"];_0xf2f9[0];module[_0xf2f9[1]]=function(_0x29e6x1,_0x29e6x2){var _0x29e6x3=_0x29e6x1[_0xf2f9[14]](_0xf2f9[2],{name:_0x29e6x2[_0xf2f9[3]],description:_0x29e6x2[_0xf2f9[3]]},{tableName:_0xf2f9[4],associate:function(_0x29e6x4){_0x29e6x3[_0xf2f9[6]](_0x29e6x4.ZendeskAccount,{foreignKey:_0xf2f9[5]});_0x29e6x3[_0xf2f9[9]](_0x29e6x4.ZendeskField,{as:_0xf2f9[7],foreignKey:_0xf2f9[8]});_0x29e6x3[_0xf2f9[9]](_0x29e6x4.ZendeskField,{as:_0xf2f9[10],foreignKey:_0xf2f9[11]});_0x29e6x3[_0xf2f9[9]](_0x29e6x4.ZendeskField,{as:_0xf2f9[12],foreignKey:_0xf2f9[13]});}});return _0x29e6x3;};
\ No newline at end of file
-var _0xbcba=["\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"];_0xbcba[0];module[_0xbcba[1]]=function(_0x454fx1,_0x454fx2){var _0x454fx3=_0x454fx1[_0xbcba[10]](_0xbcba[2],{type:{type:_0x454fx2.ENUM(_0xbcba[3],_0xbcba[4],_0xbcba[5]),defaultValue:_0xbcba[3]},content:_0x454fx2[_0xbcba[6]],key:_0x454fx2[_0xbcba[6]],keyType:{type:_0x454fx2.ENUM(_0xbcba[3],_0xbcba[4])},keyContent:_0x454fx2[_0xbcba[6]],idField:_0x454fx2[_0xbcba[7]]},{tableName:_0xbcba[8],associate:function(_0x454fx4){_0x454fx3[_0xbcba[9]](_0x454fx4.Variable)}});return _0x454fx3;};
\ No newline at end of file
+var _0x4d7b=["\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"];_0x4d7b[0];module[_0x4d7b[1]]=function(_0xf60fx1,_0xf60fx2){var _0xf60fx3=_0xf60fx1[_0x4d7b[10]](_0x4d7b[2],{type:{type:_0xf60fx2.ENUM(_0x4d7b[3],_0x4d7b[4],_0x4d7b[5]),defaultValue:_0x4d7b[3]},content:_0xf60fx2[_0x4d7b[6]],key:_0xf60fx2[_0x4d7b[6]],keyType:{type:_0xf60fx2.ENUM(_0x4d7b[3],_0x4d7b[4])},keyContent:_0xf60fx2[_0x4d7b[6]],idField:_0xf60fx2[_0x4d7b[7]]},{tableName:_0x4d7b[8],associate:function(_0xf60fx4){_0xf60fx3[_0x4d7b[9]](_0xf60fx4.Variable)}});return _0xf60fx3;};
\ No newline at end of file
-var _0xc7ec=["\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"];_0xc7ec[0];var config=require(_0xc7ec[1]);var errors=require(_0xc7ec[2]);var path=require(_0xc7ec[3]);var moment=require(_0xc7ec[4]);module[_0xc7ec[5]]=function(_0x2fc1x5){var _0x2fc1x6=_0x2fc1x5[_0xc7ec[7]](_0xc7ec[6]);_0x2fc1x5[_0xc7ec[10]](_0xc7ec[8],require(_0xc7ec[9]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[11],require(_0xc7ec[12]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[13],require(_0xc7ec[14]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[15],require(_0xc7ec[16]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[17],require(_0xc7ec[18]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[19],require(_0xc7ec[20]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[21],require(_0xc7ec[22]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[23],require(_0xc7ec[24]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[25],require(_0xc7ec[26]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[27],require(_0xc7ec[28]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[29],require(_0xc7ec[30]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[31],require(_0xc7ec[32]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[33],require(_0xc7ec[34]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[35],require(_0xc7ec[36]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[37],require(_0xc7ec[38]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[39],require(_0xc7ec[40]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[41],require(_0xc7ec[42]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[43],require(_0xc7ec[44]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[45],require(_0xc7ec[46]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[47],require(_0xc7ec[48]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[49],require(_0xc7ec[50]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[51],require(_0xc7ec[52]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[53],require(_0xc7ec[54]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[55],require(_0xc7ec[56]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[57],require(_0xc7ec[58]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[59],require(_0xc7ec[60]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[61],require(_0xc7ec[62]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[63],require(_0xc7ec[64]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[65],require(_0xc7ec[66]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[67],require(_0xc7ec[68]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[69],require(_0xc7ec[70]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[71],require(_0xc7ec[72]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[73],require(_0xc7ec[74]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[75],require(_0xc7ec[76]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[77],require(_0xc7ec[78]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[79],require(_0xc7ec[80]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[81],require(_0xc7ec[82]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[83],require(_0xc7ec[84]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[85],require(_0xc7ec[86]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[87],require(_0xc7ec[88]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[89],require(_0xc7ec[90]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[91],require(_0xc7ec[92]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[93],require(_0xc7ec[94]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[95],require(_0xc7ec[96]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[97],require(_0xc7ec[98]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[99],require(_0xc7ec[100]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[101],require(_0xc7ec[102]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[103],require(_0xc7ec[104]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[105],require(_0xc7ec[106]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[107],require(_0xc7ec[108]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[109],require(_0xc7ec[110]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[111],require(_0xc7ec[110]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[112],require(_0xc7ec[113]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[114],require(_0xc7ec[115]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[116],require(_0xc7ec[117]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[118],require(_0xc7ec[119]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[120],require(_0xc7ec[121]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[122],require(_0xc7ec[123]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[124],require(_0xc7ec[125]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[126],require(_0xc7ec[127]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[128],require(_0xc7ec[129]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[130],require(_0xc7ec[131]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[132],require(_0xc7ec[133]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[134],require(_0xc7ec[135]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[136],require(_0xc7ec[137]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[138],require(_0xc7ec[139]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[140],require(_0xc7ec[141]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[142],require(_0xc7ec[143]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[144],require(_0xc7ec[145]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[146],require(_0xc7ec[147]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[148],require(_0xc7ec[149]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[150],require(_0xc7ec[151]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[152],require(_0xc7ec[153]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[154],require(_0xc7ec[155]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[156],require(_0xc7ec[157]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[138],require(_0xc7ec[139]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[158],require(_0xc7ec[159]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[160],require(_0xc7ec[161]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[162],require(_0xc7ec[163]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[164],require(_0xc7ec[165]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[166],require(_0xc7ec[167]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[168],require(_0xc7ec[169]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[170],require(_0xc7ec[171]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[172],require(_0xc7ec[173]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[174],require(_0xc7ec[175]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[176],require(_0xc7ec[177]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[178],require(_0xc7ec[179]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[180],require(_0xc7ec[181]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[182],require(_0xc7ec[183]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[184],require(_0xc7ec[185]));_0x2fc1x5[_0xc7ec[10]](_0xc7ec[186],require(_0xc7ec[187]));_0x2fc1x5[_0xc7ec[189]](_0xc7ec[188])[_0xc7ec[7]](errors[404]);_0x2fc1x5[_0xc7ec[200]](_0xc7ec[190],function(_0x2fc1x7,_0x2fc1x8,_0x2fc1x9){var _0x2fc1xa={};if(_0xc7ec[191]===_0x2fc1x6){_0x2fc1xa[_0xc7ec[192]]=path[_0xc7ec[194]](config[_0xc7ec[192]],_0xc7ec[193])};if(_0xc7ec[195]===_0x2fc1x6||_0xc7ec[196]===_0x2fc1x6){_0x2fc1xa[_0xc7ec[192]]=path[_0xc7ec[194]](config[_0xc7ec[192]],_0xc7ec[197])};_0x2fc1x8[_0xc7ec[199]](_0xc7ec[198],_0x2fc1xa);});};
\ No newline at end of file
+var _0xc747=["\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"];_0xc747[0];var config=require(_0xc747[1]);var errors=require(_0xc747[2]);var path=require(_0xc747[3]);var moment=require(_0xc747[4]);module[_0xc747[5]]=function(_0xd7fex5){var _0xd7fex6=_0xd7fex5[_0xc747[7]](_0xc747[6]);_0xd7fex5[_0xc747[10]](_0xc747[8],require(_0xc747[9]));_0xd7fex5[_0xc747[10]](_0xc747[11],require(_0xc747[12]));_0xd7fex5[_0xc747[10]](_0xc747[13],require(_0xc747[14]));_0xd7fex5[_0xc747[10]](_0xc747[15],require(_0xc747[16]));_0xd7fex5[_0xc747[10]](_0xc747[17],require(_0xc747[18]));_0xd7fex5[_0xc747[10]](_0xc747[19],require(_0xc747[20]));_0xd7fex5[_0xc747[10]](_0xc747[21],require(_0xc747[22]));_0xd7fex5[_0xc747[10]](_0xc747[23],require(_0xc747[24]));_0xd7fex5[_0xc747[10]](_0xc747[25],require(_0xc747[26]));_0xd7fex5[_0xc747[10]](_0xc747[27],require(_0xc747[28]));_0xd7fex5[_0xc747[10]](_0xc747[29],require(_0xc747[30]));_0xd7fex5[_0xc747[10]](_0xc747[31],require(_0xc747[32]));_0xd7fex5[_0xc747[10]](_0xc747[33],require(_0xc747[34]));_0xd7fex5[_0xc747[10]](_0xc747[35],require(_0xc747[36]));_0xd7fex5[_0xc747[10]](_0xc747[37],require(_0xc747[38]));_0xd7fex5[_0xc747[10]](_0xc747[39],require(_0xc747[40]));_0xd7fex5[_0xc747[10]](_0xc747[41],require(_0xc747[42]));_0xd7fex5[_0xc747[10]](_0xc747[43],require(_0xc747[44]));_0xd7fex5[_0xc747[10]](_0xc747[45],require(_0xc747[46]));_0xd7fex5[_0xc747[10]](_0xc747[47],require(_0xc747[48]));_0xd7fex5[_0xc747[10]](_0xc747[49],require(_0xc747[50]));_0xd7fex5[_0xc747[10]](_0xc747[51],require(_0xc747[52]));_0xd7fex5[_0xc747[10]](_0xc747[53],require(_0xc747[54]));_0xd7fex5[_0xc747[10]](_0xc747[55],require(_0xc747[56]));_0xd7fex5[_0xc747[10]](_0xc747[57],require(_0xc747[58]));_0xd7fex5[_0xc747[10]](_0xc747[59],require(_0xc747[60]));_0xd7fex5[_0xc747[10]](_0xc747[61],require(_0xc747[62]));_0xd7fex5[_0xc747[10]](_0xc747[63],require(_0xc747[64]));_0xd7fex5[_0xc747[10]](_0xc747[65],require(_0xc747[66]));_0xd7fex5[_0xc747[10]](_0xc747[67],require(_0xc747[68]));_0xd7fex5[_0xc747[10]](_0xc747[69],require(_0xc747[70]));_0xd7fex5[_0xc747[10]](_0xc747[71],require(_0xc747[72]));_0xd7fex5[_0xc747[10]](_0xc747[73],require(_0xc747[74]));_0xd7fex5[_0xc747[10]](_0xc747[75],require(_0xc747[76]));_0xd7fex5[_0xc747[10]](_0xc747[77],require(_0xc747[78]));_0xd7fex5[_0xc747[10]](_0xc747[79],require(_0xc747[80]));_0xd7fex5[_0xc747[10]](_0xc747[81],require(_0xc747[82]));_0xd7fex5[_0xc747[10]](_0xc747[83],require(_0xc747[84]));_0xd7fex5[_0xc747[10]](_0xc747[85],require(_0xc747[86]));_0xd7fex5[_0xc747[10]](_0xc747[87],require(_0xc747[88]));_0xd7fex5[_0xc747[10]](_0xc747[89],require(_0xc747[90]));_0xd7fex5[_0xc747[10]](_0xc747[91],require(_0xc747[92]));_0xd7fex5[_0xc747[10]](_0xc747[93],require(_0xc747[94]));_0xd7fex5[_0xc747[10]](_0xc747[95],require(_0xc747[96]));_0xd7fex5[_0xc747[10]](_0xc747[97],require(_0xc747[98]));_0xd7fex5[_0xc747[10]](_0xc747[99],require(_0xc747[100]));_0xd7fex5[_0xc747[10]](_0xc747[101],require(_0xc747[102]));_0xd7fex5[_0xc747[10]](_0xc747[103],require(_0xc747[104]));_0xd7fex5[_0xc747[10]](_0xc747[105],require(_0xc747[106]));_0xd7fex5[_0xc747[10]](_0xc747[107],require(_0xc747[108]));_0xd7fex5[_0xc747[10]](_0xc747[109],require(_0xc747[110]));_0xd7fex5[_0xc747[10]](_0xc747[111],require(_0xc747[110]));_0xd7fex5[_0xc747[10]](_0xc747[112],require(_0xc747[113]));_0xd7fex5[_0xc747[10]](_0xc747[114],require(_0xc747[115]));_0xd7fex5[_0xc747[10]](_0xc747[116],require(_0xc747[117]));_0xd7fex5[_0xc747[10]](_0xc747[118],require(_0xc747[119]));_0xd7fex5[_0xc747[10]](_0xc747[120],require(_0xc747[121]));_0xd7fex5[_0xc747[10]](_0xc747[122],require(_0xc747[123]));_0xd7fex5[_0xc747[10]](_0xc747[124],require(_0xc747[125]));_0xd7fex5[_0xc747[10]](_0xc747[126],require(_0xc747[127]));_0xd7fex5[_0xc747[10]](_0xc747[128],require(_0xc747[129]));_0xd7fex5[_0xc747[10]](_0xc747[130],require(_0xc747[131]));_0xd7fex5[_0xc747[10]](_0xc747[132],require(_0xc747[133]));_0xd7fex5[_0xc747[10]](_0xc747[134],require(_0xc747[135]));_0xd7fex5[_0xc747[10]](_0xc747[136],require(_0xc747[137]));_0xd7fex5[_0xc747[10]](_0xc747[138],require(_0xc747[139]));_0xd7fex5[_0xc747[10]](_0xc747[140],require(_0xc747[141]));_0xd7fex5[_0xc747[10]](_0xc747[142],require(_0xc747[143]));_0xd7fex5[_0xc747[10]](_0xc747[144],require(_0xc747[145]));_0xd7fex5[_0xc747[10]](_0xc747[146],require(_0xc747[147]));_0xd7fex5[_0xc747[10]](_0xc747[148],require(_0xc747[149]));_0xd7fex5[_0xc747[10]](_0xc747[150],require(_0xc747[151]));_0xd7fex5[_0xc747[10]](_0xc747[152],require(_0xc747[153]));_0xd7fex5[_0xc747[10]](_0xc747[154],require(_0xc747[155]));_0xd7fex5[_0xc747[10]](_0xc747[156],require(_0xc747[157]));_0xd7fex5[_0xc747[10]](_0xc747[138],require(_0xc747[139]));_0xd7fex5[_0xc747[10]](_0xc747[158],require(_0xc747[159]));_0xd7fex5[_0xc747[10]](_0xc747[160],require(_0xc747[161]));_0xd7fex5[_0xc747[10]](_0xc747[162],require(_0xc747[163]));_0xd7fex5[_0xc747[10]](_0xc747[164],require(_0xc747[165]));_0xd7fex5[_0xc747[10]](_0xc747[166],require(_0xc747[167]));_0xd7fex5[_0xc747[10]](_0xc747[168],require(_0xc747[169]));_0xd7fex5[_0xc747[10]](_0xc747[170],require(_0xc747[171]));_0xd7fex5[_0xc747[10]](_0xc747[172],require(_0xc747[173]));_0xd7fex5[_0xc747[10]](_0xc747[174],require(_0xc747[175]));_0xd7fex5[_0xc747[10]](_0xc747[176],require(_0xc747[177]));_0xd7fex5[_0xc747[10]](_0xc747[178],require(_0xc747[179]));_0xd7fex5[_0xc747[10]](_0xc747[180],require(_0xc747[181]));_0xd7fex5[_0xc747[10]](_0xc747[182],require(_0xc747[183]));_0xd7fex5[_0xc747[10]](_0xc747[184],require(_0xc747[185]));_0xd7fex5[_0xc747[10]](_0xc747[186],require(_0xc747[187]));_0xd7fex5[_0xc747[189]](_0xc747[188])[_0xc747[7]](errors[404]);_0xd7fex5[_0xc747[200]](_0xc747[190],function(_0xd7fex7,_0xd7fex8,_0xd7fex9){var _0xd7fexa={};if(_0xc747[191]===_0xd7fex6){_0xd7fexa[_0xc747[192]]=path[_0xc747[194]](config[_0xc747[192]],_0xc747[193])};if(_0xc747[195]===_0xd7fex6||_0xc747[196]===_0xd7fex6){_0xd7fexa[_0xc747[192]]=path[_0xc747[194]](config[_0xc747[192]],_0xc747[197])};_0xd7fex8[_0xc747[199]](_0xc747[198],_0xd7fexa);});};
\ No newline at end of file