Built motion from commit 76eb00b9e.|1.0.24
[motion.git] / public / app / 7cc026e6.app.js
1 "use strict";angular.module("xCallyShuttleApp",["adf","adf.structures.base","adf.widget.clock","adf.widget.iframe","adf.widget.counter","adf.widget.pie-chart","angular-md5","angular.filter","angularFileUpload","ngLetterAvatar","vAccordion","btford.socket-io","chart.js","checklist-model","colorpicker.module","frapontillo.bootstrap-switch","LocalStorageModule","mgo-angular-wizard","ng-slide-down","ngAnimate","ngBootstrap","ngCookies","ngCsv","ngFileSaver","ngJsTree","ngMap","ngPapaParse","ngResource","ngSanitize","notification","oc.lazyLoad","pascalprecht.translate","remoteValidation","smart-table","sprintf","timer","toastr","permission","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.bootstrap.buttons","ui.bootstrap.typeahead","ui.grid","ui.grid.autoResize","ui.grid.draggable-rows","ui.grid.exporter","ui.grid.grouping","ui.grid.moveColumns","ui.grid.pagination","ui.grid.treeView","ui.grid.selection","ui.grid.exporter","ui.grid.resizeColumns","ui.router","ui.navbar","ui.select","ui.sortable","xeditable","ngAudio","truncate","ngScrollbars","ngEmoticons","angularSpinner","builder","builder.components","validator","angular-clipboard","ng-code-mirror","angularMoment","jsonFormatter","ui.bootstrap-slider","ui.bootstrap.datepicker","prettyBytes","bootstrapLightbox","rzModule","ckeditor","ngTagsInput","ngJoyRide","adf.widget.linklist"]).constant("CKEDITOR_BASEPATH","assets/plugins/ckeditor/").config(["$stateProvider","$urlRouterProvider","$locationProvider","$httpProvider","$translateProvider","localStorageServiceProvider","dashboardProvider","ScrollBarsProvider","tagsInputConfigProvider",function(t,e,n,a,s,i,l,o,r){r.setActiveInterpolation("tagsInput",{placeholder:!0}),e.otherwise(function(t){t.get("$state").go("landing")}),s.useStaticFilesLoader({prefix:"assets/languages/locale-",suffix:".json"}),s.preferredLanguage("en_EN"),s.fallbackLanguage("en_EN"),s.useLocalStorage(),s.useSanitizeValueStrategy(null),n.html5Mode(!0),a.interceptors.push("authInterceptor"),l.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"}]}]}),i.setPrefix("motion"),o.defaults={scrollButtons:{scrollAmount:"auto",enable:!0},axis:"y"}}]).factory("authInterceptor",["$rootScope","$q","$cookieStore","$location",function(t,e,n,a){return{request:function(t){return t.headers=t.headers||{},n.get("token")?t.headers.Authorization="Bearer "+n.get("token"):a.path().match(/\/reset\/.[0-9]*/)||a.path("/login"),t}}}]).run(["$rootScope","$location","$state","$stateParams","$window","$q","Auth","RoleStore","editableThemes","editableOptions","License","User","PermissionStore","localStorageService","xAlert","$http",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h){t.$state=n,t.$stateParams=a,r.bs3.inputClass="input-sm",r.bs3.buttonsClass="btn-xs",c.theme="bs3",t.$on("$stateChangeStart",function(t,n){l.isLoggedInAsync(function(t){!n.authenticate||t||e.path().match(/\/reset\/.[0-9]*/)||e.path("/login")})}),t.updateTableConfig=function(t,e){var n=_.find(t,{name:"All"});n&&(n.value=e)},t.settings={patternName:"[A-Za-z0-9._\\+*!\\-\\[\\]]+",simplePatternName:"[A-Za-z0-9._]+",patternPassword:"^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[~!@#$%^&\\-_=+\\[\\{\\]\\}.])[0-9a-zA-Z~!@#$%^&\\-_=+\\[\\{\\]\\}.]{8,}$",patternPasswordLight:"^.{6,}$",patternGateway:"^(?:yes|no|[0-9]+)$",patternFaxdetect:"^(?:yes|no|t38|cng|[0-9]+)$",layout:{pageSidebarClosed:m.get("sidebarClosed")||!1,pageQuickSidebarOpened:!1,pageBodySolid:!1,pageAutoScrollOnLoad:1e3}},d.get().$promise.then(function(e){t.license=e.license,t.settings.soundPath=e.soundPath||"/var/opt/motion/server/files/sounds/converted",t.settings.footerWhiteLabel=e.footerWhiteLabel,t.settings.defaultFooterWhiteLabel=e.defaultFooterWhiteLabel,t.settings.logoutOnWindowClose=e.logoutOnWindowClose,p.definePermission("hasCm",function(){return t.license.cm}),p.definePermission("hasChat",function(){return t.license.chat}),p.definePermission("hasMail",function(){return t.license.mail}),p.definePermission("hasFax",function(){return t.license.fax}),p.definePermission("hasSms",function(){return t.license.messaging}),p.definePermission("hasDialer",function(){return t.license.dialer}),p.definePermission("hasJscripty",function(){return t.license.jscripty}),p.definePermission("hasUpdate",function(){return t.license.update}),p.definePermission("hasCustom",function(){return t.license.custom}),p.definePermission("hasOpenChannel",function(){return t.license.openchannel}),p.definePermission("hasPreferred",function(){return t.license.preferred})}).catch(function(t){g.error(t)}),p.definePermission("agent",function(){return l.isAgent()}),p.definePermission("admin",function(){return l.isAdmin()}),p.definePermission("user",function(t,e){var n=i.defer(),a=l.getCurrentUser().$promise;return a?a.then(function(t){_.includes(_.map(t.Modules,"id"),e.toState.data.permissions.id)&&"user"===t.role?n.resolve():n.reject()}).catch(function(){n.reject()}):n.resolve(),n.promise})}]),angular.module("xCallyShuttleApp").controller("AdminResetCtrl",["$scope","Auth","User","xAlert","$translate","$location","Setting","$rootScope",function(t,e,n,a,s,i,l,o){t.getInfo=function(){return l.get({controller:"info"}).$promise.then(function(e){return t.info=e,l.get({id:1}).$promise}).then(function(e){t.setting=e,!e.firstLogin&&i.path("/landing")}).catch(function(t){console.error(t)})},o.bodyLayout="login",t.updatePassword=function(){var o={newPassword:t.user.password,id:e.getCurrentUser().id};return n.changePassword(o).$promise.then(function(){return l.update({id:1,firstLogin:!1}).$promise}).then(function(){a.show(s.instant("MESSAGE_WELL_DONE"),"success"),i.path("/landing")}).catch(function(t){a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("adminreset",{url:"/adminreset",templateUrl:"app/adminreset/adminreset.html",controller:"AdminResetCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.analytics",{url:"/analytics",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:17}}})}]),angular.module("xCallyShuttleApp").factory("Extracted",["$resource",function(t){return t("/api/analytics/extracted/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.analytics.extracted",{url:"/extracted",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticExtractedListCtrl",["$scope","$translate","gridOptions","Extracted","uiGridConstants",function(t,e,n,a,s){t.moment=moment,t.Extracted=a,t.initView=function(){var e={exporterCsvFilename:"ExtractedReports.csv",columnDefs:[{name:"name"},{name:"createdAt",displayName:"APPLICATION_RUN_DATE",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:s.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:s.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"startDate",displayName:"APPLICATION_START_DATE",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:s.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:s.filter.LESS_THAN_OR_EQUAL,hasTime:!0}],sort:{direction:s.DESC,priority:0}},{name:"endDate",displayName:"APPLICATION_END_DATE",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:s.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:s.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"output"},{name:"type"},{name:"status"},{name:"action",width:140,buttons:[{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{directive:"<motion-file-download data-ng-show=\"row.entity.status == 'completed'\" resource=\"grid.appScope.Extracted\" params=\"{id:row.entity.id,controller:'download'}\" mimetype=\"'application/'+row.entity.output.toLowerCase()\" filename=\"row.entity.name+'_'+row.entity.startDate.toString()+'_'+row.entity.endDate.toString()+'.'+row.entity.output.toLowerCase()\"></motion-file-download>"}]}]};t.gridOptions=n.gridOptions(a,e,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.analytics.extracted.list",{url:"/list",templateUrl:"app/analytic/extracted/list/list.html",controller:"AnalyticExtractedListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("DefaultMetric",["$resource",function(t){return t("/api/analytics/metrics/default/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCreateModalCtrl",["$scope","$uibModalInstance","Metric","xAlert","$translate","report",function(t,e,n,a,s,i){t.forms={dashboard:void 0},t.item={},t.tables=i.tables,t.ok=function(){return n.save(t.item).$promise.then(function(){e.close()}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListCtrl",["$scope","xAlert","Modal","$uibModal","$log","gridOptions","Metric","DefaultMetric","$translate",function(t,e,n,a,s,i,l,o,r){t.$translate=r,t.initView=function(){var e={exporterCsvFilename:"Metrics.csv",columnDefs:[{name:"name"},{name:"table",cellTemplate:"<div style=\"padding:5px\">{{'APPLICATION_'+row.entity.table.toUpperCase() | translate}}</div>"},{name:"description"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/analytics/metrics/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=i.gridOptions(l,e,t)},t.showMetric=function(t){a.open({animation:!0,templateUrl:"app/analytic/metric/list/view.modal.html",controller:"AnalyticMetricListViewModalCtrl",resolve:{metric:t}})},t.cloneMetric=function(n){return o.get({id:n,controller:"clone"}).$promise.then(function(){e.show(r.instant("MESSAGE_WELL_DONE"),"success"),t.gridOptions.getPage()}).catch(function(t){e.error(t)})},t.create=function(){a.open({animation:!0,templateUrl:"app/analytic/metric/list/create.modal.html",controller:"AnalyticMetricListCreateModalCtrl"}).result.then(function(){e.show(r.instant("MESSAGE_WELL_DONE")+"!","success"),t.gridOptions.getPage()},function(){s.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.analytics.metrics.list",{url:"/list",templateUrl:"app/analytic/metric/list/list.html",controller:"AnalyticMetricListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricListViewModalCtrl",["$scope","$uibModalInstance","metric","xAlert","$translate","report",function(t,e,n,a,s,i){t.item=n,t.tables=i.tables,t.close=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").factory("Metric",["$resource",function(t){return t("/api/analytics/metrics/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.analytics.metrics",{url:"/metrics",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("AnalyticMetricViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","Metric","report",function(t,e,n,a,s,i,l){t.tables=l.tables,t.getMetric=function(){return i.get({id:a.id}).$promise.then(function(e){t.metric=e}).catch(function(t){s.path("/analytics/metrics/list")})},t.updateMetric=function(){return i.update({id:a.id},t.metric).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){e.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.analytics.metrics.view",{url:"/view/:id",templateUrl:"app/analytic/metric/view/view.html",controller:"AnalyticMetricViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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").factory("CustomReport",["$resource",function(t){return t("/api/analytics/reports/custom/:precontroller/:id/:controller/:action",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("DefaultReport",["$resource",function(t){return t("/api/analytics/reports/default/:id/:controller/:action",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ReportListCopyModalCtrl",["$scope","$uibModalInstance","$log","customTreeData",function(t,e,n,a){t.customTreeData=a,t.forms={dashboard:void 0},t.customTreeConfig={multiple:!1,animation:!0,core:{error:function(t){n.error("treeCtrl: error from js tree - "+angular.toJson(t))},check_callback:!0}},t.ac=function(){return!0},t.initCustomScopeTree=function(){t.customTree=t.customTreeInstance.jstree(!0),t.customTree.deselect_all(),t.customTree.open_all()},t.ok=function(){t.customTree.get_selected(!0).length?e.close({parent:t.customTree.get_selected(!0).pop().id}):t.showAlert=!0},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ReportListCreateModalCtrl",["$scope","$uibModalInstance","path",function(t,e,n){t.path=n,t.forms={dashboard:void 0},t.item={},t.ok=function(){t.item.model=JSON.stringify({title:t.item.name}),e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ReportListExtractModalCtrl",["$scope","$uibModalInstance","$translate",function(t,e,n){t.daily=!1,t.dailySwitch={onText:n.instant("APPLICATION_TODAY"),offText:n.instant("APPLICATION_RANGE"),isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.dates={startDate:moment().subtract(1,"days").startOf("day"),endDate:moment().subtract(1,"days").endOf("day")},t.ranges={},t.ranges[n.instant("APPLICATION_YESTERDAY")]=[moment().subtract(1,"days").startOf("day"),moment().subtract(1,"days").endOf("day")],t.ranges[n.instant("APPLICATION_LAST_SEVEN_DAYS")]=[moment().subtract("days",7).startOf("day"),moment().subtract(1,"days").endOf("day")],t.ranges[n.instant("APPLICATION_LAST_THIRTY_DAYS")]=[moment().subtract("days",30),moment()],t.ranges[n.instant("APPLICATION_LAST_MONTH")]=[moment().subtract(1,"months").startOf("month"),moment().subtract(1,"months").endOf("month")],t.timepicker={timePickerIncrement:1,timePicker12Hour:!1},t.dailyTime={start:moment("00:00","HH:mm"),end:moment("23:59","HH:mm")},t.maxdate=moment().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm"),t.extract=function(n){var a={startDate:moment(t.dates.startDate).format("YYYY-MM-DD"),endDate:moment(t.dates.endDate).format("YYYY-MM-DD"),startTime:t.daily?moment(t.dailyTime.start).format("HH:mm"):moment(t.dates.startDate).format("HH:mm"),endTime:t.daily?moment(t.dailyTime.end).format("HH:mm"):moment(t.dates.endDate).format("HH:mm"),daily:t.daily,action:n};e.close(a)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("AnalyticReportListCtrl",["$scope","xAlert","$translate","$location","$log","Modal","$uibModal","FileSaver","Blob","gridOptions","CustomReport","DefaultReport","ReportTree","localStorageService",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m){function g(){var e=m.get("lastMotionReportNode")||!1,n=m.get("lastMotionReportTree")||!1;return!(!e||!n)&&(t[n+"Tree"].open_node({id:e}),t[n+"Tree"].select_node({id:e}),!0)}function h(e,n){var a={parent:n.id};t.selectedNode=e?t.defaultTree.get_path(n," / "):t.customTree.get_path(n," / "),t.gridOptions?t.gridOptions.getPage({parent:n.id},e?u:d):t.gridOptions=c.gridOptions(e?u:d,f,t,a)}var f={exporterCsvFilename:"reports.csv",columnDefs:[{name:"name"},{name:"description"},{name:"manage",width:120,buttons:[{class:"{{grid.appScope.defaultTreeActive ? 'display-none' : 'blue-hoki'}}",href:"/analytics/reports/view/{{row.entity.id}}/settings",title:n.instant("APPLICATION_SETTINGS"),name:"settings"},{class:"{{grid.appScope.defaultTreeActive ? 'display-none' : 'red-sunglo'}}",title:n.instant("APPLICATION_DELETE"),name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{class:"green",title:n.instant("APPLICATION_COPY"),name:"copy",onClick:"grid.appScope.copy(row.entity.id)"},{class:"purple",title:n.instant("APPLICATION_EXPORT"),name:"export",onClick:"grid.appScope.export(row.entity.id)"}]},{name:"actions",width:60,buttons:[{class:"yellow",name:"preview",title:n.instant("APPLICATION_PREVIEW"),onClick:"grid.appScope.preview(row.entity.id)"},{class:"green-turquoise",name:"run",title:n.instant("APPLICATION_RUN"),onClick:"grid.appScope.extract(row.entity.id)"}]}]};t.searchField="",t.ac=function(){return!0},t.initDefaultScopeTree=function(){t.defaultTree=t.defaultTreeInstance.jstree(!0),t.defaultTree.deselect_all(),t.defaultTree.close_all(),t.defaultTreeReady=!0,t.defaultTreeActive=!0,t.previousDefaultNode=""},t.initCustomScopeTree=function(){t.customTree=t.customTreeInstance.jstree(!0),t.customTree.deselect_all(),t.customTree.close_all(),t.customTreeReady=!0,t.previousCustomNode=""},t.$watchGroup(["defaultTreeReady","customTreeReady"],function(e,n,a){e[0]&&e[1]&&(g()||(t.defaultTree.open_node({id:1}),t.customTree.open_node({id:1}),t.defaultTree.select_node({id:"1"})))}),t.updateCustomTree=function(){var n={tree:angular.toJson(t.customTree.get_json("#",{flat:!0}))};return p.update({id:2},n).$promise.then(function(t){console.log("Custom Tree Updated")}).catch(function(t){e.error(t)})},t.configTrees=function(){t.defaultTreeConfig={multiple:!1,animation:!0,core:{error:function(t){s.error("treeCtrl: error from js tree - "+angular.toJson(t))},check_callback:!0,themes:{name:"default",url:"../../../assets/css/jstree-metronic/style.css"}},plugins:["search"]},t.customTreeConfig={multiple:!1,animation:!0,core:{error:function(t){s.error("treeCtrl: error from js tree - "+angular.toJson(t))},check_callback:function(t,e,n,a,s){return console.log(t),!0},themes:{name:"default",url:"../../../assets/css/jstree-metronic/style.css"}},plugins:["contextmenu","dnd","search"],contextmenu:{items:function(e,a){var s={create:{label:n.instant("APPLICATION_CREATE"),action:function(n){t.customTree.create_node(e),t.customTree.open_node(e)}},rename:{label:n.instant("APPLICATION_RENAME"),action:function(n){t.customTree.edit(e)}},remove:{label:n.instant("APPLICATION_REMOVE"),action:function(n){t.deleteNode(e)}}};return"#"===e.parent&&(delete s.rename,delete s.remove),a(s),s}}}},t.deleteNode=function(a){l.open({animation:!0,templateUrl:"app/analytic/report/list/deleteNode.modal.html",controller:["$scope","$uibModalInstance","node",function(t,e,n){t.node=n,t.ok=function(){e.close()},t.cancel=function(){e.dismiss("cancel")}}],resolve:{node:function(){return a.text}}}).result.then(function(){return d.delete({precontroller:"node",id:a.id}).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE"),"success"),t.customTree.delete_node(a),t.previousCustomNode==a.id&&t.customTree.select_node({id:a.parent})}).catch(function(t){e.error(t)})},function(){s.info("Modal dismissed at: "+new Date)})},t.searchTrees=function(){t.defaultTree.search(t.searchField),t.customTree.search(t.searchField)},t.selectDefaultNode=function(){if(t.customTreeReady){t.previousCustomNode="";var e=t.defaultTree.get_selected(!0),n=e.pop();if(t.defaultTree.deselect_node(e[0],!0),t.customTree.deselect_all(),t.defaultTree.select_node(n,!0),n.id===t.previousDefaultNode)return void console.log("def");t.previousDefaultNode=n.id,m.set("lastMotionReportNode",n.id),m.set("lastMotionReportTree","default"),t.defaultTreeActive=!0,h(!0,n)}},t.selectCustomNode=function(){if(t.defaultTreeReady){t.previousDefaultNode="";var e=t.customTree.get_selected(!0),n=e.pop();if(t.customTree.deselect_node(e[0],!0),t.defaultTree.deselect_all(),t.customTree.select_node(n,!0),n.id===t.previousCustomNode)return void console.log("cus");t.previousCustomNode=n.id,m.set("lastMotionReportNode",n.id),m.set("lastMotionReportTree","custom"),t.defaultTreeActive=!1,h(!1,n)}},t.getTrees=function(){return p.query().$promise.then(function(e){t.defaultTreeData=JSON.parse(e[0].tree),t.customTreeData=JSON.parse(e[1].tree),t.configTrees()}).catch(function(t){e.error(t)})},t.create=function(){l.open({animation:!0,templateUrl:"app/analytic/report/list/create.modal.html",controller:"ReportListCreateModalCtrl",resolve:{path:function(){return t.selectedNode}}}).result.then(function(n){return n.parent=t.previousCustomNode,d.save(n).$promise.then(function(t){a.path("/analytics/reports/view/"+t.id+"/settings")}).catch(function(t){e.error(t)})},function(){s.info("Modal dismissed at: "+new Date)})},t.copy=function(a){var i=t.defaultTreeActive?u:d;l.open({animation:!0,templateUrl:"app/analytic/report/list/copy.modal.html",controller:"ReportListCopyModalCtrl",resolve:{customTreeData:function(){return t.customTree.get_json("#",{flat:!0})}}}).result.then(function(s){return i.save({id:a,controller:"copy"},s).$promise.then(function(){t.gridOptions.getPage(),e.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){e.error(t)})},function(){s.info("Modal dismissed at: "+new Date)})},t.export=function(n){return(t.defaultTreeActive?u:d).get({id:n,controller:"export"}).$promise.then(function(t){var e=new r([angular.toJson(t)],{type:"application/json;charset=utf-8"});o.saveAs(e,t.name+".json")}).catch(function(t){e.error(t)})},t.import=function(a){var s=JSON.parse(a);s.parent=t.previousCustomNode;var i=!(!s.name||!s.parent),l=!0;if(_.forEach(s.Fields,function(t){t.field&&t.alias||(l=!1)}),i&&l)return d.save({controller:"import"},s).$promise.then(function(){t.gridOptions.getPage(),e.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){e.error(t)});e.show(n.instant("MESSAGE_INVALID_JSON"),"danger")},t.preview=function(e){l.open({animation:!0,templateUrl:"app/analytic/report/list/preview.modal.html",controller:"ReportListPreviewModalCtrl",size:"full",resolve:{report:function(){return{id:e,tree:t.defaultTreeActive?"default":"custom"}}}})},t.extract=function(a){l.open({animation:!0,templateUrl:"app/analytic/report/list/extract.modal.html",controller:"ReportListExtractModalCtrl",size:"md",resolve:{report:function(){return{id:a,tree:t.defaultTreeActive?"default":"custom"}}}}).result.then(function(s){return s.daily||delete s.daily,(t.defaultTreeActive?u:d).get(_.merge({id:a,controller:"extract"},s)).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){e.error(t)})},function(){s.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.analytics.reports.list",{url:"/list",templateUrl:"app/analytic/report/list/list.html",controller:"AnalyticReportListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ReportListPreviewModalCtrl",["$scope","$uibModalInstance","report","xAlert","$translate","$timeout","CustomReport","DefaultReport",function(t,e,n,a,s,i,l,o){t.daily=!1,t.dailySwitch={onText:s.instant("APPLICATION_TODAY"),offText:s.instant("APPLICATION_RANGE"),isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.dates={startDate:moment().subtract(1,"days").startOf("day"),endDate:moment().subtract(1,"days").endOf("day")},t.ranges={},t.ranges[s.instant("APPLICATION_YESTERDAY")]=[moment().subtract(1,"days").startOf("day"),moment().subtract(1,"days").endOf("day")],t.ranges[s.instant("APPLICATION_LAST_SEVEN_DAYS")]=[moment().subtract("days",7).startOf("day"),moment().subtract(1,"days").endOf("day")],t.ranges[s.instant("APPLICATION_LAST_THIRTY_DAYS")]=[moment().subtract("days",30),moment()],t.ranges[s.instant("APPLICATION_LAST_MONTH")]=[moment().subtract(1,"months").startOf("month"),moment().subtract(1,"months").endOf("month")],t.timepicker={timePickerIncrement:1,timePicker12Hour:!1},t.dailyTime={start:moment("00:00","HH:mm"),end:moment("23:59","HH:mm")},t.maxdate=moment().subtract(1,"days").endOf("day").format("YYYY-MM-DD HH:mm");var r={offset:0,limit:25,sort:null,where:{},order:{}};t.gridOptions={paginationPageSizes:[10,25,50],paginationPageSize:25,useExternalPagination:!0,enableSorting:!1,enableFiltering:!0,useExternalFiltering:!0,enableGrouping:!1,enableColumnMenus:!1,treeRowHeaderAlwaysVisible:!1,gridMenuShowHideColumns:!1,enableGridMenu:!1,onRegisterApi:function(e){t.gridApi=e,e.pagination.on.paginationChanged(t,function(e,n){r.offset=(e-1)*n,r.limit=n,t.getPage()}),e.core.on.filterChanged(t,function(){var e={};this.grid.columns.forEach(function(t){t.filters[0].term&&(e[t.field]=t.filters[0].term)}),r.where=e,t.getPage()})}},t.getPage=function(){var e={offset:r.offset,limit:r.limit,startDate:moment(t.dates.startDate).format("YYYY-MM-DD"),endDate:moment(t.dates.endDate).format("YYYY-MM-DD"),startTime:t.daily?moment(t.dailyTime.start).format("HH:mm"):moment(t.dates.startDate).format("HH:mm"),endTime:t.daily?moment(t.dailyTime.end).format("HH:mm"):moment(t.dates.endDate).format("HH:mm"),daily:t.daily};return _.forOwn(r.where,function(t,n){e[n]=t}),("custom"===n.tree?l:o).get(_.merge({id:n.id,controller:"preview"},e)).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.paginationPageSizes[3]=e.count,t.gridOptions.data=e.rows,t.showResult=!0}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss("cancel")},i(function(){t.getPage()})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.analytics.reports",{url:"/reports",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").factory("ReportAgent",["$resource",function(t){return t("/api/report/agents/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportIntegration",["$resource",function(t){return t("/api/report/integrations/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportMember",["$resource",function(t){return t("/api/report/members/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportTree",["$resource",function(t){return t("/api/analytics/reports/trees/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("AnalyticReportViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","ReportAgent","ReportCall","ReportMailSession","ReportSmsSession","ReportMember","ReportQueue","ReportIntegration","ReportChatSession","DefaultReport","CustomReport","Metric","report",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f){function A(n){_.find(t.tables,{value:n}).resource.get({controller:"describe"}).$promise.then(function(e){t.tableFields=_.map(e,function(t,e){if("$promise"!==e&&"$resolved"!==e)return{name:e,value:e}})}).catch(function(t){e.error(t)}).finally(function(){v(n)})}function v(n){return h.get({controller:"table",table:n}).$promise.then(function(e){_.forEach(e.rows,function(e){t.tableFields.push({name:"<strong>Metric.</strong>"+e.name,alias:e.name,value:e.metric,MetricId:e.id})})}).catch(function(t){e.error(t)})}function I(t){return String(t).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function b(t){if(!t)return"";for(var e="(",n=0;n<t.rules.length;n++)if(n>0&&(e+=" <strong>"+t.operator+"</strong> "),t.rules[n].group)e+=b(t.rules[n].group);else switch(e+=t.rules[n].field,t.rules[n].condition){case"IS NULL":case"IS NOT NULL":e+=" "+I(t.rules[n].condition);break;case"IS EMPTY":e+=" = ''";break;case"IS NOT EMPTY":e+=" != ''";break;default:e+=" "+I(t.rules[n].condition)+" "+t.rules[n].value}return e+")"}t.$translate=n,t.tempReport={},t.tables=f.tables;var E={group:{operator:"AND",rules:[]}};t.getReport=function(){return t.firstLoad=!0,g.get({id:a.id}).$promise.then(function(e){t.report=e,_.forEach(t.report.Fields,function(t){delete t.id}),t.report.conditions=t.report.conditions?JSON.parse(t.report.conditions):_.clone(E,!0),t.report.Fields.length&&t.getPreview()}).catch(function(t){console.error(t),s.path("/analytics/reports/list")})},t.randomName=function(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")},t.$watch("report.table",function(e,n){e&&(A(e),n&&(t.tempReport[n]={conditions:t.report.conditions,fields:t.report.Fields}),t.firstLoad?t.firstLoad=!1:t.tempReport[e]?(t.report.Fields=t.tempReport[e].fields,t.report.conditions=t.tempReport[e].conditions):(t.report.Fields=[],t.report.conditions=_.clone(E,!0)))},!0),t.setMetricId=function(e,n){t.report.Fields[n].MetricId=e.MetricId?e.MetricId:null,t.report.Fields[n].alias=e.MetricId?e.alias:e.name},t.groupByField=[{name:"APPLICATION_YES",value:!0},{name:"APPLICATION_NO",value:!1}],t.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"}],t.formatFunctions=[{name:"Sec To Time",value:"SEC_TO_TIME"},{name:"Date",value:"DATE"},{name:"Hour",value:"HOUR"},{name:"Round",value:"ROUND"},{name:"Unix TimeStamp",value:"UNIX_TIMESTAMP"}],t.addField=function(){t.report.Fields.push({groupBy:!1,custom:!1})},t.removeField=function(e){t.report.Fields.splice(e,1)},t.sortableOptions={"ui-floating":!0,cancel:".unsortable",handle:".report-field-handle",axis:"y"},t.toggleCustom=function(e){e.custom=!e.custom,e.custom||_.find(t.tableFields,{value:e.field})||(e.field=null)},t.updateReport=function(){if(t.report.Fields.length){var s=angular.copy(t.report);return console.log(s.conditions),s.conditions=angular.toJson(s.conditions),_.forEach(s.Fields,function(t){t.custom&&delete t.MetricId}),g.update({id:a.id},s).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE")+"!","success"),t.getPreview()}).catch(function(t){e.error(t)})}e.show(n.instant("MESSAGE_SELECT_A_FIELD"),"danger")},t.$watch("report.conditions",function(e){t.output=e?b(e.group):"()"},!0),t.getPreview=function(){return t.gridOptions=null,g.get({id:a.id,controller:"preview",limit:20}).$promise.then(function(e){t.gridOptions={enableFiltering:!0,treeRowHeaderAlwaysVisible:!1,enableGridMenu:!0,data:e.rows}}).catch(function(t){console.log(t),e.show(n.instant(t.message||"MESSAGE_QUERY_NOT_VALID"),"warning")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.analytics.reports.view",{url:"/view/:id",templateUrl:"app/analytic/report/view/view.html",controller:"AnalyticReportViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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").config(["$stateProvider",function(t){t.state("main.channels",{url:"/channels",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:6}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat",{url:"/chat",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").factory("ChatEnquiry",["$resource",function(t){return t("/api/chat/enquiries/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatReport",["$resource",function(t){return t("/api/report/chats/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatVisitor",["$resource",function(t){return t("/api/chat/visitors/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatMessage",["$resource",function(t){return t("/api/chat/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatRoom",["$resource",function(t){return t("/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"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").controller("ChatOfflineListCtrl",["$scope","ChatEnquiry","gridOptions","uiGridConstants",function(t,e,n,a){t.initView=function(){var s={exporterCsvFilename:"chat_offline_messages.csv",columnDefs:[{name:"username",cellClass:"text-center"},{name:"email",cellClass:"text-center"},{name:"ChatWebsite.name",displayName:"Website",cellClass:"text-center"},{name:"createdAt",displayName:"createdAt",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.createdAt"></span></div>',field:"createdAt",sort:{direction:a.DESC,priority:0}},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/chat/offline/view/{{row.entity.id}}",name:"detail"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,s,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.offline.list",{url:"/list",templateUrl:"app/channels/chat/offline/list/list.html",controller:"ChatOfflineListCtrl"})}]),angular.module("xCallyShuttleApp").directive("enquiryMessage",["$rootScope","$translate","MailMessage","List","xAlert",function(t,e,n,a,s){return{restrict:"E",scope:{message:"=",listId:"="},templateUrl:"app/channels/chat/offline/message/message.directive.html",link:function(n){n.openContact=function(i){if(n.listId)return a.save({listId:n.listId,controller:"contacts"},{email:i}).$promise.then(function(e){var n=_.find(t.$root.workspaces,{contactID:e.id});n?n.active=!0:t.$root.workspaces.push({active:!0,class:"icon-user",contactID:e.id,name:e.email,type:"contact"})}).catch(function(t){s.error(t)});s.show(e.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.offline",{url:"/offline",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:32}}})}]),angular.module("xCallyShuttleApp").controller("ChatOfflineViewCtrl",["$scope","$stateParams","$translate","$rootScope","ChatEnquiry","List","xAlert",function(t,e,n,a,s,i,l){t.initView=function(){return s.get({id:e.id}).$promise.then(function(e){t.enquiry=e}).catch(function(t){l.error(t)})},t.openContact=function(e){if(t.enquiry.ChatWebsite.ListId)return i.save({listId:t.enquiry.ChatWebsite.ListId,controller:"contacts"},{email:e}).$promise.then(function(t){var e=_.find(a.$root.workspaces,{contactID:t.id});e?e.active=!0:a.$root.workspaces.push({active:!0,class:"icon-user",contactID:t.id,name:t.email,type:"contact"})}).catch(function(t){l.error(t)});l.show(n.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.offline.view",{url:"/view/:id",templateUrl:"app/channels/chat/offline/view/view.html",controller:"ChatOfflineViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatOnlineListCtrl",["$scope","ChatRoom","gridOptions",function(t,e,n){t.initView=function(){var a={exporterCsvFilename:"chat_online_messages.csv",columnDefs:[{name:"ChatVisitor.fullname",displayName:"APPLICATION_FULLNAME",cellClass:"text-center"},{name:"ChatVisitor.email",displayName:"APPLICATION_EMAIL",cellClass:"text-center"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/channels/chat/online/view/{{row.entity.id}}/detail",name:"detail"}]}]};t.gridOptions=n.gridOptions(e,a,t,{id:"online"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.online.list",{url:"/list",templateUrl:"app/channels/chat/online/list/list.html",controller:"ChatOnlineListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.online",{url:"/online",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").controller("ChatOnlineViewCtrl",["$scope","$stateParams","ChatRoom",function(t,e,n){t.initView=function(){return t.config={autoHideScrollbar:!1,theme:"light",advanced:{updateOnContentResize:!0},setHeight:400,scrollInertia:0},n.get({id:e.id}).$promise.then(function(e){t.chatRoom=e}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.online.view",{url:"/view/:id",templateUrl:"app/channels/chat/online/view/view.html",controller:"ChatOnlineViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.chat.online.view.detail",{url:"/detail",templateUrl:"app/channels/chat/online/view/view.detail.html",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/news.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("PreviewCtrl",["$scope",function(t){t.message="Hello"}]),angular.module("xCallyShuttleApp").directive("preview",["$rootScope",function(t){return{templateUrl:"app/channels/chat/preview/preview.html",restrict:"EA",link:function(t,e,n){}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("preview",{url:"/preview",templateUrl:"app/channels/chat/preview/preview.html",controller:"PreviewCtrl",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").factory("ChatQueue",["$resource",function(t){return t("/api/chat/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ChatQueueListCtrl",["$scope","ChatQueue","gridOptions","Auth","$uibModal",function(t,e,n,a,s){t.initView=function(){t.Auth=a;var s={exporterCsvFilename:"chat_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"strategy"},{name:"timeout"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/channels/chat/queues/view/{{row.entity.id}}/settings",name:"settings"},{class:"green-meadow",href:"/channels/chat/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===a.getCurrentUser().role},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,s,t)},t.createItem=function(){s.open({animation:!0,templateUrl:"app/channels/chat/queue/list/list.create.modal.html",controller:"ChatQueueListCreateCtrl",size:"lg"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ChatQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","ChatQueue","Team","strategies",function(t,e,n,a,s,i,l){t.form={},t.strategies=l,t.item={penalty:0,agents:[]},t.getTeams=function(){return i.get({controller:"associations"}).$promise.then(function(e){t.teams=e.rows}).then(function(){ComponentsDropdowns.bindQueue(t.teams,[],function(){return{select:function(e){t.item.agents=_.union(t.item.agents,e)},deselect:function(e){t.item.agents=_.difference(t.item.agents,e)}}})}).catch(function(t){console.error(t)})},t.save=function(){return s.save(t.item).$promise.then(function(t){a.show(n.instant("MESSAGE_WELL_DONE"),"success"),e.close(t)}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.queues.list",{url:"/list",templateUrl:"app/channels/chat/queue/list/list.html",controller:"ChatQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.queues",{url:"/queues",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:30}}})}]),angular.module("xCallyShuttleApp").controller("ChatQueueViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","ChatQueue","Team","Auth","strategies",function(t,e,n,a,s,i,l,o,r){t.Auth=o,t.strategies=r;var c=function(){return{select:function(e){return i.save({id:t.queue.id,controller:"agents"},{agents:e,penalty:t.queue.penalty}).$promise.then(function(){t.getTeams()}).catch(function(t){console.log(t)})},deselect:function(e){return i.delete({id:t.queue.id,controller:"agents",agents:e}).$promise.then(function(){t.getTeams()}).catch(function(t){console.log(t)})}}};t.getQueue=function(){e.get("/api/chat/queues/"+s.id).success(function(e){e.penalty=0,t.queue=e}).error(function(t){console.error(t)})},t.updateChatQueue=function(){var i=angular.copy(t.queue);e.put("/api/chat/queues/"+s.id,i).success(function(){n.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(e){t.queue=i,e.errors.forEach(function(t){n.error(err)})})},t.getTeams=function(){return l.get({controller:"associations"}).$promise.then(function(e){return t.teams=e.rows,i.get({id:s.id,controller:"agents"}).$promise}).then(function(e){ComponentsDropdowns.bindChatQueue(t.teams,_.map(e.rows,function(t){return{id:t.id,penalty:t.UserHasChatQueue.penalty}}),c)}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.queues.view",{url:"/view/:id",templateUrl:"app/channels/chat/queue/view/view.html",controller:"ChatQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.chat.queues.view.settings",{url:"/settings",templateUrl:"app/channels/chat/queue/view/view.settings.html"}).state("main.channels.chat.queues.view.agents",{url:"/agents",templateUrl:"app/channels/chat/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.realtime",{url:"/realtime",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:33}}})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","ChatQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g){function h(){return d.spin("grid-spinner"),l.get(b).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.data=[],e.rows.forEach(function(t){A(t)})}).catch(function(t){i.error(t)}).finally(function(){d.stop("grid-spinner")})}function f(){s.socket.on("agent:save",function(e){e=e.newValues||e;var n=_.find(t.gridOptions.data,{agentId:e.id,isAgent:!0});n&&(n.online=_.has(e,"online")?e.online:n.online,n.lastLoginAt=_.has(e,"lastLoginAt")?e.lastLoginAt:n.lastLoginAt,n.pause=_.has(e,"chatPause")?e.chatPause:n.chatPause,n.pauseType=_.has(e,"pauseType")?e.pauseType:n.pauseType,n.lastPauseAt=_.has(e,"lastPauseAt")?e.lastPauseAt:n.lastPauseAt,n.ipaddr=_.has(e,"ipaddr")?e.ipaddr:n.ipaddr,n.port=_.has(e,"port")?e.port:n.port,n.fullcontact=_.has(e,"fullcontact")?e.fullcontact:n.fullcontact,n.useragent=_.has(e,"useragent")?e.useragent:n.useragent,n.lastms=_.has(e,"lastms")?e.lastms:n.lastms,n.internal=_.has(e,"internal")?e.internal:n.internal,_.map(t.gridOptions.data,function(t){t.isAgent||t.agentId!==e.id||(t.online=_.has(e,"online")?e.online:t.online)}))}),s.socket.on("agent:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.id})}),s.socket.on("user_has_chat_queue:save",function(e){if(_.includes(_.map(t.CurrentUser.PChatQueues,"id"),e.ChatQueueId)||m.isAdmin()){var n=_.find(t.gridOptions.data,{agentId:e.UserId,isAgent:!0});if(n){var a=t.gridOptions.data.indexOf(n);t.gridOptions.data.splice(a+1,0,{isAgent:!1,agentId:e.UserId,queue:e.queue,queueId:e.ChatQueueId,agent:e.membername,online:n.online})}}}),s.socket.on("user_has_chat_queue:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.UserId,queueId:e.ChatQueueId})})}function A(e){t.gridOptions.data.push({isAgent:!0,agentId:e.id,agent:e.name,online:e.online,lastLoginAt:e.lastLoginAt,lastPauseAt:e.lastPauseAt,pause:e.chatPause,pauseType:e.pauseType,ipaddr:e.ipaddr,port:e.port,fullcontact:e.fullcontact,useragent:e.useragent,lastms:e.lastms,internal:e.internal,$$treeLevel:0}),e.ChatQueues&&e.ChatQueues.forEach(function(n){t.gridOptions.data.push({isAgent:!1,agentId:e.id,queue:n.name,queueId:n.id,agent:e.name,online:e.online})})}function v(){return o.get().$promise.then(function(e){t.pauses=e.rows,s.syncUpdates("pause",t.pauses)}).catch(function(t){i.error(t)})}function I(){return c.get().$promise.then(function(e){t.chatQueues=e.rows,s.syncUpdates("chat_queue",t.chatQueues)}).catch(function(t){i.error(t)})}t.chatQueues=[];var b={controller:"realtime",controller1:"chat",offset:0,limit:10};t.moment=moment,t.initAgents=function(){t.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} &lt;{{row.entity.internal}}&gt;</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"chatPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'</div><div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.chatQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(t){var e=u.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length)}),t.gridApi.treeBase.on.rowExpanded(t,function(e){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length+e.treeNode.children.length)}),t.gridApi.treeBase.on.rowCollapsed(t,function(e){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length-e.treeNode.children.length)}),t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?b.order=null:b.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),h()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){b.offset=(t-1)*e,b.limit=e,h()}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters[0].term?b[t.name]=t.filters[0].term:delete b[t.name]}),h()})}},h(),v(),I(),g(function(){f()})};var E=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("agent"),s.unsyncUpdates("user_has_chat_queue")}),t.pause=function(e,n,s){return s&&(t.pauseType=null),r.save({name:n,agent:e.agentId,data2:e.agent,type:s||"DEFAULT PAUSE",data4:s||"DEFAULT PAUSE",channel:"chat"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.joinQueue=function(s){n.open({animation:!0,templateUrl:"app/channels/chat/realtime/view/agent/queue.modal.add.html",controller:"ChatRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(t.chatQueues,function(e){return!!_.find(t.gridOptions.data,{queue:e.name,isAgent:!1,agentId:s})})}}}).result.then(function(e){return r.save({name:"QueueAdd",agent:s,queues:_.filter(t.chatQueues,function(t){return _.includes(e.queues,t.id)}),channel:"chat",data1:s,data3:e.queues.join(","),data4:"chat"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},function(){e.info("Modal dismissed at: "+new Date)})},t.leaveQueue=function(t,e){return r.save({name:"QueueRemove",agent:t,queueId:e,channel:"chat",data1:t,data3:e,data4:"chat"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.showInfo=function(t){n.open({animation:!0,templateUrl:"app/channels/chat/realtime/view/agent/agent.modal.info.html",controller:"ChatRealtimeViewAgentInfoModalCtrl",resolve:{agent:t}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/chat/realtime/view/agent/agent.html",controller:"ChatRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(t,e,n,a){t.agent=a,t.close=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(t,e,n,a){t.queues=a,t.item={},t.save=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportChatSession","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d){function u(){return o.spin("spinner-grid"),l.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){i.error(t)}).finally(function(){p(),o.stop("spinner-grid")})}function p(){s.socket.on("report_chat_session:save",function(e){var n=_.find(t.gridOptions.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&d(function(){_.remove(t.gridOptions.data,{id:e.id})},1e4)):e.leaveAt||t.gridOptions.data.push(e)}),s.socket.on("report_chat_session:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}t.moment=moment,t.initApplications=function(){t.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"websitename",displayName:"APPLICATION_WEBSITE",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.abandon">{{\'APPLICATION_QUEUESTATUS_ABANDON\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=r.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){m(t.gridOptions.data.length)})}},u()};var m=function(t){var e=t?30*t+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("report_chat_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/chat/realtime/view/application/application.html",controller:"ChatRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatRealtimeViewCtrl",["$scope",function(t){t.agents=[{name:"Queues",link:"main.chat.realtime.view.agent.queues"},{name:"Timeline",link:"main.chat.realtime.view.agent.timeline"}],t.sessions=[{name:"Sessions",link:"main.chat.realtime.view.sessions"}],t.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.realtime.view",{url:"/view",templateUrl:"app/channels/chat/realtime/view/view.html",controller:"ChatRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportChatSession",["$resource",function(t){return t("/api/report/chat/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.room.external",{url:"/external",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ChatRoomExternalListCtrl",["$scope","$timeout","socket","Auth","ChatRoom","usSpinnerService","Tag","$uibModal","uibButtonConfig","uiGridConstants",function(t,e,n,a,s,i,l,o,r,c){function d(){return l.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)})}t.openChat=function(e){return s.get({id:e.id}).$promise.then(function(e){var n=_.find(t.workspaces,{id:e.id,type:"chatRoom"});n?n.active=!0:t.workspaces.push({id:e.id,name:e.ChatVisitor.fullname,type:"chatRoom",class:"icon-bubble",active:!0})}).catch(function(t){console.error(t)})},t.initView=function(){r.activeClass="green-haze",t.id=[],t.query={status:"OPEN",tags:[]},t.gridOptions={enableGridMenu:!1,enableFiltering:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"ID",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!0,enableFiltering:!0,enableColumnMenu:!1},{name:"userpic",displayName:"",width:35,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div>           <ng-letter-avatar           height="20"           width="20"           fontsize="12"           data="{{row.entity.ChatVisitor.fullname}}"           avatarcustombgcolor="#B0B0B0"           charCount="2"           avatarcustomborder="border:2px solid #EA4C61"           shape="round"></ng-letter-avatar>           </div>',enableColumnMenu:!1,enableSorting:!1,enableFiltering:!1},{name:"agent",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span style="padding-left: 5px;" class="pull-left">{{row.entity.Users[0].fullname}}</span></div>',enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"fullname",displayName:"APPLICATION_CUSTOMER_NAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span style="padding-left: 5px;" class="pull-left">{{row.entity.ChatVisitor.fullname}}</span></div>',enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"contact",displayName:"APPLICATION_CUSTOMER_EMAIL",headerCellFilter:"translate"},{name:"website",displayName:"APPLICATION_WEBSITE",headerCellFilter:"translate",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",displayName:"APPLICATION_CREATED_AT",headerCellFilter:"translate",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:c.DESC}},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",cellTemplate:'<div><a class="btn btn-xs green-meadow" href="#" data-ng-click="grid.appScope.openChat(row.entity)"><i class="icon-bubble"></i></a></div>',cellClass:"ui-grid-vcenter",width:75,enableFiltering:!1,enableSorting:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.selection&&(t.gridApi.selection.on.rowSelectionChanged(t,function(e){e.isSelected?t.id.push(t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id):_.pull(t.id,t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id)}),t.gridApi.selection.on.rowSelectionChangedBatch(t,function(e){e[0].isSelected?t.id=_.union(t.id,_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id")):_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id").forEach(function(e){_.pull(t.id,e)})}))}},t.getPage(),d()},t.tagItems=function(){o.open({animation:!0,templateUrl:"app/channels/chat/room/view.tags.modal.html",controller:"ChatRoomViewModalTagCtrl",resolve:{id:function(){return t.id}}}).result.then(function(){t.gridApi.selection.clearSelectedRows(),t.id=[]})},t.onChanged=function(){t.getPage()},t.$watch("query.status",function(){t.getPage()},!0),t.getPage=function(){return i.spin("spinner-grid"),s.get(_.merge({id:"externals"},t.query)).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){console.error(t)}).finally(function(){i.stop("spinner-grid")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.room.external.list",{url:"/list",templateUrl:"app/channels/chat/room/external/list/list.html",controller:"ChatRoomExternalListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.room.group",{url:"/group",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ChatRoomGroupListCtrl",["$scope","$timeout","Auth","ChatRoom","usSpinnerService","Tag","uibButtonConfig","uiGridConstants","$uibModal",function(t,e,n,a,s,i,l,o,r){function c(){return i.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)})}t.getFullnames=function(t){var e=_.without(_.map(t.Users,"fullname"),n.getCurrentUser().fullname);return t.ChatVisitor&&e.unshift(t.ChatVisitor.fullname),e.join(", ")},t.openChat=function(e){return a.get({id:e.id}).$promise.then(function(n){var a=_.find(t.workspaces,{id:n.id,type:"chatRoom"});a?a.active=!0:t.workspaces.push({id:n.id,data:e,name:t.getFullnames(n),type:"chatRoom",class:"icon-bubble",active:!0})}).catch(function(t){console.error(t)})},t.initView=function(){l.activeClass="green-haze",t.id=[],t.query={status:"OPEN",tags:[]},t.currentUser=n.getCurrentUser(),t.gridOptions={enableGridMenu:!1,enableColumnResizing:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"ID",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"userpic",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div>           <ng-letter-avatar data-ng-if="row.entity.ChatVisitor"          height="20"           width="20"           fontsize="12"           data="{{row.entity.ChatVisitor.fullname}}"           avatarcustombgcolor="#B0B0B0"           charCount="2"           avatarcustomborder="border:2px solid #EA4C61"           shape="round"></ng-letter-avatar>           <ng-letter-avatar data-ng-repeat="user in row.entity.Users | filter:{ id: \'!\' + grid.appScope.currentUser.id} track by user.id"            style="margin-right: 3px;"           height="20"           width="20"           fontsize="12"           data="{{user.fullname}}"           avatarcustombgcolor="#B0B0B0"           charCount="2"           avatarcustomborder="border:2px solid #3399CC"           shape="round"></ng-letter-avatar>           </div>',enableColumnMenu:!1,enableSorting:!1,enableFiltering:!1},{name:"Users",displayName:"APPLICATION_MEMBERS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{grid.appScope.getFullnames(row.entity)}}</div>",enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"contact",displayName:"APPLICATION_CUSTOMER_EMAIL",headerCellFilter:"translate"},{name:"website",displayName:"APPLICATION_WEBSITE",headerCellFilter:"translate",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",displayName:"APPLICATION_CREATED_AT",headerCellFilter:"translate",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:o.DESC}},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",cellTemplate:'<div><a class="btn btn-xs green-meadow" href="#" data-ng-click="grid.appScope.openChat(row.entity)"><i class="icon-bubble"></i></a></div>',cellClass:"ui-grid-vcenter",width:75,enableFiltering:!1,enableSorting:!1,enableColumnMenu:!1}],data:[]},t.getPage(),c()},t.tagItems=function(){r.open({animation:!0,templateUrl:"app/channels/chat/room/view.tags.modal.html",controller:"ChatRoomViewModalTagCtrl",resolve:{id:function(){return t.id}}}).result.then(function(){t.gridApi.selection.clearSelectedRows(),t.id=[]})},t.onChanged=function(){t.getPage()},t.$watch("query.status",function(){t.getPage()},!0),t.getPage=function(){return s.spin("spinner-grid"),a.get(_.merge({id:"groups"},t.query)).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){console.error(t)}).finally(function(){s.stop("spinner-grid")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.room.group.list",{url:"/list",templateUrl:"app/channels/chat/room/group/list/list.html",controller:"ChatRoomGroupListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.room.internal",{url:"/internal",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ChatRoomInternalListCtrl",["$scope","$timeout","socket","Auth","ChatRoom","usSpinnerService",function(t,e,n,a,s,i){t.openChat=function(e){return s.users({users:[a.getCurrentUser().id,e.id]}).$promise.then(function(n){var a=_.find(t.workspaces,{id:n.id,type:"chatRoom"});a?a.active=!0:t.workspaces.push({id:n.id,name:e.fullname,type:"chatRoom",class:"icon-bubble",active:!0})}).catch(function(t){console.error(t)})},t.initView=function(){t.gridOptions={enableGridMenu:!1,enableFiltering:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"userpic",displayName:"",width:35,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div>           <ng-letter-avatar           height="20"           width="20"           fontsize="12"           data="{{row.entity.fullname}}"           avatarcustombgcolor="#B0B0B0"           charCount="2"           avatarcustomborder="border:2px solid #3399CC"           shape="round"></ng-letter-avatar>           </div>',enableColumnMenu:!1,enableSorting:!1,enableFiltering:!1},{name:"fullname",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",enableSorting:!0,enableFiltering:!0,enableColumnMenu:!0},{name:"action",cellTemplate:'<div><a class="btn btn-xs green-meadow" href="#" data-ng-click="grid.appScope.openChat(row.entity)"><i class="icon-bubble"></i></a></div>',cellClass:"ui-grid-vcenter",width:75,enableFiltering:!1,enableSorting:!1,enableColumnMenu:!1}],data:[]},n.socket.on("user:save",function(e){if(e.online&&a.getCurrentUser().id!==e.id){var n=_.find(t.gridOptions.data,{id:e.id});n?_.merge(n,e):t.gridOptions.data.push(e)}else _.remove(t.gridOptions.data,{id:e.id})}),e(function(){n.socket.on("agent:save",function(e){if(e.online&&a.getCurrentUser().id!==e.id){var n=_.find(t.gridOptions.data,{id:e.id});n?_.merge(n,e):t.gridOptions.data.push(e)}else _.remove(t.gridOptions.data,{id:e.id})})}),s.get({id:"agents"}).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){console.error(t)}).finally(function(){i.stop("spinner-grid")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.room.internal.list",{url:"/list",templateUrl:"app/channels/chat/room/internal/list/list.html",controller:"ChatRoomInternalListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatRoomAddCtrl",["$scope","$uibModalInstance","Agent","items",function(t,e,n,a){t.items=a,t.agents=n.get(function(e){t.agents=e,t.items.forEach(function(e){_.remove(t.agents.rows,{id:e.id})})}),t.selected={items:[]},t.ok=function(){e.close(_.union(_.map(t.selected.items,"id"),_.map(t.items,"id")))},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").controller("ChatRoomCloseCtrl",["$scope","$uibModalInstance","closed","ChatWebsite","websiteId",function(t,e,n,a,s){t.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_CHAT"},t.initDisposition=function(){return a.get({websiteId:s,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t)})},t.item={},t.closed=n,t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").directive("chatRoom",["$interval","$rootScope","$uibModal","$notification","$window","socket","Auth","ChatRoom","ngAudio","xAlert","Tag","CannedAnswer","List","$translate",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m){return{restrict:"E",scope:{workspace:"="},templateUrl:"app/channels/chat/room/room.directive.html",link:function(t){t.user=l.getCurrentUser(),t.message={body:""},t.openContact=function(n){if(t.chatRoom.ChatWebsite.List)return p.save({listId:t.chatRoom.ChatWebsite.List.id,controller:"contacts"},{email:n}).$promise.then(function(t){var n=_.find(e.$root.workspaces,{contactID:t.id});n?n.active=!0:e.$root.workspaces.push({active:!0,class:"icon-user",contactID:t.id,name:t.email,type:"contact"})}).catch(function(t){console.error(t)});c.show(m.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},t.modelOptions={debounce:{default:500,blur:250},getterSetter:!0},t.form={},t.panelLeft="col-md-4",t.panelRight="col-md-8",t.onSelect=function(){t.message.body=t.modelOptions.selectedAnswer,delete t.modelOptions.selectedAnswer},t.togglePanelLeft=function(){t.panelLeft?(t.panelLeft=null,t.panelRight="col-md-12"):(t.panelLeft="col-md-4",t.panelRight="col-md-8")},t.options={link:!0,linkTarget:"_blank",pdf:{embed:!0},image:{embed:!0},audio:{embed:!0},code:{highlight:!0,lineNumbers:!1},basicVideo:!0},t.getAnswers=function(t){return u.get({key:t}).$promise.then(function(t){return console.log(t),_.map(t.rows,"value")})},t.isMyRoom=function(e){return!!_.find(e,{id:t.user.id})},o.get({id:t.workspace.id}).$promise.then(function(n){t.chatRoom=n,t.form.tags=n.tags,t.chatRoom.ChatVisitor&&(t.chatRoom.ChatVisitors=[],t.chatRoom.ChatVisitors.push(t.chatRoom.ChatVisitor)),i.socket.on("chat_room:save",function(e){t.chatRoom.id===e.id&&_.merge(t.chatRoom,e)}),i.socket.on("user_has_chat_room:save",function(e){if(e.UserId!=t.user.id&&e.ChatRoomId==t.chatRoom.id)return o.get({id:"agents",controller:e.UserId}).$promise.then(function(e){var n=_.map(t.chatRoom.Users,"fullname");t.chatRoom.ChatVisitor&&n.unshift(t.chatRoom.ChatVisitor.fullname),t.chatRoom.Users.push(e),t.workspace.name=_.without(n,l.getCurrentUser().fullname).join(", ")}).catch(function(t){console.error(t)})}),i.socket.on("chat_message:save",function(n){t.chatRoom.id==n.ChatRoomId&&(t.user.id!=n.UserId&&t.chatRoom.ChatMessages.push(n),n.UserId?n.UserId!==l.getCurrentUser().id&&!e.settings.layout.onFocus&&s.Notification&&a("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Chat Message!",delay:5e3}):!e.settings.layout.onFocus&&s.Notification&&a("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Chat Message!",delay:5e3}),t.workspace.active||(r.load("api/xchatty/assets?resource=notification/xc_blubb.mp3").play(),t.workspace.unread++))})}).catch(function(t){console.error(t)}),d.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)}),t.closeRoom=function(e){return n.open({animation:!0,templateUrl:"app/channels/chat/room/room.close.html",controller:"ChatRoomCloseCtrl",resolve:{closed:function(){return"CLOSED"===t.chatRoom.status},websiteId:function(){return t.chatRoom.ChatWebsiteId}}}).result.then(function(t){var n={id:e,status:"CLOSED",completeReason:"agent"};return t.disposition&&(n.disposition=t.disposition),o.update(n).$promise.catch(function(t){c.error(t)})})},t.onChanged=function(e){return o.update({id:e},{tags:t.form.tags}).$promise.catch(function(t){console.error(t)})},t.addAgent=function(e){n.open({animation:!0,templateUrl:"app/channels/chat/room/room.add.html",controller:"ChatRoomAddCtrl",resolve:{items:function(){return _.map(t.chatRoom.Users||[],function(t){return{id:t.id,fullname:t.fullname}})}}}).result.then(function(t){return o.update({id:e,controller:"users"},{users:t}).$promise.catch(function(t){c.error(t)})})},t.sendMessage=function(){var e={body:angular.copy(t.message.body),createdAt:moment().format(),UserId:t.user.id,User:{fullname:t.user.fullname}};if(t.message.body.trim().length)return t.chatRoom.ChatMessages.push(e),t.message.body="",o.save({id:t.chatRoom.id,controller:"messages"},{body:e.body}).$promise.catch(function(t){console.error(t)})}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.room",{url:"/room",templateUrl:"app/channels/chat/room/room.html",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:31}},resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ChatRoomViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","ChatRoom","xAlert","id",function(t,e,n,a,s,i,l,o){t.initModal=function(){return t.tags=[],t.item={tags:[]},t.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{class:"btn-success",text:"APPLICATION_TAG",click:function(){var a={status:!0};return i.patch({id:o},{tags:t.item.tags}).$promise.catch(function(){a.status=!1,l.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}).finally(function(){e.close(a)})}},{class:"default",text:"APPLICATION_CANCEL",click:function(t){e.dismiss(t)}}]},s.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").controller("ChatVisitorListCtrl",["$scope","ChatVisitor","gridOptions","$uibModal",function(t,e,n,a){t.initView=function(){var a={exporterCsvFilename:"chat_visitors.csv",columnDefs:[{name:"fullname",cellClass:"text-center"},{name:"email",cellClass:"text-center"},{name:"origin",cellClass:"text-center"},{name:"createdAt",displayName:"createdAt",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.createdAt"></span></div>'},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/channels/chat/visitors/view/{{row.entity.id}}/profile",name:"profile"}]}]};t.gridOptions=n.gridOptions(e,a,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.visitors.list",{url:"/list",templateUrl:"app/channels/chat/visitor/list/list.html",controller:"ChatVisitorListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatVisitorViewCtrl",["$scope","$stateParams","ChatVisitor",function(t,e,n){t.initView=function(){return n.get({id:e.id}).$promise.then(function(e){t.chatVisitor=e}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.visitors.view",{url:"/view/:id",templateUrl:"app/channels/chat/visitor/view/view.html",controller:"ChatVisitorViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.chat.visitors.view.profile",{url:"/profile",templateUrl:"app/channels/chat/visitor/view/view.profile.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.visitors",{url:"/visitors",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}})}]),angular.module("xCallyShuttleApp").factory("ChatApplication",["$resource",function(t){return t("/api/chat/applications/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ChatWebsite",["$resource",function(t){return t("/api/chat/websites/:websiteId/:controller/:id",{id:"@websiteId"},{update:{method:"PUT"},updateFields:{method:"PUT",isArray:!0}})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteListCtrl",["$scope","gridOptions","ChatWebsite",function(t,e,n){t.initView=function(){var a={exporterCsvFilename:"chat_websites.csv",columnDefs:[{name:"name"},{name:"description"},{name:"address"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/chat/websites/view/{{row.entity.id}}/embedding/view",name:"embedding"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=e.gridOptions(n,a,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.list",{url:"/list",templateUrl:"app/channels/chat/website/list/list.html",controller:"ChatWebsiteListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.actions",{url:"/actions",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewActionListCtrl",["$scope","gridOptions","ChatWebsite","$http","$translate","$stateParams","socket","xAlert","Modal",function(t,e,n,a,s,i,l,o,r){t.initActons=function(){var a={draggable:!0,exporterCsvFilename:"chat_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>{{row.entity.ChatQueue ? row.entity.ChatQueue.name : row.entity.User.name}}</span></div>"},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/channels/chat/websites/view/{{row.entity.ChatWebsiteId}}/actions/view/{{row.entity.id}}",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};t.gridOptions=e.gridOptions(n,a,t,{websiteId:i.websiteId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.actions.list",{url:"/list",templateUrl:"app/channels/chat/website/view/action/list/list.html",controller:"ChatWebsiteViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","ChatWebsite","ChatQueue","Agent","Interval","Template","MailAccount","SmsAccount",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initAction=function(){return t.$application=r.application,t.$stateParams=n,t.$interval=c.interval,t.forms={},t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],d.get({websiteId:n.websiteId,controller:"applications",id:n.actionId}).$promise.then(function(e){if(t.application=e,t.application.alwaysTime=!1,t.application.IntervalId)t.application.intType="list";else switch(t.application.interval){case"*,*,*,*":t.application.intType="always";break;default:t.application.intType="custom"}if("always"===t.application.intType||"custom"===t.application.intType){var n=t.application.interval.split(",");"*"===n[0]?t.application.alwaysTime=!0:(t.application.t_from=moment(new Date),t.application.t_to=moment(new Date),t.application.t_from.hour(n[0].split("-")[0].split(":")[0]),t.application.t_from.minute(n[0].split("-")[0].split(":")[1]),t.application.t_to.hour(n[0].split("-")[1].split(":")[0]),t.application.t_to.minute(n[0].split("-")[1].split(":")[1])),"*"===n[1]?(t.application.wd_from="always",t.application.wd_to="always"):(t.application.wd_from=n[1].split("-")[0],t.application.wd_to=n[1].split("-")[1]),"*"===n[2]?(t.application.md_from="always",t.application.md_to="always"):(t.application.md_from=n[2].split("-")[0],t.application.md_to=n[2].split("-")[1]),"*"===n[3]?(t.application.m_from="always",t.application.m_to="always"):(t.application.m_from=n[3].split("-")[0],t.application.m_to=n[3].split("-")[1])}t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})}).catch(function(t){i.error(t)})},t.getQueues=function(){return u.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){i.error(t)})},t.getAgents=function(){return p.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){i.error(t)})},t.getIntervals=function(){return m.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){i.error(t)})},t.getSmsAccounts=function(){return f.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.getTemplates=function(){return g.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.getMailAccounts=function(){return h.get({custom:!0}).$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})},t.updateItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var l,o,r,c,u;l=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(o=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(o+="-"+t.application.wd_to)):o="*",t.application.md_from&&"always"!==t.application.md_from?(r=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(r+="-"+t.application.md_to)):r="*",t.application.m_from&&"always"!==t.application.m_from?(c=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(c+="-"+t.application.m_to)):c="*",u=l+","+o+","+r+","+c,t.application.interval=u,t.application.IntervalId=null}return d.update({websiteId:n.websiteId,controller:"applications",id:n.actionId},t.application).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success"),s.path("/channels/chat/websites/view/"+n.websiteId+"/actions/list")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/chat/website/view/action/view/view.html",controller:"ChatWebsiteViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewActionWizardCtrl",["$scope","$http","Agent","Interval","ChatQueue","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","ChatWebsite","Template","MailAccount","SmsAccount",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initWizard=function(){t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],t.$application=u.application,t.$stateParams=i,t.$interval=p.interval,t.forms={},t.application={app:"queue",intType:"always",alwaysTime:!0},t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})},t.getQueues=function(){return s.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){console.error(t)})},t.getAgents=function(){return n.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){r.error(t)})},t.getIntervals=function(){return a.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){r.error(t)})},t.getSmsAccounts=function(){return f.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.getTemplates=function(){return g.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.getMailAccounts=function(){return h.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})},t.createItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var n,a,s,c,d;n=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(a=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(a+="-"+t.application.wd_to)):a="*",t.application.md_from&&"always"!==t.application.md_from?(s=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(s+="-"+t.application.md_to)):s="*",t.application.m_from&&"always"!==t.application.m_from?(c=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(c+="-"+t.application.m_to)):c="*",d=n+","+a+","+s+","+c,t.application.interval=d,t.application.IntervalId=null}return m.save({websiteId:i.websiteId,controller:"applications"},t.application).$promise.then(function(){r.show(l.instant("MESSAGE_WELL_DONE"),"success"),o.path("/channels/chat/websites/view/"+i.websiteId+"/actions/list")}).catch(function(t){r.error(t)})},t.formValidation=function(t){return t},t.next=function(){c.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/chat/website/view/action/wizard/wizard.html",controller:"ChatWebsiteViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("ChatDisposition",["$resource",function(t){return t("/api/chat/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewModalDispositionAddCtrl",["$scope","$uibModalInstance","ChatWebsite","id","xAlert","$translate",function(t,e,n,a,s,i){t.ok=function(){return n.save({websiteId:a,controller:"dispositions"},{name:t.name}).$promise.then(function(t){e.close(t)}).catch(function(t){s.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","ChatWebsite","xAlert",function(t,e,n,a,s,i){t.initView=function(){return s.get({websiteId:e.websiteId,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.updateDisposition=function(t,n){return s.update({websiteId:e.websiteId,controller:"dispositions",id:t},{name:n}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.deleteDisposition=function(n){return console.log("delete"),s.remove({websiteId:e.websiteId,controller:"dispositions",id:n}).$promise.then(function(){_.remove(t.dispositions,{id:n})}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.addDisposition=function(){return n.open({animation:!0,templateUrl:"app/channels/chat/website/view/disposition/modal/add.modal.html",controller:"ChatWebsiteViewModalDispositionAddCtrl",resolve:{id:function(){return e.websiteId}}}).result.then(function(e){e&&t.dispositions.push(e)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.dispositions",{url:"/dispositions",controller:"ChatWebsiteDispositionViewCtrl",templateUrl:"app/channels/chat/website/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.embedding",{url:"/embedding",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewEmbeddingViewCtrl",["$scope","$stateParams","$translate","clipboard","xAlert","ChatWebsite",function(t,e,n,a,s,i){t.initView=function(){return i.get({websiteId:e.websiteId,controller:"snippet"}).$promise.then(function(e){t.snippetCode=e.html}).catch(function(t){s.error(t)})},t.copyToClipboard=function(){a.copyText(t.snippetCode),s.show(n.instant("MESSAGE_TEXT_COPIED_CLIPBOARD")+"!","success")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.embedding.view",{url:"/view",templateUrl:"app/channels/chat/website/view/embedding/view/view.html",controller:"ChatWebsiteViewEmbeddingViewCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.form",{url:"/forms",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewFormViewCtrl",["$scope","$builder","$validator","$stateParams","$translate","ChatWebsite","xAlert",function(t,e,n,a,s,i,l){t.saveForm=function(t){var n=angular.copy(e.forms[t]);return n.length>3?l.show("You can insert at least 3 input elements","danger"):(_.forEach(n,function(t){delete t.id}),i.updateFields({websiteId:a.websiteId,controller:"fields",id:t},n).$promise.then(function(){l.show(s.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){l.error(t)}))},t.getChatWebsiteFields=function(t){return i.query({websiteId:a.websiteId,controller:"fields",id:t}).$promise.then(function(n){_.forEach(n,function(n){e.addFormObject(t,n)})}).catch(function(t){l.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.form.view",{url:"/view",templateUrl:"app/channels/chat/website/view/form/view/view.html",controller:"ChatWebsiteViewFormViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteHooksViewCtrl",["$scope","ChatWebsite","Pause","$http","$stateParams","$translate","$location","xAlert",function(t,e,n,a,s,i,l,o){t.account={},t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.CONST_TIMEOUT=3e4,t.initView=function(){t.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],n.get().$promise.then(function(e){t.pauses=e.rows}).catch(function(t){o.error(t)}),e.get({id:s.websiteId}).$promise.then(function(e){console.log(e),t.account=e,t.account.actions.length<1&&t.account.actions.push({action:"pause",enabled:!1,type:null})}).catch(function(t){o.error(t)})},t.resetActionData=function(t){t.type=null},t.updateItem=function(){return console.log(t.account),e.update({id:s.websiteId},t.account).$promise.then(function(){o.show(i.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.hooks",{url:"/hooks",controller:"ChatWebsiteHooksViewCtrl",templateUrl:"app/channels/chat/website/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewProactiveListCtrl",["$scope","gridOptions","ChatWebsite","$http","$translate","$stateParams","$uibModal",function(t,e,n,a,s,i,l){t.initProactiveActions=function(){var a={exporterCsvFilename:"telephones.csv",columnDefs:[{name:"name"},{name:"type"},{name:"action",width:125,buttons:[{class:"blue-hoki",onClick:"grid.appScope.createItem(row.entity)",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=e.gridOptions(n,a,t,{websiteId:i.websiteId,controller:"proactive"})},t.createItem=function(e){l.open({animation:!0,templateUrl:"app/channels/chat/website/view/proactive/list/list.create.modal.html",controller:"ChatWebsiteProactiveListCreateCtrl",resolve:{item:e}}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteProactiveListCreateCtrl",["$scope","$translate","$uibModalInstance","$stateParams","ChatWebsite","xAlert","item",function(t,e,n,a,s,i,l){t.form={},t.item=l||{},t.title=l?e.instant("APPLICATION_EDIT_PROACTIVE_ACTION"):e.instant("APPLICATION_NEW_PROACTIVE_ACTION"),t.possibleType=[{type:"mouseOver",title:"Mouse Over"},{type:"timeout",title:"Timeout"}],t.save=function(){return l?s.update({websiteId:a.websiteId,controller:"proactive",id:t.item.id},t.item).$promise.then(function(t){i.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){i.error(t)}):s.save({websiteId:a.websiteId,controller:"proactive"},t.item).$promise.then(function(t){i.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){i.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.proactive.list",{url:"/list",templateUrl:"app/channels/chat/website/view/proactive/list/list.html",controller:"ChatWebsiteViewProactiveListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.proactive",{url:"/proactive",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteSettingViewCtrl",["$scope","$stateParams","$translate","$location","$timeout","socket","xAlert","ChatWebsite","List",function(t,e,n,a,s,i,l,o,r){t.initView=function(){return r.get().$promise.then(function(e){t.lists=e.rows}).catch(function(t){console.error(t)})},t.updateItemChatWebsite=function(){return o.update({id:e.websiteId},{ListId:t.chatWebsite.ListId}).$promise.then(function(){l.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){l.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.settings",{url:"/settings",controller:"ChatWebsiteSettingViewCtrl",templateUrl:"app/channels/chat/website/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.snippet",{url:"/snippet",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewSnippetViewCtrl",["$scope","$http","$stateParams","$translate","Template","$rootScope","FileUploader","$cookieStore","xAlert","ChatWebsite","MailAccount",function(t,e,n,a,s,i,l,o,r,c,d){t.$translate=a,t.isServiceMailAccount=!1,t.statePreview={state:"online"},t.radioSwitch={isActive:!!i.license.custom,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var u=t.uploader=new l({url:"api/chat/websites/"+n.websiteId+"/logo",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+o.get("token")}});u.filters.push({name:"imageFilter",fn:function(t){var e="|"+t.type.slice(t.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(e)}}),u.onSuccessItem=function(e,n){t.chatWebsite.logo=n.logo,r.show(a.instant("MESSAGE_WELL_DONE"),"success")},u.onErrorItem=function(){r.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},u.onCompleteAll=function(){u.clearQueue()},t.enquirySwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.fidelitySwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.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"},t.initView=function(){return c.get({id:n.websiteId}).$promise.then(function(e){return t.chatWebsite=e,s.get().$promise}).then(function(e){t.templates=e.rows}).catch(function(t){r.error(t)})},t.getServiceMailAccount=function(){return d.get({accountId:"service"}).$promise.then(function(){t.isServiceMailAccount=!0}).catch(function(){t.isServiceMailAccount=!1})},t.updateItem=function(){return c.update({id:t.chatWebsite.id},t.chatWebsite).$promise.then(function(){r.show(a.instant("MESSAGE_CHAT_WEBSITE_UPDATE_SUCCESS")+"!","success")}).catch(function(t){r.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view.snippet.view",{url:"/view",templateUrl:"app/channels/chat/website/view/snippet/view/view.html",controller:"ChatWebsiteViewSnippetViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteViewCtrl",["$scope","xAlert","$http","$location","$stateParams","$translate","WizardHandler","ChatApplication","ChatWebsite",function(t,e,n,a,s,i,l,o,r){t.initView=function(){return r.get({id:s.websiteId}).$promise.then(function(e){t.chatWebsite=e}).catch(function(t){e.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.view",{url:"/view/:websiteId",templateUrl:"app/channels/chat/website/view/view.html",controller:"ChatWebsiteViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites",{url:"/websites",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:29}}})}]),angular.module("xCallyShuttleApp").controller("ChatWebsiteWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","ChatWebsite",function(t,e,n,a,s,i,l){t.$translate=a,t.next=function(){s.wizard().next()},t.exitValidation=function(t){return t},t.initWizard=function(){t.forms={formSetting:void 0,formAppearance:void 0,formLabel:void 0,formFunctionality:void 0},t.item={},t.item.remote=n.protocol()+"://"+location.host,t.item.color="#000080",t.item.color_focus="#000080",t.item.color_button="#000080",t.item.header_shape="rounded",t.item.animation=!0,t.item.header_online="We are here!",t.item.online_message="<strong>Questions?</strong><br />Insert your name and email address to start a live-chat with our support team.",t.item.name_title="Name",t.item.username_placeholder="Your name",t.item.email_title="Email Address",t.item.email_placeholder="Your e-mail address",t.item.start_chat_button="Chat",t.item.rating_message="Would you like rate this chat?",t.item.rating_send="Send",t.item.rating_skip="Skip",t.item.header_offline="Contact us",t.item.offline_message="<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.",t.item.message_title="Message",t.item.enquiry_message_placeholder="Your message...",t.item.enquiry_button="Leave message",t.item.agents_busy="In this moment all agents are busy. Try again!",t.item.download_transcript=!0},t.createItem=function(){return l.save(t.item).$promise.then(function(){i.show(a.instant("MESSAGE_CHAT_WEBSITE_CREATE_SUCCESS"),"success"),n.path("/channels/chat/websites/list")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.chat.websites.wizard",{url:"/wizard",templateUrl:"app/channels/chat/website/wizard/wizard.html",controller:"ChatWebsiteWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts",{url:"/accounts",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:38}}})}]),angular.module("xCallyShuttleApp").controller("FaxAccountListCtrl",["$scope","$uibModal","gridOptions","FaxAccount",function(t,e,n,a){t.initView=function(){var e={exporterCsvFilename:"chat_websites.csv",columnDefs:[{name:"name"},{name:"description"},{name:"localstationid"},{name:"TrunkName",displayName:"APPLICATION_TRUNK"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/fax/accounts/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(a,e,t)},t.createItem=function(){e.open({animation:!0,templateUrl:"app/channels/fax/account/list/list.create.modal.html",controller:"FaxAccountListCreateCtrl"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("FaxAccountListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","FaxAccount","Trunk",function(t,e,n,a,s,i){t.initWizard=function(){return t.form={},t.item={},t.trunks=[],i.get().$promise.then(function(e){t.trunks=e.rows}).catch(function(t){a.error(t)})},t.save=function(){return s.save(t.item).$promise.then(function(t){a.show(n.instant("MESSAGE_WELL_DONE"),"success"),e.close(t)}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.list",{url:"/list",templateUrl:"app/channels/fax/account/list/list.html",controller:"FaxAccountListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewActionListCtrl",["$scope","gridOptions","FaxAccount","$http","$translate","$stateParams",function(t,e,n,a,s,i){t.initActons=function(){var a={draggable:!0,exporterCsvFilename:"fax_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.FaxQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/channels/fax/accounts/view/{{row.entity.FaxAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};t.gridOptions=e.gridOptions(n,a,t,{accountId:i.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/fax/account/view/action/list/list.html",controller:"FaxAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","FaxQueue","FaxAccount","Template","MailAccount","SmsAccount",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initAction=function(){return t.$application=r.application,t.$stateParams=n,t.$interval=c.interval,t.forms={},t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],m.get({accountId:n.accountId,controller:"applications",id:n.actionId}).$promise.then(function(e){if(t.application=e,t.application.alwaysTime=!1,t.application.IntervalId)t.application.intType="list";else switch(t.application.interval){case"*,*,*,*":t.application.intType="always";break;default:t.application.intType="custom"}if("always"===t.application.intType||"custom"===t.application.intType){var n=t.application.interval.split(",");"*"===n[0]?t.application.alwaysTime=!0:(t.application.t_from=moment(new Date),t.application.t_to=moment(new Date),t.application.t_from.hour(n[0].split("-")[0].split(":")[0]),t.application.t_from.minute(n[0].split("-")[0].split(":")[1]),t.application.t_to.hour(n[0].split("-")[1].split(":")[0]),t.application.t_to.minute(n[0].split("-")[1].split(":")[1])),"*"===n[1]?(t.application.wd_from="always",t.application.wd_to="always"):(t.application.wd_from=n[1].split("-")[0],t.application.wd_to=n[1].split("-")[1]),"*"===n[2]?(t.application.md_from="always",t.application.md_to="always"):(t.application.md_from=n[2].split("-")[0],t.application.md_to=n[2].split("-")[1]),"*"===n[3]?(t.application.m_from="always",t.application.m_to="always"):(t.application.m_from=n[3].split("-")[0],t.application.m_to=n[3].split("-")[1])}t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})}).catch(function(t){i.error(t)})},t.getQueues=function(){return p.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){console.error(t)})},t.getAgents=function(){return d.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){console.error(t)})},t.getIntervals=function(){return u.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){console.error(t)})},t.getSmsAccounts=function(){return f.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.getTemplates=function(){return g.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.getMailAccounts=function(){return h.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})},t.updateItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var l,o,r,c,d;l=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(o=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(o+="-"+t.application.wd_to)):o="*",t.application.md_from&&"always"!==t.application.md_from?(r=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(r+="-"+t.application.md_to)):r="*",t.application.m_from&&"always"!==t.application.m_from?(c=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(c+="-"+t.application.m_to)):c="*",d=l+","+o+","+r+","+c,t.application.interval=d,t.application.IntervalId=null}return m.update({accountId:n.accountId,controller:"applications",id:n.actionId},t.application).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success"),s.path("/channels/fax/accounts/view/"+n.accountId+"/actions/list")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/fax/account/view/action/view/view.html",controller:"FaxAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewActionWizardCtrl",["$scope","$http","Agent","FaxQueue","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","FaxAccount","Template","MailAccount","SmsAccount",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initWizard=function(){t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],t.$application=u.application,t.$stateParams=i,t.$interval=p.interval,t.forms={},t.application={alwaysTime:!0},t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})},t.getQueues=function(){return a.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){console.error(t)})},t.getAgents=function(){return n.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){console.error(t)})},t.getIntervals=function(){return s.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){console.error(t)})},t.getSmsAccounts=function(){return f.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.getTemplates=function(){return g.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.getMailAccounts=function(){return h.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})},t.createItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var n,a,s,c,d;n=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(a=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(a+="-"+t.application.wd_to)):a="*",t.application.md_from&&"always"!==t.application.md_from?(s=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(s+="-"+t.application.md_to)):s="*",t.application.m_from&&"always"!==t.application.m_from?(c=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(c+="-"+t.application.m_to)):c="*",d=n+","+a+","+s+","+c,t.application.interval=d,t.application.IntervalId=null}return m.save({accountId:i.accountId,controller:"applications"},t.application).$promise.then(function(){r.show(l.instant("MESSAGE_WELL_DONE"),"success"),o.path("/channels/fax/accounts/view/"+i.accountId+"/actions/list")}).catch(function(t){r.error(t)})},t.formValidation=function(t){return t},t.next=function(){c.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/fax/account/view/action/wizard/wizard.html",controller:"FaxAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("FaxDisposition",["$resource",function(t){return t("/api/fax/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","FaxAccount","id","xAlert",function(t,e,n,a,s){t.ok=function(){return n.save({accountId:a,controller:"dispositions"},{name:t.name}).$promise.then(function(t){e.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","FaxAccount","xAlert",function(t,e,n,a,s,i){t.initView=function(){return s.get({accountId:e.accountId,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){i.error(t)})},t.updateDisposition=function(t,n){return s.update({accountId:e.accountId,controller:"dispositions",id:t},{name:n}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){i.error(t)})},t.deleteDisposition=function(n){return s.remove({accountId:e.accountId,controller:"dispositions",id:n}).$promise.then(function(){_.remove(t.dispositions,{id:n})}).catch(function(t){i.error(t)})},t.addDisposition=function(){return n.open({animation:!0,templateUrl:"app/channels/fax/account/view/disposition/modal/add.modal.html",controller:"FaxInboxViewModaDispositionAddCtrl",resolve:{id:function(){return e.accountId}}}).result.then(function(e){e&&t.dispositions.push(e)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.view.dispositions",{url:"/dispositions",controller:"FaxAccountDispositionViewCtrl",templateUrl:"app/channels/fax/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountHooksViewCtrl",["$scope","FaxAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(t,e,n,a,s,i,l,o,r,c){t.account={},t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.CONST_TIMEOUT=3e4,t.initView=function(){t.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],n.get().$promise.then(function(e){t.pauses=e.rows}).catch(function(t){r.error(t)}),e.get({id:s.accountId}).$promise.then(function(e){t.account=e,t.account.actions.length<1&&t.account.actions.push({action:"pause",enabled:!1,type:null})}).catch(function(t){r.error(t)})},t.resetActionData=function(t){t.type=null},t.updateItemFaxAccount=function(){return console.log(t.account),e.update({id:s.accountId},t.account).$promise.then(function(){r.show(l.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){r.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.view.hooks",{url:"/hooks",controller:"FaxAccountHooksViewCtrl",templateUrl:"app/channels/fax/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountSettingViewCtrl",["$scope","$stateParams","$translate","FaxAccount","List","Trunk","xAlert",function(t,e,n,a,s,i,l){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initView=function(){return t.rate=["2400","4800","7200","9600","12000","14400"],t.techs=["SIP","IAX","DADHI","KHOMP"],i.get().$promise.then(function(e){t.trunks=e.rows}).catch(function(t){l.error(t)}),s.get().$promise.then(function(e){t.lists=e.rows}).catch(function(t){l.error(t)}),a.get({id:e.accountId}).$promise.then(function(e){t.account=e}).catch(function(t){l.error(t)})},t.updateItemFaxAccount=function(){return a.update({id:e.accountId},t.account).$promise.then(function(){l.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){l.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.view.settings",{url:"/settings",controller:"FaxAccountSettingViewCtrl",templateUrl:"app/channels/fax/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("FaxAccountViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","FaxAccount",function(t,e,n,a,s,i,l,o,r,c){t.initView=function(){return c.get({id:n.accountId}).$promise.then(function(e){t.account=e}).catch(function(t){o.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.view",{url:"/view/:accountId",templateUrl:"app/channels/fax/account/view/view.html",controller:"FaxAccountViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("FaxAccountWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","Trunk","FaxAccount",function(t,e,n,a,s,i,l,o){t.translate=a,t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initWizard=function(){return t.$translate=a,t.forms={},t.item={},t.rate=["2400","4800","7200","9600","12000","14400"],t.techs=["SIP","IAX","DADHI","KHOMP"],t.item.headerinfo="xCALLY Motion Fax",t.item.ecm="yes",t.item.minrate="4800",t.item.maxrate="14400",t.item.modem="v17,v27,v29",t.item.gateway="no",t.item.faxdetect="no",t.item.t38timeout=5e3,t.item.tech="SIP",l.get().$promise.then(function(e){t.trunks=e.rows}).catch(function(t){s.error(t)})},t.next=function(){i.wizard().next()},t.previous=function(){i.wizard().previous()},t.exitValidation=function(t){return t},t.createItem=function(){return o.save(t.item).$promise.then(function(t){s.show(a.instant("MESSAGE_WELL_DONE"),"success"),n.path("/channels/fax/accounts/list")}).catch(function(t){s.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/fax/account/wizard/wizard.html",controller:"FaxAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax",{url:"/fax",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:10}}})}]),angular.module("xCallyShuttleApp").factory("FaxAccount",["$resource",function(t){return t("/api/fax/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("FaxAttachment",["$resource",function(t){return t("/api/fax/attachments/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").factory("FaxMessage",["$resource",function(t){return t("/api/fax/messages/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("FaxReport",["$resource",function(t){return t("/api/report/faxs/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("FaxRoom",["$resource",function(t){return t("/api/fax/rooms/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.inbox",{url:"/inbox",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:40}}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","messageId","FaxMessage",function(t,e,n,a,s,i,l){t.data=null,t.initInfo=function(){l.get({id:i}).$promise.then(function(e){t.data={channel:e.channel,channelstate:e.channelstate,channelstatedesc:e.channelstatedesc,uniqueid:e.uniqueid,localstationid:e.localstationid,remotestationid:e.remotestationid,pagestransferred:e.pagestransferred,resolution:e.resolution,transferrate:e.transferrate,lastStatus:e.lastStatus,error:e.error,retry:e.retry}}).catch(function(e){switch(e.status){case 404:t.data=null;break;default:s.error(e)}})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").directive("faxMessage",["$rootScope","$translate","$uibModal","FaxMessage","List","xAlert",function(t,e,n,a,s,i){return{restrict:"E",scope:{message:"=",listId:"="},templateUrl:"app/channels/fax/inbox/message/message.directive.html",link:function(l){l.openContact=function(n){if(l.listId)return s.save({listId:l.listId,controller:"contacts"},{fax:n}).$promise.then(function(e){var n=_.find(t.$root.workspaces,{contactID:e.id});n?n.active=!0:t.$root.workspaces.push({active:!0,class:"icon-user",contactID:e.id,name:e.fax,type:"contact"})}).catch(function(t){i.error(t)});i.show(e.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},l.info=function(t){n.open({animation:!0,templateUrl:"app/channels/fax/inbox/message/info.modal.html",controller:"FaxInboxInfoModalCtrl",resolve:{messageId:function(){return t.id}}})},l.retry=function(t){return a.update({id:t,status:"SENDING"}).$promise.catch(function(t){console.error(t)})}}}}]),angular.module("xCallyShuttleApp").directive("faxNote",["$translate","Modal","Auth","FaxMessage","xAlert",function(t,e,n,a,s){return{restrict:"E",scope:{message:"="},templateUrl:"app/channels/fax/inbox/note/note.directive.html",link:function(i){i.Auth=n,i.deleteNote=e.confirm.delete(function(){return a.remove({id:i.message.id}).$promise.then(function(){s.show(t.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){s.error(t)})})}}}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalNoteCtrl",["$scope","$uibModalInstance","$translate","id","FaxRoom","xAlert",function(t,e,n,a,s,i){t.initModal=function(){t.item={}},t.ok=function(){return s.save({id:a,controller:"messages"},{text:t.item.text,status:"NOTE"}).$promise.then(function(){i.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)}).finally(function(){e.close()})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").directive("faxRoom",["$cookieStore","$translate","$uibModal","$timeout","FaxAccount","FaxRoom","FaxMessage","FileUploader","xAlert","usSpinnerService","socket","Tag","Auth","FaxAttachment","List",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g){return{restrict:"E",scope:{workspace:"="},templateUrl:"app/channels/fax/inbox/room/room.directive.html",link:function(p){function h(t){if(t){var e=_.words(t);return _.map(e,function(t){return t?t[0]:""}).join("").toUpperCase()}return!1}p.$on("$destroy",function(){}),p.initForm=function(){p.forms={compose:{}}},p.getContacts=function(t){return p.listId?g.get({listId:p.listId,controller:"contacts",fax:t}).$promise.then(function(t){return t.rows}).catch(function(t){console.error(t)}):[]},p.setList=function(t){p.listId=t};var f=[];p.expanded=!0,p.modelOptions={debounce:{default:500,blur:250},getterSetter:!0},p.panelLeft=null,p.panelRight="col-md-12",p.form={from:"",to:p.workspace.data&&p.workspace.data.to?p.workspace.data.to:"",disabled:!1},d.socket.on("fax_message:remove",function(t){_.remove(p.faxRoom.FaxMessages,{id:t.id})}),d.socket.on("fax_message:save",function(t){if(p.workspace.id&&t.FaxRoomId==p.workspace.id)return p.workspace.active||p.workspace.unread++,l.get({id:t.id}).$promise.then(function(t){p.faxRoom||(p.faxRoom={FaxMessages:[]});var e=_.findIndex(p.faxRoom.FaxMessages,{id:t.id});e>-1?_.merge(p.faxRoom.FaxMessages[e],t):p.faxRoom.FaxMessages.unshift(t),p.panelLeft="col-md-6",p.panelRight="col-md-6"}).catch(function(t){console.error(t)})});var A=p.uploader=new o({url:"api/fax/attachments",autoUpload:!0,withCredentials:!0,queueLimit:1,headers:{Authorization:"Bearer "+t.get("token")}});if(A.filters.push({name:"uploadFilter",fn:function(t){var e="|"+t.type.slice(t.type.lastIndexOf("/")+1)+"|";return-1!=="|pdf|tiff|tif".indexOf(e)}}),A.onWhenAddingFileFailed=function(t,n){switch(n.name){case"queueLimit":r.show(e.instant("MESSAGE_QUEUE_LIMIT_EXCEEDED"),"danger");break;case"uploadFilter":r.show(e.instant("MESSAGE_WRONG_FILE_FORMAT"),"danger");break;default:r.show(e.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}},A.removeFromQueue=function(t){var n=this;return m.delete({id:t.basename}).$promise.then(function(){var e=n.getIndexOfItem(t),a=n.queue[e];a.isUploading&&a.cancel(),n.queue.splice(e,1),a._destroy(),n.progress=n._getTotalProgress(),f=_.reject(f,{basename:t.basename})}).catch(function(){r.show(e.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},A.onErrorItem=function(){r.show(e.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},A.onSuccessItem=function(t,e){var n={path:e.path,name:e.name,basename:e.basename,type:e.type};t=_.merge(t,n),f.push(n)},p.getMessageMailId=function(t){var e=t.UserId?"imgFaxUserId"+t.UserId:"imgFaxVisitorId";return e+=p.faxRoom.id.toString()+t.id.toString()},p.togglePanelLeft=function(){p.panelLeft?(p.panelLeft=null,p.panelRight="col-md-12"):(p.panelLeft="col-md-6",p.panelRight="col-md-6")},p.closeRoom=function(){return n.open({animation:!0,templateUrl:"app/channels/fax/inbox/status/status.modal.html",controller:"FaxInboxStatusModalCtrl",resolve:{status:function(){return p.faxRoom.status},accountId:function(){return p.faxRoom.FaxAccount.id}}}).result.then(function(t){return i.update({id:p.workspace.id},t).$promise.catch(function(t){r.error(t)})})},p.loadAgents=function(){n.open({animation:!0,templateUrl:"app/channels/fax/inbox/view/view.agents.modal.html",controller:"FaxInboxViewModalAgentCtrl",resolve:{roomId:function(){return p.workspace.id}}})},p.cancel=function(){p.form.disabled=!1,p.form.from="",p.form.to=""},p.loadNote=function(){n.open({animation:!0,templateUrl:"app/channels/fax/inbox/note/note.modal.html",controller:"FaxInboxViewModalNoteCtrl",resolve:{id:function(){return p.workspace.id}}})},p.getMessageFaxId=function(t){var e=t.UserId?"imgFaxUserId"+t.UserId:"imgFaxVisitorId";return e+=p.faxRoom.id.toString()+t.id.toString()},p.getMessageRoomAvatar=function(t,e,n,s){a(function(){var a=e?"#imgFaxUserId"+e:"#imgFaxVisitorId";a+=p.faxRoom.id.toString()+t.toString(),angular.element(a).avatar({useGravatar:!1,initials:s?[]:h(n),fallbackImage:s?"api/users/avatar/"+s:"api/users/avatar/unknown_avatar"})})},p.onChanged=function(){return i.update({id:p.workspace.id},{tags:p.form.tags}).$promise.catch(function(t){r.error(t)})},p.sendFax=function(){c.spin("spinner-grid");var t={from:p.form.from,to:p.form.to[0].fax||"",status:"SENDING",FaxAttachments:f,FaxRoomId:p.faxRoom?p.faxRoom.id:null},n=_.find(p.faxAccounts,{localstationid:p.form.from});if(n)return s.save({accountId:n.id,controller:"send"},t).$promise.then(function(t){return A.queue=[],f=[],r.show(e.instant("MESSAGE_WELL_DONE"),"success"),p.SmsRoom?p.SmsRoom:i.get({id:"messages",controller:t.id}).$promise}).then(function(t){t&&(p.workspace.id=t.id,p.workspace.name=t.contact,p.faxRoom=t,p.panelLeft="col-md-6",p.panelRight="col-md-6",p.expanded=!1)}).catch(function(t){r.error(t)}).finally(function(){c.stop("spinner-grid")});console.log("Can not find account"),c.stop("spinner-grid")},u.get().$promise.then(function(t){p.tags=_.map(t.rows,"name")}).catch(function(t){console.error(t)}),s.get().$promise.then(function(t){p.faxAccounts=t.rows}).catch(function(t){console.error(t)}),p.workspace.id)return p.panelLeft="col-md-6",p.panelRight="col-md-6",i.get({id:p.workspace.id}).$promise.then(function(t){p.faxRoom=t,p.form.from=t.FaxAccount.localstationid,p.form.tags=t.tags,p.workspace.name=t.contact||"No number",p.expanded=!1;var e=_.findLast(t.FaxMessages,{status:"RECEIVED"});return e&&(p.form.to=[{fax:e.from}]),d.socket.on("fax_room:save",function(t){t.id===p.workspace.id&&_.merge(p.faxRoom,t)}),t}).catch(function(t){r.error(t)}).finally(function(){c.stop("spinner-grid"),p.form.disabled=!1});p.panelLeft=null,p.panelRight="col-md-12",c.stop("spinner-grid")}}}]),angular.module("xCallyShuttleApp").controller("FaxInboxStatusModalCtrl",["$scope","$uibModalInstance","FaxAccount","status","accountId",function(t,e,n,a,s){t.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_FAX"},t.initDisposition=function(){return t.item={disposition:null,status:"CLOSED"},n.get({accountId:s,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t)})},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:10}}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","usSpinnerService","socket","FaxAccount","FaxRoom","gridOptions","uiGridConstants","Auth","Modal","xAlert","localStorageService","uibButtonConfig",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A){t.openRoom=function(e){var n=_.find(t.workspaces,{id:e,type:"faxRoom"});if(n?n.active=!0:t.workspaces.push({id:e,type:"faxRoom",class:"fa fa-fax",active:!0}),e&&"agent"===m.getCurrentUser().role&&"PENDING"!==t.query.status&&"CLOSED"!==t.query.status)return d.patch({id:e},{status:"OPEN",openReason:"agent"}).$promise.catch(function(t){console.error(t)})},t.getPage=function(){o.spin("spinner-grid");var e={accountId:s.id,controller:"rooms"};return t.query&&_.merge(e,t.query),c.query(e).$promise.then(function(e){f.set("faxAccountId",s.id),t.gridOptions.data=e,r.socket.on("fax_room:save",function(e){if(e.FaxAccountId==s.id){var n=_.find(t.gridOptions.data,{id:e.id});n?n.status!==e.status?_.remove(t.gridOptions.data,{id:e.id}):_.merge(n,e):t.query.status===e.status&&t.gridOptions.data.push(e)}}),r.socket.on("fax_room:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}).catch(function(t){h.error(t)}).finally(function(){o.stop("spinner-grid")})},t.initView=function(){A.activeClass="green-haze",t.id=[],t.isAdmin=m.isAdmin(),t.isAgent=m.isAgent(),t.uncheckable=!1,t.query={status:f.get("faxStatus")?f.get("faxStatus"):"NEW",tags:f.get("faxTags")?f.get("faxTags"):[]},t.$watch("query.status",function(e,n){e!==n&&(f.set("faxStatus",t.query.status),t.getPage())},!0),c.get().$promise.then(function(e){t.faxAccounts=e.rows}).catch(function(t){console.error(t)}),l.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)}),t.gridOptions={exporterCsvFilename:"fax_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>           <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT',           'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING',           'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED',           'icon-close font-red': row.entity.lastEvent === 'FAILED',           'icon-question': !row.entity.lastEvent}\">           </span>           </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"contact",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:p.DESC}},{name:"action",cellTemplate:'<div>           <a class="btn btn-icon-only font-green" data-ng-hide="row.entity.waiting" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.contact)"><i class="fa fa-fax" aria-hidden="true"></i></a>           <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin" data-ng-click="grid.appScope.deleteItem(row.entity.id, row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i>           </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:70,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.selection&&(t.gridApi.selection.on.rowSelectionChanged(t,function(e){e.isSelected?t.id.push(t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id):_.pull(t.id,t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id)}),t.gridApi.selection.on.rowSelectionChangedBatch(t,function(e){e[0].isSelected?t.id=_.union(t.id,_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id")):_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id").forEach(function(e){_.pull(t.id,e)})}))}},t.getPage(t.query)},t.onChanged=function(){f.set("faxTags",t.query.tags),t.getPage(t.query)},t.loadAgents=function(t){n.open({animation:!0,templateUrl:"app/channels/fax/inbox/view/view.agents.modal.html",controller:"FaxInboxViewModalAgentCtrl",resolve:{roomId:t}})},t.tagItems=function(){n.open({animation:!0,templateUrl:"app/channels/fax/inbox/view/view.tags.modal.html",controller:"FaxInboxViewModalTagCtrl",resolve:{id:function(){return t.id}}}).result.then(function(){t.gridApi.selection.clearSelectedRows(),t.id=[]})},t.deleteItem=g.confirm.delete(function(e){var n={id:e};return d.remove(n).$promise.then(function(){t.getPage(),h.show(a.instant("MESSAGE_WELL_DONE")+"!","success"),t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})}),t.deleteItems=g.confirm.delete(function(){var e={ids:t.id};return d.delete(e).$promise.then(function(){t.getPage(),h.show(a.instant("MESSAGE_WELL_DONE")+"!","success"),t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})}),t.disposeItems=function(){return n.open({animation:!0,templateUrl:"app/channels/fax/inbox/status/status.modal.html",controller:"FaxInboxStatusModalCtrl",resolve:{status:function(){return null},accountId:function(){return s.id}}}).result.then(function(e){return d.patch({id:t.id},e).$promise.then(function(){t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/fax/inbox/view/account/list/list.html",controller:"FaxInboxViewAccountListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:10}}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","FaxRoom","xAlert","roomId",function(t,e,n,a,s,i,l,o){t.initModal=function(){t.agents=[],t.item={agents:[]},s.get().$promise.then(function(e){e.rows.forEach(function(e){t.agents.push(e)})}).catch(function(t){console.error(t)}),i.query({id:o,controller:"agents"}).$promise.then(function(e){e.forEach(function(e){t.agents.push(e),t.item.agents.push(e.id)})}).catch(function(t){console.error(t)}),t.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(t){e.close(t)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(t){e.dismiss(t)}}]}},t.ok=function(){return i.update({id:o,controller:"agents",agents:t.item.agents}).$promise.then(function(){l.show(n.instant("MESSAGE_WELL_DONE"),"success"),e.close()}).catch(function(t){console.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewCtrl",["$scope","$timeout","$location","localStorageService","FaxAccount","xAlert",function(t,e,n,a,s,i){t.initView=function(){return s.get().$promise.then(function(e){var s=null;if(t.faxAccounts=e.rows,t.faxAccounts.length){var i=a.get("faxAccountId");s="/channels/fax/inbox/view/account/"+(i&&_.find(t.faxAccounts,{id:Number(i)})?i:t.faxAccounts[0].id)+"/list"}s&&n.path(s)}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.inbox.view",{url:"/view",templateUrl:"app/channels/fax/inbox/view/view.html",controller:"FaxInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalStatusCtrl",["$scope","$uibModalInstance","$translate","$stateParams","$location","FaxRoom","xAlert","id","status",function(t,e,n,a,s,i,l,o,r){t.initModal=function(){t.modal={dismissable:!0,title:"APPLICATION_STATUS",html:"<p>"+n.instant("MESSAGE_CHANGE_STATUS")+"<strong> "+r+"</strong>?</p>",status:r,buttons:[{classes:"btn btn-success",text:"APPLICATION_CONFIRM",click:function(t){return i.update({id:o},{status:r}).$promise.then(function(){l.show(n.instant("MESSAGE_STATUS_UPDATE_SUCCESS"),"success"),e.close(t)}).catch(function(t){l.error(t)})}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(t){e.dismiss(t)}}]}}}]),angular.module("xCallyShuttleApp").controller("FaxInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","FaxRoom","xAlert","id",function(t,e,n,a,s,i,l,o){console.log(o),t.initModal=function(){return t.tags=[],t.item={tags:[]},t.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{class:"btn-success",text:"APPLICATION_TAG",click:function(){var a={status:!0};return i.patch({id:o},{tags:t.item.tags}).$promise.catch(function(){a.status=!1,l.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}).finally(function(){e.close(a)})}},{class:"default",text:"APPLICATION_CANCEL",click:function(t){e.dismiss(t)}}]},s.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").factory("FaxQueue",["$resource",function(t){return t("/api/fax/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("FaxQueueListCtrl",["$scope","FaxQueue","gridOptions","Auth","$uibModal",function(t,e,n,a,s){t.initView=function(){t.Auth=a;var s={exporterCsvFilename:"fax_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"strategy"},{name:"timeout"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/channels/fax/queues/view/{{row.entity.id}}/settings",name:"settings"},{class:"green-meadow",href:"/channels/fax/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===a.getCurrentUser().role},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,s,t)},t.createItem=function(){s.open({animation:!0,templateUrl:"app/channels/fax/queue/list/list.create.modal.html",controller:"FaxQueueListCreateCtrl",size:"lg"}).result.then(function(e){console.log(e),t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("FaxQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","FaxQueue","Team","strategies",function(t,e,n,a,s,i,l){t.form={},t.strategies=l,t.item={penalty:0,agents:[]},t.getTeams=function(){return i.get({controller:"associations"}).$promise.then(function(e){t.teams=e.rows}).then(function(){ComponentsDropdowns.bindQueue(t.teams,[],function(){return{select:function(e){t.item.agents=_.union(t.item.agents,e)},deselect:function(e){t.item.agents=_.difference(t.item.agents,e)}}})}).catch(function(t){console.error(t)})},t.save=function(){return s.save(t.item).$promise.then(function(t){a.show(n.instant("MESSAGE_WELL_DONE"),"success"),e.close(t)}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.queues.list",{url:"/list",templateUrl:"app/channels/fax/queue/list/list.html",controller:"FaxQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.queues",{url:"/queues",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:39}}})}]),angular.module("xCallyShuttleApp").controller("FaxQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert","FaxQueue","Team","Auth","strategies",function(t,e,n,a,s,i,l,o,r){t.Auth=o,t.strategies=r;var c=function(){return{select:function(e){return i.save({id:t.queue.id,controller:"agents"},{agents:e,penalty:t.queue.penalty}).$promise.then(function(){t.getTeams()}).catch(function(t){console.error(t)})},deselect:function(e){return i.delete({id:t.queue.id,controller:"agents",agents:e}).$promise.then(function(){t.getTeams()}).catch(function(t){console.error(t)})}}};t.getQueue=function(){return i.get({id:a.id}).$promise.then(function(e){e.penalty=0,t.queue=e}).catch(function(t){s.error(t)})},t.updateFaxQueue=function(){return i.update({id:a.id},{name:t.queue.name,description:t.queue.description,timeout:t.queue.timeout,strategy:t.queue.strategy}).$promise.then(function(){s.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){s.error(t)})},t.getTeams=function(){return l.get({controller:"associations"}).$promise.then(function(e){return t.teams=e.rows,i.get({id:a.id,controller:"agents"}).$promise}).then(function(e){ComponentsDropdowns.bindMailQueue(t.teams,_.map(e.rows,function(t){return{id:t.id,penalty:t.UserHasFaxQueue.penalty}}),c)}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.queues.view",{url:"/view/:id",templateUrl:"app/channels/fax/queue/view/view.html",controller:"FaxQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.fax.queues.view.settings",{url:"/settings",templateUrl:"app/channels/fax/queue/view/view.settings.html"}).state("main.channels.fax.queues.view.agents",{url:"/agents",templateUrl:"app/channels/fax/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.realtime",{url:"/realtime",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:41}}})}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","FaxQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g){function h(){return d.spin("grid-spinner"),l.get(b).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.data=[],e.rows.forEach(function(t){A(t)})}).catch(function(t){i.error(t)}).finally(function(){d.stop("grid-spinner")})}function f(){s.socket.on("agent:save",function(e){e=e.newValues||e;var n=_.find(t.gridOptions.data,{agentId:e.id,isAgent:!0});n&&(n.online=_.has(e,"online")?e.online:n.online,n.lastLoginAt=_.has(e,"lastLoginAt")?e.lastLoginAt:n.lastLoginAt,n.pause=_.has(e,"faxPause")?e.faxPause:n.faxPause,n.pauseType=_.has(e,"pauseType")?e.pauseType:n.pauseType,n.lastPauseAt=_.has(e,"lastPauseAt")?e.lastPauseAt:n.lastPauseAt,n.ipaddr=_.has(e,"ipaddr")?e.ipaddr:n.ipaddr,n.port=_.has(e,"port")?e.port:n.port,n.fullcontact=_.has(e,"fullcontact")?e.fullcontact:n.fullcontact,n.useragent=_.has(e,"useragent")?e.useragent:n.useragent,n.lastms=_.has(e,"lastms")?e.lastms:n.lastms,n.internal=_.has(e,"internal")?e.internal:n.internal,_.map(t.gridOptions.data,function(t){t.isAgent||t.agentId!==e.id||(t.online=_.has(e,"online")?e.online:t.online)}))}),s.socket.on("agent:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.id})}),s.socket.on("user_has_fax_queue:save",function(e){if(_.includes(_.map(t.CurrentUser.PFaxQueues,"id"),e.FaxQueueId)||m.isAdmin()){var n=_.find(t.gridOptions.data,{agentId:e.UserId,isAgent:!0});if(n){var a=t.gridOptions.data.indexOf(n);t.gridOptions.data.splice(a+1,0,{isAgent:!1,agentId:e.UserId,queue:e.queue,queueId:e.FaxQueueId,agent:e.membername,online:n.online})}}}),s.socket.on("user_has_fax_queue:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.UserId,queueId:e.FaxQueueId})})}function A(e){t.gridOptions.data.push({isAgent:!0,agentId:e.id,agent:e.name,online:e.online,lastLoginAt:e.lastLoginAt,lastPauseAt:e.lastPauseAt,pause:e.faxPause,pauseType:e.pauseType,ipaddr:e.ipaddr,port:e.port,fullcontact:e.fullcontact,useragent:e.useragent,lastms:e.lastms,internal:e.internal,$$treeLevel:0}),e.FaxQueues&&e.FaxQueues.forEach(function(n){t.gridOptions.data.push({isAgent:!1,agentId:e.id,queue:n.name,queueId:n.id,agent:e.name,online:e.online})})}function v(){return o.get().$promise.then(function(e){t.pauses=e.rows,s.syncUpdates("pause",t.pauses)}).catch(function(t){i.error(t)})}function I(){return c.get().$promise.then(function(e){t.faxQueues=e.rows,s.syncUpdates("fax_queue",t.faxQueues)}).catch(function(t){i.error(t)})}t.faxQueues=[];var b={controller:"realtime",controller1:"fax",offset:0,limit:10};t.moment=moment,t.initAgents=function(){t.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} &lt;{{row.entity.internal}}&gt;</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"faxPause",width:300,displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.faxQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(t){var e=u.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length)}),t.gridApi.treeBase.on.rowExpanded(t,function(e){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length+e.treeNode.children.length)}),t.gridApi.treeBase.on.rowCollapsed(t,function(e){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length-e.treeNode.children.length)}),t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?b.order=null:b.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),h()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){b.offset=(t-1)*e,b.limit=e,h()}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters[0].term?b[t.name]=t.filters[0].term:delete b[t.name]}),h()})}},h(),v(),I(),g(function(){f()})};var E=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("agent"),s.unsyncUpdates("user_has_fax_queue")}),t.pause=function(e,n,s){return s&&(t.pauseType=null),r.save({name:n,agent:e.agentId,data2:e.agent,type:s||"DEFAULT PAUSE",data4:s||"DEFAULT PAUSE",channel:"fax"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.joinQueue=function(s){n.open({animation:!0,templateUrl:"app/channels/fax/realtime/view/agent/queue.modal.add.html",controller:"FaxRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(t.faxQueues,function(e){return!!_.find(t.gridOptions.data,{queue:e.name,isAgent:!1,agentId:s})})}}}).result.then(function(e){return r.save({name:"QueueAdd",agent:s,queues:_.filter(t.faxQueues,function(t){return _.includes(e.queues,t.id)}),channel:"fax",data1:s,data3:e.queues.join(","),data4:"fax"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},function(){e.info("Modal dismissed at: "+new Date)})},t.leaveQueue=function(t,e){return r.save({name:"QueueRemove",agent:t,queueId:e,channel:"fax",data1:t,data3:e,data4:"fax"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.showInfo=function(t){n.open({animation:!0,templateUrl:"app/channels/fax/realtime/view/agent/agent.modal.info.html",controller:"FaxRealtimeViewAgentInfoModalCtrl",resolve:{agent:t}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/fax/realtime/view/agent/agent.html",controller:"FaxRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(t,e,n,a){t.agent=a,t.close=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(t,e,n,a){t.queues=a,t.item={},t.save=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportFaxSession","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d){function u(){return o.spin("spinner-grid"),l.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){i.error(t)}).finally(function(){p(),o.stop("spinner-grid")})}function p(){s.socket.on("report_fax_session:save",function(e){var n=_.find(t.gridOptions.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&d(function(){_.remove(t.gridOptions.data,{id:e.id})},1e4)):e.leaveAt||t.gridOptions.data.push(e)}),s.socket.on("report_fax_session:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}t.moment=moment,t.initApplications=function(){t.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=r.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){m(t.gridOptions.data.length)})}},u()};var m=function(t){var e=t?30*t+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("report_fax_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/fax/realtime/view/application/application.html",controller:"FaxRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("FaxRealtimeViewCtrl",["$scope",function(t){t.agents=[{name:"Queues",link:"main.channels.fax.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.fax.realtime.view.agents.timeline"}],t.sessions=[{name:"Sessions",link:"main.channels.fax.realtime.view.sessions"}],t.tree={queues:[{name:"Queues",link:"main.channels.fax.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.fax.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.fax.realtime.view.sessions"}]},t.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.fax.realtime.view",{url:"/view",templateUrl:"app/channels/fax/realtime/view/view.html",controller:"FaxRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportFaxSession",["$resource",function(t){return t("/api/report/fax/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailAccount",["$resource",function(t){return t("/api/mail/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts",{url:"/accounts",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:34}}})}]),angular.module("xCallyShuttleApp").controller("MailAccountListCtrl",["$scope","$stateParams","gridOptions","MailAccount","socket",function(t,e,n,a,s){t.$on("$destroy",function(){s.unsyncUpdates("mail_server_in")}),t.initView=function(){s.socket.on("mail_server_in:save",function(e){var n=_.find(t.gridOptions.data,{id:e.MailAccountId});n&&(n.MailServerIn.state=e.state,n.MailServerIn.source=JSON.parse(e.source))});var i={exporterCsvFilename:"mail_accounts.csv",columnDefs:[{name:"name"},{name:"description"},{name:"address"},{name:"MailServerIn.state",width:100,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div>           <span data-ng-if="row.entity.MailServerIn" class="label label-sm" data-ng-class="row.entity.MailServerIn.state === \'CONNECTED\' ? \'label-success\' : \'label-danger\'">{{row.entity.MailServerIn.state}}</span>           <span data-ng-if="!row.entity.MailServerIn" class="label label-sm label-info" >{{\'APPLICATION_DISABLED\' | translate | uppercase}}</span>           </div>',displayName:"IMAP",enableSorting:!1,enableFiltering:!1},{name:"MailServerOut.state",width:110,cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span class=\"label label-sm\" data-ng-class=\"row.entity.MailServerOut.state === 'CONNECTED' ? 'label-success' : 'label-danger'\">{{row.entity.MailServerOut.state}}</span></div>",displayName:"SMTP",enableSorting:!1,enableFiltering:!1},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/mail/accounts/view/{{row.entity.id}}/settings",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(a,i,t,{accountId:e.accountId})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.list",{url:"/list",templateUrl:"app/channels/mail/account/list/list.html",controller:"MailAccountListCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailServerIn",["$resource",function(t){return t("/api/mail/servers/in/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailServerOut",["$resource",function(t){return t("/api/mail/servers/out/:id/:controller",{id:"@id"},{update:{method:"PUT"},test:{method:"GET"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionListCtrl",["$scope","gridOptions","MailAccount","$http","$translate","$stateParams",function(t,e,n,a,s,i){t.initActons=function(){var a={draggable:!0,exporterCsvFilename:"mail_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.MailQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/channels/mail/accounts/view/{{row.entity.MailAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};t.gridOptions=e.gridOptions(n,a,t,{accountId:i.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/mail/account/view/action/list/list.html",controller:"MailAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","MailQueue","MailAccount","Template","SmsAccount",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initAction=function(){return t.$application=r.application,t.$stateParams=n,t.$interval=c.interval,t.forms={},t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"ReplyMail",value:"replyMail"},{name:"SendSMS",value:"sendSms"}],t.types=[{key:"APPLICATION_REPLY",value:"reply"},{key:"APPLICATION_REPLY_TO_ALL",value:"replyAll"}],m.get({accountId:n.accountId,controller:"applications",id:n.actionId}).$promise.then(function(e){if(t.application=e,t.application.alwaysTime=!1,t.application.IntervalId)t.application.intType="list";else switch(t.application.interval){case"*,*,*,*":t.application.intType="always";break;default:t.application.intType="custom"}if("always"===t.application.intType||"custom"===t.application.intType){var n=t.application.interval.split(",");"*"===n[0]?t.application.alwaysTime=!0:(t.application.t_from=moment(new Date),t.application.t_to=moment(new Date),t.application.t_from.hour(n[0].split("-")[0].split(":")[0]),t.application.t_from.minute(n[0].split("-")[0].split(":")[1]),t.application.t_to.hour(n[0].split("-")[1].split(":")[0]),t.application.t_to.minute(n[0].split("-")[1].split(":")[1])),"*"===n[1]?(t.application.wd_from="always",t.application.wd_to="always"):(t.application.wd_from=n[1].split("-")[0],t.application.wd_to=n[1].split("-")[1]),"*"===n[2]?(t.application.md_from="always",t.application.md_to="always"):(t.application.md_from=n[2].split("-")[0],t.application.md_to=n[2].split("-")[1]),"*"===n[3]?(t.application.m_from="always",t.application.m_to="always"):(t.application.m_from=n[3].split("-")[0],t.application.m_to=n[3].split("-")[1])}t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})}).catch(function(t){console.error(t),i.error(t)})},t.getQueues=function(){return p.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){console.error(t)})},t.getAgents=function(){return d.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){console.error(t)})},t.getIntervals=function(){return u.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){console.error(t)})},t.getTemplates=function(){return g.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.getMailAccounts=function(){return m.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})},t.getSmsAccounts=function(){return h.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.updateItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var l,o,r,c,d;l=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(o=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(o+="-"+t.application.wd_to)):o="*",t.application.md_from&&"always"!==t.application.md_from?(r=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(r+="-"+t.application.md_to)):r="*",t.application.m_from&&"always"!==t.application.m_from?(c=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(c+="-"+t.application.m_to)):c="*",d=l+","+o+","+r+","+c,t.application.interval=d,t.application.IntervalId=null}return m.update({accountId:n.accountId,controller:"applications",id:n.actionId},t.application).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success"),s.path("/channels/mail/accounts/view/"+n.accountId+"/actions/list")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/mail/account/view/action/view/view.html",controller:"MailAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewActionWizardCtrl",["$scope","$http","Agent","Template","MailQueue","MailAccount","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","SmsAccount",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initWizard=function(){t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"ReplyMail",value:"replyMail"},{name:"SendSMS",value:"sendSms"}],t.types=[{key:"APPLICATION_REPLY",value:"reply"},{key:"APPLICATION_REPLY_TO_ALL",value:"replyAll"}],t.$application=m.application,t.$stateParams=o,t.$interval=g.interval,t.forms={},t.application={alwaysTime:!0},t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})},t.getQueues=function(){return s.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){console.error(t)})},t.getAgents=function(){return n.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){console.error(t)})},t.getTemplates=function(){return a.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.getSmsAccounts=function(){return h.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.getMailAccounts=function(){return i.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})},t.getIntervals=function(){return l.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){console.error(t)})},t.createItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var n,a,s,l,r;n=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(a=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(a+="-"+t.application.wd_to)):a="*",t.application.md_from&&"always"!==t.application.md_from?(s=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(s+="-"+t.application.md_to)):s="*",t.application.m_from&&"always"!==t.application.m_from?(l=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(l+="-"+t.application.m_to)):l="*",r=n+","+a+","+s+","+l,t.application.interval=r,t.application.IntervalId=null}return i.save({accountId:o.accountId,controller:"applications"},t.application).$promise.then(function(){c.path("/channels/mail/accounts/view/"+o.accountId+"/actions/list")}).catch(function(t){console.error(t)})},t.formValidation=function(t){return t},t.next=function(){u.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/mail/account/view/action/wizard/wizard.html",controller:"MailAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("MailDisposition",["$resource",function(t){return t("/api/mail/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","MailAccount","id","xAlert","$translate",function(t,e,n,a,s,i){t.ok=function(){return n.save({accountId:a,controller:"dispositions"},{name:t.name}).$promise.then(function(t){e.close(t)}).catch(function(t){s.show(i.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","MailAccount","xAlert",function(t,e,n,a,s,i){t.initView=function(){return s.get({accountId:e.accountId,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.updateDisposition=function(t,n){return s.update({accountId:e.accountId,controller:"dispositions",id:t},{name:n}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.deleteDisposition=function(n){return console.log("delete"),s.remove({accountId:e.accountId,controller:"dispositions",id:n}).$promise.then(function(){_.remove(t.dispositions,{id:n})}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.addDisposition=function(){return n.open({animation:!0,templateUrl:"app/channels/mail/account/view/disposition/modal/add.modal.html",controller:"MailInboxViewModaDispositionAddCtrl",resolve:{id:function(){return e.accountId}}}).result.then(function(e){e&&t.dispositions.push(e)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.view.dispositions",{url:"/dispositions",controller:"MailAccountDispositionViewCtrl",templateUrl:"app/channels/mail/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountHooksViewCtrl",["$scope","MailAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(t,e,n,a,s,i,l,o,r,c){t.account={},t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.CONST_TIMEOUT=3e4,t.initView=function(){t.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],n.get().$promise.then(function(e){t.pauses=e.rows}).catch(function(t){r.error(t)}),e.get({id:s.accountId}).$promise.then(function(e){t.account=e,t.account.actions.length<1&&t.account.actions.push({action:"pause",enabled:!1,type:null})}).catch(function(t){r.error(t)})},t.resetActionData=function(t){t.type=null},t.updateItemMailAccount=function(){return console.log(t.account),e.update({id:s.accountId},t.account).$promise.then(function(){r.show(l.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){r.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.view.hooks",{url:"/hooks",controller:"MailAccountHooksViewCtrl",templateUrl:"app/channels/mail/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountOtherViewCtrl",["$scope","$rootScope","$stateParams","$translate","xAlert","MailAccount",function(t,e,n,a,s,i){t.initView=function(){return t.options={language:e.language,allowedContent:!0,entities:!1,skin:"office2013",contentsCss:"/assets/css/global/richparams.css",extraPlugins:"autogrow",autoGrow_minHeight:450,disableNativeSpellChecker:!1,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},{name:"document",items:["Source"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]},"/",{name:"motion",items:["voice","chat","mail"]}]},i.get({id:n.accountId}).$promise.then(function(e){console.log(e),t.account=e}).catch(function(t){s.error(t)})},t.updateItemMailAccount=function(){return i.update({id:n.accountId},{whiteLabel:t.account.whiteLabel,signature:t.account.signature}).$promise.then(function(){s.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){s.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.view.other",{url:"/other",controller:"MailAccountOtherViewCtrl",templateUrl:"app/channels/mail/account/view/other/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountSettingViewCtrl",["$scope","$http","$stateParams","$translate","$location","$timeout","socket","xAlert","MailAccount","MailMessage","MailServerIn","MailServerOut","usSpinnerService","List","Template",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g){t.imapDisabled=!1,t.smtpDisabled=!1,t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.CONST_TIMEOUT=3e4,t.$on("$destroy",function(){l.socket.removeAllListeners("mail_message:sent"),l.socket.removeAllListeners("mail_message:failed"),l.socket.removeAllListeners("mail_server_in:state"),l.socket.removeAllListeners("mail_server_out:state")}),t.initView=function(){return l.socket.on("mail_message:sent",function(){o.show(a.instant("MESSAGE_WELL_DONE"),"success"),p.stop("spinner-grid")}),l.socket.on("mail_message:failed",function(){o.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger"),p.stop("spinner-grid")}),m.get().$promise.then(function(e){t.lists=e.rows}).catch(function(t){console.error(t)}),g.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)}),r.get({id:n.accountId}).$promise.then(function(e){t.account=e,t.account.MailServerIn&&(t.account.MailServerIn.source=JSON.parse(t.account.MailServerIn.source),t.account.MailServerOut.source=JSON.parse(t.account.MailServerOut.source),l.socket.on("mail_server_in:state",function(e){if(e.id===t.account.MailServerIn.id)switch(t.account.MailServerIn.state=e.state,t.account.MailServerIn.source=JSON.parse(e.source),e.state){case"CONNECTING":break;default:p.stop("spinner-grid"),t.imapDisabled=!1}})),l.socket.on("mail_server_out:state",function(e){if(e.id===t.account.MailServerOut.id)switch(t.account.MailServerOut.state=e.state,t.account.MailServerOut.source=JSON.parse(e.source),e.state){case"CONNECTING":break;default:p.stop("spinner-grid"),t.smtpDisabled=!1}})}).catch(function(t){o.error(t)})},t.updateItemMailAccount=function(){return r.update({id:n.accountId},{name:t.account.name,description:t.account.description,address:t.account.address,fidelity:t.account.fidelity,timeout:t.account.timeout,service:t.account.service,ListId:t.account.ListId,TemplateId:t.account.TemplateId}).$promise.then(function(){o.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})},t.updateItemMailServerIn=function(){var e=angular.copy(t.account.MailServerIn);return delete e.source,p.spin("spinner-grid"),t.imapDisabled=!0,d.update({id:e.id},e).$promise.then(function(){o.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})},t.updateItemMailServerOut=function(){var e=angular.copy(t.account.MailServerOut);return delete e.source,p.spin("spinner-grid"),t.smtpDisabled=!0,u.update({id:e.id},e).$promise.then(function(){o.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})},t.test=function(){return p.spin("spinner-grid"),t.smtpDisabled=!0,u.update({id:t.account.MailServerOut.id},{state:"CONNECTING"}).$promise.catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.view.settings",{url:"/settings",controller:"MailAccountSettingViewCtrl",templateUrl:"app/channels/mail/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("MailAccountViewCtrl",["$scope","$stateParams","MailAccount",function(t,e,n){t.initView=function(){return n.get({id:e.accountId}).$promise.then(function(e){t.account=e}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.view",{url:"/view/:accountId",controller:"MailAccountViewCtrl",templateUrl:"app/channels/mail/account/view/view.html",resolve:{deps:["$ocLazyLoad",function(t){return t.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("MailAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","MailAccount",function(t,e,n,a,s,i,l){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initWizard=function(){t.forms={},t.item={MailServerIn:{port:993,ssl:!0,delete:!1,protocol:"IMAP",filter:"UNSEEN",mailbox:"INBOX",keepalive:!0,authTimeout:5,connTimeout:10},MailServerOut:{port:465,ssl:!0}}},t.goNext=function(){s.wizard().next()},t.formValidation=function(t){return t},t.createItem=function(){return l.save(t.item).$promise.then(function(){n.path("/channels/mail/accounts/list")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/mail/account/wizard/wizard.html",controller:"MailAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.inbox",{url:"/inbox",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:36}}})}]),angular.module("xCallyShuttleApp").controller("MailInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","uniqueId","ReportSquare",function(t,e,n,a,s,i,l){t.data=null,t.initInfo=function(){l.get({controller:"show",uniqueid:i}).$promise.then(function(e){t.data={id:e.id,channel:e.channel,uniqueid:e.uniqueid,callerid:e.callerid,calleridname:e.calleridname,project_name:e.project_name,extension:e.extension}}).catch(function(e){switch(e.status){case 404:t.data=null;break;default:s.error(e)}})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").directive("mailMessage",["$rootScope","$translate","MailMessage","List","xAlert","Lightbox","$uibModal",function(t,e,n,a,s,i,l){return{restrict:"E",scope:{message:"=",listId:"="},templateUrl:"app/channels/mail/inbox/message/message.directive.html",link:function(o){o.openPreview=function(t){i.openModal(["api/mail/attachments/"+t],0)},o.openContact=function(n){if(o.listId)return a.save({listId:o.listId,controller:"contacts"},{email:n}).$promise.then(function(e){var n=_.find(t.$root.workspaces,{contactID:e.id});n?n.active=!0:t.$root.workspaces.push({active:!0,class:"icon-user",contactID:e.id,name:e.email,type:"contact"})}).catch(function(t){console.error(t)});s.show(e.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},o.info=function(t){l.open({animation:!0,templateUrl:"app/channels/mail/inbox/message/info.modal.html",controller:"MailInboxInfoModalCtrl",resolve:{uniqueId:function(){return t}}})},o.retry=function(t){return n.update({id:t,status:"SENDING"}).$promise.catch(function(t){console.error(t)})}}}}]),angular.module("xCallyShuttleApp").directive("mailNote",["$translate","Modal","Auth","MailMessage","xAlert",function(t,e,n,a,s){return{restrict:"E",scope:{message:"="},templateUrl:"app/channels/mail/inbox/note/note.directive.html",link:function(i){i.Auth=n,i.deleteNote=e.confirm.delete(function(){return a.remove({id:i.message.id}).$promise.then(function(){s.show(t.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){s.error(t)})})}}}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalNoteCtrl",["$scope","$uibModalInstance","$translate","id","MailRoom","xAlert",function(t,e,n,a,s,i){t.initModal=function(){t.item={}},t.ok=function(){return s.save({id:a,controller:"messages",controller2:"send"},{text:t.item.text,status:"NOTE"}).$promise.then(function(){i.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(){i.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}).finally(function(){e.close()})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").directive("mailRoom",["$rootScope","$cookieStore","$translate","$uibModal","$timeout","Tag","CannedAnswer","MailAttachment","List","MailAccount","MailRoom","MailMessage","FileUploader","xAlert","usSpinnerService","socket","Auth",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f){return{restrict:"E",scope:{workspace:"="},templateUrl:"app/channels/mail/inbox/room/room.directive.html",link:function(s){function A(t,e){var n="";return e&&e.signature&&(n+="<br>"+e.signature),t&&(n+="<br><blockquote>"+t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/\n/g,"<br>")+"</blockquote>"),n}s.onCKReady=function(t){s.ckEditorInstance=t},s.$on("$destroy",function(){});var v=[];s.user=f.getCurrentUser(),s.getContacts=function(t){return s.listId?r.get({listId:s.listId,controller:"contacts",email:t}).$promise.then(function(t){return t.rows}).catch(function(t){console.error(t)}):[]},s.setList=function(t){s.listId=t},s.options={language:t.language,allowedContent:!0,entities:!1,skin:"office2013",extraPlugins:"autogrow",autoGrow_minHeight:600,autoGrow_maxHeight:600,disableNativeSpellChecker:!1,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]}]},s.expanded=!0,s.modelOptions={debounce:{default:500,blur:250},getterSetter:!0},s.panelLeft=null,s.panelRight="col-md-12",s.forms={},s.form={from:[],to:s.workspace.data&&s.workspace.data.to?[s.workspace.data.to]:[],cc:[],bcc:[],tags:[],html:"",disabled:!1},h.socket.on("mail_message:remove",function(t){_.remove(s.mailRoom.MailMessages,{id:t.id})}),h.socket.on("mail_message:save",function(t){if(s.workspace.id&&t.MailRoomId==s.workspace.id)return s.workspace.active||s.workspace.unread++,u.get({id:t.id}).$promise.then(function(t){s.mailRoom||(s.mailRoom={MailMessages:[]});var e=_.findIndex(s.mailRoom.MailMessages,{id:t.id});e>-1?_.merge(s.mailRoom.MailMessages[e],t):s.mailRoom.MailMessages.unshift(t),s.panelLeft="col-md-6",s.panelRight="col-md-6"}).catch(function(t){console.error(t)})});var I=s.uploader=new p({url:"api/mail/attachments",autoUpload:!0,withCredentials:!0,headers:{Authorization:"Bearer "+e.get("token")}});return I.onErrorItem=function(){m.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},I.removeFromQueue=function(t){var e=this;return o.delete({id:t.basename}).$promise.then(function(){var n=e.getIndexOfItem(t),a=e.queue[n];a.isUploading&&a.cancel(),e.queue.splice(n,1),a._destroy(),e.progress=e._getTotalProgress(),v=_.reject(v,{basename:t.basename})}).catch(function(){m.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},I.onSuccessItem=function(t,e){var n={size:e.size,path:e.path,name:e.name,basename:e.basename,type:e.type};t=_.merge(t,n),v.push(n)},s.openRoom=function(e){var n=_.find(t.workspaces,{id:e,type:"mailRoom"});n?n.active=!0:t.workspaces.push({id:e,type:"mailRoom",class:"icon-envelope",active:!0})},s.togglePanelLeft=function(){s.panelLeft?(s.panelLeft=null,s.panelRight="col-md-12"):(s.panelLeft="col-md-6",s.panelRight="col-md-6")},s.onSelectAnswer=function(){s.ckEditorInstance.insertHtml(s.modelOptions.selectedAnswer),delete s.modelOptions.selectedAnswer},s.getAnswers=function(t){return l.get({key:t}).$promise.then(function(t){return _.map(t.rows,"value")})},s.closeRoom=function(){return a.open({animation:!0,templateUrl:"app/channels/mail/inbox/status/status.modal.html",controller:"MailInboxStatusModalCtrl",resolve:{accountId:function(){return s.mailRoom.MailAccountId}}}).result.then(function(t){return d.patch({id:s.workspace.id},t).$promise.catch(function(t){m.error(t)})})},s.loadNote=function(){return a.open({animation:!0,templateUrl:"app/channels/mail/inbox/note/note.modal.html",controller:"MailInboxViewModalNoteCtrl",resolve:{id:function(){return s.workspace.id}}})},s.onChanged=function(){return d.update({id:s.workspace.id},{tags:s.form.tags}).$promise.catch(function(t){console.error(t)})},s.sendMail=function(){g.spin("spinner-grid"),s.form.disabled=!0;var t={},e={subject:s.form.subject||(s.mailRoom?s.mailRoom.subject:null),from:s.form.from,to:_.map(s.form.to,"email"),cc:_.map(s.form.cc,"email"),bcc:_.map(s.form.bcc,"email"),html:s.form.html||null,text:s.form.text||null,inReplyTo:t.messageId||null,status:"SENDING",MailAttachments:v};return s.mailRoom?(t=_.last(s.mailRoom.MailMessages,{status:"RECEIVED"}),e.inReplyTo=t.messageId||null,d.save({id:s.workspace.id,controller:"messages",controller2:"send"},e).$promise.then(function(){s.form.html="",I.queue=[],v=[],m.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(){m.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}).finally(function(){g.stop("spinner-grid"),s.form.disabled=!1})):u.save(e).$promise.then(function(t){m.show(n.instant("MESSAGE_MAIL_MESSAGE_SEND_SUCCESS"),"success"),s.form.html="",I.queue=[],v=[],s.workspace.id=t.id,s.workspace.name=t.subject,s.mailRoom=t,s.expanded=!1,h.socket.on("mail_room:save",function(t){s.workspace.id&&t.id===s.workspace.id&&_.merge(s.mailRoom,t)})}).catch(function(){m.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}).finally(function(){g.stop("spinner-grid"),s.form.disabled=!1})},i.get().$promise.then(function(t){s.tags=_.map(t.rows,"name")}).catch(function(t){console.error(t)}),c.get().$promise.then(function(t){s.mailAccounts=t.rows}).catch(function(t){console.error(t)}),s.workspace.id?(s.panelLeft="col-md-6",s.panelRight="col-md-6",d.get({id:s.workspace.id}).$promise.then(function(t){s.mailRoom=t,s.expanded=!1,s.listId=t.MailAccount.ListId,s.workspace.name=t.subject||"No subject",s.form.from.push(t.MailAccount.address),s.form.tags=t.tags;var e=_.findLast(s.mailRoom.MailMessages,{status:"RECEIVED"});return e?(s.form.to=_.map(_.union(e.from,e.to),function(t){return{email:t}}),s.form.to=_.remove(s.form.to,function(e){return e.email!==t.MailAccount.address}),s.form.cc=_.map(e.cc,function(t){return{email:t}}),s.form.bcc=_.map(e.bcc,function(t){return{email:t}}),s.form.subject="Re: "+(e.subject||"No subject"),s.form.html=A(e.text,t.MailAccount)):s.form.html=A("",t.MailAccount),h.socket.on("mail_room:save",function(t){t.id===s.workspace.id&&_.merge(s.mailRoom,t)}),t}).catch(function(t){console.error(t)}).finally(function(){g.stop("spinner-grid"),s.form.disabled=!1})):(s.panelLeft=null,s.panelRight="col-md-12",s.workspace.mailAccountId?c.get({id:s.workspace.mailAccountId}).$promise.then(function(t){s.form.from.push(t.address),s.form.html=A("",t),s.listId=t.ListId,g.stop("spinner-grid")}).catch(function(t){g.stop("spinner-grid"),console.error(t)}):void g.stop("spinner-grid"))}}}]),angular.module("xCallyShuttleApp").controller("MailInboxStatusModalCtrl",["$scope","$uibModalInstance","MailAccount","accountId",function(t,e,n,a){t.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_MAIL"},t.initDisposition=function(){return t.item={disposition:null,status:"CLOSED"},n.get({accountId:a,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t)})},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:9}}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","uibButtonConfig","usSpinnerService","socket","MailAccount","MailRoom","uiGridConstants","Auth","Modal","xAlert","localStorageService",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f){t.openRoom=function(e,n,a){if(!a){var i=_.find(t.workspaces,{id:e,type:"mailRoom"});if(i&&e?i.active=!0:t.workspaces.push({id:e,subject:n,type:"mailRoom",class:"icon-envelope",active:!0,mailAccountId:s.id}),e&&"agent"===m.getCurrentUser().role&&"PENDING"!==t.query.status&&"CLOSED"!==t.query.status)return u.patch({id:e},{status:"OPEN",openReason:"agent"}).$promise.catch(function(t){console.error(t)})}},t.getPage=function(){r.spin("spinner-grid");var e={accountId:s.id,controller:"rooms"};return t.query&&_.merge(e,t.query),d.query(e).$promise.then(function(e){f.set("mailAccountId",s.id),t.gridOptions.data=e,c.socket.on("mail_room:save",function(e){if(e.MailAccountId==s.id){var n=_.find(t.gridOptions.data,{id:e.id});n?n.status!==e.status?_.remove(t.gridOptions.data,{id:e.id}):_.merge(n,e):t.query.status!==e.status||t.query.tags.length&&!_.isEqual(t.query.tags,e.tags)||t.gridOptions.data.push(e)}}),c.socket.on("mail_room:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}).catch(function(t){h.error(t)}).finally(function(){r.stop("spinner-grid")})},t.initView=function(){o.activeClass="green-haze",t.id=[],t.isAdmin=m.isAdmin(),t.isAgent=m.isAgent(),t.uncheckable=!1,t.query={status:f.get("mailStatus")?f.get("mailStatus"):"NEW",tags:f.get("mailTags")?f.get("mailTags"):[]},t.$watch("query.status",function(e,n){e!==n&&(f.set("mailStatus",t.query.status),t.getPage())},!0),d.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)}),l.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)}),t.gridOptions={exporterCsvFilename:"mail_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>             <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT',             'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING',             'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED',             'icon-close font-red': row.entity.lastEvent === 'FAILED',             'icon-question': !row.entity.lastEvent}\">             </span>             </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"attachment",displayName:"",headerCellTemplate:'<i class="icon-paper-clip" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.attachment ? 'icon-paper-clip' : ''\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!0,enableFiltering:!0,enableColumnMenu:!1},{name:"subject"},{name:"from",cellClass:"text-center"},{name:"disposition",displayName:"APPLICATION_DISPOSITION",headerCellFilter:"translate"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:p.DESC}},{name:"action",cellTemplate:'<div>             <a class="btn btn-icon-only" data-ng-disabled="row.entity.waiting" data-ng-class="row.entity.waiting ? \'font-blue\' : \'font-green\'" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.subject, row.entity.waiting)"><i class="fa" data-ng-class="row.entity.waiting ? \'fa-repeat\' : \'fa-envelope\' " aria-hidden="true"></i></a>             <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin && !row.entity.waiting" data-ng-click="grid.appScope.deleteItem(row.entity.id, row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i></a>             </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:70,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.selection&&(t.gridApi.selection.on.rowSelectionChanged(t,function(e){e.isSelected?t.id.push(t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id):_.pull(t.id,t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id)}),t.gridApi.selection.on.rowSelectionChangedBatch(t,function(e){e[0].isSelected?t.id=_.union(t.id,_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id")):_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id").forEach(function(e){_.pull(t.id,e)})}))}},t.getPage()},t.onChanged=function(){f.set("mailTags",t.query.tags),t.getPage()},t.tagItems=function(){return n.open({animation:!0,templateUrl:"app/channels/mail/inbox/view/view.tags.modal.html",controller:"MailInboxViewModalTagCtrl",resolve:{id:function(){return t.id}}}).result.then(function(){t.gridApi.selection.clearSelectedRows(),t.id=[]})},t.disposeItems=function(){return n.open({animation:!0,templateUrl:"app/channels/mail/inbox/status/status.modal.html",controller:"MailInboxStatusModalCtrl",resolve:{status:function(){return null},accountId:function(){return s.id}}}).result.then(function(e){return u.patch({id:t.id},e).$promise.then(function(){t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})})},t.deleteItem=g.confirm.delete(function(e){var n={id:e};return u.remove(n).$promise.then(function(){t.getPage(),h.show(a.instant("MESSAGE_WELL_DONE")+"!","success"),t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})}),t.deleteItems=g.confirm.delete(function(){var e={ids:t.id};return u.delete(e).$promise.then(function(){t.getPage(),h.show(a.instant("MESSAGE_WELL_DONE")+"!","success"),t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/mail/inbox/view/account/list/list.html",controller:"MailInboxViewAccountListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:9}}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","Auth","MailRoom","xAlert","roomId",function(t,e,n,a,s,i,l,o,r){var c=[];t.initModal=function(){return t.agents=[],t.item={agents:[]},s.get().$promise.then(function(e){for(var n=0;n<e.rows.length;n++)t.agents.push(e.rows[n]);return l.query({id:r,controller:"agents"}).$promise}).then(function(e){for(var n=0;n<e.length;n++)i.isAgent()||t.item.agents.push(e[n]),c.push(e[n].id)}).catch(function(t){console.error(t)})},t.ok=function(){return c=i.isAgent()?_.union(c,t.item.agents):angular.copy(t.item.agents),l.update({id:r,controller:"agents",agents:c}).$promise.then(function(){o.show(n.instant("MESSAGE_WELL_DONE"),"success"),e.close()}).catch(function(t){console.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailInboxViewCtrl",["$scope","$timeout","$location","localStorageService","MailAccount",function(t,e,n,a,s){t.initView=function(){return s.get().$promise.then(function(e){var s=null;if(t.mailAccounts=e.rows,t.mailAccounts.length){var i=a.get("mailAccountId");s="/channels/mail/inbox/view/account/"+(i&&_.find(t.mailAccounts,{id:Number(i)})?i:t.mailAccounts[0].id)+"/list"}s&&n.path(s)}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.inbox.view",{url:"/view",templateUrl:"app/channels/mail/inbox/view/view.html",controller:"MailInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","MailRoom","xAlert","id",function(t,e,n,a,s,i,l,o){t.initModal=function(){return t.tags=[],t.item={tags:[]},t.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{class:"btn-success",text:"APPLICATION_TAG",click:function(){var a={status:!0};return i.patch({id:o},{tags:t.item.tags}).$promise.catch(function(){a.status=!1,l.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}).finally(function(){e.close(a)})}},{class:"default",text:"APPLICATION_CANCEL",click:function(t){e.dismiss(t)}}]},s.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").controller("MailInboxViewModalTemplateCtrl",["$scope","$uibModalInstance","Template",function(t,e,n){t.initModal=function(){return t.item={},n.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail",{url:"/mail",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:9}}})}]),angular.module("xCallyShuttleApp").factory("MailReport",["$resource",function(t){return t("/api/report/mails/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("MailRoom",["$resource",function(t){return t("/api/mail/rooms/:id/:controller/:controller2",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("MailAttachment",["$resource",function(t){return t("/api/mail/attachments/:id/:controller",{id:"@id"})}]),angular.module("xCallyShuttleApp").factory("MailMessage",["$resource",function(t){return t("/api/mail/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MailQueueListCtrl",["$scope","MailQueue","gridOptions","$uibModal","Auth",function(t,e,n,a,s){t.initView=function(){t.Auth=s;var a={exporterCsvFilename:"voice_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"timeout"},{name:"strategy"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/channels/mail/queues/view/{{row.entity.id}}/settings",name:"settings"},{class:"green-meadow",href:"/channels/mail/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===s.getCurrentUser().role},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.createItem=function(){a.open({animation:!0,templateUrl:"app/channels/mail/queue/list/list.create.modal.html",controller:"MailQueueListCreateCtrl",size:"lg"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("MailQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","MailQueue","Team","strategies",function(t,e,n,a,s,i,l){t.form={},t.strategies=l,t.item={penalty:0,agents:[]},t.getTeams=function(){return i.get({controller:"associations"}).$promise.then(function(e){t.teams=e.rows}).then(function(){ComponentsDropdowns.bindQueue(t.teams,[],function(){return{select:function(e){t.item.agents=_.union(t.item.agents,e)},deselect:function(e){t.item.agents=_.difference(t.item.agents,e)}}})}).catch(function(t){console.error(t)})},t.save=function(){return s.save(t.item).$promise.then(function(t){e.close(t)}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.queues.list",{url:"/list",templateUrl:"app/channels/mail/queue/list/list.html",controller:"MailQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("MailQueue",["$resource",function(t){return t("/api/mail/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.queues",{url:"/queues",template:"<div ui-view></div>",abstract:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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"]})}]},data:{permissions:{only:["admin","user"],redirectTo:"landing",id:35}}})}]),angular.module("xCallyShuttleApp").controller("MailQueueViewCtrl",["$scope","$http","$translate","$stateParams","xAlert","Team","MailQueue","Auth","strategies",function(t,e,n,a,s,i,l,o,r){t.Auth=o,t.strategies=r;var c=function(){return{select:function(e){return l.save({id:t.queue.id,controller:"agents"},{agents:e,penalty:t.queue.penalty}).$promise.then(function(){t.getTeams()}).catch(function(t){console.error(t)})},deselect:function(e){return l.delete({id:t.queue.id,controller:"agents",agents:e}).$promise.then(function(){t.getTeams()}).catch(function(t){console.error(t)})}}};t.getQueue=function(){return l.get({id:a.id}).$promise.then(function(e){e.penalty=0,t.queue=e}).catch(function(t){console.error(t)})},t.updateMailQueue=function(){return l.update({id:a.id},{name:t.queue.name,description:t.queue.description,timeout:t.queue.timeout,strategy:t.queue.strategy}).$promise.then(function(){s.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){s.error(t)})},t.getTeams=function(){return i.get({controller:"associations"}).$promise.then(function(e){return t.teams=e.rows,l.get({id:a.id,controller:"agents"}).$promise}).then(function(e){ComponentsDropdowns.bindMailQueue(t.teams,_.map(e.rows,function(t){return{id:t.id,penalty:t.UserHasMailQueue.penalty}}),c)}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.queues.view",{url:"/view/:id",templateUrl:"app/channels/mail/queue/view/view.html",controller:"MailQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.mail.queues.view.settings",{url:"/settings",templateUrl:"app/channels/mail/queue/view/view.settings.html"}).state("main.channels.mail.queues.view.agents",{url:"/agents",templateUrl:"app/channels/mail/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.realtime",{url:"/realtime",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:37}}})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","MailQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g){function h(){return d.spin("grid-spinner"),l.get(b).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.data=[],e.rows.forEach(function(t){A(t)})}).catch(function(t){i.error(t)}).finally(function(){d.stop("grid-spinner")})}function f(){s.socket.on("agent:save",function(e){e=e.newValues||e;var n=_.find(t.gridOptions.data,{agentId:e.id,isAgent:!0});n&&(n.online=_.has(e,"online")?e.online:n.online,n.lastLoginAt=_.has(e,"lastLoginAt")?e.lastLoginAt:n.lastLoginAt,n.pause=_.has(e,"mailPause")?e.mailPause:n.mailPause,n.pauseType=_.has(e,"pauseType")?e.pauseType:n.pauseType,n.lastPauseAt=_.has(e,"lastPauseAt")?e.lastPauseAt:n.lastPauseAt,n.ipaddr=_.has(e,"ipaddr")?e.ipaddr:n.ipaddr,n.port=_.has(e,"port")?e.port:n.port,n.fullcontact=_.has(e,"fullcontact")?e.fullcontact:n.fullcontact,n.useragent=_.has(e,"useragent")?e.useragent:n.useragent,n.lastms=_.has(e,"lastms")?e.lastms:n.lastms,n.internal=_.has(e,"internal")?e.internal:n.internal,_.map(t.gridOptions.data,function(t){t.isAgent||t.agentId!==e.id||(t.online=_.has(e,"online")?e.online:t.online)}))}),s.socket.on("agent:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.id})}),s.socket.on("user_has_mail_queue:save",function(e){if(_.includes(_.map(t.CurrentUser.PMailQueues,"id"),e.MailQueueId)||m.isAdmin()){var n=_.find(t.gridOptions.data,{agentId:e.UserId,isAgent:!0});if(n){var a=t.gridOptions.data.indexOf(n);t.gridOptions.data.splice(a+1,0,{isAgent:!1,agentId:e.UserId,queue:e.queue,queueId:e.MailQueueId,agent:e.membername,online:n.online})}}}),s.socket.on("user_has_mail_queue:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.UserId,queueId:e.MailQueueId})})}function A(e){t.gridOptions.data.push({isAgent:!0,agentId:e.id,agent:e.name,online:e.online,lastLoginAt:e.lastLoginAt,lastPauseAt:e.lastPauseAt,pause:e.mailPause,pauseType:e.pauseType,ipaddr:e.ipaddr,port:e.port,fullcontact:e.fullcontact,useragent:e.useragent,lastms:e.lastms,internal:e.internal,$$treeLevel:0}),e.MailQueues&&e.MailQueues.forEach(function(n){t.gridOptions.data.push({isAgent:!1,agentId:e.id,queue:n.name,queueId:n.id,agent:e.name,online:e.online})})}function v(){return o.get().$promise.then(function(e){t.pauses=e.rows,s.syncUpdates("pause",t.pauses)}).catch(function(t){i.error(t)})}function I(){return c.get().$promise.then(function(e){t.mailQueues=e.rows,s.syncUpdates("mail_queue",t.mailQueues)}).catch(function(t){i.error(t)})}t.mailQueues=[];var b={controller:"realtime",controller1:"mail",offset:0,limit:10};t.moment=moment,t.initAgents=function(){t.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} &lt;{{row.entity.internal}}&gt;</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"mailPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.mailQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(t){var e=u.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length)}),t.gridApi.treeBase.on.rowExpanded(t,function(e){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length+e.treeNode.children.length)}),t.gridApi.treeBase.on.rowCollapsed(t,function(e){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length-e.treeNode.children.length)}),t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?b.order=null:b.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),h()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){b.offset=(t-1)*e,b.limit=e,h()}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters[0].term?b[t.name]=t.filters[0].term:delete b[t.name]}),h()})}},h(),v(),I(),g(function(){f()})};var E=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("agent"),s.unsyncUpdates("user_has_mail_queue")}),t.pause=function(e,n,s){return s&&(t.pauseType=null),r.save({name:n,agent:e.agentId,data2:e.agent,type:s||"DEFAULT PAUSE",data4:s||"DEFAULT PAUSE",channel:"mail"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.joinQueue=function(s){n.open({animation:!0,templateUrl:"app/channels/mail/realtime/view/agent/queue.modal.add.html",controller:"MailRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(t.mailQueues,function(e){return!!_.find(t.gridOptions.data,{queue:e.name,isAgent:!1,agentId:s})})}}}).result.then(function(e){return r.save({name:"QueueAdd",agent:s,queues:_.filter(t.mailQueues,function(t){return _.includes(e.queues,t.id)}),channel:"mail",data1:s,data3:e.queues.join(","),data4:"mail"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},function(){e.info("Modal dismissed at: "+new Date)})},t.leaveQueue=function(t,e){return r.save({name:"QueueRemove",agent:t,queueId:e,channel:"mail",data1:t,data3:e,data4:"mail"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.showInfo=function(t){n.open({animation:!0,templateUrl:"app/channels/mail/realtime/view/agent/agent.modal.info.html",controller:"MailRealtimeViewAgentInfoModalCtrl",resolve:{agent:t}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/mail/realtime/view/agent/agent.html",controller:"MailRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(t,e,n,a){t.agent=a,t.close=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(t,e,n,a){t.queues=a,t.item={},t.save=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportMailSession","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d){function u(){return o.spin("spinner-grid"),l.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){i.error(t)}).finally(function(){p(),o.stop("spinner-grid")})}function p(){s.socket.on("report_mail_session:save",function(e){var n=_.find(t.gridOptions.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&d(function(){_.remove(t.gridOptions.data,{id:e.id})},1e4)):e.leaveAt||t.gridOptions.data.push(e)}),s.socket.on("report_mail_session:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}t.moment=moment,t.initApplications=function(){t.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=r.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){m(t.gridOptions.data.length)})}},u()};var m=function(t){var e=t?30*t+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("report_mail_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/mail/realtime/view/application/application.html",controller:"MailRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("MailRealtimeViewCtrl",["$scope","$state",function(t,e){t.agents=[{name:"Queues",link:"main.channels.mail.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.mail.realtime.view.agents.timeline"}],t.sessions=[{name:"Sessions",link:"main.channels.mail.realtime.view.sessions"}],t.tree={queues:[{name:"Queues",link:"main.channels.mail.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.mail.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.mail.realtime.view.sessions"}]},t.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.mail.realtime.view",{url:"/view",templateUrl:"app/channels/mail/realtime/view/view.html",controller:"MailRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportMailSession",["$resource",function(t){return t("/api/report/mail/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelAccount",["$resource",function(t){return t("/api/openchannel/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts",{url:"/accounts",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:46}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountListCtrl",["$scope","OpenChannelAccount","gridOptions","$stateParams","xAlert","$translate",function(t,e,n,a,s,i){t.initView=function(){var s={exporterCsvFilename:"openchannel_accounts.csv",columnDefs:[{name:"id",displayName:"ID",cellClass:"text-center",width:75,enableSorting:!1,enableFiltering:!1},{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/openchannel/accounts/view/{{row.entity.id}}/settings",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,s,t,{accountId:a.accountId})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.list",{url:"/list",templateUrl:"app/channels/openchannel/account/list/list.html",controller:"OpenChannelAccountListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").factory("OpenChannelApplication",["$resource",function(t){return t("/api/openchannel/applications/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewActionListCtrl",["$scope","gridOptions","OpenChannelAccount","$http","$translate","$stateParams","xAlert",function(t,e,n,a,s,i,l){t.initActions=function(){var a={draggable:!0,exporterCsvFilename:"openchannel_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.OpenchannelQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/channels/openchannel/accounts/view/{{row.entity.OpenchannelAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};t.gridOptions=e.gridOptions(n,a,t,{accountId:i.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/openchannel/account/view/action/list/list.html",controller:"OpenChannelAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","OpenChannelQueue","OpenChannelAccount","OpenChannelApplication","Template","MailAccount","SmsAccount",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initAction=function(){return t.$application=r.application,t.$stateParams=n,t.$interval=c.interval,t.forms={},t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],g.get({id:n.actionId}).$promise.then(function(e){if(t.application=e,t.application.alwaysTime=!1,t.application.IntervalId)t.application.intType="list";else switch(t.application.interval){case"*,*,*,*":t.application.intType="always";break;default:t.application.intType="custom"}if("always"===t.application.intType||"custom"===t.application.intType){var n=t.application.interval.split(",");"*"===n[0]?t.application.alwaysTime=!0:(t.application.t_from=moment(new Date),t.application.t_to=moment(new Date),t.application.t_from.hour(n[0].split("-")[0].split(":")[0]),t.application.t_from.minute(n[0].split("-")[0].split(":")[1]),t.application.t_to.hour(n[0].split("-")[1].split(":")[0]),t.application.t_to.minute(n[0].split("-")[1].split(":")[1])),"*"===n[1]?(t.application.wd_from="always",t.application.wd_to="always"):(t.application.wd_from=n[1].split("-")[0],t.application.wd_to=n[1].split("-")[1]),"*"===n[2]?(t.application.md_from="always",t.application.md_to="always"):(t.application.md_from=n[2].split("-")[0],t.application.md_to=n[2].split("-")[1]),"*"===n[3]?(t.application.m_from="always",t.application.m_to="always"):(t.application.m_from=n[3].split("-")[0],t.application.m_to=n[3].split("-")[1])}t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})}).catch(function(t){i.error(t)})},t.getQueues=function(){return p.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){console.error(t)})},t.getSmsAccounts=function(){return A.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.getAgents=function(){return d.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){console.error(t)})},t.getIntervals=function(){return u.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){console.error(t)})},t.updateItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var l,o,r,c,d;l=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(o=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(o+="-"+t.application.wd_to)):o="*",t.application.md_from&&"always"!==t.application.md_from?(r=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(r+="-"+t.application.md_to)):r="*",t.application.m_from&&"always"!==t.application.m_from?(c=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(c+="-"+t.application.m_to)):c="*",d=l+","+o+","+r+","+c,t.application.interval=d,t.application.IntervalId=null}return m.update({accountId:n.accountId,controller:"applications",id:n.actionId},t.application).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success"),s.path("/channels/openchannel/accounts/view/"+n.accountId+"/actions/list")}).catch(function(t){i.error(t)})},t.getTemplates=function(){return h.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.getMailAccounts=function(){return f.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/openchannel/account/view/action/view/view.html",controller:"OpenChannelAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewActionWizardCtrl",["$scope","$http","Agent","OpenChannelQueue","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","OpenChannelApplication","OpenChannelAccount","Template","MailAccount","SmsAccount",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initWizard=function(){t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],t.$application=u.application,t.$stateParams=i,t.$interval=p.interval,t.forms={},t.application={alwaysTime:!0},t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})},t.getQueues=function(){return a.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){console.error(t)})},t.getAgents=function(){return n.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){console.error(t)})},t.getSmsAccounts=function(){return A.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.getIntervals=function(){return s.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){console.error(t)})},t.createItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var n,a,s,c,d;n=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(a=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(a+="-"+t.application.wd_to)):a="*",t.application.md_from&&"always"!==t.application.md_from?(s=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(s+="-"+t.application.md_to)):s="*",t.application.m_from&&"always"!==t.application.m_from?(c=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(c+="-"+t.application.m_to)):c="*",d=n+","+a+","+s+","+c,t.application.interval=d,t.application.IntervalId=null}return g.save({accountId:i.accountId,controller:"applications"},t.application).$promise.then(function(){r.show(l.instant("MESSAGE_WELL_DONE"),"success"),o.path("/channels/openchannel/accounts/view/"+i.accountId+"/actions/list")}).catch(function(t){r.error(t)})},t.formValidation=function(t){return t},t.next=function(){c.wizard().next()},t.getMailAccounts=function(){return f.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})},t.getTemplates=function(){return h.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/openchannel/account/view/action/wizard/wizard.html",controller:"OpenChannelAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountApiViewCtrl",["$scope","OpenChannelAccount","$http","$stateParams","clipboard","$translate","$location","xAlert",function(t,e,n,a,s,i,l,o){t.copyToClipboard=function(t){s.copyText(t),o.show(i.instant("MESSAGE_TEXT_COPIED_CLIPBOARD")+"!","success")},t.initView=function(){e.get({id:a.accountId}).$promise.then(function(e){t.account=e,t.receiveurl=t.account.remote+"/api/openchannel/accounts/"+t.account.id+"/receive"}).catch(function(t){o.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.view.api",{url:"/api",controller:"OpenChannelAccountApiViewCtrl",templateUrl:"app/channels/openchannel/account/view/api/view/view.html"})}]),angular.module("xCallyShuttleApp").factory("OpenChannelDisposition",["$resource",function(t){return t("/api/openchannel/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","OpenChannelAccount","id",function(t,e,n,a){t.ok=function(){return n.save({accountId:a,controller:"dispositions"},{name:t.name}).$promise.then(function(t){e.close(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","OpenChannelAccount","xAlert",function(t,e,n,a,s,i){t.initView=function(){return s.get({accountId:e.accountId,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.updateDisposition=function(t,n){return s.update({accountId:e.accountId,controller:"dispositions",id:t},{name:n}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.deleteDisposition=function(n){return console.log("delete"),s.remove({accountId:e.accountId,controller:"dispositions",id:n}).$promise.then(function(){_.remove(t.dispositions,{id:n})}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.addDisposition=function(){return n.open({animation:!0,templateUrl:"app/channels/openchannel/account/view/disposition/modal/add.modal.html",controller:"OpenChannelInboxViewModaDispositionAddCtrl",resolve:{id:function(){return e.accountId}}}).result.then(function(e){e&&t.dispositions.push(e)}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.view.dispositions",{url:"/dispositions",controller:"OpenChannelAccountDispositionViewCtrl",templateUrl:"app/channels/openchannel/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountHooksViewCtrl",["$scope","OpenChannelAccount","Pause","$http","$stateParams","$translate","$location","xAlert",function(t,e,n,a,s,i,l,o){t.account={},t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.CONST_TIMEOUT=3e4,t.initView=function(){t.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],n.get().$promise.then(function(e){t.pauses=e.rows}).catch(function(t){o.error(t)}),e.get({id:s.accountId}).$promise.then(function(e){t.account=e,t.account.actions.length<1&&t.account.actions.push({action:"pause",enabled:!1,type:null})}).catch(function(t){o.error(t)})},t.resetActionData=function(t){t.type=null},t.updateItem=function(){return console.log(t.account),e.update({id:s.accountId},t.account).$promise.then(function(){o.show(i.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.view.hooks",{url:"/hooks",controller:"OpenChannelAccountHooksViewCtrl",templateUrl:"app/channels/openchannel/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountSettingViewCtrl",["$scope","OpenChannelAccount","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(t,e,n,a,s,i,l,o,r){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.CONST_TIMEOUT=3e4,t.types=[{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],t.account={},t.initView=function(){r.get().$promise.then(function(e){t.lists=e.rows}).catch(function(t){console.error(t)}),e.get({id:a.accountId}).$promise.then(function(e){t.account=e}).catch(function(t){o.error(t)})},t.updateItem=function(){return e.update({id:a.accountId},t.account).$promise.then(function(){o.show(i.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.view.settings",{url:"/settings",controller:"OpenChannelAccountSettingViewCtrl",templateUrl:"app/channels/openchannel/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountViewCtrl",["$scope","OpenChannelAccount","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(t,e,n,a,s,i,l,o,r){t.initView=function(){return t.account={},e.get({id:a.accountId}).$promise.then(function(e){t.account=e}).catch(function(t){o.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.view",{url:"/view/:accountId",templateUrl:"app/channels/openchannel/account/view/view.html",controller:"OpenChannelAccountViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","OpenChannelAccount",function(t,e,n,a,s,i,l){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initWizard=function(){t.forms={},t.item={},t.item.remote=n.protocol()+"://"+location.host},t.goNext=function(){s.wizard().next()},t.formValidation=function(t){return t},t.createItem=function(){return l.save(t.item).$promise.then(function(){n.path("/channels/openchannel/accounts/list")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/openchannel/account/wizard/wizard.html",controller:"OpenChannelAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.inbox",{url:"/inbox",template:"<div ui-view></div>",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:48}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","data",function(t,e,n,a,s,i){t.data=null,t.initInfo=function(){i&&(t.data=_.isEmpty(JSON.parse(i))?null:JSON.parse(i))},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").directive("message",["$rootScope","OpenChannelMessage","List","xAlert","$translate","$uibModal",function(t,e,n,a,s,i){return{restrict:"E",scope:{Message:"=message",accounttype:"=accounttype",listId:"="},templateUrl:"app/channels/openchannel/inbox/message/message.html",link:function(e){e.openContact=function(i,l){if(e.listId){if(!l)return;var o;switch(i){case"phone":o={phone:l};break;case"email":o={email:l};break;default:return}return n.save({listId:e.listId,controller:"contacts"},o).$promise.then(function(e){var n=_.find(t.$root.workspaces,{contactID:e.id});n?n.active=!0:t.$root.workspaces.push({active:!0,class:"icon-user",contactID:e.id,name:e.phone,type:"contact"})}).catch(function(t){console.error(t)})}a.show(s.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},e.info=function(t){i.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/message/info.modal.html",controller:"OpenChannelInboxInfoModalCtrl",resolve:{data:function(){return t}}})}}}}]),angular.module("xCallyShuttleApp").directive("openchannelRoom",["OpenChannelReport","$cookieStore","$translate","$uibModal","$timeout","Tag","CannedAnswer","Auth","OpenChannelAccount","OpenChannelRoom","OpenChannelMessage","xAlert","usSpinnerService","socket","$stateParams","$rootScope",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/channels/openchannel/inbox/room/room.directive.html",link:function(t){t.modelOptions={debounce:{default:500,blur:250},getterSetter:!0},t.panelLeft=null,t.panelRight="col-md-12",t.togglePanelLeft=function(){t.panelLeft?(t.panelLeft=null,t.panelRight="col-md-12"):(t.panelLeft="col-md-6",t.panelRight="col-md-6")},t.form={disabled:!1,from:"",to:t.workspace.data&&t.workspace.data.to?t.workspace.data.to:"",body:""},m.socket.on("openchannel_message:save",function(e){if(t.workspace.id&&e.OpenchannelRoomId==t.workspace.id)return d.get({id:e.id}).$promise.then(function(e){t.Room||(t.Room={OpenchannelMessages:[]});var n=_.findIndex(t.Room.OpenchannelMessages,{id:e.id});n>-1?_.merge(t.Room.OpenchannelMessages[n],e):t.Room.OpenchannelMessages.unshift(e),t.panelLeft="col-md-6",t.panelRight="col-md-6"}).catch(function(t){console.error(t)})}),m.socket.on("openchannel_message:update",function(e){if(t.Room&&e.OpenchannelRoomId==t.workspace.id){var n=_.find(t.Room.OpenchannelMessages,{id:e.id});n&&_.merge(n,e)}}),m.socket.on("openchannel_room:save",function(e){t.Room&&e.id==t.workspace.id&&(t.Room.status=e.status,t.Room.disposition=e.disposition)}),t.closeRoom=function(e){return a.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.status.modal.html",controller:"OpenChannelInboxViewModalStatusCtrl",resolve:{closed:function(){return"CLOSED"===t.Room.status},accountId:function(){return t.Room.OpenchannelAccountId}}}).result.then(function(t){var n={id:e,status:"CLOSED"};return t.disposition&&(n.disposition=t.disposition),c.update(n).$promise.catch(function(t){u.error(t)})})},t.openRoom=function(t,e){var n=_.find(h.workspaces,{id:t,type:"openchannelRoom"});n?n.active=!0:h.workspaces.push({id:t,name:e,type:"openchannelRoom",class:"icon-globe",active:!0})},i.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)}),r.get().$promise.then(function(e){t.Accounts=e.rows}).catch(function(t){console.error(t)}),t.workspace.id?(t.panelLeft="col-md-6",t.panelRight="col-md-6",c.get({id:t.workspace.id}).$promise.then(function(e){t.Room=e,t.form.from=t.Room.OpenchannelAccount.name,t.form.to=t.Room.contact,t.form.tags=t.Room.tags}).catch(function(t){console.error(t)}).finally(function(){p.stop("spinner-grid"),t.form.disabled=!1})):p.stop("spinner-grid"),t.onSelect=function(){t.form.body+=t.modelOptions.selectedAnswer,delete t.modelOptions.selectedAnswer},t.onSelectAnswer=function(e){t.form.body+=e,t.selectedAnswer=""},t.getAnswers=function(t){return l.get({key:t}).$promise.then(function(t){return _.map(t.rows,"value")})},t.loadAgents=function(){a.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.agents.modal.html",controller:"OpenChannelInboxViewModalAgentCtrl",resolve:{roomId:function(){return t.workspace.id}}})},t.onChanged=function(){return c.patch({id:t.workspace.id},{tags:t.form.tags}).$promise.catch(function(t){console.error(t)})},t.sendMessage=function(){p.spin("spinner-grid");var e=_.find(t.Accounts,{name:t.form.from}).id;if(e){var a={from:t.form.from,to:t.form.to,body:t.form.body,OpenchannelRoomId:t.Room?t.Room.id:null};return r.save({accountId:e,controller:"send"},a).$promise.then(function(e){return u.show(n.instant("MESSAGE_WELL_DONE"),"success"),t.Room?t.Room:c.get({id:"messages",controller:e.id}).$promise}).then(function(e){e&&(t.form.body="",t.workspace.id=e.id,t.workspace.name=e.contact,t.Room=e,t.panelLeft="col-md-6",t.panelRight="col-md-6")}).catch(function(t){u.error(t)}).finally(function(){p.stop("spinner-grid")})}}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","usSpinnerService","socket","OpenChannelAccount","OpenChannelRoom","gridOptions","uiGridConstants","Auth","Modal","xAlert","uibButtonConfig","localStorageService",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A){t.loadAgents=function(t){n.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.agents.modal.html",controller:"OpenChannelInboxViewModalAgentCtrl",resolve:{roomId:t}})},t.initView=function(){f.activeClass="green-haze",t.id=[],t.isAdmin=m.isAdmin(),t.isAgent=m.isAgent(),t.uncheckable=!1,t.query={status:A.get("openchannelStatus")?A.get("openchannelStatus"):"NEW",tags:A.get("openchannelTags")?A.get("openchannelTags"):[]},t.$watch("query.status",function(e,n){e!==n&&(A.set("openchannelStatus",t.query.status),t.getPage())},!0),l.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)}),t.gridOptions={exporterCsvFilename:"openchannel_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>               <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT',               'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING',               'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED',               'icon-close font-red': row.entity.lastEvent === 'FAILED',               'icon-question': !row.entity.lastEvent}\">               </span>               </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!0,enableColumnMenu:!1},{name:"contact",cellClass:"text-center"},{name:"disposition",cellClass:"text-center"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:p.DESC}},{name:"action",cellTemplate:'<div>             <a class="btn btn-icon-only font-green" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.contact)"><i class="glyphicon glyphicon-comment" aria-hidden="true"></i></a>             <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin" data-ng-click="grid.appScope.deleteItem(row.entity.id,row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i>             </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:90,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.selection&&(t.gridApi.selection.on.rowSelectionChanged(t,function(e){e.isSelected?t.id.push(t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id):_.pull(t.id,t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id)}),t.gridApi.selection.on.rowSelectionChangedBatch(t,function(e){e[0].isSelected?t.id=_.union(t.id,_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id")):_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id").forEach(function(e){_.pull(t.id,e)})}))}},r.socket.on("openchannel_room:remove",function(e){_.remove(t.workspaces,{id:e.id,type:"openchannelRoom"}),_.remove(t.gridOptions.data,{id:e.id})}),t.getPage(t.query)},t.onChanged=function(){t.getPage(t.query)},t.tagItems=function(){return n.open({animation:!0,templateUrl:"app/channels/openchannel/inbox/view/view.tags.modal.html",controller:"OpenChannelInboxViewModalTagCtrl",resolve:{id:function(){return t.id}}}).result.then(function(){t.gridApi.selection.clearSelectedRows(),t.id=[],t.getPage()})},t.openRoom=function(e,n){var a=_.find(t.workspaces,{id:e,type:"openchannelRoom"});if(a?a.active=!0:t.workspaces.push({id:e,name:n,type:"openchannelRoom",class:"icon-globe",active:!0}),e&&"agent"===m.getCurrentUser().role&&"PENDING"!==t.query.status&&"CLOSED"!==t.query.status)return d.patch({id:e},{status:"OPEN",openReason:"agent"}).$promise.catch(function(t){console.error(t)})},t.getPage=function(e){o.spin("spinner-grid");var n={accountId:s.id,controller:"rooms"};return e&&_.merge(n,e),t.query&&_.merge(n,t.query),c.query(n).$promise.then(function(e){A.set("openchannelAccountId",s.id),t.gridOptions.data=e,r.socket.on("openchannel_room:save",function(e){if(e.OpenchannelAccountId==s.id){var n=_.find(t.gridOptions.data,{id:e.id});n?n.status!==e.status?_.remove(t.gridOptions.data,{id:e.id}):_.merge(n,e):t.query.status===e.status&&t.gridOptions.data.push(e)}}),r.socket.on("openchannel_room:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}).catch(function(t){h.error(t)}).finally(function(){o.stop("spinner-grid")})},t.deleteItem=g.confirm.delete(function(e){var n={id:e};return console.log(n),d.delete(n).$promise.then(function(){t.getPage(),h.show(a.instant("MESSAGE_WELL_DONE")+"!","success"),t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})}),t.deleteItems=g.confirm.delete(function(){var e={ids:t.id};return d.delete(e).$promise.then(function(){t.getPage(),h.show(a.instant("MESSAGE_WELL_DONE")+"!","success"),t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/openchannel/inbox/view/account/list/list.html",controller:"OpenChannelInboxViewAccountListCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","OpenChannelRoom","xAlert","roomId",function(t,e,n,a,s,i,l,o){t.initModal=function(){t.agents=[],t.item={agents:[]},s.get().$promise.then(function(e){e.rows.forEach(function(e){t.agents.push(e)})}).catch(function(t){console.error(t)}),i.query({id:o,controller:"agents"}).$promise.then(function(e){e.forEach(function(e){t.agents.push(e),t.item.agents.push(e.id)})}).catch(function(t){console.error(t)}),t.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(t){e.close(t)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(t){e.dismiss(t)}}]}},t.ok=function(){return i.update({id:o,controller:"agents",agents:t.item.agents}).$promise.then(function(){l.show(n.instant("MESSAGE_WELL_DONE"),"success"),e.close()}).catch(function(t){console.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewCtrl",["$scope","$location","$stateParams","$translate","$uibModal","socket","Auth","xAlert","OpenChannelRoom","OpenChannelAccount","localStorageService",function(t,e,n,a,s,i,l,o,r,c,d){t.initView=function(){c.get().$promise.then(function(n){var a=null;if(t.openchannelAccounts=n.rows,t.openchannelAccounts.length){var s=d.get("openchannelAccountId");a="/channels/openchannel/inbox/view/account/"+(s&&_.find(t.openchannelAccounts,{id:Number(s)})?s:t.openchannelAccounts[0].id)+"/list"}a&&e.path(a)}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.inbox.view",{url:"/view",templateUrl:"app/channels/openchannel/inbox/view/view.html",controller:"OpenChannelInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModalStatusCtrl",["$scope","$uibModalInstance","closed","OpenChannelAccount","accountId",function(t,e,n,a,s){t.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE"},t.initDisposition=function(){return a.get({accountId:s,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t)})},t.item={},t.closed=n,t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").controller("OpenChannelInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","OpenChannelRoom","xAlert","id",function(t,e,n,a,s,i,l,o){t.initModal=function(){return t.tags=[],t.item={tags:[]},t.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{class:"btn-success",text:"APPLICATION_TAG",click:function(){var a={status:!0};return i.patch({id:o},{tags:t.item.tags}).$promise.then(function(){l.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(){a.status=!1,l.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}).finally(function(){e.close(a)})}},{class:"default",text:"APPLICATION_CANCEL",click:function(t){e.dismiss(t)}}]},s.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel",{url:"/openchannel",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:20}}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelReport",["$resource",function(t){return t("/api/report/openchannel/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelRoom",["$resource",function(t){return t("/api/openchannel/rooms/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelMessage",["$resource",function(t){return t("/api/openchannel/messages/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelQueueListCtrl",["$scope","OpenChannelQueue","gridOptions","$uibModal","xAlert","Auth",function(t,e,n,a,s,i){t.initView=function(){t.Auth=i;var a={exporterCsvFilename:"openchanel_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"timeout"},{name:"strategy"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/channels/openchannel/queues/view/{{row.entity.id}}/settings",name:"settings"},{class:"green-meadow",href:"/channels/openchannel/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===i.getCurrentUser().role},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.createItem=function(){a.open({animation:!0,templateUrl:"app/channels/openchannel/queue/list/list.create.modal.html",controller:"OpenChannelQueueListCreateCtrl",size:"lg"}).result.then(function(e){console.log(e),t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("OpenChannelQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","OpenChannelQueue","Team","strategies",function(t,e,n,a,s,i,l){t.form={},t.strategies=l,t.item={penalty:0,agents:[]},t.getTeams=function(){return i.get({controller:"associations"}).$promise.then(function(e){t.teams=e.rows}).then(function(){ComponentsDropdowns.bindQueue(t.teams,[],function(){return{select:function(e){t.item.agents=_.union(t.item.agents,e)},deselect:function(e){t.item.agents=_.difference(t.item.agents,e)}}})}).catch(function(t){console.error(t)})},t.save=function(){return console.log(t.item),s.save(t.item).$promise.then(function(t){e.close(t)}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.queues.list",{url:"/list",templateUrl:"app/channels/openchannel/queue/list/list.html",controller:"OpenChannelQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("OpenChannelQueue",["$resource",function(t){return t("/api/openchannel/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.queues",{url:"/queues",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:47}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelQueueViewCtrl",["$scope","$http","Auth","$translate","$stateParams","xAlert","Team","OpenChannelQueue","strategies",function(t,e,n,a,s,i,l,o,r){t.strategies=r,t.Auth=n;var c=function(){return{select:function(e){return o.save({id:t.queue.id,controller:"agents"},{agents:e,penalty:t.queue.penalty}).$promise.then(function(e){console.log("sel",e),t.getTeams()}).catch(function(t){console.error(t)})},deselect:function(e){return o.delete({id:t.queue.id,controller:"agents",agents:e}).$promise.then(function(e){console.log("desel",e),t.getTeams()}).catch(function(t){console.error(t)})}}};t.getQueue=function(){return o.get({id:s.id}).$promise.then(function(e){e.penalty=0,t.queue=e}).catch(function(t){console.error(t)})},t.updateQueue=function(){return o.update({id:s.id},{name:t.queue.name,description:t.queue.description,timeout:t.queue.timeout,strategy:t.queue.strategy}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.getTeams=function(){return l.get({controller:"associations"}).$promise.then(function(e){return t.teams=e.rows,console.log(e.rows),o.get({id:s.id,controller:"agents"}).$promise}).then(function(e){console.log(e),ComponentsDropdowns.bindQueue(t.teams,_.map(e.rows,function(t){return{id:t.id,penalty:t.UserHasOpenchannelQueue.penalty}}),c)}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.queues.view",{url:"/view/:id",templateUrl:"app/channels/openchannel/queue/view/view.html",controller:"OpenChannelQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.openchannel.queues.view.settings",{url:"/settings",templateUrl:"app/channels/openchannel/queue/view/view.settings.html"}).state("main.channels.openchannel.queues.view.agents",{url:"/agents",templateUrl:"app/channels/openchannel/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.realtime",{url:"/realtime",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:49}}})}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","OpenChannelQueue","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m){function g(){return d.spin("grid-spinner"),l.get(I).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.data=[],e.rows.forEach(function(t){f(t)})}).catch(function(t){i.error(t)}).finally(function(){d.stop("grid-spinner")})}function h(){s.socket.on("agent:save",function(e){e=e.newValues||e;var n=_.find(t.gridOptions.data,{agentId:e.id,isAgent:!0});n&&(n.online=_.has(e,"online")?e.online:n.online,n.lastLoginAt=_.has(e,"lastLoginAt")?e.lastLoginAt:n.lastLoginAt,n.pause=_.has(e,"openchannelPause")?e.openchannelPause:n.openchannelPause,n.pauseType=_.has(e,"pauseType")?e.pauseType:n.pauseType,n.lastPauseAt=_.has(e,"lastPauseAt")?e.lastPauseAt:n.lastPauseAt,n.ipaddr=_.has(e,"ipaddr")?e.ipaddr:n.ipaddr,n.port=_.has(e,"port")?e.port:n.port,n.fullcontact=_.has(e,"fullcontact")?e.fullcontact:n.fullcontact,n.useragent=_.has(e,"useragent")?e.useragent:n.useragent,n.lastms=_.has(e,"lastms")?e.lastms:n.lastms,n.internal=_.has(e,"internal")?e.internal:n.internal,_.map(t.gridOptions.data,function(t){t.isAgent||t.agentId!==e.id||(t.online=_.has(e,"online")?e.online:t.online)}))}),s.socket.on("agent:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.id})}),s.socket.on("user_has_openchannel_queue:save",function(e){console.log("new queue",e);var n=_.find(t.gridOptions.data,{agentId:e.UserId,isAgent:!0}),a=t.gridOptions.data.indexOf(n);t.gridOptions.data.splice(a+1,0,{isAgent:!1,agentId:e.UserId,queue:e.queue,queueId:e.OpenchannelQueueId,agent:e.membername,online:n.online})}),s.socket.on("user_has_openchannel_queue:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.UserId,queueId:e.OpenchannelQueueId})})}function f(e){t.gridOptions.data.push({isAgent:!0,agentId:e.id,agent:e.name,online:e.online,lastLoginAt:e.lastLoginAt,lastPauseAt:e.lastPauseAt,pause:e.openchannelPause,pauseType:e.pauseType,ipaddr:e.ipaddr,port:e.port,fullcontact:e.fullcontact,useragent:e.useragent,lastms:e.lastms,internal:e.internal,$$treeLevel:0}),e.OpenchannelQueues&&e.OpenchannelQueues.forEach(function(n){t.gridOptions.data.push({isAgent:!1,agentId:e.id,queue:n.name,queueId:n.id,agent:e.name,online:e.online})})}function A(){return o.get().$promise.then(function(e){t.pauses=e.rows,s.syncUpdates("pause",t.pauses)}).catch(function(t){i.error(t)})}function v(){return c.get().$promise.then(function(e){t.openchannelQueues=e.rows,s.syncUpdates("openchannel_queue",t.openchannelQueues)}).catch(function(t){i.error(t)})}t.openchannelQueues=[];var I={controller:"realtime",controller1:"openchannel",offset:0,limit:10};t.moment=moment,t.initAgents=function(){t.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} &lt;{{row.entity.internal}}&gt;</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"openchannelPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause" class="left-margin">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.openchannelQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(t){var e=u.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){b(t.gridApi.core.getVisibleRows(t.gridApi.grid).length)}),t.gridApi.treeBase.on.rowExpanded(t,function(e){b(t.gridApi.core.getVisibleRows(t.gridApi.grid).length+e.treeNode.children.length)}),t.gridApi.treeBase.on.rowCollapsed(t,function(e){b(t.gridApi.core.getVisibleRows(t.gridApi.grid).length-e.treeNode.children.length)}),t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?I.order=null:I.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),g()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){I.offset=(t-1)*e,I.limit=e,g()}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters[0].term?I[t.name]=t.filters[0].term:delete I[t.name]}),g()})}},g(),A(),v(),m(function(){h()})};var b=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("agent"),s.unsyncUpdates("user_has_openchannel_queue")}),t.pause=function(e,n,s){return s&&(t.pauseType=null),r.save({name:n,agent:e.agentId,data2:e.agent,type:s||"DEFAULT PAUSE",data4:s||"DEFAULT PAUSE",channel:"openchannel"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.joinQueue=function(s){n.open({animation:!0,templateUrl:"app/channels/openchannel/realtime/view/agent/queue.modal.add.html",controller:"OpenChannelRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(t.openchannelQueues,function(e){return!!_.find(t.gridOptions.data,{queue:e.name,isAgent:!1,agentId:s})})}}}).result.then(function(e){return r.save({name:"QueueAdd",agent:s,queues:_.filter(t.openchannelQueues,function(t){return _.includes(e.queues,t.id)}),channel:"openchannel",data1:s,data3:e.queues.join(","),data4:"openchannel"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},function(){e.info("Modal dismissed at: "+new Date)})},t.leaveQueue=function(t,e){return r.save({name:"QueueRemove",agent:t,queueId:e,channel:"openchannel",data1:t,data3:e,data4:"openchannel"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.showInfo=function(t){n.open({animation:!0,templateUrl:"app/channels/openchannel/realtime/view/agent/agent.modal.info.html",controller:"OpenChannelRealtimeViewAgentInfoModalCtrl",resolve:{agent:t}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/openchannel/realtime/view/agent/agent.html",controller:"OpenChannelRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(t,e,n,a){t.agent=a,t.close=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(t,e,n,a){t.queues=a,t.item={},t.save=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportOpenChannelSession","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d){function u(){return o.spin("spinner-grid"),l.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){i.error(t)}).finally(function(){p(),o.stop("spinner-grid")})}function p(){s.socket.on("report_openchannel_session:save",function(e){var n=_.find(t.gridOptions.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&d(function(){_.remove(t.gridOptions.data,{id:e.id})},1e4)):e.leaveAt||t.gridOptions.data.push(e)}),s.socket.on("report_openchannel_session:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}t.moment=moment,t.initApplications=function(){t.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=r.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){m(t.gridOptions.data.length)})}},u()};var m=function(t){var e=t?30*t+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("report_openchannel_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/openchannel/realtime/view/application/application.html",controller:"OpenChannelRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("OpenChannelRealtimeViewCtrl",["$scope","$state",function(t,e){t.agents=[{name:"Queues",link:"main.channels.openchannel.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.openchannel.realtime.view.agents.timeline"}],t.sessions=[{name:"Sessions",link:"main.channels.openchannel.realtime.view.sessions"}],t.tree={queues:[{name:"Queues",link:"main.channels.openchannel.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.openchannel.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.openchannel.realtime.view.sessions"}]},t.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.openchannel.realtime.view",{url:"/view",templateUrl:"app/channels/openchannel/realtime/view/view.html",controller:"OpenChannelRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportOpenChannelSession",["$resource",function(t){return t("/api/report/openchannel/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.realtime",{url:"/realtime",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:12}}})}]),angular.module("xCallyShuttleApp").controller("RealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d,u,p){function m(e){return c.spin("grid-spinner"),l.get(f).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.data=e.rows}).catch(function(t){i.error(t)}).finally(function(){e&&p(function(){g()}),c.stop("grid-spinner")})}function g(){s.socket.on("agent:save",function(e){e=e.newValues||e;var n=_.find(t.gridOptions.data,{id:e.id});n&&_.merge(n,e)}),s.socket.on("agent:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}function h(){return o.get().$promise.then(function(e){t.pauses=e.rows,s.syncUpdates("pause",t.pauses)}).catch(function(t){i.error(t)})}var f={controller:"realtime",offset:0,limit:10};t.moment=moment,t._=_,t.initAgents=function(){t.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.name}} &lt;{{row.entity.internal}}&gt;</div>",minWidth:250},{name:"online",displayName:"APPLICATION_ONLINE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.name,row.entity.id)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:u.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"pauseStatus",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span class="left-margin"><i data-ng-if="row.entity.voicePause || row.entity.mailPause || row.entity.chatPause || row.entity.faxPause || row.entity.smsPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,null)" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i> <i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i></span><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select><span data-ng-if="row.entity.voicePause || row.entity.mailPause || row.entity.chatPause || row.entity.faxPause || row.entity.smsPause || row.entity.openchannelPause"> [{{row.entity.pauseType}}]<span data-ng-if="grid.appScope.showTimers"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></span></div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"voicePause",displayName:"APPLICATION_VOICE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.voicePause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'voice\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i><span data-ng-if="row.entity.voicePause && grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> * </span></span></div>',filter:{type:u.filter.SELECT,selectOptions:[{value:"true",label:a.instant("APPLICATION_PAUSED")},{value:"connect",label:a.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"mailPause",displayName:"APPLICATION_MAIL",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.mailPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'mail\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:u.filter.SELECT,selectOptions:[{value:"true",label:a.instant("APPLICATION_PAUSED")},{value:"connect",label:a.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"chatPause",displayName:"APPLICATION_CHAT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.chatPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'chat\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:u.filter.SELECT,selectOptions:[{value:"true",label:a.instant("APPLICATION_PAUSED")},{value:"connect",label:a.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"faxPause",displayName:"APPLICATION_FAX",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.faxPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'fax\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:u.filter.SELECT,selectOptions:[{value:"true",label:a.instant("APPLICATION_PAUSED")},{value:"connect",label:a.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"smsPause",displayName:"APPLICATION_SMS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.smsPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'sms\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:u.filter.SELECT,selectOptions:[{value:"true",label:a.instant("APPLICATION_PAUSED")},{value:"connect",label:a.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"openchannelPause",displayName:"APPLICATION_OPENCHANNEL",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online"><span class="left-margin"><i data-ng-if="row.entity.openchannelPause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\',null,\'openchannel\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i></span></div>',filter:{type:u.filter.SELECT,selectOptions:[{value:"true",label:a.instant("APPLICATION_PAUSED")},{value:"connect",label:a.instant("APPLICATION_NOT_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(t){var e=d.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){A(t.gridApi.core.getVisibleRows(t.gridApi.grid).length)}),t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?f.order=null:f.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),m()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){f.offset=(t-1)*e,f.limit=e,m()}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters[0].term?f[t.name]=t.filters[0].term:delete f[t.name]}),m()})}},m(!0),h()};var A=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("agent")}),t.pause=function(e,n,s,l){return s&&(t.pauseType=null),r.save({name:n,agent:e.id,data2:e.name,type:s||"DEFAULT PAUSE",data4:s||"DEFAULT PAUSE",channel:l||"all"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/realtime/view/agent/agent.html",controller:"RealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("RealtimeViewAgentLogoutModalCtrl",["$scope","$uibModalInstance","name",function(t,e,n){t.agent=n,t.logout=function(){e.close()}}]),angular.module("xCallyShuttleApp").controller("RealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(t,e,n,a){t.queues=a,t.item={},t.save=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("RealtimeViewCtrl",["$scope",function(t){t.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.realtime.view",{url:"/view",templateUrl:"app/channels/realtime/view/view.html",controller:"RealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("ReportCall",["$resource",function(t){return t("/api/report/calls/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportDial",["$resource",function(t){return t("/api/report/dials/:id/:controller/:controller2",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("SmsAccount",["$resource",function(t){return t("/api/sms/accounts/:accountId/:controller/:id",{id:"@accountId"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts",{url:"/accounts",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:42}}})}]),angular.module("xCallyShuttleApp").controller("SmsAccountListCtrl",["$scope","SmsAccount","gridOptions","$stateParams","xAlert","$translate",function(t,e,n,a,s,i){t.message="Hello",t.initView=function(){var s={exporterCsvFilename:"sms_accounts.csv",columnDefs:[{name:"id",displayName:"ID",cellClass:"text-center",width:75,enableSorting:!1,enableFiltering:!1},{name:"name"},{name:"description"},{name:"type",displayName:"APPLICATION_ACCOUNT_TYPE"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/channels/sms/accounts/view/{{row.entity.id}}/settings",name:"profile"},{class:"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,s,t,{accountId:a.accountId})},t.checkAccount=function(t){return e.get({accountId:t,controller:"check"}).$promise.then(function(){s.show(i.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")}).catch(function(t){s.show(i.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.list",{url:"/list",templateUrl:"app/channels/sms/account/list/list.html",controller:"SmsAccountListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.view.actions",{url:"/actions",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").factory("SmsApplication",["$resource",function(t){return t("/api/sms/applications/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewActionListCtrl",["$scope","gridOptions","SmsAccount","$http","$translate","$stateParams","xAlert",function(t,e,n,a,s,i,l){t.initActions=function(){var a={draggable:!0,exporterCsvFilename:"sms_applications.csv",enableSorting:!1,enableFiltering:!1,columnDefs:[{name:"app",cellClass:"text-center"},{name:"name",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span>{{row.entity.app == "queue" ? row.entity.SmsQueue.name : row.entity.User.name}}</span></div>'},{name:"timeout",cellClass:"text-center"},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",cellClass:"text-center",cellTemplate:"<div><span>{{row.entity.Interval ? row.entity.Interval.name : row.entity.interval}}</span></div>"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/channels/sms/accounts/view/{{row.entity.SmsAccountId}}/actions/view/{{row.entity.id}}",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.app, row.entity.id)"}]}]};t.gridOptions=e.gridOptions(n,a,t,{accountId:i.accountId,controller:"applications"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.view.actions.list",{url:"/list",templateUrl:"app/channels/sms/account/view/action/list/list.html",controller:"SmsAccountViewActionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewActionViewCtrl",["$scope","$http","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","Agent","Interval","SmsQueue","SmsAccount","Template","MailAccount","SmsApplication",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initAction=function(){return t.$application=r.application,t.$stateParams=n,t.$interval=c.interval,t.forms={},t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],f.get({id:n.actionId}).$promise.then(function(e){if(t.application=e,t.application.alwaysTime=!1,t.application.IntervalId)t.application.intType="list";else switch(t.application.interval){case"*,*,*,*":t.application.intType="always";break;default:t.application.intType="custom"}if("always"===t.application.intType||"custom"===t.application.intType){var n=t.application.interval.split(",");"*"===n[0]?t.application.alwaysTime=!0:(t.application.t_from=moment(new Date),t.application.t_to=moment(new Date),t.application.t_from.hour(n[0].split("-")[0].split(":")[0]),t.application.t_from.minute(n[0].split("-")[0].split(":")[1]),t.application.t_to.hour(n[0].split("-")[1].split(":")[0]),t.application.t_to.minute(n[0].split("-")[1].split(":")[1])),"*"===n[1]?(t.application.wd_from="always",t.application.wd_to="always"):(t.application.wd_from=n[1].split("-")[0],t.application.wd_to=n[1].split("-")[1]),"*"===n[2]?(t.application.md_from="always",t.application.md_to="always"):(t.application.md_from=n[2].split("-")[0],t.application.md_to=n[2].split("-")[1]),"*"===n[3]?(t.application.m_from="always",t.application.m_to="always"):(t.application.m_from=n[3].split("-")[0],t.application.m_to=n[3].split("-")[1])}t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})}).catch(function(t){i.error(t)})},t.getQueues=function(){return p.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){console.error(t)})},t.getAgents=function(){return d.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){console.error(t)})},t.getIntervals=function(){return u.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){console.error(t)})},t.getTemplates=function(){return g.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.getMailAccounts=function(){return h.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})},t.getSmsAccounts=function(){return m.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.updateItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var l,o,r,c,d;l=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(o=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(o+="-"+t.application.wd_to)):o="*",t.application.md_from&&"always"!==t.application.md_from?(r=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(r+="-"+t.application.md_to)):r="*",t.application.m_from&&"always"!==t.application.m_from?(c=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(c+="-"+t.application.m_to)):c="*",d=l+","+o+","+r+","+c,t.application.interval=d,t.application.IntervalId=null}return m.update({accountId:n.accountId,controller:"applications",id:n.actionId},t.application).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success"),s.path("/channels/sms/accounts/view/"+n.accountId+"/actions/list")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.view.actions.view",{url:"/view/:actionId",templateUrl:"app/channels/sms/account/view/action/view/view.html",controller:"SmsAccountViewActionViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewActionWizardCtrl",["$scope","$http","Agent","SmsQueue","Interval","$stateParams","$translate","$location","xAlert","WizardHandler","socket","application","interval","SmsAccount","Template","MailAccount",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initWizard=function(){t.apps=[{name:"Queue",value:"queue"},{name:"Agent",value:"agent"},{name:"SendMail",value:"sendMail"},{name:"SendSMS",value:"sendSms"}],t.$application=u.application,t.$stateParams=i,t.$interval=p.interval,t.forms={},t.application={alwaysTime:!0},t.$watch("application.t_from",function(e){t.application.t_from_hm=moment(e).format("HH:mm")}),t.$watch("application.t_to",function(e){t.application.t_to_hm=moment(e).format("HH:mm")})},t.getQueues=function(){return a.get().$promise.then(function(e){console.log(e),t.queues=e.rows}).catch(function(t){console.error(t)})},t.getAgents=function(){return n.get().$promise.then(function(e){t.agents=e.rows}).catch(function(t){console.error(t)})},t.getIntervals=function(){return s.get().$promise.then(function(e){t.intervals=e.rows}).catch(function(t){console.error(t)})},t.getTemplates=function(){return g.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.getMailAccounts=function(){return h.get().$promise.then(function(e){t.mailAccounts=e.rows}).catch(function(t){console.error(t)})},t.getSmsAccounts=function(){return m.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)})},t.createItem=function(){switch(t.application.intType){case"always":t.application.interval="*,*,*,*",t.application.IntervalId=null;break;case"list":var e=_.find(t.intervals,{id:t.application.IntervalId});t.application.interval=e?"":"*,*,*,*",t.application.IntervalId=e?t.application.IntervalId:null;break;case"custom":var n,a,s,c,d;n=t.application.t_from&&t.application.t_to&&!t.application.alwaysTime?moment(t.application.t_from).format("HH:mm")+"-"+moment(t.application.t_to).format("HH:mm"):"*",t.application.wd_from&&"always"!==t.application.wd_from?(a=t.application.wd_from,t.application.wd_to&&"always"!==t.application.wd_to&&(a+="-"+t.application.wd_to)):a="*",t.application.md_from&&"always"!==t.application.md_from?(s=t.application.md_from,t.application.md_to&&"always"!==t.application.md_to&&(s+="-"+t.application.md_to)):s="*",t.application.m_from&&"always"!==t.application.m_from?(c=t.application.m_from,t.application.m_to&&"always"!==t.application.m_to&&(c+="-"+t.application.m_to)):c="*",d=n+","+a+","+s+","+c,t.application.interval=d,t.application.IntervalId=null}return m.save({accountId:i.accountId,controller:"applications"},t.application).$promise.then(function(){r.show(l.instant("MESSAGE_WELL_DONE"),"success"),o.path("/channels/sms/accounts/view/"+i.accountId+"/actions/list")}).catch(function(t){r.error(t)})},t.formValidation=function(t){return t},t.next=function(){c.wizard().next()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.view.actions.wizard",{url:"/wizard",templateUrl:"app/channels/sms/account/view/action/wizard/wizard.html",controller:"SmsAccountViewActionWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountApiViewCtrl",["$scope","SmsAccount","$http","$stateParams","clipboard","$translate","$location","xAlert",function(t,e,n,a,s,i,l,o){t.copyToClipboard=function(t){s.copyText(t),o.show(i.instant("MESSAGE_TEXT_COPIED_CLIPBOARD")+"!","success")},t.initView=function(){e.get({id:a.accountId}).$promise.then(function(e){t.account=e,t.deliveryurl=t.account.remote+"/api/sms/accounts/"+t.account.id+"/messageStatus",t.receiveurl=t.account.remote+"/api/sms/accounts/"+t.account.id+"/receive"}).catch(function(t){o.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.view.api",{url:"/api",controller:"SmsAccountApiViewCtrl",templateUrl:"app/channels/sms/account/view/api/view/view.html"})}]),angular.module("xCallyShuttleApp").factory("SmsDisposition",["$resource",function(t){return t("/api/sms/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModaDispositionAddCtrl",["$scope","$uibModalInstance","SmsAccount","id",function(t,e,n,a){t.ok=function(){return n.save({accountId:a,controller:"dispositions"},{name:t.name}).$promise.then(function(t){e.close(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsAccountDispositionViewCtrl",["$scope","$stateParams","$uibModal","$translate","SmsAccount","xAlert",function(t,e,n,a,s,i){t.initView=function(){return s.get({accountId:e.accountId,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.updateDisposition=function(t,n){return s.update({accountId:e.accountId,controller:"dispositions",id:t},{name:n}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.deleteDisposition=function(n){return console.log("delete"),s.remove({accountId:e.accountId,controller:"dispositions",id:n}).$promise.then(function(){_.remove(t.dispositions,{id:n})}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.addDisposition=function(){return n.open({animation:!0,templateUrl:"app/channels/sms/account/view/disposition/modal/add.modal.html",controller:"SmsInboxViewModaDispositionAddCtrl",resolve:{id:function(){return e.accountId}}}).result.then(function(e){e&&t.dispositions.push(e)}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.view.dispositions",{url:"/dispositions",controller:"SmsAccountDispositionViewCtrl",templateUrl:"app/channels/sms/account/view/disposition/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountHooksViewCtrl",["$scope","SmsAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert",function(t,e,n,a,s,i,l,o,r){t.account={},t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.CONST_TIMEOUT=3e4,t.initView=function(){t.types=[{value:"",name:"-- None --"},{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],n.get().$promise.then(function(e){t.pauses=e.rows}).catch(function(t){r.error(t)}),e.get({id:s.accountId}).$promise.then(function(e){t.account=e,t.account.actions.length<1&&t.account.actions.push({action:"pause",enabled:!1,type:null})}).catch(function(t){r.error(t)})},t.resetActionData=function(t){t.type=null},t.updateItemSmsAccount=function(){return console.log(t.account),e.update({id:s.accountId},t.account).$promise.then(function(){r.show(l.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){r.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.view.hooks",{url:"/hooks",controller:"SmsAccountHooksViewCtrl",templateUrl:"app/channels/sms/account/view/hooks/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountSettingViewCtrl",["$scope","SmsAccount","Pause","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(t,e,n,a,s,i,l,o,r,c){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.CONST_TIMEOUT=3e4,t.types=[{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],t.account={},t.initView=function(){c.get().$promise.then(function(e){t.lists=e.rows}).catch(function(t){console.error(t)}),e.get({id:s.accountId}).$promise.then(function(e){t.account=e}).catch(function(t){r.error(t)})},t.updateItemSmsAccount=function(){return e.update({id:s.accountId},t.account).$promise.then(function(){r.show(l.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){r.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.view.settings",{url:"/settings",controller:"SmsAccountSettingViewCtrl",templateUrl:"app/channels/sms/account/view/setting/view/view.html"})}]),angular.module("xCallyShuttleApp").controller("SmsAccountViewCtrl",["$scope","SmsAccount","$http","$stateParams","clipboard","$translate","$location","xAlert","List",function(t,e,n,a,s,i,l,o,r){t.initView=function(){return t.account={},e.get({id:a.accountId}).$promise.then(function(e){t.account=e,console.log(e)}).catch(function(t){o.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.view",{url:"/view/:accountId",templateUrl:"app/channels/sms/account/view/view.html",controller:"SmsAccountViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}})}]),angular.module("xCallyShuttleApp").controller("SmsAccountWizardCtrl",["$scope","$http","$location","$translate","WizardHandler","xAlert","SmsAccount",function(t,e,n,a,s,i,l){t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initWizard=function(){t.forms={},t.item={},t.item.remote=n.protocol()+"://"+location.host},t.goNext=function(){s.wizard().next()},t.formValidation=function(t){return t},t.createItem=function(){return console.log(t.item),l.save(t.item).$promise.then(function(){n.path("/channels/sms/accounts/list")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.accounts.wizard",{url:"/wizard",templateUrl:"app/channels/sms/account/wizard/wizard.html",controller:"SmsAccountWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.inbox",{url:"/inbox",template:"<div ui-view></div>",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:44}}})}]),angular.module("xCallyShuttleApp").directive("smsRoom",["$cookieStore","$translate","$uibModal","$timeout","Tag","CannedAnswer","Auth","SmsAccount","SmsRoom","SmsMessage","xAlert","usSpinnerService","socket","$stateParams","$rootScope",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/channels/sms/inbox/room/room.directive.html",link:function(t){t.modelOptions={debounce:{default:500,blur:250},getterSetter:!0},t.panelLeft=null,t.panelRight="col-md-12",t.togglePanelLeft=function(){t.panelLeft?(t.panelLeft=null,t.panelRight="col-md-12"):(t.panelLeft="col-md-6",t.panelRight="col-md-6")},t.form={disabled:!1,from:"",to:t.workspace.data&&t.workspace.data.to?t.workspace.data.to:"",body:""},p.socket.on("sms_message:save",function(e){if(t.workspace.id&&e.SmsRoomId==t.workspace.id)return c.get({id:e.id}).$promise.then(function(e){t.SmsRoom||(t.SmsRoom={SmsMessages:[]});var n=_.findIndex(t.SmsRoom.SmsMessages,{id:e.id});n>-1?_.merge(t.SmsRoom.SmsMessages[n],e):t.SmsRoom.SmsMessages.unshift(e),t.panelLeft="col-md-6",t.panelRight="col-md-6"}).catch(function(t){console.error(t)})}),p.socket.on("sms_message:update",function(e){if(t.SmsRoom&&e.SmsRoomId==t.workspace.id){var n=_.find(t.SmsRoom.SmsMessages,{id:e.id});n&&_.merge(n,e)}}),p.socket.on("sms_room:save",function(e){t.SmsRoom&&e.id==t.workspace.id&&(t.SmsRoom.status=e.status,t.SmsRoom.disposition=e.disposition)}),t.closeRoom=function(e){return n.open({animation:!0,templateUrl:"app/channels/sms/inbox/view/view.status.modal.html",controller:"SmsInboxViewModalStatusCtrl",resolve:{closed:function(){return"CLOSED"===t.SmsRoom.status},accountId:function(){return t.SmsRoom.SmsAccountId}}}).result.then(function(t){var n={id:e,status:"CLOSED"};return t.disposition&&(n.disposition=t.disposition),r.update(n).$promise.catch(function(t){d.error(t)})})},t.openRoom=function(t,e){var n=_.find(g.workspaces,{id:t,type:"smsRoom"});n?n.active=!0:g.workspaces.push({id:t,name:e,type:"smsRoom",class:"glyphicon glyphicon-comment",active:!0})},s.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)}),o.get().$promise.then(function(e){t.smsAccounts=e.rows}).catch(function(t){console.error(t)}),t.workspace.id?(t.panelLeft="col-md-6",t.panelRight="col-md-6",r.get({id:t.workspace.id}).$promise.then(function(e){t.SmsRoom=e,t.form.from=t.SmsRoom.SmsAccount.phone,t.form.to=t.SmsRoom.contact,t.form.tags=t.SmsRoom.tags}).catch(function(t){console.error(t)}).finally(function(){u.stop("spinner-grid"),t.form.disabled=!1})):u.stop("spinner-grid"),t.onSelect=function(){t.form.body+=t.modelOptions.selectedAnswer,delete t.modelOptions.selectedAnswer},t.onSelectAnswer=function(e){t.form.body+=e,t.selectedAnswer=""},t.getAnswers=function(t){return i.get({key:t}).$promise.then(function(t){return _.map(t.rows,"value")})},t.onChanged=function(){return r.patch({id:t.workspace.id},{tags:t.form.tags}).$promise.catch(function(t){console.error(t)})},t.sendSMS=function(){u.spin("spinner-grid");var n=_.find(t.smsAccounts,{phone:t.form.from}),a={body:t.form.body,SmsRoomId:t.SmsRoom?t.SmsRoom.id:null};if("twilio"===n.type?(a.from=/^[\+][0-9]+$/.test(t.form.from)?t.form.from:"+"+t.form.from,a.to=/^[\+][0-9]+$/.test(t.form.to)?t.form.to:"+"+t.form.to):(a.from=/^[\+][0-9]+$/.test(t.form.from)?t.form.from.replace("+",""):t.form.from,a.to=/^[\+][0-9]+$/.test(t.form.to)?t.form.to.replace("+",""):t.form.to),n)return o.save({accountId:n.id,controller:"send"},a).$promise.then(function(n){return d.show(e.instant("MESSAGE_WELL_DONE"),"success"),t.SmsRoom?t.SmsRoom:r.get({id:"messages",controller:n.id}).$promise}).then(function(e){e&&(t.form.body="",t.workspace.id=e.id,t.workspace.name=e.contact,t.SmsRoom=e,t.panelLeft="col-md-6",t.panelRight="col-md-6")}).catch(function(t){d.error(t)}).finally(function(){u.stop("spinner-grid")});console.log("Can not find account")}}}}]),angular.module("xCallyShuttleApp").controller("SmsInboxInfoModalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","xAlert","data","uniqueId","ReportSquare",function(t,e,n,a,s,i,l,o){t.data=null,t.initInfo=function(){i&&(t.data=_.isEmpty(JSON.parse(i))?null:JSON.parse(i)),l&&o.get({controller:"show",uniqueid:l}).$promise.then(function(e){t.data={id:e.id,channel:e.channel,uniqueid:e.uniqueid,callerid:e.callerid,calleridname:e.calleridname,project_name:e.project_name,extension:e.extension}}).catch(function(e){switch(e.status){case 404:t.data=null;break;default:s.error(e)}})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").directive("sms",["$rootScope","SmsMessage","List","xAlert","$translate","$uibModal",function(t,e,n,a,s,i){return{restrict:"E",scope:{smsMessage:"=message",accounttype:"=accounttype",listId:"="},templateUrl:"app/channels/sms/inbox/sms/sms.html",link:function(e){e.openContact=function(i){if(e.listId)return n.save({listId:e.listId,controller:"contacts"},{mobile:i}).$promise.then(function(e){var n=_.find(t.$root.workspaces,{contactID:e.id});n?n.active=!0:t.$root.workspaces.push({active:!0,class:"icon-user",contactID:e.id,name:e.phone,type:"contact"})}).catch(function(t){console.error(t)});a.show(s.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")},e.info=function(t,e){i.open({animation:!0,templateUrl:"app/channels/sms/inbox/sms/info.modal.html",controller:"SmsInboxInfoModalCtrl",resolve:{data:function(){return e},uniqueId:function(){return t}}})}}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.inbox.view.account",{url:"/account/:id",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:11}}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewAccountListCtrl",["$scope","$rootScope","$uibModal","$translate","$stateParams","$state","Tag","usSpinnerService","socket","SmsAccount","SmsRoom","gridOptions","uiGridConstants","Auth","Modal","xAlert","uibButtonConfig","localStorageService",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A){t.initView=function(){f.activeClass="green-haze",t.id=[],t.isAdmin=m.isAdmin(),t.isAgent=m.isAgent(),t.uncheckable=!1,t.query={status:A.get("smsStatus")?A.get("smsStatus"):"NEW",tags:A.get("smsTags")?A.get("smsTags"):[]},t.$watch("query.status",function(e,n){e!==n&&(A.set("smsStatus",t.query.status),t.getPage())},!0),l.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)}),t.gridOptions={exporterCsvFilename:"sms_rooms.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!0,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"lastEvent",displayName:"",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>             <span data-ng-class=\"{'icon-arrow-up font-green': row.entity.lastEvent === 'SENT',             'icon-arrow-up font-yellow': row.entity.lastEvent === 'SENDING',             'icon-arrow-down font-green': row.entity.lastEvent === 'RECEIVED',             'icon-close font-red': row.entity.lastEvent === 'FAILED',             'icon-question': !row.entity.lastEvent}\">             </span>             </div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"tags",displayName:"",headerCellTemplate:'<i class="icon-tag" style="margin-top: 8px; margin-left: 8px;"></i>',cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"row.entity.tags.length ? 'icon-tag' : ''\" title=\"{{row.entity.tags}}\"></i></div>",width:30,enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"id",displayName:"Id",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><span>#{{row.entity.id}}</span></div>",width:75,enableSorting:!1,enableFiltering:!0,enableColumnMenu:!1},{name:"contact",cellClass:"text-center"},{name:"disposition",cellClass:"text-center"},{name:"createdAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1},{name:"updatedAt",cellFilter:"date:'dd/MM/yyyy HH:mm'",width:120,enableFiltering:!1,sort:{direction:p.DESC}},{name:"action",cellTemplate:'<div>             <a class="btn btn-icon-only font-green" data-ng-click="grid.appScope.openRoom(row.entity.id, row.entity.contact)"><i class="glyphicon glyphicon-comment" aria-hidden="true"></i></a>             <a class="btn btn-icon-only font-red" data-ng-show="grid.appScope.isAdmin" data-ng-click="grid.appScope.deleteItem(row.entity.id,row.entity.id)"><i class="fa fa-trash" aria-hidden="true"></i>             </div>',enableSorting:!1,cellClass:"ui-grid-vcenter",width:90,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.selection&&(t.gridApi.selection.on.rowSelectionChanged(t,function(e){e.isSelected?t.id.push(t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id):_.pull(t.id,t.gridApi.grid.options.primaryKey?e.entity[t.gridApi.grid.options.primaryKey]:e.entity.id)}),t.gridApi.selection.on.rowSelectionChangedBatch(t,function(e){e[0].isSelected?t.id=_.union(t.id,_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id")):_.map(e,t.gridApi.grid.options.primaryKey?"entity."+t.gridApi.grid.options.primaryKey:"entity.id").forEach(function(e){_.pull(t.id,e)})}))}},r.socket.on("sms_room:remove",function(e){_.remove(t.workspaces,{id:e.id,type:"smsRoom"}),_.remove(t.gridOptions.data,{id:e.id})}),t.getPage(t.query)},t.onChanged=function(){t.getPage(t.query)},t.tagItems=function(){return n.open({animation:!0,templateUrl:"app/channels/sms/inbox/view/view.tags.modal.html",controller:"SmsInboxViewModalTagCtrl",resolve:{id:function(){return t.id}}}).result.then(function(){t.gridApi.selection.clearSelectedRows(),t.id=[],t.getPage()})},t.disposeItems=function(){return n.open({animation:!0,templateUrl:"app/channels/sms/inbox/view/view.status.modal.html",controller:"SmsInboxViewModalStatusCtrl",resolve:{accountId:function(){return s.id}}}).result.then(function(e){return console.log(e,t.id),d.patch({id:t.id},e).$promise.then(function(){t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})})},t.openRoom=function(e,n){var a=_.find(t.workspaces,{id:e,type:"smsRoom"});if(a?a.active=!0:t.workspaces.push({id:e,name:n,type:"smsRoom",class:"glyphicon glyphicon-comment",active:!0}),e&&"agent"===m.getCurrentUser().role&&"PENDING"!==t.query.status&&"CLOSED"!==t.query.status)return d.patch({id:e},{status:"OPEN",openReason:"agent"}).$promise.catch(function(t){console.error(t)})},t.getPage=function(e){o.spin("spinner-grid");var n={accountId:s.id,controller:"rooms"};return e&&_.merge(n,e),t.query&&_.merge(n,t.query),c.query(n).$promise.then(function(e){A.set("smsAccountId",s.id),t.gridOptions.data=e,r.socket.on("sms_room:save",function(e){if(console.log("data",e),console.log(e.SmsAccountId,s.id),e.SmsAccountId==s.id){var n=_.find(t.gridOptions.data,{id:e.id});n?n.status!==e.status?_.remove(t.gridOptions.data,{id:e.id}):_.merge(n,e):t.query.status===e.status&&t.gridOptions.data.push(e)}}),r.socket.on("sms_room:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}).catch(function(t){h.error(t)}).finally(function(){o.stop("spinner-grid")})},t.deleteItem=g.confirm.delete(function(e){var n={id:e};return console.log(n),d.delete(n).$promise.then(function(){t.getPage(),h.show(a.instant("MESSAGE_WELL_DONE")+"!","success"),t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})}),t.deleteItems=g.confirm.delete(function(){var e={ids:t.id};return d.delete(e).$promise.then(function(){t.getPage(),h.show(a.instant("MESSAGE_WELL_DONE")+"!","success"),t.gridApi.selection.clearSelectedRows(),t.id=[]}).catch(function(t){h.error(t)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.inbox.view.account.list",{url:"/list",templateUrl:"app/channels/sms/inbox/view/account/list/list.html",controller:"SmsInboxViewAccountListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:11}}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalAgentCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Agent","SmsRoom","xAlert","roomId",function(t,e,n,a,s,i,l,o){t.initModal=function(){t.agents=[],t.item={agents:[]},s.get().$promise.then(function(e){e.rows.forEach(function(e){t.agents.push(e)})}).catch(function(t){console.error(t)}),i.query({id:o,controller:"agents"}).$promise.then(function(e){e.forEach(function(e){t.agents.push(e),t.item.agents.push(e.id)})}).catch(function(t){console.error(t)}),t.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{classes:"btn btn-success",text:"APPLICATION_RETRY",click:function(t){e.close(t)}},{classes:"btn default",text:"APPLICATION_CANCEL",click:function(t){e.dismiss(t)}}]}},t.ok=function(){return i.update({id:o,controller:"agents",agents:t.item.agents}).$promise.then(function(){l.show(n.instant("MESSAGE_WELL_DONE"),"success"),e.close()}).catch(function(t){console.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewCtrl",["$scope","$location","$stateParams","$translate","$uibModal","socket","Auth","xAlert","SmsRoom","SmsAccount","localStorageService",function(t,e,n,a,s,i,l,o,r,c,d){t.initView=function(){return c.get().$promise.then(function(n){var a=null;if(t.smsAccounts=n.rows,t.smsAccounts.length){var s=d.get("smsAccountId");a="/channels/sms/inbox/view/account/"+(s&&_.find(t.smsAccounts,{id:Number(s)})?s:t.smsAccounts[0].id)+"/list"}a&&e.path(a)}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.inbox.view",{url:"/view",templateUrl:"app/channels/sms/inbox/view/view.html",controller:"SmsInboxViewCtrl",reload:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/inbox.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalStatusCtrl",["$scope","$uibModalInstance","SmsAccount","accountId",function(t,e,n,a){t.modal={title:"APPLICATION_CONFIRM_CLOSE",text:"MESSAGE_ARE_YOU_SURE_YOU_WANT_TO_CLOSE_THE_SMS"},t.initDisposition=function(){return t.item={status:"CLOSED"},n.get({accountId:a,controller:"dispositions"}).$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t)})},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalTagCtrl",["$scope","$uibModalInstance","$translate","$stateParams","Tag","SmsRoom","xAlert","id",function(t,e,n,a,s,i,l,o){console.log(o),t.initModal=function(){return t.tags=[],t.item={tags:[]},t.modal={dismissable:!0,title:"APPLICATION_MESSAGE_SEND_RETRY",text:"MESSAGE_MESSAGE_SEND_RETRY",buttons:[{class:"btn-success",text:"APPLICATION_TAG",click:function(){var a={status:!0};return i.patch({id:o},{tags:t.item.tags}).$promise.then(function(){l.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(){a.status=!1,l.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")}).finally(function(){e.close(a)})}},{class:"default",text:"APPLICATION_CANCEL",click:function(t){e.dismiss(t)}}]},s.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").controller("SmsInboxViewModalTemplateCtrl",["$scope","$uibModalInstance","Template",function(t,e,n){t.initModal=function(){return t.item={},n.get().$promise.then(function(e){t.templates=e.rows}).catch(function(t){console.error(t)})},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsQueueListCtrl",["$scope","SmsQueue","gridOptions","$uibModal","xAlert","Auth",function(t,e,n,a,s,i){t.initView=function(){t.Auth=i;var a={exporterCsvFilename:"voice_queues.csv",columnDefs:[{name:"name"},{name:"description"},{name:"timeout"},{name:"strategy"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/channels/sms/queues/view/{{row.entity.id}}/settings",name:"settings"},{class:"green-meadow",href:"/channels/sms/queues/view/{{row.entity.id}}/agents",name:"agents",hide:"user"===i.getCurrentUser().role},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.createItem=function(){a.open({animation:!0,templateUrl:"app/channels/sms/queue/list/list.create.modal.html",controller:"SmsQueueListCreateCtrl",size:"lg"}).result.then(function(e){console.log(e),t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SmsQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","SmsQueue","Team","strategies",function(t,e,n,a,s,i,l){t.form={},t.strategies=l,t.item={penalty:0,agents:[]},t.getTeams=function(){return i.get({controller:"associations"}).$promise.then(function(e){t.teams=e.rows}).then(function(){ComponentsDropdowns.bindQueue(t.teams,[],function(){return{select:function(e){t.item.agents=_.union(t.item.agents,e)},deselect:function(e){t.item.agents=_.difference(t.item.agents,e)}}})}).catch(function(t){console.error(t)})},t.save=function(){return console.log(t.item),s.save(t.item).$promise.then(function(t){e.close(t)}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.queues.list",{url:"/list",templateUrl:"app/channels/sms/queue/list/list.html",controller:"SmsQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("SmsQueue",["$resource",function(t){return t("/api/sms/queues/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.queues",{url:"/queues",template:"<div ui-view></div>",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:43}}})}]),angular.module("xCallyShuttleApp").controller("SmsQueueViewCtrl",["$scope","$http","Auth","$translate","$stateParams","xAlert","Team","SmsQueue","strategies",function(t,e,n,a,s,i,l,o,r){t.strategies=r,t.Auth=n;var c=function(){return{select:function(e){return o.save({id:t.queue.id,controller:"agents"},{agents:e,penalty:t.queue.penalty}).$promise.then(function(e){console.log("sel",e),t.getTeams()}).catch(function(t){console.error(t)})},deselect:function(e){return o.delete({id:t.queue.id,controller:"agents",agents:e}).$promise.then(function(e){console.log("desel",e),t.getTeams()}).catch(function(t){console.error(t)})}}};t.getQueue=function(){return o.get({id:s.id}).$promise.then(function(e){e.penalty=0,t.queue=e}).catch(function(t){console.error(t)})},t.updateSmsQueue=function(){return o.update({id:s.id},{name:t.queue.name,description:t.queue.description,timeout:t.queue.timeout,strategy:t.queue.strategy}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.getTeams=function(){return l.get({controller:"associations"}).$promise.then(function(e){return t.teams=e.rows,console.log(e.rows),o.get({id:s.id,controller:"agents"}).$promise}).then(function(e){console.log(e),ComponentsDropdowns.bindSmsQueue(t.teams,_.map(e.rows,function(t){return{id:t.id,penalty:t.UserHasSmsQueue.penalty}}),c)}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.queues.view",{url:"/view/:id",templateUrl:"app/channels/sms/queue/view/view.html",controller:"SmsQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.sms.queues.view.settings",{url:"/settings",templateUrl:"app/channels/sms/queue/view/view.settings.html"}).state("main.channels.sms.queues.view.agents",{url:"/agents",templateUrl:"app/channels/sms/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.realtime",{url:"/realtime",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:45}}})}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","SmsQueue","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m){function g(){return d.spin("grid-spinner"),l.get(I).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.data=[],e.rows.forEach(function(t){f(t)})}).catch(function(t){i.error(t)}).finally(function(){d.stop("grid-spinner")})}function h(){s.socket.on("agent:save",function(e){e=e.newValues||e;var n=_.find(t.gridOptions.data,{agentId:e.id,isAgent:!0});n&&(n.online=_.has(e,"online")?e.online:n.online,n.lastLoginAt=_.has(e,"lastLoginAt")?e.lastLoginAt:n.lastLoginAt,n.pause=_.has(e,"smsPause")?e.smsPause:n.smsPause,n.pauseType=_.has(e,"pauseType")?e.pauseType:n.pauseType,n.lastPauseAt=_.has(e,"lastPauseAt")?e.lastPauseAt:n.lastPauseAt,n.ipaddr=_.has(e,"ipaddr")?e.ipaddr:n.ipaddr,n.port=_.has(e,"port")?e.port:n.port,n.fullcontact=_.has(e,"fullcontact")?e.fullcontact:n.fullcontact,n.useragent=_.has(e,"useragent")?e.useragent:n.useragent,n.lastms=_.has(e,"lastms")?e.lastms:n.lastms,n.internal=_.has(e,"internal")?e.internal:n.internal,_.map(t.gridOptions.data,function(t){t.isAgent||t.agentId!==e.id||(t.online=_.has(e,"online")?e.online:t.online)}))}),s.socket.on("agent:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.id})}),s.socket.on("user_has_sms_queue:save",function(e){console.log("new queue",e);var n=_.find(t.gridOptions.data,{agentId:e.UserId,isAgent:!0}),a=t.gridOptions.data.indexOf(n);t.gridOptions.data.splice(a+1,0,{isAgent:!1,agentId:e.UserId,queue:e.queue,queueId:e.SmsQueueId,agent:e.membername,online:n.online})}),s.socket.on("user_has_sms_queue:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.UserId,queueId:e.SmsQueueId})})}function f(e){t.gridOptions.data.push({isAgent:!0,agentId:e.id,agent:e.name,online:e.online,lastLoginAt:e.lastLoginAt,lastPauseAt:e.lastPauseAt,pause:e.smsPause,pauseType:e.pauseType,ipaddr:e.ipaddr,port:e.port,fullcontact:e.fullcontact,useragent:e.useragent,lastms:e.lastms,internal:e.internal,$$treeLevel:0}),e.SmsQueues&&e.SmsQueues.forEach(function(n){t.gridOptions.data.push({isAgent:!1,agentId:e.id,queue:n.name,queueId:n.id,agent:e.name,online:e.online})})}function A(){return o.get().$promise.then(function(e){t.pauses=e.rows,s.syncUpdates("pause",t.pauses)}).catch(function(t){i.error(t)})}function v(){return c.get().$promise.then(function(e){t.smsQueues=e.rows,s.syncUpdates("sms_queue",t.smsQueues)}).catch(function(t){i.error(t)})}t.smsQueues=[];var I={controller:"realtime",controller1:"sms",offset:0,limit:10};t.moment=moment,t.initAgents=function(){t.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} &lt;{{row.entity.internal}}&gt;</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"smsPause",displayName:"APPLICATION_PAUSE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.pause != null && row.entity.online" class="ui-grid-vcenter"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor left-margin" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select> <span data-ng-if="row.entity.pause" class="left-margin">({{row.entity.pauseType}})</span><span data-ng-if="row.entity.pause && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastPauseAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"PAUSED"},{value:"false",label:"NOT PAUSED"}]},enableSorting:!1,enableColumnMenu:!1},{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queueId" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queueId)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent && row.treeNode.children.length < grid.appScope.smsQueues.length" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_JOIN_QUEUE\' | translate}}</button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(t){var e=u.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){b(t.gridApi.core.getVisibleRows(t.gridApi.grid).length)}),t.gridApi.treeBase.on.rowExpanded(t,function(e){b(t.gridApi.core.getVisibleRows(t.gridApi.grid).length+e.treeNode.children.length)}),t.gridApi.treeBase.on.rowCollapsed(t,function(e){b(t.gridApi.core.getVisibleRows(t.gridApi.grid).length-e.treeNode.children.length)}),t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?I.order=null:I.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),g()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){I.offset=(t-1)*e,I.limit=e,g()}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters[0].term?I[t.name]=t.filters[0].term:delete I[t.name]}),g()})}},g(),A(),v(),m(function(){h()})};var b=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("agent"),s.unsyncUpdates("user_has_sms_queue")}),t.pause=function(e,n,s){return s&&(t.pauseType=null),r.save({name:n,agent:e.agentId,data2:e.agent,type:s||"DEFAULT PAUSE",data4:s||"DEFAULT PAUSE",channel:"sms"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.joinQueue=function(s){n.open({animation:!0,templateUrl:"app/channels/sms/realtime/view/agent/queue.modal.add.html",controller:"SmsRealtimeViewAgentQueueModalCtrl",resolve:{queues:function(){return _.reject(t.smsQueues,function(e){return!!_.find(t.gridOptions.data,{queue:e.name,isAgent:!1,agentId:s})})}}}).result.then(function(e){return r.save({name:"QueueAdd",agent:s,queues:_.filter(t.smsQueues,function(t){return _.includes(e.queues,t.id)}),channel:"sms",data1:s,data3:e.queues.join(","),data4:"sms"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},function(){e.info("Modal dismissed at: "+new Date)})},t.leaveQueue=function(t,e){return r.save({name:"QueueRemove",agent:t,queueId:e,channel:"sms",data1:t,data3:e,data4:"sms"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.showInfo=function(t){n.open({animation:!0,templateUrl:"app/channels/sms/realtime/view/agent/agent.modal.info.html",controller:"SmsRealtimeViewAgentInfoModalCtrl",resolve:{agent:t}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/sms/realtime/view/agent/agent.html",controller:"SmsRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","$http","agent",function(t,e,n,a){t.agent=a,t.close=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","queues",function(t,e,n,a){t.queues=a,t.item={},t.save=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewApplicationCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportSmsSession","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d){function u(){return o.spin("spinner-grid"),l.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){i.error(t)}).finally(function(){p(),o.stop("spinner-grid")})}function p(){s.socket.on("report_sms_session:save",function(e){var n=_.find(t.gridOptions.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&d(function(){_.remove(t.gridOptions.data,{id:e.id})},1e4)):e.leaveAt||t.gridOptions.data.push(e)}),s.socket.on("report_sms_session:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}t.moment=moment,t.initApplications=function(){t.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span> <span data-ng-if="!row.entity.leaveAt && grid.appScope.showTimers"><css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"},{name:"queuename",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.queuename || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=r.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){m(t.gridOptions.data.length)})}},u()};var m=function(t){var e=t?30*t+60:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("report_sms_session")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.realtime.view.applications",{url:"/applications",templateUrl:"app/channels/sms/realtime/view/application/application.html",controller:"SmsRealtimeViewApplicationCtrl"})}]),angular.module("xCallyShuttleApp").controller("SmsRealtimeViewCtrl",["$scope","$state",function(t,e){t.agents=[{name:"Queues",link:"main.channels.sms.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.sms.realtime.view.agents.timeline"}],t.sessions=[{name:"Sessions",link:"main.channels.sms.realtime.view.sessions"}],t.tree={queues:[{name:"Queues",link:"main.channels.sms.realtime.view.agents.queues"},{name:"Timeline",link:"main.channels.sms.realtime.view.agents.timeline"}],sessions:[{name:"Sessions",link:"main.channels.sms.realtime.view.sessions"}]},t.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms.realtime.view",{url:"/view",templateUrl:"app/channels/sms/realtime/view/view.html",controller:"SmsRealtimeViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("ReportSmsSession",["$resource",function(t){return t("/api/report/sms/sessions/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.sms",{url:"/sms",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:11}}})}]),angular.module("xCallyShuttleApp").factory("SmsQueue",["$resource",function(t){return t("/api/sms/queues/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("SmsReport",["$resource",function(t){return t("/api/report/sms/:id/:controller1/:controller2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("SmsMessage",["$resource",function(t){return t("/api/sms/messages/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("SmsRoom",["$resource",function(t){return t("/api/sms/rooms/:id/:controller",{id:"@id",controller:"@controller"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").factory("ChanSpy",["$resource",function(t){return t("/api/chanspy/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.chanspy",{url:"/chanspy",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:27}}})}]),angular.module("xCallyShuttleApp").controller("ChanSpyListCtrl",["$scope","$uibModal","ChanSpy","gridOptions",function(t,e,n,a){t.initView=function(){var e={exporterCsvFilename:"chanspy.csv",columnDefs:[{name:"name"},{name:"prefix"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/voice/chanspy/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(n,e,t)},t.createItem=function(){e.open({animation:!0,templateUrl:"app/channels/voice/chanspy/list/list.create.modal.html",controller:"ChanSpyListCreateCtrl"}).result.then(function(e){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ChanSpyListCreateCtrl",["$scope","$translate","$uibModalInstance","ChanSpy","xAlert",function(t,e,n,a,s){t.form={},t.item={auth:!1,record:!1},t.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.authSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.options=[{name:"APPLICATION_CHANSPY_OPTION_b",value:"b"},{name:"APPLICATION_CHANSPY_OPTION_B",value:"B"},{name:"APPLICATION_CHANSPY_OPTION_E",value:"E"},{name:"APPLICATION_CHANSPY_OPTION_o",value:"o"},{name:"APPLICATION_CHANSPY_OPTION_q",value:"q"},{name:"APPLICATION_CHANSPY_OPTION_s",value:"s"},{name:"APPLICATION_CHANSPY_OPTION_S",value:"S"},{name:"APPLICATION_CHANSPY_OPTION_w",value:"w"},{name:"APPLICATION_CHANSPY_OPTION_W",value:"W"}],t.save=function(){return t.item.options=t.item.options.join(""),a.save(t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.chanspy.list",{url:"/list",templateUrl:"app/channels/voice/chanspy/list/list.html",controller:"ChanSpyListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ChanSpyViewCtrl",["$scope","$translate","$stateParams","xAlert","ChanSpy",function(t,e,n,a,s){t.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.authSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.options=[{name:"APPLICATION_CHANSPY_OPTION_b",value:"b"},{name:"APPLICATION_CHANSPY_OPTION_B",value:"B"},{name:"APPLICATION_CHANSPY_OPTION_E",value:"E"},{name:"APPLICATION_CHANSPY_OPTION_o",value:"o"},{name:"APPLICATION_CHANSPY_OPTION_q",value:"q"},{name:"APPLICATION_CHANSPY_OPTION_s",value:"s"},{name:"APPLICATION_CHANSPY_OPTION_S",value:"S"},{name:"APPLICATION_CHANSPY_OPTION_w",value:"w"},{name:"APPLICATION_CHANSPY_OPTION_W",value:"W"}],t.getChanSpy=function(){return s.get({id:n.id}).$promise.then(function(e){e.options=e.options.split(""),t.chanspy=e}).catch(function(t){a.error(t)})},t.updateChanSpy=function(){var i=angular.copy(t.chanspy);return i.options=i.options.join(""),s.update({id:n.id},i).$promise.then(function(){a.show(e.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.chanspy.view",{url:"/view/:id",templateUrl:"app/channels/voice/chanspy/view/view.html",controller:"ChanSpyViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.chanspy.view.settings",{url:"/settings",templateUrl:"app/channels/voice/chanspy/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("VoiceContext",["$resource",function(t){return t("/api/voice/contexts/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.contexts",{url:"/contexts",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:22}}})}]),angular.module("xCallyShuttleApp").controller("VoiceContextListCtrl",["$scope","VoiceContext","gridOptions","$uibModal","xAlert","$translate",function(t,e,n,a,s,i){t.initView=function(){var a={exporterCsvFilename:"voice_contexts.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{class:"{{row.entity.defaultEntry ? 'blue-hoki disabled' : 'blue-hoki'}}",href:"/channels/voice/contexts/view/{{row.entity.id}}/settings",name:"settings"},{class:"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.createItem=function(){a.open({animation:!0,templateUrl:"app/channels/voice/context/list/create.modal.html",controller:["$scope","$uibModalInstance",function(t,e){t.form={},t.item={},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]}).result.then(function(n){return e.save(n).$promise.then(function(){t.gridOptions.getPage(),s.show(i.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){s.error(t)})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.contexts.list",{url:"/list",templateUrl:"app/channels/voice/context/list/list.html",controller:"VoiceContextListCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceContextViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location",function(t,e,n,a,s,i){t.getContext=function(){e.get("/api/voice/contexts/"+s.id).success(function(e){t.context=e}).error(function(t){console.error(t),i.path("/voice/contexts/list")})},t.updateVoiceContext=function(){var i=angular.copy(t.context);e.put("/api/voice/contexts/"+s.id,i).success(function(){n.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(e){n.error(e),t.context=i})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.contexts.view",{url:"/view/:id",templateUrl:"app/channels/voice/context/view/view.html",controller:"VoiceContextViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.contexts.view.settings",{url:"/settings",templateUrl:"app/channels/voice/context/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.dispositions",{url:"/dispositions",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:28}}})}]),angular.module("xCallyShuttleApp").controller("VoiceDispositionListCtrl",["$scope","$stateParams","$uibModal","$translate","VoiceDisposition","xAlert",function(t,e,n,a,s,i){t.initView=function(){return s.get().$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.updateDisposition=function(t,e){return s.update({id:t},{name:e}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.deleteDisposition=function(e){return s.remove({id:e}).$promise.then(function(){_.remove(t.dispositions,{id:e}),i.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){console.error(t),i.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.addDisposition=function(){return n.open({animation:!0,templateUrl:"app/channels/voice/disposition/list/modal/add.modal.html",controller:"VoiceDispositionListModalDispositionAddCtrl"}).result.then(function(e){e&&(t.dispositions.push(e),i.show(a.instant("MESSAGE_WELL_DONE")+"!","success"))})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.dispositions.list",{url:"/list",templateUrl:"app/channels/voice/disposition/list/list.html",controller:"VoiceDispositionListCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceDispositionListModalDispositionAddCtrl",["$scope","$uibModalInstance","VoiceDisposition","xAlert","$translate",function(t,e,n,a,s){t.ok=function(){return n.save({name:t.name}).$promise.then(function(t){e.close(t)}).catch(function(t){a.show(s.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").factory("VoiceDisposition",["$resource",function(t){return t("/api/voice/dispositions/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("VoiceMohListCtrl",["$scope","gridOptions","VoiceMoh","$uibModal","xAlert","$translate",function(t,e,n,a,s,i){t.initView=function(){var a={exporterCsvFilename:"voice_mohs.csv",columnDefs:[{name:"name"},{name:"mode"},{name:"directory"},{name:"sort"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/voice/mohs/view/{{row.entity.id}}/settings",name:"settings"},{class:"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=e.gridOptions(n,a,t)},t.createItem=function(){a.open({animation:!0,templateUrl:"app/channels/voice/moh/list/create.modal.html",controller:["$scope","$uibModalInstance",function(t,e){t.form={},t.item={},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]}).result.then(function(e){return n.save(e).$promise.then(function(){t.gridOptions.getPage(),s.show(i.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){s.error(t)})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.mohs.list",{url:"/list",templateUrl:"app/channels/voice/moh/list/list.html",controller:"VoiceMohListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("VoiceMoh",["$resource",function(t){return t("/api/voice/musiconholds/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.mohs",{url:"/mohs",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:24}}})}]),angular.module("xCallyShuttleApp").controller("VoiceMohViewCtrl",["$scope","$http","xAlert","$translate","VoiceMoh","$stateParams","socket","Modal","$sce","$location","Sound",function(t,e,n,a,s,i,l,o,r,c,d){t.$translate=a,t.audioSources={},t.sortOptions=[{value:"random",name:"APPLICATION_RANDOM"},{value:"alpha",name:"APPLICATION_ALPHABETICAL"}],t.getMoh=function(){return s.get({id:i.id}).$promise.then(function(e){delete e.stamp,t.moh=e}).catch(function(t){n.error(t)})},t.updateVoiceMoh=function(){return s.update({id:i.id},t.moh).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){n.error(t)})},t.addMohs=function(){return s.save({id:i.id,controller:"files"},t.item).$promise.then(function(){c.path("/channels/voice/mohs/view/"+i.id+"/audios")}).catch(function(t){n.error(t)})},t.getAudioFiles=function(){return s.get({id:i.id,controller:"files"}).$promise.then(function(e){t.audioFiles=e.files,t.mohPath=e.path,t.audioFiles.forEach(function(t){u(t)})}).catch(function(t){n.error(t)})},t.getSecureSrc=function(t){return r.trustAsResourceUrl(t)},t.getSounds=function(){return t.item={sounds:[]},d.get().$promise.then(function(e){t.soundList=e.rows}).catch(function(t){n.error(t)})};var u=function(n){e.get("/api/voice/musiconholds/stream",{params:{path:encodeURI(t.mohPath+"/"+n)}}).success(function(e){t.audioSources[n]="data:audio/ogg;base64,"+e}).error(function(t){console.error(t)})};t.deleteItem=o.confirm.delete(function(s){e.delete("/api/voice/musiconholds/"+i.id+"/files",{params:{filename:s}}).success(function(){_.remove(t.audioFiles,function(t){return t===s}),n.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(t){n.error(t)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.mohs.view",{url:"/view/:id",templateUrl:"app/channels/voice/moh/view/view.html",controller:"VoiceMohViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.mohs.view.settings",{url:"/settings",templateUrl:"app/channels/voice/moh/view/view.settings.html"}).state("main.channels.voice.mohs.view.audios",{url:"/audios",templateUrl:"app/channels/voice/moh/view/view.audios.html",cache:!1}).state("main.channels.voice.mohs.view.add",{url:"/add",templateUrl:"app/channels/voice/moh/view/view.addFiles.html",cache:!1})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueListCtrl",["$scope","$rootScope","$uibModal","VoiceQueue","gridOptions","Auth",function(t,e,n,a,s,i){t.initView=function(){t.Auth=i;var e={exporterCsvFilename:"voice_queues.csv",primaryKey:"name",columnDefs:[{name:"name"},{name:"strategy"},{name:"description"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/channels/voice/queues/view/{{row.entity.name}}/settings",name:"settings"},{class:"green-meadow",href:"/channels/voice/queues/view/{{row.entity.name}}/agents",name:"agents",hide:"user"===i.getCurrentUser().role},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.name)"}]}]};t.gridOptions=s.gridOptions(a,e,t)},t.createItem=function(){n.open({animation:!0,templateUrl:"app/channels/voice/queue/list/list.create.modal.html",controller:"VoiceQueueListCreateCtrl",size:"lg"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("VoiceQueueListCreateCtrl",["$scope","$uibModalInstance","$translate","xAlert","VoiceQueue","Team",function(t,e,n,a,s,i){t.form={},t.item={penalty:0,agents:[]},t.getTeams=function(){return i.get({controller:"associations"}).$promise.then(function(e){t.teams=e.rows}).then(function(){ComponentsDropdowns.bindQueue(t.teams,[],function(){return{select:function(e){t.item.agents=_.union(t.item.agents,e),console.log(t.item.agents)},deselect:function(e){t.item.agents=_.difference(t.item.agents,e),console.log(t.item.agents)}}})}).catch(function(t){console.error(t)})},t.save=function(){return s.save(t.item).$promise.then(function(t){a.show(n.instant("MESSAGE_WELL_DONE"),"success"),e.close(t)}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.queues.list",{url:"/list",templateUrl:"app/channels/voice/queue/list/list.html",controller:"VoiceQueueListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.queues",{url:"/queues",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin"],redirectTo:"landing"}}})}]),angular.module("xCallyShuttleApp").factory("ReportQueue",["$resource",function(t){return t("/api/report/queues/:id/:controller/:controller2",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("UserHasVoiceQueue",["$resource",function(t){return t("/api/voice/user_has_queues/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("VoiceQueueViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","VoiceQueue","Team","Auth","VoiceMoh","Sound","Setting",function(t,e,n,a,s,i,l,o,r,c,d,u){t.Auth=r,t.binaryChoices=[{name:"Yes",value:1},{name:"No",value:0}],t.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.autoPauseValues=[{name:"No",value:"no"},{name:"Yes",value:"all"}],t.monitorFormats=[{name:"wav",value:"wav"},{name:"gsm",value:"gsm"},{name:"Inactive",value:""}],t.queueAnnounces=[{display_name:"Default",path:null},{display_name:"Disabled",path:""}];var p=function(){return{select:function(e){return l.save({id:t.queue.name,controller:"agents"},{agents:e,penalty:t.queue.penalty}).$promise.then(function(){t.getTeams()}).catch(function(t){console.log(t)})},deselect:function(e){return l.delete({id:t.queue.name,controller:"agents",agents:e}).$promise.then(function(){t.getTeams()}).catch(function(t){console.log(t)})}}};t.getQueue=function(){return l.get({id:a.id}).$promise.then(function(e){e.joinempty=""===e.joinempty?[]:e.joinempty.split(","),e.leavewhenempty=""===e.leavewhenempty?[]:e.leavewhenempty.split(","),e.periodic_announce=""===e.periodic_announce?[]:e.periodic_announce.split(","),e.setinterfacevar="yes"===e.setinterfacevar,e.setqueuevar="yes"===e.setqueuevar,e.setqueueentryvar="yes"===e.setqueueentryvar,e.penalty=0,t.queue=e}).catch(function(t){i.path("/channels/voice/queues/list")})},t.updateVoiceQueue=function(){var s=angular.copy(t.queue);return s.joinempty=s.joinempty.join(","),s.leavewhenempty=s.leavewhenempty.join(","),s.periodic_announce=s.periodic_announce.join(","),s.setinterfacevar=s.setinterfacevar?"yes":"no",s.setqueuevar=s.setqueuevar?"yes":"no",s.setqueueentryvar=s.setqueueentryvar?"yes":"no",s.context||(s.context=null),l.update({id:a.id},s).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){e.error(t)})},t.getTeams=function(){return o.get({controller:"associations"}).$promise.then(function(e){return t.teams=e.rows,l.get({id:a.id,controller:"agents"}).$promise}).then(function(e){ComponentsDropdowns.bindQueue(t.teams,_.map(e.rows,function(t){return{id:t.id,penalty:t.UserHasVoiceQueue.penalty}}),p)}).catch(function(t){console.error(t)})},t.getMohs=function(){return c.get().$promise.then(function(e){t.voiceMohs=e.rows,s.syncUpdates("voice_musiconhold",t.voiceMohs)}).catch(function(t){e.error(t)})},t.getSounds=function(){var e;return u.get({id:1}).$promise.then(function(t){return e=t,d.get().$promise}).then(function(n){var a=e.soundPath||"/var/opt/motion/server/files/sounds/converted";_.forEach(n.rows,function(t){t.path=(a+"/"+t.save_name).replace(/\/+/g,"/").replace(/\\+/g,"\\")}),t.queueAnnounces=t.queueAnnounces.concat(n.rows),t.periodicAnnounces=angular.copy(n.rows),n.rows.unshift({display_name:"None",path:""}),t.sounds=n.rows,s.syncUpdates("sound",t.sounds)}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.queues.view",{url:"/view/:id",templateUrl:"app/channels/voice/queue/view/view.html",controller:"VoiceQueueViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.queues.view.settings",{url:"/settings",templateUrl:"app/channels/voice/queue/view/view.settings.html"}).state("main.channels.voice.queues.view.agents",{url:"/agents",templateUrl:"app/channels/voice/queue/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("VoiceQueue",["$resource",function(t){return t("/api/voice/queues/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.realtime",{url:"/realtime",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:26}}})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAbandonedCtrl",["$scope","$translate","socket","xAlert","ReportQueue","usSpinnerService","$q","Auth","uiGridConstants",function(t,e,n,a,s,i,l,o,r){function c(){return i.spin("spinner-grid"),s.get({controller:"abandoned",controller2:"all"}).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){a.error(t)}).finally(function(){d(),i.stop("spinner-grid")})}function d(){n.socket.on("report_queue:update",function(e){e.queuecallerabandon&&t.gridOptions.data.unshift(e)})}t.radioSwitch={size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"success",onColor:"danger"};t.initAbandoned=function(){t.agent=o.getCurrentUser(),t.gridOptions={exporterCsvFilename:"abandoned_calls.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:1,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"calleridnum",displayName:"APPLICATION_CALLERIDNUM",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"updatedAt",displayName:"APPLICATION_DATE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.updatedAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>"},{name:"lastAssignedTo",cellClass:"text-center ui-grid-vcenter",displayName:"APPLICATION_LAST_ASSIGNED_TO",headerCellFilter:"translate"},{name:"assigned",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.assigned" type="checkbox" switch-active="{{ !row.entity.assigned || grid.appScope.agent.name === row.entity.lastAssignedTo }}" switch-on-text="{{ \'APPLICATION_ASSIGNED\' | translate }}" switch-off-text="{{ \'APPLICATION_FREE\' | translate }}" switch-on-color="{{ grid.appScope.radioSwitch.onColor }}" switch-off-color="{{ grid.appScope.radioSwitch.offColor }}" switch-animate="{{ grid.appScope.radioSwitch.animate }}" switch-size="{{ grid.appScope.radioSwitch.size }}" switch-label="{{ grid.appScope.radioSwitch.label }}" switch-icon="{{ grid.appScope.radioSwitch.icon }}" switch-radio-off="{{ grid.appScope.radioSwitch.radioOff }}" switch-label-width="{{ grid.appScope.radioSwitch.labelWidth }}" switch-handle-width="{{ grid.appScope.radioSwitch.handleWidth }}"></div>',enableFiltering:!1}],data:[],gridMenuTitleFilter:function(t){var n=l.defer();return n.resolve(e.instant(t)),n.promise},onRegisterApi:function(e){t.gridApi=e}},c()},t.updateItem=function(n){return s.update({id:n.id},{assigned:n.assigned,lastAssignedTo:n.assigned?t.agent.name:void 0}).$promise.then(function(){a.show(e.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){a.error(t)})};t.$on("$destroy",function(){n.unsyncUpdates("report_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.realtime.view.abandoned",{url:"/abandoned",templateUrl:"app/channels/voice/realtime/view/abandoned/abandoned.html",controller:"VoiceRealtimeViewAbandonedCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Agent","Pause","Action","VoiceQueue","usSpinnerService","$q","uiGridConstants","Auth","$timeout",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g){function h(){return d.spin("grid-spinner"),l.get(b).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.data=[],e.rows.forEach(function(t){A(t)})}).catch(function(t){i.error(t)}).finally(function(){d.stop("grid-spinner")})}function f(){s.socket.on("agent:save",function(e){e=e.newValues||e;var n=_.find(t.gridOptions.data,{agentId:e.id,isAgent:!0});n&&(n.online=e.hasOwnProperty("online")?e.online:n.online,n.lastLoginAt=e.hasOwnProperty("lastLoginAt")?e.lastLoginAt:n.lastLoginAt,n.pause=e.hasOwnProperty("voicePause")?e.voicePause:n.pause,n.pauseType=e.hasOwnProperty("pauseType")?e.pauseType:n.pauseType,n.lastPauseAt=e.hasOwnProperty("lastPauseAt")?e.lastPauseAt:n.lastPauseAt,n.status=e.hasOwnProperty("status")?e.status:n.status,n.statusAt=e.hasOwnProperty("statusAt")?e.statusAt:n.statusAt,n.queueStatus=e.hasOwnProperty("queueStatus")?e.queueStatus:n.queueStatus,n.queueStatusAt=e.hasOwnProperty("queueStatusAt")?e.queueStatusAt:n.queueStatusAt,n.lastQueue=e.hasOwnProperty("lastQueue")?e.lastQueue:n.lastQueue,n.ipaddr=e.hasOwnProperty("ipaddr")?e.ipaddr:n.ipaddr,n.port=e.hasOwnProperty("port")?e.port:n.port,n.fullcontact=e.hasOwnProperty("fullcontact")?e.fullcontact:n.fullcontact,n.useragent=e.hasOwnProperty("useragent")?e.useragent:n.useragent,n.lastms=e.hasOwnProperty("lastms")?e.lastms:n.lastms,n.internal=e.hasOwnProperty("internal")?e.internal:n.internal,_.map(t.gridOptions.data,function(t){t.isAgent||t.agentId!==e.id||(t.online=e.hasOwnProperty("online")?e.online:t.online)}))}),s.socket.on("agent:remove",function(e){_.remove(t.gridOptions.data,{agentId:e.id})})}function A(e){t.gridOptions.data.push({isAgent:!0,agentId:e.id,agent:e.name,online:e.online,lastLoginAt:e.lastLoginAt,lastPauseAt:e.lastPauseAt,pause:e.voicePause,pauseType:e.pauseType,status:e.status||"UNKNOWN",statusAt:e.statusAt,queueStatus:e.queueStatus||"READY",queueStatusAt:e.queueStatusAt,lastQueue:e.lastQueue,ipaddr:e.ipaddr,port:e.port,fullcontact:e.fullcontact,useragent:e.useragent,lastms:e.lastms,internal:e.internal})}function v(){return o.get().$promise.then(function(e){t.pauses=e.rows,s.syncUpdates("pause",t.pauses)}).catch(function(t){i.error(t)})}function I(){return c.get().$promise.then(function(e){t.voiceQueues=e.rows,s.syncUpdates("voice_queue",t.voiceQueues)}).catch(function(t){i.error(t)})}t.voiceQueues=[];var b={controller:"realtime",controller1:"voice",offset:0,limit:10};t.moment=moment,t._=_,t.initAgents=function(){t.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent">{{row.entity.agent}} &lt;{{row.entity.internal}}&gt;</div>'},{name:"online",displayName:"APPLICATION_ONLINE",width:150,headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.online != null && row.entity.isAgent"><i class="fa" data-ng-class="{\'font-green\':row.entity.online, \'font-red\':!row.entity.online,\'fa-user\':row.entity.online,\'fa-user-times\':!row.entity.online}"></i> <i data-ng-if="row.entity.online" class="fa fa-sign-out font-red pointer-cursor" title="logout" data-ng-click="grid.appScope.agentLogout(row.entity.agent,row.entity.agentId)"></i> <span data-ng-if="row.entity.online && grid.appScope.showTimers" class="left-margin"><css-timer start-time="row.entity.lastLoginAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"true",label:"ONLINE"},{value:"false",label:"OFFLINE"}]}},{name:"status",displayName:"APPLICATION_PHONE_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div data-ng-if=\"row.entity.isAgent\">{{'APPLICATION_'+row.entity.status | translate}} <span data-ng-if=\"row.entity.statusAt && (row.entity.status === 'BUSY' || row.entity.status === 'ONHOLD' || row.entity.status === 'INUSE')\"><span data-ng-if=\"grid.appScope.showTimers\"><css-timer start-time=\"row.entity.statusAt\"></css-timer></span></span></div>",filter:{type:p.filter.SELECT,selectOptions:[{value:"UNKNOWN",label:a.instant("APPLICATION_UNKNOWN")},{value:"NOT_INUSE",label:a.instant("APPLICATION_NOT_INUSE")},{value:"INUSE",label:a.instant("APPLICATION_INUSE")},{value:"BUSY",label:a.instant("APPLICATION_BUSY")},{value:"INVALID",label:a.instant("APPLICATION_INVALID")},{value:"UNAVAILABLE",label:a.instant("APPLICATION_UNAVAILABLE")},{value:"RINGING",label:a.instant("APPLICATION_RINGING")},{value:"RINGINUSE",label:a.instant("APPLICATION_RINGINUSE")},{value:"ONHOLD",label:a.instant("APPLICATION_ONHOLD")}]}},{name:"queueStatus",displayName:"APPLICATION_QUEUE_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.isAgent && row.entity.online" class="ui-grid-vcenter"><span class="left-margin"><i data-ng-if="row.entity.pause" data-ng-click="grid.appScope.pause(row.entity,\'unpause\')" class="fa fa-play font-green pointer-cursor" title="{{\'APPLICATION_RESUME\' | translate}}"></i><i class="fa fa-pause font-yellow pointer-cursor" data-ng-click="grid.appScope.pause(row.entity,\'pause\',\'DEFAULT PAUSE\')" title="{{\'APPLICATION_DEFAULT_PAUSE\' | translate}}"></i></span><select data-ng-if="grid.appScope.pauses.length" class="pause-select pointer-cursor" data-ng-model="grid.appScope.pauseType" data-ng-change="grid.appScope.pause(row.entity,\'pause\',grid.appScope.pauseType)"><option class="pointer-cursor" data-ng-repeat="pause in grid.appScope.pauses">{{pause.name}}</option></select><span data-ng-if="!row.entity.pause || grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> {{\'APPLICATION_\'+row.entity.queueStatus.toUpperCase() | translate}}</span><span data-ng-if="row.entity.pause && grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> * </span><span data-ng-if="row.entity.pause && !grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> {{\'APPLICATION_PAUSED\' | translate}}</span><span data-ng-if="(row.entity.queueStatus!==\'complete\' && (!row.entity.pause || row.entity.pauseType === \'ACW\'))"> [{{row.entity.lastQueue}}]</span><span data-ng-if="row.entity.pause && !grid.appScope._.startsWith(row.entity.pauseType,\'#\')"> [{{row.entity.pauseType}}]</span><span data-ng-if="row.entity.queueStatusAt && (row.entity.queueStatus!==\'complete\' || (row.entity.pause)) && grid.appScope.showTimers"><css-timer start-time="(row.entity.pause && !grid.appScope._.startsWith(row.entity.pauseType,\'#\')) ? row.entity.lastPauseAt : row.entity.queueStatusAt"></css-timer></span></div>',filter:{type:p.filter.SELECT,selectOptions:[{value:"connect",label:a.instant("APPLICATION_CONNECT")},{value:"complete",label:a.instant("APPLICATION_COMPLETE")},{value:"called",label:a.instant("APPLICATION_CALLED")},{value:"paused",label:a.instant("APPLICATION_PAUSED")}]},enableSorting:!1,enableColumnMenu:!1},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button data-ng-if="row.entity.queue" class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.agentId,row.entity.queue)"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button><button data-ng-if="row.entity.isAgent" class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.joinQueue(row.entity.agentId)"><i class="icon-plus"></i> {{\'APPLICATION_QUEUES\' | translate}}</button> <button data-ng-if="row.entity.isAgent" class="btn btn-xs blue-madison" data-ng-click="grid.appScope.showInfo(row.entity)"><i class="icon-info"></i></button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(t){var e=u.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){E(t.gridApi.core.getVisibleRows(t.gridApi.grid).length)}),t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?b.order=null:b.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),h()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){b.offset=(t-1)*e,b.limit=e,h()}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters[0].term?b[t.name]=t.filters[0].term:delete b[t.name]}),h()})}},h(),v(),I(),g(function(){f()})};var E=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("agent"),s.unsyncUpdates("user_has_voice_queue")}),t.pause=function(e,n,s){return s&&(t.pauseType=null),r.save({name:n,agent:e.agentId,data2:e.agent,type:s||"DEFAULT PAUSE",data4:s||"DEFAULT PAUSE",channel:"voice"}).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.joinQueue=function(t){n.open({animation:!0,templateUrl:"app/channels/voice/realtime/view/agent/queue.modal.add.html",controller:"VoiceRealtimeViewAgentQueueModalCtrl",resolve:{id:t}})},t.showInfo=function(t){n.open({animation:!0,templateUrl:"app/channels/voice/realtime/view/agent/agent.modal.info.html",controller:"VoiceRealtimeViewAgentInfoModalCtrl",resolve:{agent:t}})},t.$on("$destroy",function(){s.unsyncUpdates("agent"),s.unsyncUpdates("user_has_voice_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.realtime.view.agents",{url:"/agents",templateUrl:"app/channels/voice/realtime/view/agent/agent.html",controller:"VoiceRealtimeViewAgentCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentInfoModalCtrl",["$scope","$uibModalInstance","agent",function(t,e,n){t.agent=n,t.close=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewAgentQueueModalCtrl",["$scope","$uibModalInstance","$http","id","Agent","xAlert","usSpinnerService","$translate","Action","socket","VoiceQueue",function(t,e,n,a,s,i,l,o,r,c,d){t.item={},t.params={penalty:0};var u=function(t,e){var n=t?30*t+130:177;angular.element(document.getElementsByName(e)[0]).css("height",n+"px")};t.enableLeave=!0,t.init=function(){t.queueTable={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,columnDefs:[{name:"name",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"},{name:"penalty",headerCellFilter:"translate",displayName:"APPLICATION_PENALTY",cellClass:"text-center ui-grid-vcenter"},{name:"loggedAt",displayName:"logged At",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.loggedAt"></span></div>'},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.leaveQueue(row.entity.name)" data-ng-disabled="!grid.appScope.enableLeave"><i class="icon-ban"></i> {{\'APPLICATION_LEAVE\' | translate}}</button>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){u(t.queueTable.paginationPageSize>t.queueTable.data.length?t.queueTable.data.length:t.queueTable.paginationPageSize,"queueTable")}),t.gridApi.pagination.on.paginationChanged(t,function(e,n){u(n>t.queueTable.data.length?t.queueTable.data.length:n,"queueTable")})}},t.queues=[];var e={};return s.get({id:a,controller:"voice",controller1:"queues"}).$promise.then(function(t){return _.forEach(_.filter(t.rows,function(t){return!0===t.UserHasVoiceQueue.logged}),function(t){e[t.name]=t}),d.get().$promise}).then(function(n){_.forEach(n.rows,function(n){e[n.name]?t.queueTable.data.push({name:n.name,loggedAt:e[n.name].UserHasVoiceQueue.loggedAt,penalty:e[n.name].UserHasVoiceQueue.penalty}):t.queues.push({name:n.name})}),l.stop("agentqueue-spinner")}).catch(function(t){i.error(t)})},t.joinQueue=function(){return l.spin("agentqueue-spinner"),t.enableLeave=!1,r.save({name:"QueueAdd",agent:a,queues:t.item.queues,channel:"voice",data1:a,data2:t.params.penalty,data3:t.item.queues.join(","),data4:"voice"}).$promise.then(function(){t.item.queues=[],i.show(o.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.leaveQueue=function(e){return l.spin("agentqueue-spinner"),t.enableLeave=!1,r.save({name:"QueueRemove",agent:a,queue:e,channel:"voice",data1:a,data3:e,data4:"voice"}).$promise.then(function(){i.show(o.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},c.socket.on("user_has_voice_queue:save",function(e){if(e.UserId==a){var n=_.find(t.queueTable.data,function(t){return t.name===e.queue});if(!n&&e.logged)t.queueTable.data.push({name:e.queue,loggedAt:e.loggedAt,penalty:e.penalty}),_.remove(t.queues,{name:e.queue}),l.stop("agentqueue-spinner"),t.enableLeave=!0;else if(n&&!e.logged){var s=_.remove(t.queueTable.data,{name:e.queue});t.queues.push(s[0])}}}),c.socket.on("user_has_voice_queue:remove",function(e){if(e.UserId==a){var n=_.remove(t.queueTable.data,{name:e.queue});t.queues.push(n[0]),l.stop("agentqueue-spinner"),t.enableLeave=!0}}),t.close=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewOutboundCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportDial","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout","Auth",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m){function g(){return c.spin("spinner-grid"),l.get({controller:"active",controller2:"calls"}).$promise.then(function(e){t.gridOptions.data=e.rows}).catch(function(t){i.error(t)}).finally(function(){h(),c.stop("spinner-grid")})}function h(){s.socket.on("report_dial:save",function(e){t.gridOptions.data.unshift(e)}),s.socket.on("report_dial:update",function(e){var n=_.find(t.gridOptions.data,{uniqueid:e.uniqueid});n&&(_.merge(n,e),!n.endtime||n.answertime&&n.answertime==n.endtime||p(function(){_.remove(t.gridOptions.data,{uniqueid:n.uniqueid})},3e3))})}t.moment=moment,t.initDials=function(){t.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"uniqueid",displayName:"APPLICATION_UNIQUEID",headerCellFilter:"translate",cellClass:"text-center"},{name:"agent",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.channel.split('/')[1].split('-')[0]}}</div>"},{name:"calleridnum",displayName:"APPLICATION_CALLERID",headerCellFilter:"translate",cellClass:"text-center"},{name:"dialstring",cellClass:"text-center"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.endtime && !row.entity.answertime">{{\'APPLICATION_RINGING\' | translate}}</span><span data-ng-if="row.entity.answertime && !row.entity.endtime">{{\'APPLICATION_TALKING\' | translate}}</span><span data-ng-if="row.entity.answertime && row.entity.endtime">{{\'APPLICATION_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.endtime && !row.entity.answertime">{{\'APPLICATION_\'+row.entity.dialstatus | translate}}</span><span data-ng-if="!row.entity.endtime && grid.appScope.showTimers"> <css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1}],data:[],gridMenuTitleFilter:function(t){var e=d.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){f(t.gridOptions.data.length)})}},g()};var f=function(t){var e=t?30*t+100:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("report_dial")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.realtime.view.outbound",{url:"/outbound",templateUrl:"app/channels/voice/realtime/view/outbound/outbound.html",controller:"VoiceRealtimeViewOutboundCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewParameterCtrl",["$scope","$translate","Dashboard","VoiceQueue","Auth","socket","uiGridConstants",function(t,e,n,a,s,i,l){function o(t){var e=t?30*t+150:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")}function r(e){var n=_.find(t.gridOptions.data,{name:e.queue});n&&(n[e.type]+=e.amount)}var c={offset:0,limit:10};t.initParameters=function(){switch(t.user=s.getCurrentUser(),t.$on("$destroy",function(){i.socket.removeAllListeners("voice:inbound")}),t.user.role){case"admin":n.get({id:"voice",controller:"init"}).$promise.then(function(e){for(var n in e.queues)e.queues[n].waiting=e.queues[n].waiting||0,e.queues[n].active=e.queues[n].active||0,e.queues[n].complete=e.queues[n].complete||0,e.queues[n].abandon=e.queues[n].abandon||0,e.queues[n].unmanaged=e.queues[n].unmanaged||0,e.queues[n].holdtime=e.queues[n].holdtime||0,e.queues[n].talktime=e.queues[n].talktime||0,t.gridOptions.data.push(e.queues[n])}).catch(function(t){console.error(t)});break;case"user":n.get({id:"voice",controller:"init"}).$promise.then(function(e){for(var n in e.queues)_.find(t.user.PVoiceQueues,{name:n})&&(e.queues[n].waiting=e.queues[n].waiting||0,e.queues[n].active=e.queues[n].active||0,e.queues[n].complete=e.queues[n].complete||0,e.queues[n].abandon=e.queues[n].abandon||0,e.queues[n].unmanaged=e.queues[n].unmanaged||0,e.queues[n].holdtime=e.queues[n].holdtime||0,e.queues[n].talktime=e.queues[n].talktime||0,t.gridOptions.data.push(e.queues[n]))}).catch(function(t){console.error(t)})}i.socket.on("voice:inbound",function(t){r(t)})},t.gridOptions={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,columnDefs:[{name:"name",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"waiting",displayName:"APPLICATION_WAITING",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"active",displayName:"APPLICATION_ACTIVE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"complete",displayName:"APPLICATION_ANSWERED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,filters:[{condition:l.filter.GREATER_THAN_OR_EQUAL,placeholder:"from"},{condition:l.filter.LESS_THAN_OR_EQUAL,placeholder:"to"}]},{name:"abandon",displayName:"APPLICATION_ABANDONED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,filters:[{condition:l.filter.GREATER_THAN_OR_EQUAL,placeholder:"from"},{condition:l.filter.LESS_THAN_OR_EQUAL,placeholder:"to"}]},{name:"unmanaged",displayName:"APPLICATION_UNMANAGED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,filters:[{condition:l.filter.GREATER_THAN_OR_EQUAL,placeholder:"from"},{condition:l.filter.LESS_THAN_OR_EQUAL,placeholder:"to"}]},{name:"holdtime",displayName:"APPLICATION_HOLDTIME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.holdtime | secToTime | date:'HH:mm:ss'}}</div>",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"talktime",displayName:"APPLICATION_TALKTIME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.talktime | secToTime | date:'HH:mm:ss'}}</div>",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"totalCalls",displayName:"APPLICATION_TOTAL_CALLS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.complete + row.entity.abandon + row.entity.unmanaged}}</div>",enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?c.order=null:c.order=e[0].name+" "+e[0].sort.direction.toUpperCase()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){o(e),c.offset=(t-1)*e,c.limit=e}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters.length>1?t.filters.forEach(function(e){e.term?64===e.condition?c[t.name+"_uiFrom"]=e.term:256===e.condition&&(c[t.name+"_uiTo"]=e.term):64===e.condition?delete c[t.name+"_uiFrom"]:256===e.condition&&delete c[t.name+"_uiTo"]}):t.filters.length&&t.filters[0].term?c[t.name]=t.filters[0].term:delete c[t.name]})})}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.realtime.view.parameters",{url:"/parameters",templateUrl:"app/channels/voice/realtime/view/parameter/parameter.html",controller:"VoiceRealtimeViewParameterCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","VoiceQueue","usSpinnerService","$q",function(t,e,n,a,s,i,l,o,r){function c(){return o.spin("spinner-grid"),l.get().$promise.then(function(e){t.queues=e.rows}).catch(function(t){i.error(t)}).finally(function(){d(),o.stop("spinner-grid")})}function d(){s.socket.on("voice_queue:save",function(e){_.find(t.queues,{name:e.name})||t.queues.push(e)}),s.socket.on("voice_queue:remove",function(e){_.remove(t.queues,{name:e.name})}),s.socket.on("user_has_voice_queue:save",function(e){if(e.queue===t.item.queue){var n=_.find(t.gridOptions.data,{id:e.UserId});n?(n.voicePause=e.paused,n.pauseType=e.reason):t.gridOptions.data.push({id:e.UserId,name:e.membername,voicePause:e.paused,pauseType:e.reason})}}),s.socket.on("user_has_voice_queue:remove",function(e){e.queue===t.item.queue&&_.remove(t.gridOptions.data,{id:e.UserId})})}t.moment=moment,t.item={},t.initQueues=function(){t.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,columnDefs:[{name:"name",displayName:"APPLICATION_AGENT_NAME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"paused",displayName:"APPLICATION_PAUSED",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div\">{{(row.entity.voicePause ? 'APPLICATION_YES' : 'APPLICATION_NO') | translate}}</div>"},{name:"pauseType",displayName:"APPLICATION_REASON",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.voicePause">{{row.entity.pauseType}}</div>'}],data:[],gridMenuTitleFilter:function(t){var e=r.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){u(t.gridOptions.paginationPageSize>t.gridOptions.data.length?t.gridOptions.data.length:t.gridOptions.paginationPageSize)}),t.gridApi.pagination.on.paginationChanged(t,function(e,n){u(n>t.gridOptions.data.length?t.gridOptions.data.length:n)})}},c()},t.getAgents=function(e){if(e)return l.get({id:e,controller:"agents"}).$promise.then(function(e){t.gridOptions.data=_.filter(e.rows,function(t){return!0===t.UserHasVoiceQueue.logged})}).catch(function(t){i.error(t)});t.gridOptions.data=[]};var u=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("voice_queue"),s.unsyncUpdates("user_has_voice_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.realtime.view.queues",{url:"/queues",templateUrl:"app/channels/voice/realtime/view/queue/queue.html",controller:"VoiceRealtimeViewQueueCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewQueueCallsCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportQueue","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d,u,p){function m(){return c.spin("spinner-grid"),l.get({controller:"waiting",controller2:"calls"}).$promise.then(function(e){t.gridOptions.data=e.rows,h(10)}).catch(function(t){i.error(t)}).finally(function(){g(),c.stop("spinner-grid")})}function g(){s.socket.on("report_queue:save",function(e){t.gridOptions.data.unshift(e)}),s.socket.on("report_queue:update",function(e){var n=_.find(t.gridOptions.data,{id:e.id});if(n){var a={queuecallerabandon:e.queuecallerabandon,queuecallerleave:e.queuecallerleave};delete e.queuecallerabandon,delete e.queuecallerleave,_.merge(n,e),a.queuecallerabandon&&(n.queuecallerabandon=a.queuecallerabandon),a.queuecallerleave&&(n.queuecallerleave=a.queuecallerleave),(n.queuecallerabandon||n.queuecallercomplete||n.queuecallerexitreason)&&p(function(){_.remove(t.gridOptions.data,{id:e.id})},3e3)}})}t.moment=moment,t.initQueues=function(){t.gridOptions={headerCellFilter:"translate",paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.queuecallerleaveAt && !row.entity.queuecallerexit">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && !row.entity.queuecallerabandon && !row.entity.queuecallercomplete && !row.entity.queuecallerexit">{{\'APPLICATION_ACTIVE\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallerabandon">{{\'APPLICATION_QUEUESTATUS_ABANDON\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallercomplete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.queuecallerexitreason">{{row.entity.queuecallerexitreason}}</span><span data-ng-if="!row.entity.queuecallercomplete && !row.entity.queuecallerabandon && !row.entity.queuecallerexit && grid.appScope.showTimers"> <css-timer start-time="row.entity.updatedAt"></css-timer></span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"caller",displayName:"APPLICATION_CALLER",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.calleridnum || ''}} {{row.entity.calleridname || ''}}</div>",enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"position",displayName:"APPLICATION_POSITION",headerCellFilter:"translate"},{name:"lastAssignedTo",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1}],data:[],gridMenuTitleFilter:function(t){var e=d.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.pagination.on.paginationChanged(t,function(t,e){h(e)})}},m()};var h=function(t){var e=t?30*t+100:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("report_queue")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.realtime.view.queuecalls",{url:"/queuecalls",templateUrl:"app/channels/voice/realtime/view/queuecalls/queuecalls.html",controller:"VoiceRealtimeViewQueueCallsCtrl"})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewTelephoneCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","Telephone","Pause","Action","usSpinnerService","$q","uiGridConstants","$timeout",function(t,e,n,a,s,i,l,o,r,c,d,u,p){function m(){return c.spin("spinner-grid"),l.get(h).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.data=e.rows}).catch(function(t){i.error(t)}).finally(function(){c.stop("spinner-grid")})}function g(){s.socket.on("agent:save",function(e){var n=_.find(t.gridOptions.data,{id:e.id});n&&(n.status=e.status,n.statusAt=e.statusAt,n.ipaddr=e.ipaddr,n.port=e.port,n.fullcontact=e.fullcontact,n.useragent=e.useragent,n.lastms=e.lastms,n.internal=e.internal)}),s.socket.on("agent:remove",function(e){_.remove(t.gridOptions.data,{id:e.id})})}var h={offset:0,limit:10};t.moment=moment,t.initTelephones=function(){t.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"name",displayName:"APPLICATION_TELEPHONE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.name}} &lt;{{row.entity.internal}}&gt;</div>"},{name:"status",displayName:"APPLICATION_PHONE_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_'+row.entity.status | translate}} <span data-ng-if=\"row.entity.statusAt && (row.entity.status === 'BUSY' || row.entity.status === 'ONHOLD' || row.entity.status === 'INUSE')\"><span data-ng-if=\"grid.appScope.showTimers\"><css-timer start-time=\"row.entity.statusAt\"></css-timer></span></span></div>",filter:{type:u.filter.SELECT,selectOptions:[{value:"UNKNOWN",label:a.instant("APPLICATION_UNKNOWN")},{value:"NOT_INUSE",label:a.instant("APPLICATION_NOT_INUSE")},{value:"INUSE",label:a.instant("APPLICATION_INUSE")},{value:"BUSY",label:a.instant("APPLICATION_BUSY")},{value:"INVALID",label:a.instant("APPLICATION_INVALID")},{value:"UNAVAILABLE",label:a.instant("APPLICATION_UNAVAILABLE")},{value:"RINGING",label:a.instant("APPLICATION_RINGING")},{value:"RINGINUSE",label:a.instant("APPLICATION_RINGINUSE")},{value:"ONHOLD",label:a.instant("APPLICATION_ONHOLD")}]}},{name:"action",displayName:"",width:170,cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><button class="btn btn-xs blue-madison" data-ng-click="grid.appScope.showInfo(row.entity)"><i class="icon-info"></i></button><div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1}],data:[],gridMenuTitleFilter:function(t){var e=d.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){f(t.gridOptions.data.length)}),t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?h.order=null:h.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),m()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){h.offset=(t-1)*e,h.limit=e,m()}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters[0].term?h[t.name]=t.filters[0].term:delete h[t.name]}),m()})}},m(),p(function(){g()})};var f=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("agent")}),t.showInfo=function(t){n.open({animation:!0,templateUrl:"app/channels/voice/realtime/view/telephone/telephone.modal.info.html",controller:"VoiceRealtimeViewTelephoneInfoModalCtrl",resolve:{telephone:t}})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.realtime.view.telephones",{url:"/telephones",templateUrl:"app/channels/voice/realtime/view/telephone/telephone.html",controller:"VoiceRealtimeViewTelephoneCtrl",data:{permissions:{only:["admin","user"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewTelephoneInfoModalCtrl",["$scope","$uibModalInstance","$http","telephone",function(t,e,n,a){t.telephone=a,t.close=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRealtimeViewCtrl",["$scope","Auth",function(t,e){t.Auth=e,t.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.showTimers=!1}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.realtime.view",{url:"/view",templateUrl:"app/channels/voice/realtime/view/view.html",controller:"VoiceRealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRecordingListCtrl",["$scope","$translate","$sce","Recording","gridOptions","xAlert","uiGridConstants","Auth",function(t,e,n,a,s,i,l,o){t.Recording=a,t.updateRating=function(t,n){return a.update({id:t,rating:n}).$promise.then(function(){i.show(e.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.initView=function(){var e={exporterCsvFilename:"recordings.csv",rowHeight:30,primaryKey:"id",columnDefs:[{name:"uniqueid"},{name:"customerPhone",displayName:"APPLICATION_CUSTOMER_PHONE",cellClass:"text-center ui-grid-vcenter"},{name:"membername"},{name:"type",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div><i data-ng-class=\"{'icon-call-in font-green':row.entity.type === 'inbound','icon-call-out font-red':row.entity.type === 'outbound','icon-control-forward font-red':row.entity.type === 'tigerdial','icon-question':row.entity.type === 'unknown','icon-earphones font-purple':row.entity.type === 'internal','fa fa-user-secret font-blue':row.entity.type === 'chanspy'}\"></i></div>",filter:{type:l.filter.SELECT,selectOptions:[{value:"inbound",label:"Inbound"},{value:"internal",label:"Internal"},{value:"outbound",label:"Outbound"},{value:"tigerdial",label:"Motion Dialer"},{value:"chanspy",label:"ChanSpy"},{value:"unknown",label:"Unknown"}]}},{name:"queue"},{name:"createdAt",displayName:"APPLICATION_DATE",headerCellFilter:"translate",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:l.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:l.filter.LESS_THAN_OR_EQUAL}],sort:{direction:l.DESC,priority:0}},{name:"rating",filter:{type:l.filter.SELECT,selectOptions:[{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}]},cellClass:"ui-grid-vcenter",width:"100",cellTemplate:'<div><uib-rating data-ng-model="row.entity.rating" data-ng-click="grid.appScope.updateRating(row.entity.id, row.entity.rating)" aria-labelledby="default-rating"></uib-rating></div>'},{name:"audio",displayName:"",width:100,enableSorting:!1,enableFiltering:!1,cellClass:"ui-grid-vcenter",cellTemplate:"<div><audio-file-download data-ng-if=\"row.entity.value.split('.').pop() == 'wav'\" params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.Recording\"></audio-file-download><span data-ng-if=\"row.entity.value.split('.').pop() == 'gsm'\" title=\"{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}\">{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}</span></div>"},{name:"action",width:80,buttons:[{directive:"<motion-file-download params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.Recording\" mimetype=\"'audio/'+row.entity.value.split('.').pop()\" btnclass=\"btn btn-xs blue-hoki\" filename=\"row.entity.uniqueid+'.'+row.entity.value.split('.').pop()\"></motion-file-download>"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.uniqueid, row.entity.id)",hide:!o.isAdmin()}]}]};t.gridOptions=s.gridOptions(a,e,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.recordings.list",{url:"/list",templateUrl:"app/channels/voice/recording/list/list.html",controller:"VoiceRecordingListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Recording",["$resource",function(t){return t("/api/voice/recordings/:id/:controller",{id:"@id"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.recordings",{url:"/recordings",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:25}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes.inbound",{url:"/inbound",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundListCreateCtrl",["$scope","$uibModalInstance","Route","application","xAlert","$location","$translate","VoiceContext","socket",function(t,e,n,a,s,i,l,o,r){t.$application=a.application,t.forms={route:void 0},t.getContexts=function(){return o.get().$promise.then(function(e){t.voiceContexts=e.rows,r.syncUpdates("voice_context",t.voiceContexts)}).catch(function(t){s.error(t)})},t.item={type:"inbound",appdata:"Inbound Call from ${CALLERID(num)}",context:"from-voip-provider"},t.ok=function(){return t.item.exten=t.$application.checkUnderscore(t.item.exten),n.save(t.item).$promise.then(function(t){e.close(t),i.path("/channels/voice/routes/inbound/view/"+t.id+"/applications")}).catch(function(t){console.log(t),s.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource","gridOptions","Route","$uibModal","$location","$log",function(t,e,n,a,s,i,l,o,r,c,d,u,p){t.initView=function(){var e={exporterCsvFilename:"InboundRoutes.csv",columnDefs:[{name:"exten",displayName:"APPLICATION_PHONE_NUMBER"},{name:"description"},{name:"applications",cellClass:"ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.Applications.length"><span data-ng-repeat="app in row.entity.Applications | limitTo:2">{{app.app}}({{app.appdata[0]}}), </span>...</div><div data-ng-if="!row.entity.Applications.length">{{\'MESSAGE_NO_AVAILABLE_APPLICATIONS\' | translate}}</div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/voice/routes/inbound/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.exten, row.entity.id)"}]}]};t.gridOptions=r.gridOptions(c,e,t,{type:"inbound"})},t.create=function(){d.open({animation:!0,templateUrl:"app/channels/voice/route/inbound/list/create.modal.html",controller:"VoiceRouteInboundListCreateCtrl"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes.inbound.list",{url:"/list",templateUrl:"app/channels/voice/route/inbound/list/list.html",controller:"VoiceRouteInboundListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInboundViewCtrl",["$scope","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval","Route","VoiceQueue","Sound","SquareProject","VoiceContext","Interval","VoiceMail","User","Agent","Telephone","Trunk","Team",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A,v,I,b,E){function T(e){var n,a;if("always"===e.intType)n=null,a="*,*,*,*";else if("list"===e.intType)a=e.IntervalId?_.find(t.Intervals,{id:e.IntervalId}).name:"*,*,*,*",n=e.IntervalId||null;else if("custom"===e.intType){n=null;var s,i,l,o;s=e.t_from&&e.t_to&&!e.alwaysTime?moment(e.t_from).format("HH:mm")+"-"+moment(e.t_to).format("HH:mm"):"*",e.wd_from&&"always"!==e.wd_from?(i=e.wd_from,e.wd_to&&"always"!==e.wd_to&&(i+="-"+e.wd_to)):i="*",e.md_from&&"always"!==e.md_from?(l=e.md_from,e.md_to&&"always"!==e.md_to&&(l+="-"+e.md_to)):l="*",e.m_from&&"always"!==e.m_from?(o=e.m_from,e.m_to&&"always"!==e.m_to&&(o+="-"+e.m_to)):o="*",a=s+","+i+","+l+","+o}void 0===t.selectedApp?(t.application.interval=a,t.application.IntervalId=n):(t.route.Applications[t.selectedApp].interval=a,t.route.Applications[t.selectedApp].IntervalId=n)}function N(){if(t.interval.intType=t.route.Applications[t.selectedApp].IntervalId?"list":"*,*,*,*"===t.route.Applications[t.selectedApp].interval?"always":"custom",t.interval.IntervalId=t.route.Applications[t.selectedApp].IntervalId,!t.route.Applications[t.selectedApp].IntervalId){var e;(t.route.Applications[t.selectedApp].interval?t.route.Applications[t.selectedApp].interval.split(","):["*","*","*","*"]).forEach(function(n,a){switch(a){case 0:"*"!==n?(e=n.split("-"),t.interval.t_from=moment(e[0],"HH:mm"),t.interval.t_to=moment(e[1],"HH:mm"),t.interval.alwaysTime=!1):(t.interval.t_from=moment(new Date),t.interval.t_to=moment(new Date),t.interval.alwaysTime=!0);break;case 1:"*"!==n?(e=n.split("-"),t.interval.wd_from=e[0],t.interval.wd_to=e[1]?e[1]:"always"):(t.interval.wd_from="always",t.interval.wd_to="always");break;case 2:"*"!==n?(e=n.split("-"),t.interval.md_from=e[0],t.interval.md_to=e[1]?e[1]:"always"):(t.interval.md_from="always",t.interval.md_to="always");break;case 3:"*"!==n?(e=n.split("-"),t.interval.m_from=e[0],t.interval.m_to=e[1]?e[1]:"always"):(t.interval.m_from="always",t.interval.m_to="always")}})}}t.alwaysSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.$translate=e,t.selectedApp=void 0,t.showGrid=!0,t.$application=r.application,t.$interval=c.interval,t.selectedRows=[],t._=_,t.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableSorting:!1,rowTemplate:'<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',columnDefs:[{name:"app",headerCellFilter:"translate",displayName:"APPLICATION_APPLICATION",enableColumnMenu:!1},{name:"appType",headerCellFilter:"translate",displayName:"APPLICATION_INFO",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_APPS_'+(row.entity.appType || (grid.appScope._.find(grid.appScope.$application.applications,{value:row.entity.app}) ? row.entity.app : 'custom')).toUpperCase() | translate}}</div>",enableColumnMenu:!1},{name:"appdata",headerCellFilter:"translate",displayName:"APPLICATION_ARGUMENTS",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.appdata.join(',')}}</div>",enableColumnMenu:!1},{name:"interval",headerCellFilter:"translate",displayName:"APPLICATION_TIME_INTERVAL",enableColumnMenu:!1},{name:"action",enableColumnMenu:!1,headerCellFilter:"translate",displayName:"APPLICATION_ACTION",width:125,cellClass:"ui-grid-vcenter",cellTemplate:'<div><a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openApplication(grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteApp(row.entity.app+\' application\', grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="fa fa-trash"></i></a></div>'}],onRegisterApi:function(e){e.selection.on.rowSelectionChanged(t,function(e){e.isSelected?t.selectedRows.push(e.entity):_.pull(t.selectedRows,e.entity)}),e.selection.on.rowSelectionChangedBatch(t,function(e){e[0].isSelected?t.selectedRows=_.map(e,"entity"):t.selectedRows=[]}),e.draggableRows.on.rowDropped(t,function(e,n){t.updateRoute()}),e.grid.registerDataChangeCallback(function(){P(t.gridOptions.data.length)})}};var P=function(t){var e=t?30*t+120:177;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px")};t.initApplication=function(e){e&&(t.selectedApp=void 0),t.forms={settings:void 0,interval:void 0},t.application={},t.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},t.main={app:""}},t.$watch("interval",function(t){t&&T(t)},!0),t.updateSetAppdata=function(){t.application.variable&&t.application.value&&"Set"===t.main.app.value?t.application.appdata[0]=t.application.variable+"="+t.application.value:t.application.appdata[0]=null},t.updateSetAppdataSettings=function(){t.application.variable&&t.application.value&&"Set"===t.main.app.value?t.route.Applications[t.selectedApp].appdata[0]=t.application.variable+"="+t.application.value:t.route.Applications[t.selectedApp].appdata[0]=null},t.updateVideoOnAppdata=function(){t.application.domain&&t.application.theme&&"Set"===t.main.app.value&&"videoOn"===t.main.app.type?t.application.appdata[0]="_xcally_motion_video_room_id=https://"+t.application.domain+"/split_agent_popup.php?theme="+t.application.theme+"&room=${SIP_HEADER(X-Split-Id)}":t.application.appdata[0]=null},t.updateVideoOnAppdataSettings=function(){t.application.domain&&t.application.theme&&"Set"===t.main.app.value&&"videoOn"===t.main.app.type?t.route.Applications[t.selectedApp].appdata[0]="_xcally_motion_video_room_id=https://"+t.application.domain+"/split_agent_popup.php?theme="+t.application.theme+"&room=${SIP_HEADER(X-Split-Id)}":t.route.Applications[t.selectedApp].appdata[0]=null},t.$watch("main.app",function(e){if(e){var n,a,s={},i={};switch(void 0===t.selectedApp&&(t.application={appType:e.type,app:e.value,interval:t.application.interval||"*,*,*,*",appdata:[]}),e.value){case"Queue":n=u,a=p;break;case"Playback":n=p;break;case"AGI":n=m;break;case"Goto":n=g;break;case"Voicemail":n=f;break;case"Dial":switch(e.type){case"internalDial":n=A,s={controller:"all"};break;case"externalDial":n=b}}if(n)return n.get(s).$promise.then(function(e){t.items=e.rows}).then(function(){if(a)return a.get(i).$promise}).then(function(e){e&&(t.items2=e.rows)}).catch(function(t){o.error(t)})}},!0),t.deselectAndRedirect=function(e){t.selectedApp=void 0,s.path(e)},t.initRingGroup=function(){var e,n,a;return void 0===t.selectedApp?t.usersArray=[]:t.usersArray=_.map(t.route.Applications[t.selectedApp].appdata[0].split("&"),function(t){return t.split("/")[1]}),A.get().$promise.then(function(t){return e=t,v.get().$promise}).then(function(t){return n=t,I.get().$promise}).then(function(s){a=s,ComponentsDropdowns.bindUserByRole(e,n,a,function(e){t.usersArray=_.union(e,t.usersArray),void 0===t.selectedApp?(t.application.appdata[0]=null,t.application.appdata[0]=_.map(t.usersArray,function(t){return"SIP/"+t}).join("&")):(t.route.Applications[t.selectedApp].appdata[0]=null,t.route.Applications[t.selectedApp].appdata[0]=_.map(t.usersArray,function(t){return"SIP/"+t}).join("&"))},function(e){t.usersArray=_.difference(t.usersArray,e),void 0===t.selectedApp?(t.application.appdata[0]=null,t.application.appdata[0]=_.map(t.usersArray,function(t){return"SIP/"+t}).join("&")):(t.route.Applications[t.selectedApp].appdata[0]=null,t.route.Applications[t.selectedApp].appdata[0]=_.map(t.usersArray,function(t){return"SIP/"+t}).join("&"))},t.route.Applications[t.selectedApp]?t.route.Applications[t.selectedApp].appdata:null)}).catch(function(t){console.error(t)})},t.getIntervals=function(){return h.get().$promise.then(function(e){t.Intervals=e.rows,a.syncUpdates("interval",t.Intervals)}).catch(function(t){o.error(t)})},t.getRoute=function(){return d.get({id:n.id}).$promise.then(function(e){t.route=e,t.gridOptions.data=e.Applications,P(t.gridOptions.data.length)}).catch(function(t){s.path("/channels/voice/routes/inbound/list")})},t.getApplication=function(){if(void 0===t.selectedApp)s.path("/channels/voice/routes/inbound/list");else{if(t.showGrid=!0,t.route.Applications[t.selectedApp].appType)t.main.app=_.find(t.$application.applications,{type:t.route.Applications[t.selectedApp].appType});else{var e=_.find(t.$application.applications,{value:t.route.Applications[t.selectedApp].app});if(e)t.main.app=e;else{t.main.app=_.find(t.$application.applications,{type:"custom"});var n=t.route.Applications[t.selectedApp].appdata.join(",");t.route.Applications[t.selectedApp].appdata=[n],t.route.Applications[t.selectedApp].appType="custom"}}if("Set"===t.main.app.value&&!t.main.app.type){var a=t.route.Applications[t.selectedApp].appdata[0].split("=");t.application.variable=a[0],t.application.value=a[1]}if("Set"===t.main.app.value&&"videoOn"===t.main.app.type){var i=new Url(t.route.Applications[t.selectedApp].appdata[0].split("=").slice(1).join("="));t.application.domain=i.host+(i.port?":"+i.port:""),t.application.theme=i.query.theme}N()}},t.openApplication=function(e){t.selectedApp=e,t.showGrid=!1,s.path("/channels/voice/routes/inbound/view/"+n.id+"/applications/settings")},t.updateRoute=function(a){return t.route.exten=t.$application.checkUnderscore(t.route.exten),_.forEach(t.route.Applications,function(t){if("custom"!==t.appType)switch(t.app){case"Dial":var e;switch(t.appType){case"externalDial":e=3;break;case"internalDial":e=2;break;default:e=2}t.appdata[e]=t.appdata[e]||"",t.appdata[e]+=(_.includes(t.appdata[e],"x")?"":"x")+(_.includes(t.appdata[e],"X")?"":"X");break;case"Queue":t.appdata[1]=t.appdata[1]||"",t.appdata[1]+=(_.includes(t.appdata[1],"x")?"":"x")+(_.includes(t.appdata[1],"X")?"":"X")}}),d.update({id:t.route.id},t.route).$promise.then(function(i){t.selectedApp=void 0,o.show(e.instant("MESSAGE_WELL_DONE")+"!","success"),a&&s.path("/channels/voice/routes/inbound/view/"+n.id+"/"+a)}).catch(function(t){console.log(t),o.error(t)})},t.getContexts=function(){return g.get().$promise.then(function(e){t.voiceContexts=e.rows,a.syncUpdates("voice_context",t.voiceContexts)}).catch(function(t){o.error(t)})},t.deleteApp=l.confirm.delete(function(e){t.route.Applications.splice(e,1),t.updateRoute()}),t.deleteItems=l.confirm.delete(function(){_.remove(t.route.Applications,function(e){return _.includes(t.selectedRows,e)}),t.selectedRows=[],t.updateRoute()}),t.addApplication=function(){t.route.Applications.push(t.application),t.updateRoute("applications")},t.goNext=function(){i.wizard().next()},t.previous=function(){i.wizard().previous()},t.formValidation=function(t){return t},t.$on("destroy",function(){a.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes.inbound.view",{url:"/view/:id",templateUrl:"app/channels/voice/route/inbound/view/view.html",controller:"VoiceRouteInboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.routes.inbound.view.settings",{url:"/settings",templateUrl:"app/channels/voice/route/inbound/view/view.settings.html"}).state("main.channels.voice.routes.inbound.view.applications",{url:"/applications",templateUrl:"app/channels/voice/route/inbound/view/view.applications.html"}).state("main.channels.voice.routes.inbound.view.application",{url:"/application",templateUrl:"app/channels/voice/route/view.application.html",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.channels.voice.routes.inbound.view.applications.settings",{url:"/settings",templateUrl:"app/channels/voice/route/view.applicationSettings.html",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes.internal",{url:"/internal",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalListCreateCtrl",["$scope","$uibModalInstance","Route","application","$location","$translate","xAlert","VoiceContext","socket",function(t,e,n,a,s,i,l,o,r){t.$application=a.application,t.forms={route:void 0},t.getContexts=function(){return o.get().$promise.then(function(e){t.voiceContexts=e.rows,r.syncUpdates("voice_context",t.voiceContexts)}).catch(function(t){l.error(t)})},t.item={type:"internal",appdata:"Internal Call from ${CALLERID(num)}",context:"from-sip"},t.ok=function(){return t.item.exten=t.$application.checkUnderscore(t.item.exten),n.save(t.item).$promise.then(function(t){e.close(t),s.path("/channels/voice/routes/internal/view/"+t.id+"/applications")}).catch(function(t){l.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource","gridOptions","Route","$uibModal","$location","$log",function(t,e,n,a,s,i,l,o,r,c,d,u,p){t.initView=function(){var e={exporterCsvFilename:"InternalRoutes.csv",columnDefs:[{name:"exten",displayName:"APPLICATION_PHONE_NUMBER"},{name:"description"},{name:"applications",cellClass:"ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.Applications.length"><span data-ng-repeat="app in row.entity.Applications | limitTo:2">{{app.app}}({{app.appdata[0]}}),</span>...</div><div data-ng-if="!row.entity.Applications.length">{{\'MESSAGE_NO_AVAILABLE_APPLICATIONS\' | translate}}</div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/voice/routes/internal/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.exten, row.entity.id)"}]}]};t.gridOptions=r.gridOptions(c,e,t,{type:"internal"})},t.create=function(){d.open({animation:!0,templateUrl:"app/channels/voice/route/internal/list/create.modal.html",controller:"VoiceRouteInternalListCreateCtrl"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes.internal.list",{url:"/list",templateUrl:"app/channels/voice/route/internal/list/list.html",controller:"VoiceRouteInternalListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteInternalViewCtrl",["$scope","$translate","$stateParams","socket","$location","WizardHandler","Modal","xAlert","application","interval","Route","VoiceQueue","Sound","SquareProject","VoiceContext","Interval","VoiceMail","User","Agent","Telephone","Trunk",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A,v,I,b){function E(e){var n,a;if("always"===e.intType)n=null,a="*,*,*,*";else if("list"===e.intType)a=e.IntervalId?_.find(t.Intervals,{id:e.IntervalId}).name:"*,*,*,*",n=e.IntervalId||null;else if("custom"===e.intType){n=null;var s,i,l,o;s=e.t_from&&e.t_to&&!e.alwaysTime?moment(e.t_from).format("HH:mm")+"-"+moment(e.t_to).format("HH:mm"):"*",e.wd_from&&"always"!==e.wd_from?(i=e.wd_from,e.wd_to&&"always"!==e.wd_to&&(i+="-"+e.wd_to)):i="*",e.md_from&&"always"!==e.md_from?(l=e.md_from,e.md_to&&"always"!==e.md_to&&(l+="-"+e.md_to)):l="*",e.m_from&&"always"!==e.m_from?(o=e.m_from,e.m_to&&"always"!==e.m_to&&(o+="-"+e.m_to)):o="*",a=s+","+i+","+l+","+o}void 0===t.selectedApp?(t.application.interval=a,t.application.IntervalId=n):(t.route.Applications[t.selectedApp].interval=a,t.route.Applications[t.selectedApp].IntervalId=n)}function T(){if(t.interval.intType=t.route.Applications[t.selectedApp].IntervalId?"list":"*,*,*,*"===t.route.Applications[t.selectedApp].interval?"always":"custom",t.interval.IntervalId=t.route.Applications[t.selectedApp].IntervalId,!t.route.Applications[t.selectedApp].IntervalId){var e;(t.route.Applications[t.selectedApp].interval?t.route.Applications[t.selectedApp].interval.split(","):["*","*","*","*"]).forEach(function(n,a){switch(a){case 0:"*"!==n?(e=n.split("-"),t.interval.t_from=moment(e[0],"HH:mm"),t.interval.t_to=moment(e[1],"HH:mm"),t.interval.alwaysTime=!1):(t.interval.t_from=moment(new Date),t.interval.t_to=moment(new Date),t.interval.alwaysTime=!0);break;case 1:"*"!==n?(e=n.split("-"),t.interval.wd_from=e[0],t.interval.wd_to=e[1]?e[1]:"always"):(t.interval.wd_from="always",t.interval.wd_to="always");break;case 2:"*"!==n?(e=n.split("-"),t.interval.md_from=e[0],t.interval.md_to=e[1]?e[1]:"always"):(t.interval.md_from="always",t.interval.md_to="always");break;case 3:"*"!==n?(e=n.split("-"),t.interval.m_from=e[0],t.interval.m_to=e[1]?e[1]:"always"):(t.interval.m_from="always",t.interval.m_to="always")}})}}t.alwaysSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.$translate=e,t.selectedApp=void 0,t.showGrid=!0,t.$application=angular.copy(r.application),_.remove(t.$application.applications,{value:"videoOn"}),t.$interval=c.interval,t._=_,t.selectedRows=[],t.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableSorting:!1,rowTemplate:'<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',columnDefs:[{name:"app",headerCellFilter:"translate",displayName:"APPLICATION_APPLICATION",enableColumnMenu:!1},{name:"appType",headerCellFilter:"translate",displayName:"APPLICATION_INFO",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_APPS_'+(row.entity.appType || (grid.appScope._.find(grid.appScope.$application.applications,{value:row.entity.app}) ? row.entity.app : 'custom')).toUpperCase() | translate}}</div>",enableColumnMenu:!1},{name:"appdata",headerCellFilter:"translate",displayName:"APPLICATION_ARGUMENTS",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.appdata.join(',')}}</div>",enableColumnMenu:!1},{name:"interval",headerCellFilter:"translate",displayName:"APPLICATION_TIME_INTERVAL",enableColumnMenu:!1},{name:"action",enableColumnMenu:!1,headerCellFilter:"translate",displayName:"APPLICATION_ACTION",width:125,cellClass:"ui-grid-vcenter",cellTemplate:'<div><a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openApplication(grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteApp(row.entity.app+\' application\', grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="fa fa-trash"></i></a></div>'}],onRegisterApi:function(e){e.selection.on.rowSelectionChanged(t,function(e){e.isSelected?t.selectedRows.push(e.entity):_.pull(t.selectedRows,e.entity)}),e.selection.on.rowSelectionChangedBatch(t,function(e){e[0].isSelected?t.selectedRows=_.map(e,"entity"):t.selectedRows=[]}),e.draggableRows.on.rowDropped(t,function(e,n){t.updateRoute()}),e.grid.registerDataChangeCallback(function(){N(t.gridOptions.data.length)})}},t.deleteItems=l.confirm.delete(function(){_.remove(t.route.Applications,function(e){return _.includes(t.selectedRows,e)}),t.selectedRows=[],t.updateRoute()}),t.initRingGroup=function(){var e,n,a;return void 0===t.selectedApp?t.usersArray=[]:t.usersArray=_.map(t.route.Applications[t.selectedApp].appdata[0].split("&"),function(t){return t.split("/")[1]}),A.get().$promise.then(function(t){return e=t,v.get().$promise}).then(function(t){return n=t,I.get().$promise}).then(function(s){a=s,ComponentsDropdowns.bindUserByRole(e,n,a,function(e){t.usersArray=_.union(e,t.usersArray),void 0===t.selectedApp?(t.application.appdata[0]=null,t.application.appdata[0]=_.map(t.usersArray,function(t){return"SIP/"+t}).join("&")):(t.route.Applications[t.selectedApp].appdata[0]=null,t.route.Applications[t.selectedApp].appdata[0]=_.map(t.usersArray,function(t){return"SIP/"+t}).join("&"))},function(e){t.usersArray=_.difference(t.usersArray,e),void 0===t.selectedApp?(t.application.appdata[0]=null,t.application.appdata[0]=_.map(t.usersArray,function(t){return"SIP/"+t}).join("&")):(t.route.Applications[t.selectedApp].appdata[0]=null,t.route.Applications[t.selectedApp].appdata[0]=_.map(t.usersArray,function(t){return"SIP/"+t}).join("&"))},t.route.Applications[t.selectedApp]?t.route.Applications[t.selectedApp].appdata:null)}).catch(function(t){console.error(t)})};var N=function(t){var e=t?30*t+120:177;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px")};t.initApplication=function(e){e&&(t.selectedApp=void 0),t.forms={settings:void 0,interval:void 0},t.application={},t.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},t.main={app:""}},t.$watch("interval",function(t){t&&E(t)},!0),t.updateSetAppdata=function(){t.application.variable&&t.application.value&&"Set"===t.main.app.value?t.application.appdata[0]=t.application.variable+"="+t.application.value:t.application.appdata[0]=null},t.updateSetAppdataSettings=function(){t.application.variable&&t.application.value&&"Set"===t.main.app.value?t.route.Applications[t.selectedApp].appdata[0]=t.application.variable+"="+t.application.value:t.application.appdata[0]=null},t.$watch("main.app",function(e){if(e){var n,a,s={},i={};switch(void 0===t.selectedApp&&(t.application={appType:e.type,app:e.value,interval:t.application.interval||"*,*,*,*",appdata:[]}),e.value){case"Queue":n=u,a=p;break;case"Playback":n=p;break;case"AGI":n=m;break;case"Goto":n=g;break;case"Voicemail":n=f;break;case"Dial":switch(e.type){case"internalDial":n=A,s={controller:"all"};break;case"externalDial":n=b}}if(n)return n.get(s).$promise.then(function(e){t.items=e.rows}).then(function(){if(a)return a.get(i).$promise}).then(function(e){e&&(t.items2=e.rows)}).catch(function(t){o.error(t)})}},!0),t.deselectAndRedirect=function(e){t.selectedApp=void 0,s.path(e)},t.getIntervals=function(){return h.get().$promise.then(function(e){t.Intervals=e.rows,a.syncUpdates("interval",t.Intervals)}).catch(function(t){o.error(t)})},t.getRoute=function(){return d.get({id:n.id}).$promise.then(function(e){t.route=e,t.gridOptions.data=e.Applications,N(t.gridOptions.data.length)}).catch(function(t){s.path("/channels/voice/routes/internal/list")})},t.getApplication=function(){if(void 0===t.selectedApp)s.path("/channels/voice/routes/internal/list");else{if(t.showGrid=!0,t.route.Applications[t.selectedApp].appType)t.main.app=_.find(t.$application.applications,{type:t.route.Applications[t.selectedApp].appType});else{var e=_.find(t.$application.applications,{value:t.route.Applications[t.selectedApp].app});if(e)t.main.app=e;else{t.main.app=_.find(t.$application.applications,{type:"custom"});var n=t.route.Applications[t.selectedApp].appdata.join(",");t.route.Applications[t.selectedApp].appdata=[n],t.route.Applications[t.selectedApp].appType="custom"}}if("Set"===t.main.app.value){var a=t.route.Applications[t.selectedApp].appdata[0].split("=");t.application.variable=a[0],t.application.value=a[1]}T()}},t.openApplication=function(e){t.selectedApp=e,t.showGrid=!1,s.path("/channels/voice/routes/internal/view/"+n.id+"/applications/settings")},t.updateRoute=function(a){return t.route.exten=t.$application.checkUnderscore(t.route.exten),_.forEach(t.route.Applications,function(t){if("custom"!==t.appType)switch(t.app){case"Dial":var e;switch(t.appType){case"externalDial":e=3;break;case"internalDial":e=2;break;default:e=2}t.appdata[e]=t.appdata[e]||"",t.appdata[e]+=(_.includes(t.appdata[e],"x")?"":"x")+(_.includes(t.appdata[e],"X")?"":"X");break;case"Queue":t.appdata[1]=t.appdata[1]||"",t.appdata[1]+=(_.includes(t.appdata[1],"x")?"":"x")+(_.includes(t.appdata[1],"X")?"":"X")}}),d.update({id:t.route.id},t.route).$promise.then(function(i){t.selectedApp=void 0,o.show(e.instant("MESSAGE_WELL_DONE")+"!","success"),a&&s.path("/channels/voice/routes/internal/view/"+n.id+"/"+a)}).catch(function(t){o.error(t)})},t.getContexts=function(){return g.get().$promise.then(function(e){t.voiceContexts=e.rows,a.syncUpdates("voice_context",t.voiceContexts)}).catch(function(t){o.error(t)})},t.deleteApp=l.confirm.delete(function(e){t.route.Applications.splice(e,1),t.updateRoute()}),t.addApplication=function(){t.route.Applications.push(t.application),t.updateRoute("applications")},t.goNext=function(){i.wizard().next()},t.previous=function(){i.wizard().previous()},t.formValidation=function(t){return t},t.$on("destroy",function(){a.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes.internal.view",{url:"/view/:id",templateUrl:"app/channels/voice/route/internal/view/view.html",controller:"VoiceRouteInternalViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.routes.internal.view.settings",{url:"/settings",templateUrl:"app/channels/voice/route/internal/view/view.settings.html"}).state("main.channels.voice.routes.internal.view.applications",{url:"/applications",templateUrl:"app/channels/voice/route/internal/view/view.applications.html"}).state("main.channels.voice.routes.internal.view.application",{url:"/application",templateUrl:"app/channels/voice/route/view.application.html",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.channels.voice.routes.internal.view.applications.settings",{url:"/settings",templateUrl:"app/channels/voice/route/view.applicationSettings.html",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundListCreateCtrl",["$scope","$uibModalInstance","Route","application","xAlert","$translate","$location","Tag","VoiceContext","socket",function(t,e,n,a,s,i,l,o,r,c){t.$application=a.application,t.forms={route:void 0},t.getContexts=function(){return r.get().$promise.then(function(e){t.voiceContexts=e.rows,c.syncUpdates("voice_context",t.voiceContexts)}).catch(function(t){s.error(t)})},t.item={type:"outbound",appdata:"Outbound Call to ${CALLERID(dnid)}",context:"from-sip"},t.getTags=function(){return o.get().$promise.then(function(e){e.rows.unshift({name:"--"}),t.tags=e.rows}).catch(function(t){s.error(t)})},t.ok=function(){return t.item.exten=t.$application.checkUnderscore(t.item.exten),n.save(t.item).$promise.then(function(t){e.close(t),l.path("/channels/voice/routes/outbound/view/"+t.id+"/routes")}).catch(function(t){s.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundListCtrl",["$scope","$http","socket","$translate","$rootScope","xAlert","Modal","stResource","gridOptions","Route","$uibModal","$location","$log",function(t,e,n,a,s,i,l,o,r,c,d,u,p){t.initView=function(){var e={exporterCsvFilename:"OutboundRoutes.csv",columnDefs:[{name:"exten",displayName:"APPLICATION_DESTINATION_PATTERN"},{name:"description"},{name:"applications",cellClass:"ui-grid-vcenter",cellTemplate:'<div data-ng-if="row.entity.Applications.length"><span data-ng-repeat="app in row.entity.Applications | limitTo:2">{{app.app}}({{app.appdata[0]}}),</span>...</div><div data-ng-if="!row.entity.Applications.length">{{\'MESSAGE_NO_AVAILABLE_APPLICATIONS\' | translate}}</div>',enableSorting:!1,enableFiltering:!1,enableColumnMenu:!1},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/voice/routes/outbound/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.exten, row.entity.id)"}]}]};t.gridOptions=r.gridOptions(c,e,t,{type:"outbound"})},t.create=function(){d.open({animation:!0,templateUrl:"app/channels/voice/route/outbound/list/create.modal.html",controller:"VoiceRouteOutboundListCreateCtrl"})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes.outbound.list",{url:"/list",templateUrl:"app/channels/voice/route/outbound/list/list.html",controller:"VoiceRouteOutboundListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes.outbound",{url:"/outbound",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("VoiceRouteOutboundViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","application","interval","Route","Trunk","VoiceContext","Interval","Tag",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g){function h(e){var n,a;if("always"===e.intType)n=null,a="*,*,*,*";else if("list"===e.intType)a=e.IntervalId?_.find(t.Intervals,{id:e.IntervalId}).name:"*,*,*,*",n=e.IntervalId||null;else if("custom"===e.intType){n=null;var s,i,l,o;s=e.t_from&&e.t_to&&!e.alwaysTime?moment(e.t_from).format("HH:mm")+"-"+moment(e.t_to).format("HH:mm"):"*",e.wd_from&&"always"!==e.wd_from?(i=e.wd_from,e.wd_to&&"always"!==e.wd_to&&(i+="-"+e.wd_to)):i="*",e.md_from&&"always"!==e.md_from?(l=e.md_from,e.md_to&&"always"!==e.md_to&&(l+="-"+e.md_to)):l="*",e.m_from&&"always"!==e.m_from?(o=e.m_from,e.m_to&&"always"!==e.m_to&&(o+="-"+e.m_to)):o="*",a=s+","+i+","+l+","+o}void 0===t.selectedApp?(t.application.interval=a,t.application.IntervalId=n):(t.route.Applications[t.selectedApp].interval=a,t.route.Applications[t.selectedApp].IntervalId=n)}function f(){if(t.interval.intType=t.route.Applications[t.selectedApp].IntervalId?"list":"*,*,*,*"===t.route.Applications[t.selectedApp].interval?"always":"custom",t.interval.IntervalId=t.route.Applications[t.selectedApp].IntervalId,!t.route.Applications[t.selectedApp].IntervalId){var e;(t.route.Applications[t.selectedApp].interval?t.route.Applications[t.selectedApp].interval.split(","):["*","*","*","*"]).forEach(function(n,a){switch(a){case 0:"*"!==n?(e=n.split("-"),t.interval.t_from=moment(e[0],"HH:mm"),t.interval.t_to=moment(e[1],"HH:mm"),t.interval.alwaysTime=!1):(t.interval.t_from=moment(new Date),t.interval.t_to=moment(new Date),t.interval.alwaysTime=!0);break;case 1:"*"!==n?(e=n.split("-"),t.interval.wd_from=e[0],t.interval.wd_to=e[1]?e[1]:"always"):(t.interval.wd_from="always",t.interval.wd_to="always");break;case 2:"*"!==n?(e=n.split("-"),t.interval.md_from=e[0],t.interval.md_to=e[1]?e[1]:"always"):(t.interval.md_from="always",t.interval.md_to="always");break;case 3:"*"!==n?(e=n.split("-"),t.interval.m_from=e[0],t.interval.m_to=e[1]?e[1]:"always"):(t.interval.m_from="always",t.interval.m_to="always")}})}}t.$translate=n,t.selectedApp=void 0,t.showGrid=!0,t.$application=r.application,t.$interval=c.interval,t._=_,t.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.alwaysSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.selectedRows=[],t.gridOptions={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableSorting:!1,rowTemplate:'<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',columnDefs:[{name:"app",displayName:"APPLICATION_APPLICATION",cellClass:"ui-grid-vcenter",cellTemplate:"<div><span data-ng-if=\"row.entity.appType === 'externalDial'\">Default</span><span data-ng-if=\"row.entity.appType !== 'externalDial'\">{{row.entity.app}}</span></div>",headerCellFilter:"translate",enableColumnMenu:!1},{name:"appType",headerCellFilter:"translate",displayName:"APPLICATION_INFO",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{'APPLICATION_APPS_'+(row.entity.appType || (grid.appScope._.find(grid.appScope.$application.applications,{value:row.entity.app}) ? row.entity.app : 'custom')).toUpperCase() | translate}}</div>",enableColumnMenu:!1},{name:"appdata",displayName:"APPLICATION_ARGUMENTS",headerCellFilter:"translate",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.appdata.join(',')}}</div>",enableColumnMenu:!1},{name:"interval",displayName:"APPLICATION_TIME_INTERVAL",headerCellFilter:"translate",enableColumnMenu:!1},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",width:125,enableColumnMenu:!1,cellClass:"ui-grid-vcenter",cellTemplate:'<div><a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openApplication(grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteApp(row.entity.app+\' application\', grid.appScope.gridOptions.data.indexOf(row.entity))"><i class="fa fa-trash"></i></a></div>'}],onRegisterApi:function(e){e.selection.on.rowSelectionChanged(t,function(e){e.isSelected?t.selectedRows.push(e.entity):_.pull(t.selectedRows,e.entity)}),e.selection.on.rowSelectionChangedBatch(t,function(e){e[0].isSelected?t.selectedRows=_.map(e,"entity"):t.selectedRows=[]}),e.draggableRows.on.rowDropped(t,function(e,n){t.updateRoute()}),e.grid.registerDataChangeCallback(function(){A(t.gridOptions.data.length)})}},t.deleteItems=o.confirm.delete(function(){_.remove(t.route.Applications,function(e){return _.includes(t.selectedRows,e)}),t.selectedRows=[],t.updateRoute()});var A=function(t){var e=t?30*t+120:177;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px")};t.initApplication=function(e){e&&(t.selectedApp=void 0),t.forms={info:void 0,interval:void 0},t.application={},t.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},t.main={app:""},t.applications=[{name:"Default",value:"Dial",type:"outboundDial"},{name:"Custom",value:"custom",type:"custom"}]},t.$watch("interval",function(t){t&&h(t)},!0),t.$watch("main.app",function(n){if(n){var a,s;switch(void 0===t.selectedApp&&(t.application={appType:n.type,app:n.value,interval:t.application.interval||"*,*,*,*",appdata:[]}),n.value){case"Dial":a=u;break;default:a=null,s=null}if(a)return a.get().$promise.then(function(e){t.items=e.rows}).then(function(){if(s)return s.get().$promise}).then(function(e){e&&(t.items2=e.rows)}).catch(function(t){e.error(t)})}},!0),t.deselectAndRedirect=function(e){t.selectedApp=void 0,i.path(e)},t.getIntervals=function(){return m.get().$promise.then(function(e){t.Intervals=e.rows,s.syncUpdates("interval",t.Intervals)}).catch(function(t){e.error(t)})},t.getRoute=function(){return d.get({id:a.id}).$promise.then(function(e){t.route=e,t.gridOptions.data=e.Applications,A(t.gridOptions.data.length)}).catch(function(t){i.path("/channels/voice/routes/outbound/list")})},t.getApplication=function(){if(void 0===t.selectedApp)i.path("/channels/voice/routes/outbound/list");else{if(t.showGrid=!0,t.route.Applications[t.selectedApp].appType)t.main.app=_.find(t.applications,{type:t.route.Applications[t.selectedApp].appType});else{t.main.app=_.find(t.applications,{type:"custom"});var e=t.route.Applications[t.selectedApp].appdata.join(",");t.route.Applications[t.selectedApp].appdata=[e],t.route.Applications[t.selectedApp].appType="custom"}f()}},t.openApplication=function(e){t.selectedApp=e,t.showGrid=!1,i.path("/channels/voice/routes/outbound/view/"+a.id+"/routes/settings")},t.updateRoute=function(s){return t.route.exten=t.$application.checkUnderscore(t.route.exten),_.forEach(t.route.Applications,function(t){"outboundDial"===t.appType&&(t.appdata[4]=t.appdata[4]||"",t.appdata[4]+=(_.includes(t.appdata[4],"x")?"":"x")+(_.includes(t.appdata[4],"X")?"":"X"))}),d.update({id:t.route.id},t.route).$promise.then(function(l){t.selectedApp=void 0,e.show(n.instant("MESSAGE_WELL_DONE")+"!","success"),s&&i.path("/channels/voice/routes/outbound/view/"+a.id+"/"+s)}).catch(function(t){e.error(t)})},t.getContexts=function(){return p.get().$promise.then(function(e){t.voiceContexts=e.rows,s.syncUpdates("voice_context",t.voiceContexts)}).catch(function(t){e.error(t)})},t.getTags=function(){return g.get().$promise.then(function(e){e.rows.unshift({name:"--"}),t.tags=e.rows}).catch(function(t){e.error(t)})},t.deleteApp=o.confirm.delete(function(e){t.route.Applications.splice(e,1),t.updateRoute()}),t.addApplication=function(){t.route.Applications.push(t.application),t.updateRoute("routes")},t.goNext=function(){l.wizard().next()},t.previous=function(){l.wizard().previous()},t.formValidation=function(t){return t},t.$on("destroy",function(){s.unsyncUpdates("voice_extension")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes.outbound.view",{url:"/view/:id",templateUrl:"app/channels/voice/route/outbound/view/view.html",controller:"VoiceRouteOutboundViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.routes.outbound.view.settings",{url:"/settings",templateUrl:"app/channels/voice/route/outbound/view/view.settings.html"}).state("main.channels.voice.routes.outbound.view.routes",{url:"/routes",templateUrl:"app/channels/voice/route/outbound/view/view.routes.html"}).state("main.channels.voice.routes.outbound.view.route",{url:"/route",templateUrl:"app/channels/voice/route/outbound/view/view.route.html"}).state("main.channels.voice.routes.outbound.view.routes.settings",{url:"/settings",templateUrl:"app/channels/voice/route/outbound/view/view.routeSettings.html"})}]),angular.module("xCallyShuttleApp").factory("Route",["$resource",function(t){return t("/api/voice/extensions/:id",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.routes",{url:"/routes",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:21}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice",{url:"/voice",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:7}}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailListCtrl",["$scope","VoiceMail","gridOptions",function(t,e,n){t.initView=function(){var a={exporterCsvFilename:"voice_mails.csv",primaryKey:"uniqueid",columnDefs:[{name:"mailbox"},{name:"fullname"},{name:"email"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/channels/voice/voicemails/view/{{row.entity.uniqueid}}/settings",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.mailbox, row.entity.uniqueid)"}]}]};t.gridOptions=n.gridOptions(e,a,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.voicemails.list",{url:"/list",templateUrl:"app/channels/voice/voicemail/list/list.html",controller:"VoiceVoicemailListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailViewCtrl",["$scope","VoiceMail","VoiceMailMessage","VoiceContext","$http","xAlert","$translate","$stateParams","socket","$sce","Modal","$location","gridOptions","uiGridConstants",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m){function g(){var e={exporterCsvFilename:"voice_mail_messages.csv",primaryKey:"id",columnDefs:[{name:"callerid"},{name:"stamp",displayName:"APPLICATION_DATE",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{grid.appScope.moment(row.entity.stamp).format('YYYY-MM-DD HH:mm:ss')}}</div>",sort:{direction:m.DESC,priority:0}},{name:"duration",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.duration*1000 | date:'mm:ss'}}</div>"},{name:"audio",displayName:"",width:225,enableSorting:!1,enableFiltering:!1,buttons:[{directive:'<audio-file-download params="{id:row.entity.id,controller:\'download\'}" resource="grid.appScope.VoiceMailMessage"></audio-file-download>'}]},{name:"action",width:150,buttons:[{directive:'<motion-file-download params="{id:row.entity.id,controller:\'download\'}" resource="grid.appScope.VoiceMailMessage" mimetype="audio/wav" btnclass="btn btn-xs blue-hoki" filename="row.entity.msg_id+\'.wav\'"></motion-file-download>'},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.id, row.entity.id)"}]}]};t.gridOptions=p.gridOptions(n,e,t,{mailbox:t.voicemail.mailbox,context:t.voicemail.context})}t.moment=moment,t.switch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.VoiceMailMessage=n,t.getVoicemail=function(){return e.get({id:o.uniqueid}).$promise.then(function(e){delete e.password,delete e.stamp,t.voicemail=e}).catch(function(t){u.path("/voice/voicemails/list")})},t.updateVoiceVoicemail=function(){return e.update({id:o.uniqueid},t.voicemail).$promise.then(function(){i.show(l.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})},t.getContexts=function(){return a.get().$promise.then(function(e){t.voiceContexts=e.rows}).catch(function(t){i.error(t)})},t.getMessages=function(){if(!t.voicemail)return e.get({id:o.uniqueid}).$promise.then(function(e){delete e.password,delete e.stamp,t.voicemail=e,g()}).catch(function(t){u.path("/voice/voicemails/view/"+o.uniqueid+"/settings")});g()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.voicemails.view",{url:"/view/:uniqueid",templateUrl:"app/channels/voice/voicemail/view/view.html",controller:"VoiceVoicemailViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.channels.voice.voicemails.view.settings",{url:"/settings",templateUrl:"app/channels/voice/voicemail/view/view.settings.html"}).state("main.channels.voice.voicemails.view.messages",{url:"/messages",templateUrl:"app/channels/voice/voicemail/view/view.messages.html"})}]),angular.module("xCallyShuttleApp").factory("VoiceMail",["$resource",function(t){return t("/api/voice/voicemails/:id/:controller",{uniqueid:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.voicemails",{url:"/voicemails",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:23}}})}]),angular.module("xCallyShuttleApp").factory("VoiceMailMessage",["$resource",function(t){return t("/api/voice/voicemails/messages/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("VoiceVoicemailWizardCtrl",["$scope","VoiceMail","xAlert","WizardHandler","$location","Setting",function(t,e,n,a,s,i){t.initWizard=function(){t.form={},t.item={context:"from-voicemail"}},t.next=function(){a.wizard().next()},t.previous=function(){a.wizard().previous()},t.exitValidation=function(t){return t},t.getFirstFreeMailbox=function(){i.get({controller:"mailbox"}).$promise.then(function(e){t.item.mailbox=e.value}).catch(function(t){n.error(t)})},t.createItem=function(){return t.item.customer_id=t.item.mailbox,e.save(t.item).$promise.then(function(){s.path("/channels/voice/voicemails/list")}).catch(function(t){n.error(data)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.channels.voice.voicemails.wizard",{url:"/wizard",templateUrl:"app/channels/voice/voicemail/wizard/wizard.html",controller:"VoiceVoicemailWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("VoiceQueue",["$resource",function(t){return t("/api/voice/queues/:id/:controller/:controller2",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Company",["$resource",function(t){return t("/api/contactmanager/companies/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.companies",{url:"/companies",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").controller("CompanyListCreateModalCtrl",["$scope","$uibModalInstance",function(t,e){t.forms={dashboard:void 0},t.item={},t.ok=function(){t.item.model=JSON.stringify({title:t.item.name}),e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyListCtrl",["$scope","$translate","xAlert","Modal","$uibModal","$log","Company","gridOptions","$location","$state",function(t,e,n,a,s,i,l,o,r,c){t.initView=function(){var e={exporterCsvFilename:"Companies.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:100,buttons:[{class:"blue-hoki",name:"profile",href:"/contactmanager/companies/view/{{row.entity.id}}/settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{class:"green-turquoise",name:"contacts",onClick:"grid.appScope.goToContacts(row.entity.id)"}]}]};t.gridOptions=o.gridOptions(l,e,t)},t.goToContacts=function(t){c.go("main.contactmanager.contacts.list",{companyId:t})},t.create=function(){s.open({animation:!0,size:"lg",templateUrl:"app/contactmanager/company/list/create.modal.html",controller:"CompanyListCreateModalCtrl"}).result.then(function(t){return l.save(t).$promise.then(function(t){r.path("/contactmanager/companies/view/"+t.id+"/settings")}).catch(function(t){n.error(t)})},function(){i.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.companies.list",{url:"/list",templateUrl:"app/contactmanager/company/list/list.html",controller:"ContactManagerCompanyListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCompanyViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","Company",function(t,e,n,a,s,i){t.getCompany=function(){return i.get({id:a.id}).$promise.then(function(e){t.company=e}).catch(function(t){s.path("/contactmanager/companies/list")})},t.updateCompany=function(){return i.update({id:a.id},t.company).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){e.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.companies.view",{url:"/view/:id",templateUrl:"app/contactmanager/company/view/view.html",controller:"ContactManagerCompanyViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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").factory("Contact",["$resource",function(t){return t("/api/contactmanager/contacts/:id/:controller/:controller2",{id:"@id"},{update:{method:"PUT"},search:{method:"POST"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.contacts",{url:"/contacts",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListCopyModalCtrl",["$scope","$uibModalInstance","xAlert","List","Contact","$translate",function(t,e,n,a,s,i){t.item={},t.getLists=function(){return a.get().$promise.then(function(e){t.lists=e.rows}).catch(function(t){n.error(t)})},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerListImportModalCtrl",["$scope","$uibModalInstance","indexes","csv","xAlert","socket","List","Contact","$translate","Company","companyId","listId",function(t,e,n,a,s,i,l,o,r,c,d,u){function p(t){var e,n;if(!t)return 0;for(e=n=(t=t.toString()).length;e--;){var a=t[e].charCodeAt();56320<=a&&a<=57343&&e--,127<a&&a<=2047?n++:2047<a&&a<=65535&&(n+=2)}return n}function m(e){if(e>=t.csvLength||t.stopped)t.importing=!1;else{for(var n,i=[],l="",c=e;c<e+200&&c<t.csvLength;c++)n={},_.forOwn(t.item,function(e,s){switch(s){case"tags":n.tags=[],t.item.tags.forEach(function(t){a[c][t]&&n.tags.push(a[c][t])});break;default:n[s]=a[c][e]}}),n.ListId=t.item.ListId,n.CompanyId=t.item.CompanyId||null,n.firstName?i.push(n):(t.import.fail+=1*t.addingQuote,t.import.failed++,l+=(l?",(":"(")+(c+2)+")");if(p(JSON.stringify(i))<=5e7)return o.save({controller:"bulk"},{contacts:i}).$promise.then(function(n){t.import.success+=n.ok*t.addingQuote,t.import.succeeded+=n.ok,t.import.fail+=n.ko*t.addingQuote,t.import.failed+=n.ko,n.failed.length&&(_.forEach(n.failed,function(t,a){n.failed[a]+=e+2}),t.failedRows+=(t.failedRows?",":"")+_.sortBy(n.failed).join(",")),l&&(t.failedRows+=(t.failedRows?",":"")+l),m(c)}).catch(function(e){t.stopped=!0,s.error(e),m(c)});t.stopped=!0,s.show(r.instant("MESSAGE_REQUEST_TOO_BIG"),"warning"),m(c)}}t.indexes=n,t.importing=!1,t.submitted=!1,t.stopped=!1,t.import={success:0,fail:0,succeeded:0,failed:0},t.csvLength=a.length,t.addingQuote=100/t.csvLength,t.forms={csv:void 0},t.item={CompanyId:d||null,ListId:u||null},t.start=function(){t.importing=!0,t.submitted=!0,t.failedRows="",m(0)},t.getLists=function(){return l.get().$promise.then(function(e){t.lists=e.rows,t.item.ListId||(t.item.ListId=t.lists[0]?t.lists[0].id:null),t.getCustomFields()}).catch(function(t){s.error(t)})},t.getCompanies=function(){return c.get().$promise.then(function(e){t.companies=e.rows}).catch(function(t){s.error(t)})},t.getCustomFields=function(){return l.get({listId:t.item.ListId,controller:"customfields",id:"all"}).$promise.then(function(e){e.rows.forEach(function(t){t.values=JSON.parse(t.values)}),t.customFields=e.rows,i.socket.on("custom_field:remove",function(e){_.remove(t.customFields,function(t){return e.id==t.id})}),i.socket.on("custom_field:save",function(e){e.ListId===t.item.ListId&&(_.find(t.customFields,{id:e.id})||("string"==typeof e.values&&(e.values=JSON.parse(e.values)),t.customFields.push(e)))})}).catch(function(t){console.error(t),s.error(t)})},t.close=function(){e.close()},t.stop=function(){t.stopped=!0}}]),angular.module("xCallyShuttleApp").controller("ContactManagerContactListCtrl",["$scope","$translate","Modal","FileUploader","Papa","$uibModal","$log","Contact","gridOptions","List","uiGridConstants","xAlert","socket","$stateParams","Auth","Company","usSpinnerService","$http","$rootScope",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A,v){function I(){p.socket.on("contact_manager:save",function(){t.gridOptions.getPage()})}t.Auth=g,t.isAgent=g.isAgent(),t.agent=g.getCurrentUser(),t.initView=function(){var n;return c.get().$promise.then(function(e){return t.lists=[],t.customFields=[],e.rows.forEach(function(e){_.forEach(e.CustomFields,function(e){t.customFields.push({name:e.name,alias:e.alias})}),t.lists.push({value:e.id,label:e.name})}),h.get().$promise}).then(function(e){t.companies=[],e.rows.forEach(function(e){t.companies.push({value:e.id,label:e.name})})}).then(function(){var a=[{class:"blue-hoki",name:"profile",onClick:"grid.appScope.openContactTab(row.entity)"}];g.isAgent()||(a.push({class:"green",title:e.instant("APPLICATION_COPY"),name:"copy",onClick:"grid.appScope.copy(row.entity.id)"}),a.push({class:"red-sunglo",name:"delete",title:e.instant("APPLICATION_DELETE"),onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"})),n={exporterMenuAllData:!1,exporterMenuVisibleData:!1,exporterMenuSelectedData:!1,exporterCsvFilename:"Contacts.csv",columnDefs:[{name:"id",width:56},{name:"firstName"},{name:"lastName"},{name:"phone",displayName:"APPLICATION_PHONE",cellTemplate:'<div class="ui-grid-cell-contents">{{row.entity.phone}} <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.phone && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.phone,\'call\')" title="Call {{row.entity.phone}}"><i class="icon-phone"></i></a></div>'},{name:"mobile",displayName:"APPLICATION_MOBILE",cellTemplate:'<div class="ui-grid-cell-contents">{{row.entity.mobile}} <a href="#" data-ng-if="grid.appScope.isAgent && row.entity.mobile && grid.appScope.agent.phoneBarRemoteControl" data-ng-click="grid.appScope.callPhoneBar(row.entity.mobile,\'call\')" title="Call {{row.entity.mobile}}"><i class="icon-phone"></i></a></div>'},{name:"email",displayName:"APPLICATION_EMAIL",cellTemplate:'<div class="ui-grid-cell-contents"><a href="#" data-ng-if="grid.appScope.license.mail && row.entity.email && grid.appScope.isAgent" data-ng-click="grid.appScope.openRoom(null,\'mailRoom\',{to:row.entity.email})">{{row.entity.email}}</a><span data-ng-if="!grid.appScope.license.mail || !grid.appScope.isAgent">{{row.entity.email}}</span></div>'},{name:"ListId",displayName:"APPLICATION_LIST",field:"List",filter:{type:d.filter.SELECT,term:m.listId||null,selectOptions:t.lists},cellTemplate:'<div class="centered-uigrid-td"><a data-ng-if="!grid.appScope.isAgent" href="/contactmanager/lists/view/{{row.entity.ListId}}/settings">{{row.entity.List}}</a><span data-ng-if="grid.appScope.isAgent">{{row.entity.List}}</span></div>'},{name:"CompanyId",displayName:"APPLICATION_COMPANY",field:"Company",filter:{type:d.filter.SELECT,term:m.companyId||null,selectOptions:t.companies},cellTemplate:'<div class="centered-uigrid-td"><a data-ng-if="!grid.appScope.isAgent" href="/contactmanager/companies/view/{{row.entity.CompanyId}}/settings">{{row.entity.Company}}</a><span data-ng-if="grid.appScope.isAgent">{{row.entity.Company}}</span></div>'},{name:"tags",filterHeaderTemplate:'<div class="ui-grid-filter-container"><div ng-repeat="colFilter in col.filters" class="col-md-12 col-md-offset-0 col-sm-12 col-sm-offset-0 col-xs-12 col-xs-offset-0"><div custom-grid-tags-filter-header></div></div></div>',filters:[{name:"tags"}],cellTemplate:"<div class=\"centered-uigrid-td\">{{row.entity.tags.join(',')}}</div>"}]},_.forEach(t.customFields,function(t){n.columnDefs.push({name:t.alias,displayName:t.alias,visible:!1})}),n.columnDefs.push({name:"action",width:100,buttons:a}),t.gridOptions=r.gridOptions(o,n,t),I()}).catch(function(t){u.error(t)})},t.callPhoneBar=function(n,a){var s;switch(a){case"call":s="http://127.0.0.1:"+t.agent.phoneBarRemoteControlPort+"/api/originate/"+n;break;case"transfer":s="http://127.0.0.1:"+t.agent.phoneBarRemoteControlPort+"/api/transfer?number="+n;break;default:s="http://127.0.0.1:"+t.agent.phoneBarRemoteControlPort+"/api/originate/"+n}return A.get(s).success(function(){u.show(e.instant("MESSAGE_WELL_DONE"),"success")}).error(function(t){u.error(t)})},t.openRoom=function(t,e,n){var a=_.find(v.workspaces,{id:t,type:e});if(a)a.active=!0;else{var s;switch(e){case"mailRoom":s="icon-envelope";break;case"chatRoom":s="fa fa-users";break;case"faxRoom":s="fa fa-fax";break;case"smsRoom":s="glyphicon glyphicon-comment"}v.workspaces.push({id:t,type:e,class:s,active:!0,data:n})}},a.FileSelect.prototype.isEmptyAfterSelection=function(){return!0},(t.uploader=new a({queueLimit:1,clearInputAfterAddedToQueue:!0})).onAfterAddingFile=function(e){s.parse(e._file,{header:!0,complete:function(e){t.uploader.clearQueue(),t.import(e.data)},error:function(t){console.log(t)}})},t.extractAll=function(){f.spin("grid-spinner");var e=_.clone(t.gridOptions.pagOpt);return delete e.limit,delete e.offset,o.get(_.merge({controller:"extract",controller2:"all"},e)).$promise.then(function(t){return f.stop("grid-spinner"),t.rows}).catch(function(t){u.error(t)})},t.import=function(e){p.unsyncUpdates("contact_manager"),i.open({animation:!0,size:"lg",backdrop:"static",keyboard:!1,templateUrl:"app/contactmanager/contact/list/import.modal.html",controller:"ContactManagerListImportModalCtrl",resolve:{indexes:function(){return _.keys(e[0])},csv:function(){return e},companyId:function(){return t.gridOptions.columnDefs[7].filter.term||null},listId:function(){return t.gridOptions.columnDefs[6].filter.term||null}}}).result.then(function(){console.log("result"),I(),t.gridOptions.getPage()},function(){l.info("Modal dismissed at: "+new Date)})},t.copy=function(e){i.open({animation:!0,size:"small",templateUrl:"app/contactmanager/contact/list/copy.modal.html",controller:"ContactManagerListCopyModalCtrl"}).result.then(function(n){return o.save({id:e,controller:"copy"},n).$promise.then(function(e){t.openContactTab({firstName:e.firstName,lastName:e.lastName,id:e.id})}).catch(function(t){u.error(t)})},function(){l.info("Modal dismissed at: "+new Date)})},t.$on("$destroy",function(){p.unsyncUpdates("contact_manager")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.contacts.list",{url:"/list",templateUrl:"app/contactmanager/contact/list/list.html",params:{listId:null,companyId:null},controller:"ContactManagerContactListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager",{url:"/contactmanager",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").factory("CustomField",["$resource",function(t){return t("/api/contactmanager/customfields/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.customfields",{url:"/customfields",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").controller("CustomFieldListCreateModalCtrl",["$scope","$uibModalInstance","$translate",function(t,e,n){t.$translate=n,t.forms={dashboard:void 0},t.item={},t.choices=[{value:""}],t.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.addField=function(){t.choices.push({})},t.removeField=function(e){t.choices.splice(e,1)},t.types=[{name:"APPLICATION_TEXT",value:"text"},{name:"APPLICATION_SELECT",value:"select"}],t.ok=function(){"select"===t.item.type&&(t.item.values=angular.toJson(t.choices)),e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldListCtrl",["$scope","$translate","xAlert","Modal","$uibModal","$log","CustomField","gridOptions",function(t,e,n,a,s,i,l,o){t.initView=function(){var e={exporterCsvFilename:"customfields.csv",primaryKey:"id",columnDefs:[{name:"alias",displayName:"APPLICATION_NAME"},{name:"name",displayName:"APPLICATION_FIELD"},{name:"type"},{name:"action",width:200,buttons:[{class:"blue-hoki",href:"/contactmanager/customfields/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)",name:"delete"}]}]};t.gridOptions=o.gridOptions(l,e,t)},t.create=function(){s.open({animation:!0,size:"lg",templateUrl:"app/contactmanager/customfield/list/create.modal.html",controller:"CustomFieldListCreateModalCtrl"}).result.then(function(a){return l.save(a).$promise.then(function(){t.gridOptions.getPage(),n.show(e.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){n.error(t)})},function(){i.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.customfields.list",{url:"/list",templateUrl:"app/contactmanager/customfield/list/list.html",controller:"ContactManagerCustomFieldListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerCustomFieldViewCtrl",["$scope","xAlert","$translate","$stateParams","$location","CustomField",function(t,e,n,a,s,i){function l(t){var e=t.split(""),n=0,a=0;return e.shift(),e.forEach(function(t,e){"{"===t?n++:"}"===t&&(--n||(a=e+1))}),a?JSON.parse("["+t.substr(1,a)+"]"):[]}t.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.getCustomField=function(){return i.get({id:a.id}).$promise.then(function(e){if(t.customField=e,"select"===t.customField.type)try{t.choices=JSON.parse(t.customField.values)}catch(e){t.choices=l(t.customField.values)}}).catch(function(){s.path("/contactmanager/customfields/list")})},t.addField=function(){t.choices.push({})},t.removeField=function(e){t.choices.splice(e,1)},t.updateCustomField=function(){var s=angular.copy(t.customField);return"select"===s.type&&(s.values=angular.toJson(t.choices)),i.update({id:a.id},t.customField).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){e.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.customfields.view",{url:"/view/:id",templateUrl:"app/contactmanager/customfield/view/view.html",controller:"ContactManagerCustomFieldViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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").factory("List",["$resource",function(t){return t("/api/contactmanager/lists/:listId/:controller/:id",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.lists",{url:"/lists",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:5}}})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListListCreateModalCtrl",["$scope","$uibModalInstance",function(t,e){t.forms={dashboard:void 0},t.item={},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerListListCtrl",["$scope","$http","$translate","Modal","xAlert","$uibModal","$log","List","gridOptions","$state","MotionDialerList","$rootScope",function(t,e,n,a,s,i,l,o,r,c,d,u){t.initView=function(){var e={exporterCsvFilename:"Lists.csv",columnDefs:[{name:"id"},{name:"name"},{name:"description"},{name:"action",width:100,buttons:[{class:"blue-hoki",name:"settings",href:"/contactmanager/lists/view/{{row.entity.id}}/settings"},{class:"green-turquoise",name:"contacts",onClick:"grid.appScope.goToContacts(row.entity.id)"},{class:"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteList(row.entity.name, row.entity.id)"}]}]};t.gridOptions=r.gridOptions(o,e,t)},t.goToContacts=function(t){c.go("main.contactmanager.contacts.list",{listId:t})},t.deleteList=a.confirm.delete(function(e){return u.license.dialer?d.find({id_source:e}).$promise.then(function(t){if(t&&t.status>0)return t.response.RMI.rows[0]?d.delete({id:t.response.RMI.rows[0].id}).$promise:{status:1};s.show(t?t.message||"Please, check your connection!":"Please, check your connection!","danger")}).then(function(a){if(a&&a.status>0)return o.remove({id:e}).$promise.then(function(){t.gridOptions.getPage(),s.show(n.instant("MESSAGE_WELL_DONE"),"success")});var i="Please, check your connection!";a&&(i=a.response&&a.response.RMI?a.response.RMI.errors||a.message||"Please, check your connection!":a.message||"Please, check your connection!"),s.show(i,"danger")}).catch(function(t){s.error(t)}):o.remove({id:e}).$promise.then(function(){t.gridOptions.getPage(),s.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){s.error(t)})}),t.create=function(){i.open({animation:!0,templateUrl:"app/contactmanager/list/list/create.modal.html",controller:"ContactManagerListListCreateModalCtrl"}).result.then(function(a){e.post("/api/contactmanager/lists/",a).then(function(){t.gridOptions.getPage(),s.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){s.error(t)})},function(){l.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.lists.list",{url:"/list",templateUrl:"app/contactmanager/list/list/list.html",controller:"ContactManagerListListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ContactManagerListCustomFieldViewCreateModalCtrl",["$scope","$uibModalInstance","$translate",function(t,e,n){t.$translate=n,t.forms={dashboard:void 0},t.item={},t.choices=[{value:""}],t.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.addField=function(){t.choices.push({})},t.removeField=function(e){t.choices.splice(e,1)},t.types=[{name:"APPLICATION_TEXT",value:"text"},{name:"APPLICATION_SELECT",value:"select"}],t.ok=function(){"select"===t.item.type&&(t.item.values=angular.toJson(t.choices)),e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerListViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","$uibModal","$log","Modal","List","Team","gridOptions",function(t,e,n,a,s,i,l,o,r,c,d,u){function p(t){var e=t.split(""),n=0,a=0;return e.shift(),e.forEach(function(t,e){"{"===t?n++:"}"===t&&(--n||(a=e+1))}),a?JSON.parse("["+t.substr(1,a)+"]"):[]}var m=[{name:"firstName",value:"firstName"},{name:"lastName",value:"lastName"},{name:"CompanyId",value:"CompanyId"},{name:"phone",value:"phone"},{name:"mobile",value:"mobile"},{name:"email",value:"email"},{name:"fax",value:"fax"},{name:"tags",value:"tags"},{name:"ListId",value:"ListId"},{name:"street",value:"street"},{name:"postalCode",value:"postalCode"},{name:"city",value:"city"},{name:"country",value:"country"},{name:"dateOfBirth",value:"dateOfBirth"},{name:"description",value:"description"},{name:"url",value:"url"}];t.bsSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var g=function(){return{select:function(e){return c.save({listId:t.list.id,controller:"agents"},{agents:e}).$promise.then(function(){t.getTeams()}).catch(function(t){console.log(t)})},deselect:function(e){return c.delete({listId:t.list.id,controller:"agents",agents:e}).$promise.then(function(){t.getTeams()}).catch(function(t){console.log(t)})}}};t.initVariables=function(){return c.get({listId:a.id,controller:"customfields",id:"all"}).$promise.then(function(e){if(t.variables=_.clone(m),e.rows.forEach(function(e){try{"select"===e.type&&(e.values=JSON.parse(e.values)),t.variables.push({name:e.alias,value:e.name})}catch(t){console.log("Cf not valid:",e.alias)}}),t.list&&t.list.variables&&t.list.variables.length)for(var n=t.list.variables.length;n--;)_.find(t.variables,{value:t.list.variables[n].value})||t.list.variables.splice(n,1)}).catch(function(t){console.error(t),e.error(t)})},t.getList=function(){return c.get({listId:a.id}).$promise.then(function(e){if(e.variables)try{e.variables=JSON.parse(e.variables)}catch(t){console.log("invalid or outdated variables format"),e.variables=[]}else e.variables=[];t.list=e}).catch(function(){i.path("/contactmanager/lists/list")})},t.updateList=function(){var s=_.clone(t.list);return s.variables=s.variables.length?angular.toJson(s.variables):"",c.update({id:a.id},s).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){e.error(t)})},t.convertList=function(){t.list.isTdList=!0,t.updateList()},t.getTeams=function(){return d.get({controller:"associations"}).$promise.then(function(e){if(t.teams=e.rows,!t.list)return t.getList()}).then(function(){return t.list.defaultEntry&&i.path("/contactmanager/lists/list"),c.get({listId:a.id,controller:"agents"}).$promise}).then(function(e){ComponentsDropdowns.bindQueue(t.teams,_.map(e.rows,function(t){return{id:t.id}}),g)}).catch(function(t){console.error(t)})},t.initCustomFields=function(){var e={exporterCsvFilename:"customfields.csv",primaryKey:"id",columnDefs:[{name:"alias",displayName:"APPLICATION_NAME"},{name:"name",displayName:"APPLICATION_FIELD"},{name:"type"},{name:"action",width:200,buttons:[{class:"blue-hoki",href:"/contactmanager/lists/view/{{grid.appScope.$stateParams.id}}/customfields/settings/{{row.entity.id}}",name:"settings"},{class:"red-sunglo",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)",name:"delete"}]}]};t.gridOptions=u.gridOptions(c,e,t,{listId:a.id,controller:"customfields"})},t.create=function(){l.open({animation:!0,templateUrl:"app/contactmanager/list/view/create.modal.html",controller:"ContactManagerListCustomFieldViewCreateModalCtrl"}).result.then(function(s){return c.save({listId:a.id,controller:"customfields"},s).$promise.then(function(){t.gridOptions.getPage(),e.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){e.error(t)})},function(){o.info("Modal dismissed at: "+new Date)})},t.getCustomField=function(){return c.get({listId:a.id,controller:"customfields",id:a.cfId}).$promise.then(function(e){if(t.customField=e,"select"===t.customField.type)try{t.choices=JSON.parse(t.customField.values)}catch(e){t.choices=p(t.customField.values)}}).catch(function(t){console.error(t)})},t.updateCustomField=function(){var s=angular.copy(t.customField);return"select"===s.type&&(s.values=angular.toJson(t.choices)),c.update({listId:a.id,controller:"customfields",id:a.cfId},s).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){e.error(t)})},t.addField=function(){t.choices.push({})},t.removeField=function(e){t.choices.splice(e,1)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.contactmanager.lists.view",{url:"/view/:id",templateUrl:"app/contactmanager/list/view/view.html",controller:"ContactManagerListViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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.lists.view.settings",{url:"/settings",templateUrl:"app/contactmanager/list/view/view.settings.html"}).state("main.contactmanager.lists.view.agents",{url:"/agents",templateUrl:"app/contactmanager/list/view/view.agents.html",cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.contactmanager.lists.view.customfields",{url:"/customfields",templateUrl:"app/contactmanager/list/view/view.customFields.html"}).state("main.contactmanager.lists.view.customfields.settings",{url:"/settings/:cfId",templateUrl:"app/contactmanager/list/view/view.customFieldSettings.html",controller:"ContactManagerListViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("DashboardChatCtrl",["$scope","Auth","ChatRoom","socket","Agent","$translate","$q","ReportChatSession","$timeout",function(t,e,n,a,s,i,l,o,r){t.Auth=e,t.moment=moment,t.$on("$destroy",function(){a.socket.removeAllListeners("dashboard:chat")}),t.roomStatus={new:0,open:0,closed:0,abandon:0,unmanaged:0},t.routingStats={waiting:0,timeout:0},t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_DASHBOARD_PENDING"),i.instant("APPLICATION_DASHBOARD_CLOSED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var c=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px")};t.initAgent=function(){t.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasChatQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize)}),t.gridApi.pagination.on.paginationChanged(t,function(e,n){c(n>t.table1.data.length?t.table1.data.length:n)})}},t.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=l.defer();return e.resolve(i.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){})}},s.get({id:e.getCurrentUser().id,controller:"chat",controller1:"queues"}).$promise.then(function(e){t.table1.data=e.rows}).finally(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize),a.socket.on("user_has_chat_queue:save",function(n){n.UserId!=e.getCurrentUser().id||_.find(t.table1.data,{id:n.ChatQueueId})||t.table1.data.push({id:n.ChatQueueId,UserHasChatQueue:n})}),a.socket.on("user_has_chat_queue:remove",function(n){n.UserId===e.getCurrentUser().id&&_.remove(t.table1.data,{id:n.ChatQueueId})})}).catch(function(t){console.error(t)}),o.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.table2.data=e.rows}).finally(function(){a.socket.on("report_chat_session:save",function(e){var n=_.find(t.table2.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&r(function(){_.remove(t.table2.data,{id:e.id})},1e4)):e.leaveAt||t.table2.data.push(e)}),a.socket.on("report_chat_session:remove",function(e){_.remove(t.table2.data,{id:e.id})})}).catch(function(t){console.log(t)})},t.initRoomStats=function(){return n.get({id:"dashboard"}).$promise.then(function(e){t.roomStatus=e,t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_UNMANAGED"),i.instant("APPLICATION_DASHBOARD_CLOSED"),i.instant("APPLICATION_DASHBOARD_ABANDONED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.unmanaged,t.roomStatus.closed,t.roomStatus.abandon],colours:["#44B6AE","#578EBE","#35AA47","#8775A7","#F3C200"]}},a.socket.on("dashboard:chat",function(e){t.roomStatus=e.roomStatus,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.unmanaged,t.roomStatus.closed,t.roomStatus.abandon]})}).catch(function(t){console.error(t)})},t.initRoutingStats=function(){return o.get({id:"dashboard"}).$promise.then(function(e){t.routingStats=e}).catch(function(t){console.error(t)})},t.initSocketListening=function(){a.socket.on("dashboard:chat",function(e){t.roomStatus=e.roomStatus,t.routingStats=e.routingStats,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.unmanaged,t.roomStatus.closed,t.roomStatus.abandon]})}}]),angular.module("xCallyShuttleApp").controller("DashboardCtrl",["$scope","$translate","Auth",function(t,e,n){}]),angular.module("xCallyShuttleApp").factory("Dashboard",["$resource",function(t){return t("/api/dashboards/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.dashboard",{abstract:!0,url:"/dashboard",templateUrl:"app/dashboard/dashboard.html",controller:"DashboardCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:1}}}).state("main.dashboard.voice",{url:"/voice",controller:"DashboardVoiceCtrl",templateUrl:"app/dashboard/voice/voice.html"}).state("main.dashboard.chat",{url:"/chat",controller:"DashboardChatCtrl",templateUrl:"app/dashboard/chat/chat.html",data:{permissions:{redirectTo:"landing",id:8}}}).state("main.dashboard.mail",{url:"/mail",controller:"DashboardMailCtrl",templateUrl:"app/dashboard/mail/mail.html",data:{permissions:{redirectTo:"landing",id:9}}}).state("main.dashboard.fax",{url:"/fax",controller:"DashboardFaxCtrl",templateUrl:"app/dashboard/fax/fax.html",data:{permissions:{redirectTo:"landing",id:10}}}).state("main.dashboard.sms",{url:"/sms",controller:"DashboardSmsCtrl",templateUrl:"app/dashboard/sms/sms.html",data:{permissions:{redirectTo:"landing",id:11}}}).state("main.dashboard.openchannel",{url:"/openchannel",controller:"DashboardOpenChannelCtrl",templateUrl:"app/dashboard/openchannel/openchannel.html",data:{permissions:{redirectTo:"landing",id:20}}})}]),angular.module("xCallyShuttleApp").controller("DashboardFaxCtrl",["$scope","Auth","FaxRoom","socket","Agent","$translate","$q","ReportFaxSession","$timeout",function(t,e,n,a,s,i,l,o,r){t.Auth=e,t.moment=moment,t.$on("$destroy",function(){a.socket.removeAllListeners("dashboard:fax")}),t.roomStatus={new:0,open:0,pending:0,closed:0},t.routingStats={waiting:0,timeout:0},t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_DASHBOARD_PENDING"),i.instant("APPLICATION_DASHBOARD_CLOSED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var c=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px")};t.initAgent=function(){t.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasFaxQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize)}),t.gridApi.pagination.on.paginationChanged(t,function(e,n){c(n>t.table1.data.length?t.table1.data.length:n)})}},t.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=l.defer();return e.resolve(i.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){})}},s.get({id:e.getCurrentUser().id,controller:"fax",controller1:"queues"}).$promise.then(function(e){t.table1.data=e.rows}).finally(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize),a.socket.on("user_has_fax_queue:save",function(n){n.UserId!=e.getCurrentUser().id||_.find(t.table1.data,{id:n.FaxQueueId})||t.table1.data.push({id:n.FaxQueueId,UserHasFaxQueue:n})}),a.socket.on("user_has_fax_queue:remove",function(n){n.UserId===e.getCurrentUser().id&&_.remove(t.table1.data,{id:n.FaxQueueId})})}).catch(function(t){console.error(t)}),o.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.table2.data=e.rows}).finally(function(){a.socket.on("report_fax_session:save",function(e){var n=_.find(t.table2.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&r(function(){_.remove(t.table2.data,{id:e.id})},1e4)):e.leaveAt||t.table2.data.push(e)}),a.socket.on("report_fax_session:remove",function(e){_.remove(t.table2.data,{id:e.id})})}).catch(function(t){console.log(t)})},t.initRoomStats=function(){return n.get({id:"dashboard"}).$promise.then(function(e){t.roomStatus=e,t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_DASHBOARD_PENDING"),i.instant("APPLICATION_DASHBOARD_CLOSED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},a.socket.on("dashboard:fax",function(e){t.roomStatus=e.roomStatus,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed]})}).catch(function(t){console.error(t)})},t.initRoutingStats=function(){return o.get({id:"dashboard"}).$promise.then(function(e){t.routingStats=e}).catch(function(t){console.error(t)})},t.initSocketListening=function(){a.socket.on("dashboard:fax",function(e){t.roomStatus=e.roomStatus,t.routingStats=e.routingStats,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardMailCtrl",["$scope","Auth","MailRoom","socket","Agent","$translate","$q","ReportMailSession","$timeout",function(t,e,n,a,s,i,l,o,r){t.Auth=e,t.moment=moment,t.$on("$destroy",function(){a.socket.removeAllListeners("dashboard:mail")}),t.roomStatus={new:0,open:0,pending:0,closed:0},t.routingStats={waiting:0,timeout:0},t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_DASHBOARD_PENDING"),i.instant("APPLICATION_DASHBOARD_CLOSED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var c=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px")};t.initAgent=function(){t.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasMailQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize)}),t.gridApi.pagination.on.paginationChanged(t,function(e,n){c(n>t.table1.data.length?t.table1.data.length:n)})}},t.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=l.defer();return e.resolve(i.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){})}},s.get({id:e.getCurrentUser().id,controller:"mail",controller1:"queues"}).$promise.then(function(e){t.table1.data=e.rows}).finally(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize),a.socket.on("user_has_mail_queue:save",function(n){n.UserId!=e.getCurrentUser().id||_.find(t.table1.data,{id:n.MailQueueId})||t.table1.data.push({id:n.MailQueueId,UserHasMailQueue:n})}),a.socket.on("user_has_mail_queue:remove",function(n){n.UserId===e.getCurrentUser().id&&_.remove(t.table1.data,{id:n.MailQueueId})})}).catch(function(t){console.error(t)}),o.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.table2.data=e.rows}).finally(function(){a.socket.on("report_mail_session:save",function(e){var n=_.find(t.table2.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&r(function(){_.remove(t.table2.data,{id:e.id})},1e4)):e.leaveAt||t.table2.data.push(e)}),a.socket.on("report_mail_session:remove",function(e){_.remove(t.table2.data,{id:e.id})})}).catch(function(t){console.log(t)})},t.initRoomStats=function(){return n.get({id:"dashboard"}).$promise.then(function(e){t.roomStatus=e,t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_DASHBOARD_PENDING"),i.instant("APPLICATION_DASHBOARD_CLOSED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},a.socket.on("dashboard:mail",function(e){t.roomStatus=e.roomStatus,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed]})}).catch(function(t){console.error(t)})},t.initRoutingStats=function(){return o.get({id:"dashboard"}).$promise.then(function(e){t.routingStats=e}).catch(function(t){console.error(t)})},t.initSocketListening=function(){a.socket.on("dashboard:mail",function(e){t.roomStatus=e.roomStatus,t.routingStats=e.routingStats,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardOpenChannelCtrl",["$scope","Auth","OpenChannelRoom","socket","Agent","$translate","$q","ReportOpenChannelSession","$timeout",function(t,e,n,a,s,i,l,o,r){t.Auth=e,t.moment=moment,t.$on("$destroy",function(){a.socket.removeAllListeners("dashboard:openchannel")}),t.roomStatus={new:0,open:0,pending:0,closed:0},t.routingStats={waiting:0,timeout:0},t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_DASHBOARD_PENDING"),i.instant("APPLICATION_DASHBOARD_CLOSED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var c=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px")};t.initAgent=function(){t.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasOpenchannelQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize)}),t.gridApi.pagination.on.paginationChanged(t,function(e,n){c(n>t.table1.data.length?t.table1.data.length:n)})}},t.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=l.defer();return e.resolve(i.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){})}},s.get({id:e.getCurrentUser().id,controller:"openchannel",controller1:"queues"}).$promise.then(function(e){t.table1.data=e.rows}).finally(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize),a.socket.on("user_has_openchannel_queue:save",function(n){n.UserId!=e.getCurrentUser().id||_.find(t.table1.data,{id:n.OpenchannelQueueId})||t.table1.data.push({id:n.OpenchannelQueueId,UserHasOpenchannelQueue:n})}),a.socket.on("user_has_openchannel_queue:remove",function(n){n.UserId===e.getCurrentUser().id&&_.remove(t.table1.data,{id:n.OpenchannelQueueId})})}).catch(function(t){console.error(t)}),o.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.table2.data=e.rows}).finally(function(){a.socket.on("report_openchannel_session:save",function(e){var n=_.find(t.table2.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&r(function(){_.remove(t.table2.data,{id:e.id})},1e4)):e.leaveAt||t.table2.data.push(e)}),a.socket.on("report_openchannel_session:remove",function(e){_.remove(t.table2.data,{id:e.id})})}).catch(function(t){console.log(t)})},t.initRoomStats=function(){return n.get({id:"dashboard"}).$promise.then(function(e){t.roomStatus=e,t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_DASHBOARD_PENDING"),i.instant("APPLICATION_DASHBOARD_CLOSED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},a.socket.on("dashboard:openchannel",function(e){t.roomStatus=e.roomStatus,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed]})}).catch(function(t){console.error(t)})},t.initRoutingStats=function(){return o.get({id:"dashboard"}).$promise.then(function(e){t.routingStats=e}).catch(function(t){console.error(t)})},t.initSocketListening=function(){a.socket.on("dashboard:openchannel",function(e){t.roomStatus=e.roomStatus,t.routingStats=e.routingStats,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardSmsCtrl",["$scope","Auth","SmsRoom","socket","Agent","$translate","$q","ReportSmsSession","$timeout",function(t,e,n,a,s,i,l,o,r){t.Auth=e,t.moment=moment,t.$on("$destroy",function(){a.socket.removeAllListeners("dashboard:sms")}),t.roomStatus={new:0,open:0,pending:0,closed:0},t.routingStats={waiting:0,timeout:0},t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_DASHBOARD_PENDING"),i.instant("APPLICATION_DASHBOARD_CLOSED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}};var c=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px")};t.initAgent=function(){t.table1={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"UserHasSmsQueue.queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize)}),t.gridApi.pagination.on.paginationChanged(t,function(e,n){c(n>t.table1.data.length?t.table1.data.length:n)})}},t.table2={headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,columnDefs:[{name:"roomid",displayName:"APPLICATION_INTERACTION_ID",headerCellFilter:"translate"},{name:"accountname",displayName:"APPLICATION_ACCOUNT_NAME",headerCellFilter:"translate"},{name:"application",displayName:"APPLICATION_APPLICATION",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.application}} <span data-ng-if=\"row.entity.application == 'queue' && row.entity.queuename\">({{row.entity.queuename}})</span></div>"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.leaveAt">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.complete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.leaveAt && row.entity.timeout">{{\'APPLICATION_TIMEOUT\' | translate}}</span><span data-ng-if="!row.entity.leaveAt"> [<css-timer start-time="row.entity.updatedAt"></css-timer>]</span></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"membername",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.membername || ''}}</span></div>"}],data:[],gridMenuTitleFilter:function(t){var e=l.defer();return e.resolve(i.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){})}},s.get({id:e.getCurrentUser().id,controller:"sms",controller1:"queues"}).$promise.then(function(e){t.table1.data=e.rows}).finally(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize),a.socket.on("user_has_sms_queue:save",function(n){n.UserId!=e.getCurrentUser().id||_.find(t.table1.data,{id:n.SmsQueueId})||t.table1.data.push({id:n.SmsQueueId,UserHasSmsQueue:n})}),a.socket.on("user_has_sms_queue:remove",function(n){n.UserId===e.getCurrentUser().id&&_.remove(t.table1.data,{id:n.SmsQueueId})})}).catch(function(t){console.error(t)}),o.get({controller:"waiting",controller2:"applications"}).$promise.then(function(e){t.table2.data=e.rows}).finally(function(){a.socket.on("report_sms_session:save",function(e){var n=_.find(t.table2.data,{id:e.id});n?(_.merge(n,e),e.leaveAt&&r(function(){_.remove(t.table2.data,{id:e.id})},1e4)):e.leaveAt||t.table2.data.push(e)}),a.socket.on("report_sms_session:remove",function(e){_.remove(t.table2.data,{id:e.id})})}).catch(function(t){console.log(t)})},t.initRoomStats=function(){return n.get({id:"dashboard"}).$promise.then(function(e){t.roomStatus=e,t.charts={interactions:{labels:[i.instant("APPLICATION_DASHBOARD_NEW"),i.instant("APPLICATION_DASHBOARD_OPEN"),i.instant("APPLICATION_DASHBOARD_PENDING"),i.instant("APPLICATION_DASHBOARD_CLOSED")],values:[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed],colours:["#44B6AE","#578EBE","#35AA47","#8775A7"]}},a.socket.on("dashboard:sms",function(e){t.roomStatus=e.roomStatus,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed]})}).catch(function(t){console.error(t)})},t.initRoutingStats=function(){return o.get({id:"dashboard"}).$promise.then(function(e){t.routingStats=e}).catch(function(t){console.error(t)})},t.initSocketListening=function(){a.socket.on("dashboard:sms",function(e){t.roomStatus=e.roomStatus,t.routingStats=e.routingStats,t.charts.interactions.values=[t.roomStatus.new,t.roomStatus.open,t.roomStatus.pending,t.roomStatus.closed]})}}]),angular.module("xCallyShuttleApp").controller("DashboardVoiceCtrl",["$scope","$rootScope","$timeout","Auth","ReportQueue","ReportCall","Agent","Dashboard","socket",function(t,e,n,a,s,i,l,o,r){t.moment=moment,t.radioSwitch={size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"success",onColor:"danger"};var c=function(t,e){var n=t?30*t+130:177;angular.element(document.getElementsByName(e)[0]).css("height",n+"px")};t.initUser=function(){return t.user=a.getCurrentUser(),t.voice={},t.$on("$destroy",function(){}),s.get({controller:"dashboard"}).$promise.then(function(e){return t.voice.queues=e,i.get({controller:"dashboard"}).$promise}).then(function(e){t.voice.outbound=e}).catch(function(t){console.error(t)}).finally(function(){r.socket.on("voice:inbound",function(e){(t.voice.queues[e.type]>0||e.amount>0)&&(t.voice.queues[e.type]+=e.amount)}),r.socket.on("voice:outbound:global",function(e){_.merge(t.voice.outbound,e)})})},t.initAgent=function(){return a.getCurrentUser().$promise.then(function(e){return t.agent=e,t.timerSwitch={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"primary"},t.showTimers=!1,t.table1={enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"queue",headerCellFilter:"translate",displayName:"APPLICATION_QUEUE",cellClass:"text-center ui-grid-vcenter"},{name:"loggedAt",displayName:"logged At",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span am-time-ago="row.entity.loggedAt"></span></div>'}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize,"table1")}),t.gridApi.pagination.on.paginationChanged(t,function(e,n){c(n>t.table1.data.length?t.table1.data.length:n,"table1")})}},t.table2={enableGridMenu:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,multiSelect:!1,paginationPageSizes:[10,25,50],paginationPageSize:10,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate"},{name:"status",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><span data-ng-if="!row.entity.queuecallerleaveAt && !row.entity.queuecallerexit">{{\'APPLICATION_QUEUESTATUS_WAITING\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && !row.entity.queuecallerabandon && !row.entity.queuecallercomplete && !row.entity.queuecallerexit">{{\'APPLICATION_ACTIVE\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallerabandon">{{\'APPLICATION_QUEUESTATUS_ABANDON\' | translate}}</span><span data-ng-if="row.entity.queuecallerleaveAt && row.entity.queuecallercomplete">{{\'APPLICATION_QUEUESTATUS_COMPLETE\' | translate}}</span><span data-ng-if="row.entity.queuecallerexitreason"> {{row.entity.queuecallerexitreason}}</span><span data-ng-if="!row.entity.queuecallercomplete && !row.entity.queuecallerabandon && !row.entity.queuecallerexit && grid.appScope.showTimers"> <css-timer start-time="row.entity.updatedAt"></css-timer></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"caller",displayName:"APPLICATION_CALLER",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.calleridnum || ''}} {{row.entity.calleridname || ''}}</span></div>",enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1},{name:"position",displayName:"APPLICATION_POSITION",headerCellFilter:"translate"},{name:"lastAssignedTo",displayName:"APPLICATION_AGENT",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"}],data:[],onRegisterApi:function(e){t.gridApi1=e,t.gridApi1.grid.registerDataChangeCallback(function(){c(t.gridApi1.core.getVisibleRows(t.gridApi1.grid).length,"table2")})}},t.table3={exporterCsvFilename:"abandoned_calls.csv",enableRowHeaderSelection:!0,paginationPageSizes:[10,25,50],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!1,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,enableSelectAll:!1,enableHorizontalScrollbar:0,enableVerticalScrollbar:0,columnDefs:[{name:"queue",displayName:"APPLICATION_QUEUE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter"},{name:"caller",displayName:"APPLICATION_CALLER",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.calleridnum || ''}} {{row.entity.calleridname || ''}}</div>"},{name:"createdAt",displayName:"APPLICATION_DATE",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.updatedAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>"},{name:"lastAssignedTo",cellClass:"text-center ui-grid-vcenter",displayName:"APPLICATION_LAST_ASSIGNED_TO",headerCellFilter:"translate"},{name:"assigned",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.assigned" type="checkbox" switch-active="{{ !row.entity.assigned || grid.appScope.agent.name === row.entity.lastAssignedTo }}" switch-on-text="{{ \'APPLICATION_ASSIGNED\' | translate }}" switch-off-text="{{ \'APPLICATION_FREE\' | translate }}" switch-on-color="{{ grid.appScope.radioSwitch.onColor }}" switch-off-color="{{ grid.appScope.radioSwitch.offColor }}" switch-animate="{{ grid.appScope.radioSwitch.animate }}" switch-size="{{ grid.appScope.radioSwitch.size }}" switch-label="{{ grid.appScope.radioSwitch.label }}" switch-icon="{{ grid.appScope.radioSwitch.icon }}" switch-radio-off="{{ grid.appScope.radioSwitch.radioOff }}" switch-label-width="{{ grid.appScope.radioSwitch.labelWidth }}" switch-handle-width="{{ grid.appScope.radioSwitch.handleWidth }}"></div>',enableFiltering:!1}],data:[],onRegisterApi:function(e){t.gridApi2=e,t.gridApi2.grid.registerDataChangeCallback(function(){c(t.gridApi2.core.getVisibleRows(t.gridApi2.grid).length,"table3")})}},l.get({id:t.agent.id,controller:"voice",controller1:"queues"}).$promise}).then(function(e){t.table1.data=_.map(e.rows,function(t){return{queue:t.UserHasVoiceQueue.queue,loggedAt:t.UserHasVoiceQueue.loggedAt,callstaken:t.UserHasVoiceQueue.callstaken,lastcall:t.UserHasVoiceQueue.lastcall}})}).then(function(){return c(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize,"table1"),r.socket.on("user_has_voice_queue:remove",function(e){e.UserId===t.agent.id&&_.remove(t.table1.data,{queue:e.queue})}),r.socket.on("user_has_voice_queue:save",function(e){if(e.UserId===t.agent.id||e.membername===t.agent.name){var n=_.find(t.table1.data,{queue:e.queue});n?_.merge(n,e):!n&&e.logged&&t.table1.data.unshift({queue:e.queue,loggedAt:moment(),lastcall:null,callstaken:0})}}),s.get({id:"waiting",controller:"calls"}).$promise}).then(function(e){t.table2.data=e.rows}).then(function(){return r.socket.on("report_queue:save",function(e){t.table2.data.push(e)}),r.socket.on("report_queue:update",function(e){var a=_.find(t.table2.data,{id:e.id});a&&(_.merge(a,e),(a.queuecallerabandon||a.queuecallercomplete||a.queuecallerexitreason||e.queuecallerleaveAt)&&n(function(){_.remove(t.table2.data,{id:e.id})},3e3))}),s.get({controller:"abandoned",controller2:"all"}).$promise}).then(function(e){t.table3.data=e.rows}).catch(function(t){console.error(t)}).finally(function(){r.socket.on("report_queue:update",function(e){e.queuecallerabandon&&t.table3.data.unshift(e)})})},t.updateItem=function(e){return s.update({id:e.id},{assigned:e.assigned,lastAssignedTo:e.assigned?t.agent.name:void 0}).$promise.catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.desk",{url:"/desk",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").factory("DeskAccount",["$resource",function(t){return t("/api/desk/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("DeskListCtrl",["$scope","$http","$rootScope","xAlert","$translate","socket","Modal","stResource",function(t,e,n,a,s,i,l,o){t.conf={accountsByPage:{name:"10",value:10}},t.accountsByPage=[{name:"10",value:10},{name:"25",value:25},{name:"50",value:50},{name:"All",value:0}],t.accounts={checked:[]},t.check=function(e,n){t.accounts.checked=n?angular.copy(_.map(t.displayedDeskAccounts,"id")):[]},t.getAccounts=function(e){return _.map(t.displayedDeskAccounts,function(t){var n={};return e.forEach(function(e){n[e]=t[e]}),n})},t.initList=function(e){i.unsyncUpdates("desk_account"),e.url="/api/desk/accounts",o.getPage(e).then(function(a){t.displayedDeskAccounts=a.rows,e.pagination.numberOfPages=a.total_pages,n.updateTableConfig(t.accountsByPage,t.displayedDeskAccounts.length),n.updateTableConfig(t.conf.accountsByPage,t.displayedDeskAccounts.length)}),i.socket.on("desk_account:save",function(){t.initList(e)}),i.socket.on("desk_account:remove",function(n){t.accounts.checked=_.without(t.accounts.checked,n.id),t.initList(e)})},t.deleteItem=l.confirm.delete(function(t){e.delete("/api/desk/accounts/"+t).success(function(){a.show(s.instant("MESSAGE_WELL_DONE")+"!","success")}).error(function(t){a.error(t)})}),t.deleteItems=l.confirm.delete(function(){e.delete("/api/desk/accounts",{params:{id:t.accounts.checked}}).success(function(){a.show(s.instant("MESSAGE_WELL_DONE"),"success")}).error(function(t){a.error(t)})}),t.checkAccount=function(t){e.get("/api/desk/accounts/"+t+"/check").then(function(){a.show(s.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")}).catch(function(){a.show(s.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.desk.list",{url:"/list",templateUrl:"app/desk/list/list.html",controller:"DeskListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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(t,e,n,a,s,i,l,o,r,c){t.$stateParams=n,t.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:500,scrollInertia:0},t.initConfiguration=function(){t.formsConfiguration={},t.configuration={}},t.goNext=function(){i.wizard().next()},t.formValidation=function(t){return t},t.$on("$destroy",function(){l.unsyncUpdates("desk_configuration"),l.unsyncUpdates("desk_field")}),t.initView=function(){e.get("/api/desk/accounts/"+n.id).success(function(e){t.account=e}).error(function(t){o.error(t)})},t.updateItem=function(){e.put("/api/desk/accounts/"+n.id,t.account).success(function(){o.show(a.instant("MESSAGE_WELL_DONE")+".","success")}).error(function(){o.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},t.getConfigurations=function(){e.get("/api/desk/configurations",{params:{AccountId:n.id}}).success(function(e){t.configurations=e,l.socket.on("desk_configuration:remove",function(e){_.remove(t.configurations,{id:e.id})})}).error(function(t){o.error(t)})},t.deleteConfiguration=r.confirm.delete(function(t){e.delete("api/desk/configurations/"+t).success(function(){o.show(a.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){o.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})}),t.createConfiguration=function(){t.configuration.AccountId=n.id,e.post("api/desk/configurations",t.configuration).success(function(t){s.path("desk/view/"+n.id+"/configurations/settings/"+t.id)}).error(function(){o.show("Something went wrong!","danger")})},t.fieldType=["string","variable"],t.descFieldType=["string","key_value"],t.getFields=function(){e.get("/api/desk/accounts/"+n.id+"/fields").success(function(e){t.accountFields=c.fields.concat(e)}).error(function(t){o.error(t)})},t.getConfiguration=function(){e.get("/api/desk/configurations/"+n.configurationId).success(function(e){t.configurationName=e.name,t.subjectConfig=e.Subject,t.descriptionConfig=e.Description,t.fieldConfig=e.Field,l.socket.on("desk_field:remove",function(e){_.remove(t.subjectConfig,{id:e.id}),_.remove(t.descriptionConfig,{id:e.id}),_.remove(t.fieldConfig,{id:e.id})})}).error(function(t){o.error(t)})},t.getVariables=function(){e.get("/api/variables").success(function(e){t.variables=e.rows}).error(function(t){o.error(t)})},t.removeItem=function(t){e.delete("api/desk/fields/"+t.id).success(function(){o.show(a.instant("MESSAGE_WELL_DONE"),"success")}).error(function(){o.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")})},t.addItemSubject=function(){var a={type:"string",content:""};e.post("/api/desk/configurations/"+n.configurationId+"/subject",a).success(function(e){t.subjectConfig.push(e)}).error(function(){o.show("Something went wrong!","danger")})},t.addItemDescription=function(){var a={type:"string",content:""};e.post("/api/desk/configurations/"+n.configurationId+"/description",a).success(function(e){t.descriptionConfig.push(e)}).error(function(){o.show("Something went wrong!","danger")})},t.addItemField=function(){var a={content:""};e.post("/api/desk/configurations/"+n.configurationId+"/field",a).success(function(e){t.fieldConfig.push(e)}).error(function(){o.show("Something went wrong!","danger")})},t.updateField=function(t){e.put("/api/desk/fields/"+t.id,t).success(function(){}).error(function(){o.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})},t.changeType=function(e){"variable"===e.type?e.content="":"string"===e.type&&(e.VariableId=null),t.updateField(e)},t.changeDescType=function(e){"key_value"===e.type?(e.content="","string"===e.keyType?e.VariableId=null:"variable"===e.keyType&&(e.keyContent="")):"string"===e.type&&(e.VariableId=null,e.key="",e.keyContent=""),t.updateField(e)},t.changeFieldType=function(e){if(e.content="",e.idField){var n=_.find(t.accountFields,"id",e.idField);n&&(e.customField=_.result(n,"custom",!0))}t.updateField(e)},t.getSystemFieldOptions=function(e){if(e){var n=_.find(t.accountFields,"id",e);return n?n.data.choices?n.data.choices:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.desk.view",{url:"/view/:id",templateUrl:"app/desk/view/view.html",controller:"DeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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(t,e,n,a,s,i){t.translate=a,t.initWizard=function(){t.$translate=a,t.forms={},t.item={}},t.next=function(){i.wizard().next()},t.exitValidation=function(t){return t},t.createItem=function(){console.log(t.item),e.post("api/desk/accounts",t.item).success(function(){s.show(a.instant("MESSAGE_WELL_DONE")+".","success"),n.path("/desk/list")}).error(function(){s.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.desk.wizard",{url:"/wizard",templateUrl:"app/desk/wizard/wizard.html",controller:"DeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("FreshdeskAccount",["$resource",function(t){return t("/api/freshdesk/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}}})}]).factory("FreshdeskConfiguration",["$resource",function(t){return t("/api/freshdesk/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("FreshdeskField",["$resource",function(t){return t("/api/freshdesk/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.freshdesk",{url:"/freshdesk",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("FreshdeskListCtrl",["$scope","FreshdeskAccount","gridOptions","xAlert","$translate",function(t,e,n,a,s){t.initView=function(){var a={exporterCsvFilename:"freshdesk_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",width:250,buttons:[{class:"blue-hoki",href:"/freshdesk/view/{{row.entity.id}}/account",name:"profile"},{class:"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.checkAccount=function(t){return e.get({id:t,controller:"check"}).$promise.then(function(){a.show(s.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")}).catch(function(){a.show(s.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.freshdesk.list",{url:"/list",templateUrl:"app/freshdesk/list/list.html",controller:"FreshdeskListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.freshdesk.view.configurations",{url:"/configurations",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","FreshdeskConfiguration","$uibModal",function(t,e,n,a,s,i){t.initView=function(){var n={exporterCsvFilename:"freshdesk_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/freshdesk/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(s,n,t,{accountId:e.id})},t.createItem=function(){i.open({animation:!0,templateUrl:"app/freshdesk/view/configuration/list/create.modal.html",controller:"FreshdeskCreateConfigurationCtrl"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("FreshdeskCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","FreshdeskConfiguration","xAlert","$stateParams","channel",function(t,e,n,a,s,i,l){t.form={},t.item={},t.channels=l,t.item.channel="voice",t.item.type="Queue",t.save=function(){return a.save({accountId:i.id},t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.freshdesk.view.configurations.list",{url:"/list",templateUrl:"app/freshdesk/view/configuration/list/list.html",controller:"FreshdeskViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewConfigurationViewCtrl",["$scope","$filter","$stateParams","$translate","socket","variable","xAlert","FreshdeskAccount","FreshdeskConfiguration","FreshdeskField","Variable","Tag",function(t,e,n,a,s,i,l,o,r,c,d,u){t.$on("$destroy",function(){s.unsyncUpdates("freshdesk_field")}),t.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},t.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],t.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],t.groupVariableByGroup=function(t){switch(t.group){case"voice_queue":return"Voice: Queue";default:return"Other"}},t.initView=function(){t.configurationName="",t.subjectConfig=[],t.descriptionConfig=[],t.fieldConfig=[],t.selectedTags={tags:[]},t.variables=i},t.getConfiguration=function(){return r.get({accountId:n.id,id:n.configurationId}).$promise.then(function(e){t.configurationName=e.name,t.subjectConfig=e.Subject,t.descriptionConfig=e.Description,t.fieldConfig=e.Field,t.selectedTags={tags:_.map(e.Tags,function(t){return t.id})},s.socket.on("freshdesk_field:remove",function(e){_.remove(t.subjectConfig,{id:e.id}),_.remove(t.descriptionConfig,{id:e.id}),_.remove(t.fieldConfig,{id:e.id})})}).catch(function(t){l.error(t)})},t.getCustomVariables=function(){return d.get().$promise.then(function(e){t.customVariables=e.rows}).catch(function(t){l.error(t)})},t.getFields=function(){return o.fields({id:n.id}).$promise.then(function(n){t.accountFields=e("freshdesk")(n)}).catch(function(t){l.error(t)})},t.addItem=function(e){var a={};switch(e){case"subject":case"description":a={type:"string",content:""};break;case"field":a={content:""}}return r.save({accountId:n.id,id:n.configurationId,controller:e},a).$promise.then(function(n){switch(e){case"subject":t.subjectConfig.push(n);break;case"description":t.descriptionConfig.push(n);break;case"field":t.fieldConfig.push(n)}}).catch(function(t){l.error(t)})},t.changeFieldType=function(e){if(e.content="",e.variableName="",e.nameField="",e.VariableId=null,e.idField){var n=_.find(t.accountFields,"name",e.idField);n&&(e.customField=!n.default)}t.updateField(e)},t.changeType=function(e){"variable"===e.type?(e.content="",e.variableName=""):"string"===e.type?(e.VariableId=null,e.variableName=""):"customVariable"===e.type&&(e.VariableId=null,e.content=""),t.updateField(e)},t.updateField=function(t){return c.update({accountId:n.id,configurationId:n.configurationId,id:t.id},t).$promise.then(function(){}).catch(function(t){l.error(t)})},t.removeItem=function(t){return c.delete({accountId:n.id,configurationId:n.configurationId,id:t.id}).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){l.error(t)})},t.changeDescType=function(e){"keyValue"===e.type?(e.content="","string"===e.keyType?(e.VariableId=null,e.variableName=""):"variable"===e.keyType?(e.keyContent="",e.VariableId=null):"customVariable"===e.keyType&&(e.keyContent="",e.variableName="")):"string"===e.type&&(e.VariableId=null,e.variableName="",e.key="",e.keyContent=""),t.updateField(e)},t.getSystemFieldOptions=function(e){if(e){var n=_.find(t.accountFields,"name",e);return!(!n||!n.hasOwnProperty("choices"))&&(_.isArray(n.choices)?n.choices.length?n.choices:[]:_.keys(n.choices).length?_.keys(n.choices):[])}},t.getTags=function(){return u.get().$promise.then(function(e){t.tags=e.rows}).catch(function(t){l.error(t)})},t.updateTags=function(){return r.update({accountId:n.id,id:n.configurationId,controller:"tags"},t.selectedTags.tags).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE")+".","success")}).catch(function(t){l.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.freshdesk.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/freshdesk/view/configuration/view/view.html",controller:"FreshdeskViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal","FreshdeskAccount",function(t,e,n,a,s,i,l,o,r,c,d){t.initView=function(){return d.get({id:n.id}).$promise.then(function(e){t.account=e}).catch(function(t){r.error(t)})},t.updateItem=function(){return d.update({id:n.id},t.account).$promise.then(function(){r.show(a.instant("MESSAGE_WELL_DONE")+".","success")}).catch(function(t){r.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.freshdesk.view",{url:"/view/:id",templateUrl:"app/freshdesk/view/view.html",controller:"FreshdeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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"})}]),angular.module("xCallyShuttleApp").controller("FreshdeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","FreshdeskAccount",function(t,e,n,a,s,i,l){t.translate=a,t.initWizard=function(){t.$translate=a,t.forms={},t.item={},t.item.serverUrl=n.protocol()+"://"+location.host},t.next=function(){i.wizard().next()},t.exitValidation=function(t){return t},t.createItem=function(){return l.save(t.item).$promise.then(function(){s.show(a.instant("MESSAGE_WELL_DONE")+".","success"),n.path("/freshdesk/list")}).catch(function(t){s.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.freshdesk.wizard",{url:"/wizard",templateUrl:"app/freshdesk/wizard/wizard.html",controller:"FreshdeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.iframe",{url:"/iframe",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("IframeViewCtrl",["$scope","Auth","Integration","xAlert","$translate","$sce",function(t,e,n,a,s,i){t.Auth=e,t.initView=function(){return n.get({state:"iframe"}).$promise.then(function(n){t.iframe=_.first(n.rows),t.iframe.remoteUri?t.url=i.trustAsResourceUrl(t.iframe.remoteUri):e.isAgent()&&a.show(s.instant("MESSAGE_NO_IFRAME_CONFIGURED")+".","danger")}).catch(function(t){a.error(t)})},t.updateItem=function(){if(!e.isAgent())return n.update({id:t.iframe.id},t.iframe).$promise.then(function(){a.show(s.instant("MESSAGE_WELL_DONE")+".","success")}).catch(function(t){a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.iframe.view",{url:"/view",templateUrl:"app/iframe/view/view.html",controller:"IframeViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Integration",["$resource",function(t){return t("/api/integrations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.integrations",{url:"/integrations",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:19}}})}]),angular.module("xCallyShuttleApp").controller("IntegrationListCtrl",["$scope","Modal","socket","FileUploader","Integration","xAlert",function(t,e,n,a,s,i){t.integrationsByPage=10;var l=t.uploader=new a({url:"api/integrations",autoUpload:!0,removeAfterUpload:!0});l.filters.push({name:"zipFilter",fn:function(t){var e="|"+t.type.slice(t.type.lastIndexOf("/")+1)+"|";return-1!=="|zip|".indexOf(e)}}),l.onSuccessItem=function(t,e,n,a){console.info("onSuccessItem",t,e,n,a),i.show(e.name,"success")},l.onErrorItem=function(t,e,n,a){console.info("onErrorItem",t,e,n,a),e.errors.forEach(function(t){i.error(err)})},t.deleteItem=e.confirm.delete(function(t){s.delete({id:t},function(){i.show("Integration Removed","success")},function(t){i.error(t)})}),t.initList=function(){t.integrations=s.query({},function(t){n.syncUpdates("integration",t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.integrations.list",{url:"/list",templateUrl:"app/integration/list/list.html",controller:"IntegrationListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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(t){t.state("main.jscripty",{url:"/jscripty",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").factory("JscriptyProject",["$resource",function(t){return t("/api/jscripty/projects/:id/:controller/:action/:action2",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectListCtrl",["$scope","$uibModal","JscriptyProject","gridOptions","Auth",function(t,e,n,a,s){t.Auth=s,t.initView=function(){var e={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:300,buttons:[{class:"blue-hoki",icon:"icon-settings",href:"/jscripty/projects/view/{{row.entity.id}}",hide:s.isAgent()},{class:" green-turquoise",icon:"fa fa-play",onClick:"grid.appScope.openJscriptyTab(row.entity)"},{class:"purple",icon:"icon-book-open",href:"/jscripty/projects/report/{{row.entity.id}}/sessions",hide:s.isAgent()},{class:"red-sunglo",icon:"fa fa-trash",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)",hide:s.isAgent()}]}]};t.gridOptions=a.gridOptions(n,e,t)},t.createItem=function(){e.open({animation:!0,templateUrl:"app/jscripty/project/list/list.create.modal.html",controller:"JscriptyProjectListCreateCtrl"}).result.then(function(e){console.log(e),t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectListCreateCtrl",["$scope","$translate","$uibModalInstance","JscriptyProject","xAlert",function(t,e,n,a,s){t.form={},t.item={},t.save=function(){return a.save(t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){console.log(t),s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.jscripty.projects.list",{url:"/list",templateUrl:"app/jscripty/project/list/list.html",controller:"JscriptyProjectListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.jscripty.projects",{url:"/projects",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectReportCtrl",["$scope","uiGridConstants","$http","$state","$stateParams","socket","Auth","Modal","xAlert","$translate","$rootScope","gridOptions","JscriptyProject","$location",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m){t.projectStats={started:0,incomplete:0,completed:0},t.projectId=s.id,t.initView=function(){p.get({id:s.id}).$promise.then(function(e){t.project=e}).catch(function(t){r.error(t)}),p.get({id:s.id,controller:"sessions"}).$promise.then(function(e){var n=_.groupBy(e.rows,"status");t.projectStats.started=n.started?n.started.length:0,t.projectStats.completed=n.completed?n.completed.length:0,t.projectStats.incomplete=n.incomplete?n.incomplete.length:0}).catch(function(t){r.error(t)})},t.pdf=function(t,e){var n=[];if(t){var a=html2canvas(document.getElementById(t)),s=a.parse(),i=a.render(s).toDataURL("image/png");n.push({image:i,width:500,style:"img"})}e.length&&_.forEach(e,function(t){var e=html2canvas(document.getElementById(t.question_id)),a=e.parse(),s=e.render(a).toDataURL("image/png");n.push({image:s,width:500,style:"img"})});var l={content:n};pdfMake.createPdf(l).download("Project_summary.pdf")},t.getProjectSessions=function(){var n={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"session_id",displayName:"APPLICATION_SESSIONID"},{name:"queue",displayName:"APPLICATION_QUEUE"},{name:"membername",displayName:"APPLICATION_AGENT"},{name:"calleridnum",displayName:"APPLICATION_CALLERIDNUM"},{name:"createdAt",displayName:"APPLICATION_STARTEDAT",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL}]},{name:"completedAt",displayName:"APPLICATION_COMPLETEDAT",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:e.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:e.filter.LESS_THAN_OR_EQUAL}]},{name:"status",displayName:"APPLICATION_STATUS"},{name:"last_question_id",displayName:"APPLICATION_LASTQUESTIONID"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/jscripty/projects/report/{{row.entity.projectId}}/session/{{row.entity.session_id}}",name:"Detail"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteSession(row.entity.session_id)"}]}]};t.gridOptions=u.gridOptions(p,n,t,{id:s.id,controller:"sessions"})},t.deleteSession=function(e){p.delete({id:s.id,controller:"sessions",action:e}).$promise.then(function(e){t.gridOptions.getPage(),t.initView(),r.show(c.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){r.error(t)})},t.getSessionDetails=function(){p.get({id:s.id,controller:"sessions",action:s.sessionId}).$promise.then(function(e){t.session=e,t.sessionQuestions=e.ReportJscriptyQuestions}).catch(function(t){r.error(t)})},t.getQuestionSummary=function(){var e={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"question_id",displayName:"APPLICATION_QUESTIONID"},{name:"question_type",displayName:"APPLICATION_QUESTIONTYPE"},{name:"question_label",displayName:"APPLICATION_QUESTIONLABEL"},{name:"question_text",displayName:"APPLICATION_QUESTION"},{name:"count",displayName:"APPLICATION_COUNT",enableFiltering:!1},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/jscripty/projects/report/"+s.id+"/detail/{{row.entity.question_id}}",name:"Detail"}]}]};t.gridOptions=u.gridOptions(p,e,t,{id:s.id,controller:"questions",action:"summary"})},t.getQuestionInputs=function(){var e={exporterCsvFilename:"jscriptyProjects.csv",columnDefs:[{name:"session_id",displayName:"APPLICATION_SESSIONID"},{name:"question_id",displayName:"APPLICATION_QUESTIONID",enableFiltering:!1},{name:"question_label",displayName:"APPLICATION_QUESTIONLABEL",enableFiltering:!1},{name:"question_text",displayName:"APPLICATION_QUESTION",enableFiltering:!1},{name:"input_label",displayName:"APPLICATION_INPUTLABEL",enableFiltering:!1},{name:"input_value",cellTemplate:'<div uib-tooltip="{{row.entity.input_value}}">{{row.entity.input_value}}</div>',displayName:"APPLICATION_INPUTVALUE",enableFiltering:!1}]};t.gridOptions=u.gridOptions(p,e,t,{id:s.id,controller:"inputs"})},t.getProjectDetail=function(){t.projectDetail=[],p.query({id:s.id,controller:"questions",action:"detail"}).$promise.then(function(e){console.log(s.questionId),s.questionId?t.projectDetail.push(_.find(e,function(t){return t.question_id==parseInt(s.questionId)})):t.projectDetail=e,console.log(t.projectDetail)}).catch(function(t){r.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.jscripty.projects.report",{url:"/report/:id",templateUrl:"app/jscripty/project/report/report.html",controller:"JscriptyProjectReportCtrl"}).state("main.jscripty.projects.report.sessions",{url:"/sessions",templateUrl:"app/jscripty/project/report/report.sessions.html"}).state("main.jscripty.projects.report.summary",{url:"/summary",templateUrl:"app/jscripty/project/report/report.summary.html"}).state("main.jscripty.projects.report.inputs",{url:"/inputs",templateUrl:"app/jscripty/project/report/report.inputs.html"}).state("main.jscripty.projects.report.detail",{url:"/detail",templateUrl:"app/jscripty/project/report/report.detail.html"}).state("main.jscripty.projects.report.questionDetail",{url:"/detail/:questionId",controller:"JscriptyProjectReportCtrl",templateUrl:"app/jscripty/project/report/report.detail.html"}).state("main.jscripty.projects.report.sessionDetail",{url:"/session/:sessionId",controller:"JscriptyProjectReportCtrl",templateUrl:"app/jscripty/project/report/report.session.detail.html"})}]),angular.module("xCallyShuttleApp").controller("JscriptyProjectViewCtrl",["$scope","$http","$state","$stateParams","socket","Auth","Modal","xAlert","$translate","$rootScope",function(t,e,n,a,s,i,l,o,r,c){t.jscriptyProject={},t.getProject=function(){e.get("/api/jscripty/projects/"+a.id).success(function(e){t.jscriptyProject=e,angular.element(document).ready(function(){window.onerror=function(t,e,n){try{null!=t&&-1!=t.indexOf("Script error.")||((new Image).src="assets/plugins/mxgraph/images/1x1.png?msg="+encodeURIComponent(t)+"&url="+encodeURIComponent(e)+"&lnum="+encodeURIComponent(n))}catch(t){}},e.token=i.getToken();var t=new EditorUi(new Editor);t.openString(e.draft,e.name,e),t.editor.graphChangeListener=function(t,e){e.properties.rtChange||!1||(this.modified=!0)}}),s.syncUpdates("jscripty_project",[e],function(t,n,a){n.id,e.id})})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.jscripty.projects.view",{url:"/view/:id",templateUrl:"app/jscripty/project/view/view.html",controller:"JscriptyProjectViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/jscripty/js/custom.js","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/jscripty/js/Editor.js","assets/plugins/jscripty/js/Graph.js","assets/plugins/jscripty/js/EditorUi.js","assets/plugins/jscripty/js/Actions.js","assets/plugins/jscripty/js/Menus.js","assets/plugins/jscripty/js/Sidebar.js","assets/plugins/jscripty/js/Toolbar.js","assets/plugins/jscripty/js/Dialogs.js"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("LandingCtrl",["$scope","$location","$window","$timeout","Auth","Setting","YourDashboard",function(t,e,n,a,s,i,l){function o(e,n){var a,i,l=e.length;for(a=0;a<l;a++)if(_.includes(n,e[a].id))if(e[a].SubModules&&e[a].SubModules.length){if(i=o(e[a].SubModules,n))return i}else switch(e[a].id){case 2:var r={};r[s.getRole()]=!0;var c=_.find(t.tempDashboards,r);if(c)return i="/tools/yourdashboards/show/"+c.id,delete t.tempDashboards,i;break;default:return e[a].path}}function r(n){n||(t.message="MESSAGE_NO_AVAILABLE_MODULES"),a(function(){e.path(n)},500)}t.initLanding=function(){t.year=moment().year();return i.get({controller:"info"}).$promise.then(function(e){return t.info=e,i.get({id:1}).$promise.then(function(t){return t}).catch(function(){return null})}).then(function(n){var a,i=s.getCurrentUser().$promise;if(i)return i.then(function(e){switch((a=e).role){case"user":if(_.includes(_.map(e.Modules,"id"),2))return l.get().$promise.then(function(n){t.tempDashboards=n.rows,r(o(a.Modules,_.map(e.Modules,"id")))}).catch(function(){_.remove(a.Modules,{id:2}),r(o(a.Modules,_.map(e.Modules,"id")))});r(o(a.Modules,_.map(e.Modules,"id")));break;case"admin":case"agent":r("/dashboard/voice")}}).catch(function(t){console.error(t),e.path("/login")});e.path("/login")}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("landing",{url:"/landing",templateUrl:"app/landing/landing.html",controller:"LandingCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/error.css","assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("LoginCtrl",["$scope","Auth","$location","$window","$rootScope","Setting","xAlert","$stateParams",function(t,e,n,a,s,i,l,o){t.year=moment().year(),t.recovered=o.reset,t.userLogin={},t.userSignUp={},t.loginSubmitted=!1,t.signupSubmitted=!1,t.errorLogin=!1,t.errorSignup=!1,t.errorLog="",t.forgotPassword=!1,t.showRecoverMessage=!1,t.flagLogin1=!1,t.getInfo=function(){return i.get({controller:"info"}).$promise.then(function(e){t.info=e}).catch(function(t){l.error(t)})},t.toggleLogin=function(){t.flagLogin1=!t.flagLogin1},t.toggleForgotPassword=function(e){t.showRecoverMessage=!1,t.userLogin.email="",t.forgotPassword=e},s.bodyLayout="login",t.$on("$viewContentLoaded",function(){Metronic.init(),Layout.init()}),t.recover=function(){e.recover({email:t.userLogin.email}).then(function(){t.showRecoverMessage=!0}).catch(function(e){t.showRecoverMessage=!1,l.error(e)})},t.login=function(a){t.loginSubmitted=!0,a.$valid?e.login({name:t.userLogin.name,password:t.userLogin.password,remember:t.userLogin.remember}).then(function(){n.path("/landing")}).catch(function(e){t.errorLog=e.message||"error",t.errorLogin=!0}):t.errorLogin=!0},t.signup=function(n){t.signupSubmitted=!0,n.$valid?e.createUser({email:t.userSignUp.email,fullname:t.userSignUp.fullname,name:t.userSignUp.name,password:t.userSignUp.password,role:t.userSignUp.role,online:!0}).catch(function(e){t.errorLog=e.message||"error",t.errorSignup=!0}):t.errorSignup=!0},t.loginOauth=function(t){a.location.href="/auth/"+t}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("login",{url:"/login",templateUrl:"app/login/login.html",params:{reset:null},controller:"LoginCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Action",["$resource",function(t){return t("/api/actions/:name/:controller",{name:"@name"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Ami",["$resource",function(t){return t("/api/ami/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ChooseContactModalCtrl",["$scope","$uibModalInstance","data","xAlert","$translate","Contact",function(t,e,n,a,s,i){t.open=function(t){e.close(t)},t.getContacts=function(){return i.search({controller:"listcontact"},n).$promise.then(function(e){t.contacts=e.rows}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("CloseEditedTabModalCtrl",["$scope","$uibModalInstance",function(t,e){t.close=function(){e.close()},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("CloseEditedTabModalJscriptyCtrl",["$scope","$uibModalInstance","project","JscriptyProject","xAlert",function(t,e,n,a,s){t.init=function(){t.project=n},t.close=function(){a.update({id:t.project.projectId,controller:"sessions",action:t.project.sessionId},{status:"incomplete",completedAt:Date(),last_question_id:t.project.lastQuestionId}).$promise.then(function(t){s.show("Project Ended","success")}),e.close()},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("ContactManagerSetDisposition",["$scope","$uibModalInstance","VoiceDisposition",function(t,e,n){t.initDisposition=function(){return n.get().$promise.then(function(e){t.dispositions=e.rows}).catch(function(t){console.error(t)})},t.item={},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss()}}]),angular.module("xCallyShuttleApp").controller("customGridDateFilterModalCtrl",["$scope","$rootScope","$log","$uibModalInstance","term","hasTime",function(t,e,n,a,s,i){if(t.hasTime=i,t.dateTime={},s)if(i){var l=s.split(" ");t.dateTime.filterDate=moment(l[0]),t.dateTime.time=s[1]?moment(l[1],"HH:mm"):moment()}else t.dateTime.filterDate=moment(s);else i&&(t.dateTime.time=moment());t.setFilterDate=function(e){a.close({date:moment(e).format("YYYY-MM-DD").toString(),time:i?t.dateTime.time?moment(t.dateTime.time).format("HH:mm").toString():moment().format("HH:mm").toString():null})},t.cancelDateFilter=function(){a.dismiss()}}]),angular.module("xCallyShuttleApp").controller("customGridTagsModalCtrl",["$scope","$rootScope","$log","$uibModalInstance","term","Tag","xAlert",function(t,e,n,a,s,i,l){t.initModal=function(){return t.item={},i.get().$promise.then(function(e){t.tags=_.map(e.rows,"name"),t.item.myTags=s}).catch(function(t){console.log("error retrieving tags"),l.error(t),a.dismiss()})},t.setFilterTags=function(){a.close(t.item.myTags)},t.cancelTagsFilter=function(){a.dismiss()}}]),angular.module("xCallyShuttleApp").factory("templateVariable",["$translate",function(t){return[{id:"voice",label:t.instant("APPLICATION_VOICE"),title:t.instant("APPLICATION_VOICE"),groups:[{label:t.instant("APPLICATION_QUEUE"),values:[{value:"{{uniqueid}}",label:t.instant("APPLICATION_UNIQUEID"),description:t.instant("APPLICATION_UNIQUEID")},{value:"{{calleridnum}}",label:t.instant("APPLICATION_CALLERIDNUM"),description:t.instant("APPLICATION_CALLERIDNUM")},{value:"{{calleridname}}",label:t.instant("APPLICATION_CALLERIDNAME"),description:t.instant("APPLICATION_CALLERIDNAME")},{value:"{{queue}}",label:t.instant("APPLICATION_QUEUE"),description:t.instant("APPLICATION_QUEUE")},{value:"{{interface}}",label:t.instant("APPLICATION_INTERFACE"),description:t.instant("APPLICATION_INTERFACE")},{value:"{{membername}}",label:t.instant("APPLICATION_MEMBERNAME"),description:t.instant("APPLICATION_MEMBERNAME")},{value:"{{holdtime}}",label:t.instant("APPLICATION_HOLDTIME"),description:t.instant("APPLICATION_HOLDTIME")},{value:"{{talktime}}",label:t.instant("APPLICATION_TALKTIME"),description:t.instant("APPLICATION_TALKTIME")},{value:"{{connectedlinenum}}",label:t.instant("APPLICATION_CONNECTEDLINENUM"),description:t.instant("APPLICATION_CONNECTEDLINENUM")},{value:"{{connectedlinename}}",label:t.instant("APPLICATION_CONNECTEDLINENAME"),description:t.instant("APPLICATION_CONNECTEDLINENAME")},{value:"{{agentconnectAt}}",label:t.instant("APPLICATION_CONNECTED_AT"),description:t.instant("APPLICATION_CONNECTED_AT")},{value:"{{agentcalledAt}}",label:t.instant("APPLICATION_CALLED_AT"),description:t.instant("APPLICATION_CALLED_AT")},{value:"{{agentcompleteAt}}",label:t.instant("APPLICATION_COMPLETED_AT"),description:t.instant("APPLICATION_AGENT_CALLED_AT")},{value:"{{reason}}",label:t.instant("APPLICATION_REASON"),description:t.instant("APPLICATION_REASON")},{value:"{{lastevent}}",label:t.instant("APPLICATION_LAST_EVENT"),description:t.instant("APPLICATION_LAST_EVENT")},{value:"{{channel}}",label:t.instant("APPLICATION_CHANNEL"),description:t.instant("APPLICATION_CHANNEL")}]}]},{id:"chat",label:t.instant("APPLICATION_CHAT"),title:t.instant("APPLICATION_CHAT"),groups:[{label:t.instant("APPLICATION_VARIABLES"),values:[{value:"{{username}}",label:t.instant("APPLICATION_USERNAME"),description:t.instant("APPLICATION_USERNAME")},{value:"{{email}}",label:t.instant("APPLICATION_MAIL"),description:t.instant("APPLICATION_MAIL")},{value:"{{text}}",label:t.instant("APPLICATION_TEXT"),description:t.instant("APPLICATION_TEXT")},{value:"{{chatWebsite}}",label:t.instant("APPLICATION_WEBSITE"),description:t.instant("APPLICATION_WEBSITE")}]}]},{id:"mail",label:t.instant("APPLICATION_MAIL"),title:t.instant("APPLICATION_MAIL"),groups:[{label:t.instant("APPLICATION_INTERACTION"),values:[{value:"{{interactionId}}",label:t.instant("APPLICATION_INTERACTION_ID"),description:t.instant("APPLICATION_INTERACTION_ID")},{value:"{{subject}}",label:t.instant("APPLICATION_SUBJECT"),description:t.instant("APPLICATION_SUBJECT")},{value:"{{{body}}}",label:t.instant("APPLICATION_MESSAGE"),description:t.instant("APPLICATION_MESSAGE")},{value:"{{accountName}}",label:t.instant("APPLICATION_ACCOUNT"),description:t.instant("APPLICATION_ACCOUNT")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{cc}}",label:"Cc",description:"Cc"},{value:"{{agentName}}",label:t.instant("APPLICATION_AGENT_NAME"),description:t.instant("APPLICATION_AGENT_NAME")},{value:"{{agentEmail}}",label:t.instant("APPLICATION_AGENT_EMAIL"),description:t.instant("APPLICATION_AGENT_EMAIL")},{value:"{{createdAt}}",label:t.instant("APPLICATION_CREATED_AT"),description:t.instant("APPLICATION_CREATED_AT")}]}]},{id:"sms",label:t.instant("APPLICATION_SMS"),title:t.instant("APPLICATION_SMS"),groups:[{label:t.instant("APPLICATION_INTERACTION"),values:[{value:"{{SmsRoomId}}",label:t.instant("APPLICATION_INTERACTION_ID"),description:t.instant("APPLICATION_INTERACTION_ID")},{value:"{{{body}}}",label:t.instant("APPLICATION_MESSAGE"),description:t.instant("APPLICATION_MESSAGE")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{createdAt}}",label:t.instant("APPLICATION_CREATED_AT"),description:t.instant("APPLICATION_CREATED_AT")}]}]},{id:"openchannel",label:t.instant("APPLICATION_OPENCHANNEL"),title:t.instant("APPLICATION_OPENCHANNEL"),groups:[{label:t.instant("APPLICATION_INTERACTION"),values:[{value:"{{OpenchannelRoomId}}",label:t.instant("APPLICATION_INTERACTION_ID"),description:t.instant("APPLICATION_INTERACTION_ID")},{value:"{{{body}}}",label:t.instant("APPLICATION_MESSAGE"),description:t.instant("APPLICATION_MESSAGE")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{createdAt}}",label:t.instant("APPLICATION_CREATED_AT"),description:t.instant("APPLICATION_CREATED_AT")}]}]},{id:"fax",label:t.instant("APPLICATION_FAX"),title:t.instant("APPLICATION_FAX"),groups:[{label:t.instant("APPLICATION_INTERACTION"),values:[{value:"{{FaxRoomId}}",label:t.instant("APPLICATION_INTERACTION_ID"),description:t.instant("APPLICATION_INTERACTION_ID")},{value:"{{uniqueid}}",label:t.instant("APPLICATION_UNIQUEID"),description:t.instant("APPLICATION_UNIQUEID")},{value:"{{calleridnum}}",label:t.instant("APPLICATION_CALLERIDNUM"),description:t.instant("APPLICATION_CALLERIDNUM")},{value:"{{calleridname}}",label:t.instant("APPLICATION_CALLERIDNAME"),description:t.instant("APPLICATION_CALLERIDNAME")},{value:"{{channel}}",label:t.instant("APPLICATION_CHANNEL"),description:t.instant("APPLICATION_CHANNEL")},{value:"{{from}}",label:"From",description:"From"},{value:"{{to}}",label:"To",description:"To"},{value:"{{accountName}}",label:t.instant("APPLICATION_ACCOUNT"),description:t.instant("APPLICATION_ACCOUNT")}]}]}]}]),angular.module("xCallyShuttleApp").controller("gridDatePickerFilterCtrl",["$scope","$timeout","$uibModal","uiGridConstants",function(t,e,n,a){e(function(){t.col.colDef.name;t.openDatePicker=function(e){n.open({templateUrl:"app/main/customDateFilter.modal.html",controller:"customGridDateFilterModalCtrl",size:"md",windowClass:"custom-date-filter-modal",resolve:{term:[function(){return e.term||null}],hasTime:e.hasTime||!1}}).result.then(function(n){t.colFilter.listTerm=[],t.colFilter.term=n.date,e.hasTime&&(t.colFilter.term+=" "+n.time)})}})}]),angular.module("xCallyShuttleApp").factory("gridOptions",["Modal","xAlert","$translate","$interval","$q","usSpinnerService",function(t,e,n,a,s,i){return{gridOptions:function(a,l,o,r,c,d,u){function p(t,e){t.filter&&t.filter.term&&e&&(g[t.name]=t.filter.term),t.filters&&(t.filters.length>1?t.filters.forEach(function(e){e.term?64===e.condition?g[t.name+"_uiFrom"]=e.term:256===e.condition&&(g[t.name+"_uiTo"]=e.term):64===e.condition?delete g[t.name+"_uiFrom"]:256===e.condition&&delete g[t.name+"_uiTo"]}):t.filters.length&&t.filters[0].term?g[t.name]=t.filters[0].term:delete g[t.name])}o.id=[];var m=d?"gridOptions"+d:"gridOptions",g={offset:0,limit:10},h={offset:0,limit:10};l.draggable&&(l.rowTemplate='<div grid="grid" class="ui-grid-draggable-row" draggable="true"><div ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader, \'custom\': true }" ui-grid-cell></div></div>',l.useExternalPagination=!1,l.enablePaginationControls=!1,l.showGridFooter=!1);var f=function(t){var e=t&&t>o[m].paginationPageSize?o[m].paginationPageSize:t,n=e?30*e+120:177;(angular.element(document.getElementsByName(m)).length?angular.element(document.getElementsByName(m)[0]):angular.element(document.getElementsByClassName("ui-grid")[0])).css("height",n+"px")},A=function(t,e){return o[m].enablePaginationControls||(delete g.offset,delete g.limit),i.spin("spinner-grid"),r=t||r,(a=e||a).get(r?_.merge(g,r):g).$promise.then(function(t){o[m].totalItems=t.count,o[m].data=t.rows,f(t.rows.length),u&&u()}).catch(function(t){console.error(t)}).finally(function(){i.stop("spinner-grid")})};return o.deleteItem=t.confirm.delete(function(t){var s=r?angular.copy(r):{};return _.merge(s,{id:t}),a.remove(s).$promise.then(function(){A(),e.show(n.instant("MESSAGE_WELL_DONE")+"!","success"),o.gridApi.selection.clearSelectedRows(),o.id=[]}).catch(function(t){e.error(t)})}),o.deleteItems=t.confirm.delete(function(){var t=r?angular.copy(r):{};return _.merge(t,{ids:o.id}),a.delete(t).$promise.then(function(){A(),e.show(n.instant("MESSAGE_WELL_DONE")+"!","success"),o.gridApi.selection.clearSelectedRows(),o.id=[]}).catch(function(t){e.error(t)})}),l.columnDefs.forEach(function(t){p(t,!0),t.hasOwnProperty("displayName")||(t.displayName="APPLICATION_"+t.name.toUpperCase()),t.headerCellFilter="translate",t.hasOwnProperty("buttons")&&(t.displayName="",t.cellClass="ui-grid-vcenter",t.enableSorting=!1,t.enableFiltering=!1,t.enableColumnMenu=!1,t.cellTemplate="<div>",t.buttons.forEach(function(e){if(e.directive)t.cellTemplate+=e.directive;else{if(t.cellTemplate+="<a",t.cellTemplate+=e.hide?' data-ng-hide="'+e.hide+'" ':" ",t.cellTemplate+=e.class?' class="btn btn-xs '+e.class+'" ':" ",t.cellTemplate+=e.href?' data-ng-href="'+e.href+'" ':" ",t.cellTemplate+=e.uisref?' ui-sref="'+e.uisref+'" ':" ",t.cellTemplate+=e.onClick?' data-ng-click="'+e.onClick+'" ':" ",t.cellTemplate+=e.title?' title="'+e.title+'"':"",t.cellTemplate+=">",t.cellTemplate+=e.icon?'<i class="'+e.icon+'"></i>':"",e.name)switch(e.name){case"delete":t.cellTemplate+='<i class="icon-trash" title="'+e.name+'"></i>';break;case"profile":case"settings":case"detail":case"embedding":t.cellTemplate+='<i class="icon-settings" title="'+e.name+'"></i>';break;case"view":t.cellTemplate+='<i class="icon-doc" title="'+e.name+'"></i>';break;case"clone":t.cellTemplate+='<i class="icon-docs" title="'+e.name+'"></i>';break;case"permits":t.cellTemplate+='<i class="icon-key"></i>';break;case"copy":t.cellTemplate+='<i class="fa fa-files-o" title="'+e.name+'"></i>';break;case"select":t.cellTemplate+='<i class="icon-check" title="'+e.name+'"></i>';break;case"preview":t.cellTemplate+='<i class="icon-magnifier" title="'+e.name+'"></i>';break;case"contacts":t.cellTemplate+='<i class="fa fa-users" title="'+e.name+'"></i>';break;case"download":case"export":t.cellTemplate+='<i class="fa fa-download" title="'+e.name+'"></i>';break;case"agents":t.cellTemplate+='<i class="icon-people" title="'+e.name+'"></i>';break;case"run":t.cellTemplate+='<i class="fa fa-cogs" title="'+e.name+'"></i>';break;case"mailRoom":t.cellTemplate+='<i class="fa fa-envelope"></i>';break;case"chatRoom":t.cellTemplate+='<i class="fa fa-users"></i>';break;case"faxRoom":t.cellTemplate+='<i class="fa fa-fax"></i>';break;case"smsRoom":t.cellTemplate+='<i class="glyphicon glyphicon-comment"></i>';break;case"check":t.cellTemplate+='<i class="fa fa-check" title="'+e.name+'"></i>';break;case"queues":t.cellTemplate+='<i class="icon-docs" title="'+e.name+'"></i>';break;default:t.cellTemplate+="{{'APPLICATION_"+e.name.toUpperCase()+"' | translate}}"}else t.cellTemplate+=e.displayName?"{{'"+e.displayName+"' | translate}}":"";t.cellTemplate+="</a> "}}),t.cellTemplate+="<div>",delete t.buttons)}),_.merge({enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableRowSelection:!0,enableSelectAll:!0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,multiSelect:!0,getPage:A,pagOpt:g,gridMenuTitleFilter:function(t){var e=s.defer();return e.resolve(n.instant(t)),e.promise},exporterAllDataFn:function(){return h.offset=g.offset,h.limit=g.limit,g={offset:0,limit:null},A().then(function(){g.offset=h.offset,g.limit=h.limit,A()})},exporterFieldCallback:function(t,e,n,a){if("applications"===n.field&&e.entity.Applications){var s="";return _.forEach(e.entity.Applications,function(t){s+=t.app+"("+t.appdata.join(",")+")"}),s}return a},exporterHeaderFilter:n.instant,onRegisterApi:function(t){o.gridApi=t,o.gridApi.selection&&(o.gridApi.selection.on.rowSelectionChanged(o,function(t){t.isSelected?o.id.push(o.gridApi.grid.options.primaryKey?t.entity[o.gridApi.grid.options.primaryKey]:t.entity.id):_.pull(o.id,o.gridApi.grid.options.primaryKey?t.entity[o.gridApi.grid.options.primaryKey]:t.entity.id)}),o.gridApi.selection.on.rowSelectionChangedBatch(o,function(t){t[0].isSelected?o.id=_.union(o.id,_.map(t,o.gridApi.grid.options.primaryKey?"entity."+o.gridApi.grid.options.primaryKey:"entity.id")):_.map(t,o.gridApi.grid.options.primaryKey?"entity."+o.gridApi.grid.options.primaryKey:"entity.id").forEach(function(t){_.pull(o.id,t)})})),o.gridApi.core.on.sortChanged(o,function(t,e){0===e.length?g.order=null:g.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),A()});for(var s=0;s<o.gridOptions.columnDefs.length;s++)if(o.gridOptions.columnDefs[s].hasOwnProperty("sort")){g.order=o.gridOptions.columnDefs[s].name+" "+o.gridOptions.columnDefs[s].sort.direction.toUpperCase();break}o.gridApi.pagination.on.paginationChanged(o,function(t,e){g.offset=(t-1)*e,g.limit=e,A()}),o.gridApi.core.on.filterChanged(o,function(){this.grid.columns.forEach(function(t){p(t)}),A()}),o.gridApi.draggableRows&&o.gridApi.draggableRows.on.rowDropped(o,function(t){t.fromIndex!==t.toIndex&&a.update(r,o[m].data).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){e.error(t)}).finally(function(){A()})}),c||A()}},l)}}}]),angular.module("xCallyShuttleApp").controller("gridTagsFilterCtrl",["$scope","$timeout","$uibModal","uiGridConstants",function(t,e,n,a){e(function(){t.col.colDef.name;t.openTags=function(e){n.open({templateUrl:"app/main/customTagsFilter.modal.html",controller:"customGridTagsModalCtrl",size:"md",resolve:{term:[function(){if(e.term){var t=e.term.split(";");return t.pop(),t}return[]}]}}).result.then(function(e){t.colFilter.listTerm=[],e.length&&(t.colFilter.term=e.join(";")+";")})}})}]),angular.module("xCallyShuttleApp").controller("MainCtrl",["$scope","$rootScope","$translate","$timeout","socket","Auth","xAlert","$uibModal","$log","$state","Contact","$window","$location","localStorageService","YourDashboard","Setting","AuthResource","$cookieStore",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A){function v(a){e.activeTour={main:!1},e.tourConfig={main:[{type:"function",fn:function(){e.tempTourPath=p.path()}},{type:"title",heading:n.instant("TOUR_MAIN_WELCOME"),text:'<div class="row"><div id="title-text" class="col-md-12"><span class="main-text">'+n.instant("TOUR_MAIN_DISCOVER_MOTION")+"</span><br/></div></div>",curtainClass:"myCurtainClass"}]},(i.isAdmin()||e.userModules[1])&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/dashboard/voice"},{type:"title",heading:n.instant("TOUR_MAIN_DASHBOARD"),text:n.instant("TOUR_MAIN_DASHBOARD_MESSAGE"),curtainClass:"myCurtainClass"}])),(i.isAdmin()||e.userModules[2])&&a&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/tools/yourdashboards/show/"+a.id},{type:"title",heading:n.instant("TOUR_MAIN_YOURDASHBOARD"),text:n.instant("TOUR_MAIN_YOURDASHBOARD_MESSAGE"),curtainClass:"myCurtainClass"}]),delete t.tempDashboards),(i.isAdmin()||e.userModules[4])&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/staff/agents/list"},{type:"title",heading:n.instant("TOUR_MAIN_AGENTS"),text:n.instant("TOUR_MAIN_AGENTS_MESSAGE"),curtainClass:"myCurtainClass"}])),i.isAdmin()&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/channels/voice/queues/list"},{type:"title",heading:n.instant("TOUR_MAIN_VOICE_QUEUE"),text:n.instant("TOUR_MAIN_VOICE_QUEUE_ADD_MESSAGE"),curtainClass:"myCurtainClass"}])),e.license.chat&&(i.isAdmin()||e.userModules[30])&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/channels/chat/queues/list"},{type:"title",heading:n.instant("TOUR_MAIN_CHAT_QUEUE"),text:n.instant("TOUR_MAIN_CHAT_QUEUE_MESSAGE"),curtainClass:"myCurtainClass"}])),e.license.openchannel&&(i.isAdmin()||e.userModules[46])&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/channels/openchannel/accounts/list"},{type:"title",heading:n.instant("TOUR_MAIN_OPENCHANNEL"),text:n.instant("TOUR_MAIN_OPENCHANNEL_MESSAGE"),curtainClass:"myCurtainClass"}])),(i.isAdmin()||e.userModules[14])&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/square/projects/list"},{type:"title",heading:n.instant("TOUR_MAIN_SQUARE_PROJECT"),text:n.instant("TOUR_MAIN_SQUARE_PROJECT_MESSAGE"),curtainClass:"myCurtainClass"}])),(i.isAdmin()||e.userModules[52])&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/tools/trunks/list"},{type:"title",heading:n.instant("TOUR_MAIN_TRUNKS"),text:n.instant("TOUR_MAIN_TRUNKS_MESSAGE"),curtainClass:"myCurtainClass"}])),(i.isAdmin()||e.userModules[52])&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/tools/triggers/list"},{type:"title",heading:n.instant("TOUR_MAIN_TRIGGERS"),text:n.instant("TOUR_MAIN__MESSAGE"),curtainClass:"myCurtainClass"}])),e.license.jscripty&&(i.isAdmin()||e.userModules[50])&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/jscripty/projects/list"},{type:"title",heading:n.instant("TOUR_MAIN_JSCRIPTY"),text:n.instant("TOUR_MAIN_JSCRIPTY_MESSAGE"),curtainClass:"myCurtainClass"}])),(i.isAdmin()||e.userModules[17])&&(e.tourConfig.main=e.tourConfig.main.concat([{type:"location_change",path:"/analytics/reports/list"},{type:"title",heading:n.instant("TOUR_MAIN_REPORTS"),text:n.instant("TOUR_MAIN_REPORTS_MESSAGE"),curtainClass:"myCurtainClass"}])),e.tourConfig.main=e.tourConfig.main.concat([{type:"title",heading:n.instant("TOUR_MAIN_END"),text:n.instant("TOUR_MAIN_END_MESSAGE"),curtainClass:"myCurtainClass"}]),m.get("skipTour")||(e.activeTour.main=!0)}t.awesomeThings=[],e.workspaces=[],t.Auth=i,e.userModules={},t.keepMeLoggedModalInstance=void 0,t.agentLogout=function(t,e){o.open({animation:!0,templateUrl:"app/channels/realtime/view/agent/agent.modal.logout.html",controller:"RealtimeViewAgentLogoutModalCtrl",resolve:{name:function(){return t}}}).result.then(function(){return f.get({controller:"logout",controller2:"agent",param:e}).$promise.then(function(){l.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){console.error(t)})},function(){r.info("Modal dismissed at: "+new Date)})},e.initTours=function(){if(i.isAdmin()||e.userModules[2])return g.get().$promise.then(function(t){var e={};e[i.getRole()]=!0,v(_.find(t.rows,e))}).catch(function(t){console.log(t)});v()},e.onTourFinish=function(){m.set("skipTour",!0),e.tempTourPath&&p.path(e.tempTourPath)},e.onTourSkip=function(){m.set("skipTour",!0)},t.select=function(t){switch(t.type){case"chatRoom":case"mailRoom":case"faxRoom":t.unread=0}},s.socket.on("agent:save",function(n){!n.online&&i.isAgent()&&(t.keepMeLoggedModalInstance||(t.keepMeLoggedModalInstance=o.open({animation:!0,backdrop:"static",keyboard:!1,templateUrl:"app/main/keepMeLogged.modal.html",controller:["$scope","$uibModalInstance",function(t,e){t.close=function(){e.close(!0)},t.cancel=function(){e.close(!1)}}]}),t.keepMeLoggedModalInstance.result.then(function(t){t?(e.settings.logoutOnWindowClose=!1,u.location.reload()):(i.logout(),p.path("/login"))})))}),t.openTdTab=function(t){e.workspaces.push({type:"tdDisposal",name:"Motion Dialer Disposition",class:"icon-control-forward",active:!0,spooler:t})},t.deselect=function(){},u.onbeforeunload=function(){if(i.isAgent()&&e.settings.logoutOnWindowClose){var t=new XMLHttpRequest;t.open("GET","/auth/local/logout",!1),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader("Authorization","Bearer "+A.get("token")),t.send(),i.logout()}return null},t.isAdmin=i.isAdmin,t.isLoggedIn=i.isLoggedIn,t.getCurrentUser=i.getCurrentUser,t.CurrentUser=i.getCurrentUser(),s.socket.on("user_has_voice_queue_permit:change",function(){t.CurrentUser=i.getCurrentUser()}),s.socket.on("user_has_chat_queue_permit:change",function(){t.CurrentUser=i.getCurrentUser()}),s.socket.on("user_has_mail_queue_permit:change",function(){t.CurrentUser=i.getCurrentUser()}),s.socket.on("user_has_fax_queue_permit:change",function(){t.CurrentUser=i.getCurrentUser()}),s.socket.on("user_has_sms_queue_permit:change",function(){t.CurrentUser=i.getCurrentUser()}),t.mainTab={active:!0},t.closeJscriptyTab=function(t){e.workspaces[t].edited?o.open({animation:!0,templateUrl:"app/main/closeEditedTab.modal.jscripty.html",controller:"CloseEditedTabModalJscriptyCtrl",resolve:{project:e.workspaces[t]}}).result.then(function(){e.workspaces.splice(t,1)}):e.workspaces.splice(t,1)},e.closeTab=function(t){e.workspaces[t].edited?"jscripty"===e.workspaces[t].type?e.workspaces[t].end():o.open({animation:!0,templateUrl:"app/main/closeEditedTab.modal.html",controller:"CloseEditedTabModalCtrl"}).result.then(function(){e.workspaces.splice(t,1)},function(){r.info("Modal dismissed at: "+new Date)}):e.workspaces.splice(t,1)},t.createContact=function(a,s,i){var o=_.clone(s);return o.CompanyId||delete o.CompanyId,o.dateOfBirth&&(o.dateOfBirth=moment(o.dateOfBirth).format("DD/MM/YYYY")),d.save(o).$promise.then(function(s){e.workspaces.splice(a,1);var o=s.firstName;s.lastName&&(o+=" "+s.lastName),t.openContactTab({firstName:s.firstName,lastName:s.lastName,id:s.id},i),l.show(n.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){l.error(t)})};var I=function(e){o.open({animation:!0,templateUrl:"app/main/chooseContact.modal.html",controller:"ChooseContactModalCtrl",resolve:{data:function(){return e}}}).result.then(function(n){n?t.openContactTab(n,e):t.newContact(e)},function(){r.info("Modal dismissed at: "+new Date)})};t.updateContact=function(t,a){var s=angular.copy(a);return s.CompanyId||(s.CompanyId=null),s.dateOfBirth&&(s.dateOfBirth=moment(s.dateOfBirth).format("DD/MM/YYYY")),d.update({id:s.id},s).$promise.then(function(){e.workspaces[t].edited=!1,l.show(n.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){l.error(t)})},s.socket.on("report_integration:contactmanager",function(t){I(t)}),s.socket.on("report_integration:webPopup",function(t){"motion"===t.type?e.workspaces.push({type:"webPopup",name:"Web Popup",class:"icon-info",active:!0,data:t}):u.open(t.url||"","_blank")}),s.socket.on("report_integration:jscripty",function(e){t.openJscriptyTab({name:"Jscripty",id:e.projectId,calleridnum:e.calleridnum,calleridname:e.calleridname,queue:e.queue,membername:e.membername})}),s.socket.on("report_integration:sugarcrm",function(t){u.open(t.url,"_blank")}),s.socket.on("report_integration:freshdesk",function(t){u.open(t.url,"_blank")}),s.socket.on("report_integration:tdDisposal",function(e){t.openTdTab(e)}),e.openContactTab=function(t,n){var a=_.find(e.workspaces,{contactID:t.id});if(a)a.active=!0,a.data=n,a.synchCall();else{var s=t.firstName;t.lastName&&(s+=" "+t.lastName),e.workspaces.push({name:s,type:"contact",contactID:t.id,class:"icon-user",active:!0,data:n||null})}},t.openJscriptyTab=function(t){e.workspaces.push({name:t.name,type:"jscripty",active:!0,data:t})},t.newContact=function(t){e.workspaces.push({name:"New Contact",type:"newContact",class:"icon-user",active:!0,data:t||null})},t.$on("$viewContentLoaded",function(){Metronic.init()}),e.language=n.use(),t.changeLanguage=function(t){return n.use(t).then(function(t){e.language=t,-1!==["main.jscripty.projects.view","main.square.projects.view"].indexOf(c.current.name)&&u.location.reload()}).catch(function(t){console.error(t)})},a(function(){h.get({id:1}).$promise.then(function(n){"admin"===t.CurrentUser.role&&n.firstLogin?p.path("/adminreset"):i.getCurrentUser().$promise.then(function(t){t.Modules.forEach(function(t){e.userModules[t.id]=!0}),e.initTours()}).catch(function(t){l.error(t)})}).catch(function(t){l.error(t)})}),t.$on("$destroy",function(){s.unsyncUpdates("user_has_voice_queue_permit"),s.unsyncUpdates("user_has_chat_queue_permit"),s.unsyncUpdates("user_has_mail_queue_permit"),s.unsyncUpdates("user_has_fax_queue_permit"),s.unsyncUpdates("user_has_sms_queue_permit")})}]),angular.module("xCallyShuttleApp").directive("ngSpinnerBar",["$rootScope",function(t){return{link:function(e,n){n.addClass("hide"),t.$on("$stateChangeStart",function(){"spinner-page"===n[0].id&&n.removeClass("hide")}),t.$on("$stateChangeSuccess",function(){"spinner-page"===n[0].id&&(n.addClass("hide"),$("body").removeClass("page-on-load"),Layout.setSidebarMenuActiveLink("match"),setTimeout(function(){Metronic.scrollTop()},1e3))}),t.$on("$spinnerStart",function(){"spinner-request"===n[0].id&&n.removeClass("hide")}),t.$on("$spinnerStop",function(){"spinner-request"===n[0].id&&n.addClass("hide")}),t.$on("$stateNotFound",function(){"spinner-page"===n[0].id&&n.addClass("hide")}),t.$on("$stateChangeError",function(){"spinner-page"===n[0].id&&n.addClass("hide")})}}}]).directive("a",function(){return{restrict:"E",link:function(t,e,n){(n.ngClick||""===n.href||"#"===n.href)&&e.on("click",function(t){t.preventDefault()})}}}).directive("nxEqual",function(){return{require:"ngModel",link:function(t,e,n,a){n.nxEqual?(t.$watch(n.nxEqual,function(t){a.$setValidity("nxEqual",t===a.$viewValue)}),a.$parsers.push(function(e){var s=e===t.$eval(n.nxEqual);return a.$setValidity("nxEqual",s),s?e:void 0})):console.error("nxEqual expects a model as an argument!")}}}).directive("ngEnter",function(){return function(t,e,n){e.bind("keydown keypress",function(e){13===e.which&&(t.$apply(function(){t.$eval(n.ngEnter)}),e.preventDefault())})}}).directive("dropdownMenuHover",function(){return{link:function(t,e){e.dropdownHover()}}}).directive("uiSelectRequired",function(){return{require:"ngModel",link:function(t,e,n,a){a.$validators.uiSelectRequired=function(t){return t&&t.length}}}}).directive("rpattern",function(){return{restrict:"A",require:"ngModel",link:function(t,e,n,a){function s(t,e){return null==e||""===e||!o||t.test(e)?(a.$setValidity("pattern",!0),e):void a.$setValidity("pattern",!1)}var i,l=n.rpattern,o=!0;l&&(l.match(/^\/(.*)\/$/)?(l=new RegExp(l.substr(1,l.length-2)),i=function(t){return s(l,t)}):i=function(e){var n=t.$eval(l);if(!n||!n.test)throw new Error("Expected "+l+" to be a RegExp but was "+n);return s(n,e)}),a.$formatters.push(i),a.$parsers.push(i),n.$observe("required",function(t){o=t,i(a.$viewValue)})}}}).directive("newContact",["$compile","xAlert","socket","$translate","$timeout","List","Tag","Company","ReportCall","$uibModal","$rootScope","Auth",function(t,e,n,a,s,i,l,o,r,c,d,u){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template/template.contactTab.html",compile:function(t,p){return function(t,p,m){function g(){t.$watch("contact",function(e,n){angular.equals(e,n)||(t.workspace.edited=!0)},!0)}t.license=d.license,t.Auth=u,t.firstLoad=!0,t.detail={tab:"main"},t.contact={CompanyId:"",disposed:!1},t.submitButtonLabel=a.instant("APPLICATION_CONFIRM"),t.getAgent=function(){return u.getCurrentUser().$promise.then(function(e){t.agent=e}).catch(function(t){e.error(t)})},t.companyInfo=function(e){c.open({animation:!0,size:"lg",templateUrl:"app/main/company.info.modal.html",controller:["$scope","$uibModalInstance","company",function(t,e,n){t.company=n,t.close=function(){e.dismiss("cancel")}}],resolve:{company:_.find(t.companies,{id:e})}})},t.callPhoneBar=function(n,s){var i;switch(s){case"call":i="http://127.0.0.1:"+t.agent.phoneBarRemoteControlPort+"/api/originate/"+n;break;case"transfer":i="http://127.0.0.1:"+t.agent.phoneBarRemoteControlPort+"/api/transfer?number="+n;break;default:i="http://127.0.0.1:"+t.agent.phoneBarRemoteControlPort+"/api/originate/"+n}return $http.get(i).success(function(){e.show(a.instant("MESSAGE_WELL_DONE"),"success")}).error(function(t){e.error(t)})},t.dispose=function(){return c.open({animation:!0,templateUrl:"app/main/cm.disposition.modal.html",controller:"ContactManagerSetDisposition"}).result.then(function(n){return r.update({id:t.workspace.data.uniqueid},n).$promise.then(function(){t.contact.disposed=!0,t.workspace.data.agentDisposition=n.agentDisposition,e.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){e.error(t)})})},t.init=function(){if(t.getTags(),t.getCompanies(),t.getLists(),t.getAgent(),t.workspace.data){if(t.enableDisposal=!1,"queue"===t.workspace.data.subtypeChannel?(t.contact.firstName=t.workspace.data.calleridname?t.workspace.data.calleridname:t.workspace.data.messageId?t.workspace.data.messageId:t.workspace.data.uniqueid?t.workspace.data.uniqueid:"",t.workspace.data.calleridnum&&(t.contact.phone=t.workspace.data.calleridnum)):(t.contact.firstName=t.workspace.data.destcalleridname?t.workspace.data.destcalleridname:t.workspace.data.messageId?t.workspace.data.messageId:t.workspace.data.uniqueid?t.workspace.data.uniqueid:"",t.workspace.data.destcalleridnum&&(t.contact.phone=t.workspace.data.destcalleridnum)),t.workspace.data.from&&(t.contact.email=t.workspace.data.from),t.workspace.data.uniqueid)return r.get({id:t.workspace.data.uniqueid}).$promise.then(function(){t.enableDisposal=!0}).catch(function(){n.socket.on("report_call:save",function(e){e.uniqueid===t.workspace.data.uniqueid&&(t.enableDisposal=!0)})});t.workspace.data.CompanyId&&(t.contact.CompanyId=t.workspace.data.CompanyId)}},t.getLists=function(){return i.get().$promise.then(function(e){if(t.lists=e.rows,n.syncUpdates("list",t.lists),t.workspace.data&&t.workspace.data.ListId&&_.find(t.lists,{id:t.workspace.data.ListId}))t.contact.ListId=t.workspace.data.ListId;else{var a=_.find(t.lists,{defaultEntry:!0});t.contact.ListId=a?a.id:t.lists[0]?t.lists[0].id:null}t.getCustomFields()}).catch(function(t){e.error(t)})},t.getCustomFields=function(){return i.get({listId:t.contact.ListId,controller:"customfields",id:"all"}).$promise.then(function(e){t.customFields=[],e.rows.forEach(function(e){try{"select"===e.type&&(e.values=JSON.parse(e.values)),t.customFields.push(e)}catch(t){console.log("Cf not valid:",e.alias)}}),!t.firstLoad||t.workspace.data?(t.workspace.edited=!0,t.firstLoad=!1):(t.firstLoad=!1,g())}).catch(function(t){console.error(t),e.error(t)})},t.getTags=function(){return l.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t),e.error(t)})},t.getCompanies=function(){return o.get().$promise.then(function(e){t.companies=e.rows,t.companies.unshift({id:"",name:"-- None --"}),n.syncUpdates("company",t.companies)}).catch(function(t){console.error(t),e.error(t)})},s(function(){t.init()})}}}}]).directive("contact",["$compile","xAlert","socket","$timeout","List","Tag","Company","Contact","$translate","gridOptions","$uibModal","ReportCall","$rootScope","usSpinnerService","uiGridConstants","$log","Auth","$http",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template/template.contactTab.html",compile:function(t,c){return function(t,c,v){function I(e){var n=[],a={};_.forEach(t.columns[t.log[e].show][t.log[e].detail].indexes,function(s,i){a={name:s,displayName:t.columns[t.log[e].show][t.log[e].detail].header[i],headerCellFilter:"translate",enableSorting:!1,enableColumnMenu:!1},"createdAt"===s&&(a.cellTemplate="<div class=\"centered-uigrid-td\">{{row.entity.createdAt | date:'dd/MM/yyyy HH:mm:ss'}}</div>",a.filterHeaderTemplate='<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',a.filters=[{name:"From",condition:g.filter.GREATER_THAN_OR_EQUAL},{name:"To",condition:g.filter.LESS_THAN_OR_EQUAL}]),n.push(a)}),t.columns[t.log[e].show][t.log[e].detail].actions&&n.push(t.columns[t.log[e].show][t.log[e].detail].actions),n.forEach(function(t){b(t,e,!0),t.hasOwnProperty("displayName")||(t.displayName="APPLICATION_"+t.name.toUpperCase()),t.headerCellFilter="translate",t.hasOwnProperty("buttons")&&(t.displayName="",t.cellClass="ui-grid-vcenter",t.enableSorting=!1,t.enableFiltering=!1,t.enableColumnMenu=!1,t.cellTemplate="<div>",t.buttons.forEach(function(e){if(e.directive)t.cellTemplate+=e.directive;else{if(t.cellTemplate+="<a",t.cellTemplate+=e.hide?' data-ng-hide="'+e.hide+'" ':" ",t.cellTemplate+=e.class?' class="btn btn-xs '+e.class+'" ':" ",t.cellTemplate+=e.href?' data-ng-href="'+e.href+'" ':" ",t.cellTemplate+=e.uisref?' ui-sref="'+e.uisref+'" ':" ",t.cellTemplate+=e.onClick?' data-ng-click="'+e.onClick+'" ':" ",t.cellTemplate+=e.title?' title="'+e.title+'"':"",t.cellTemplate+=">",t.cellTemplate+=e.icon?'<i class="'+e.icon+'"></i>':"",e.name)switch(e.name){case"delete":t.cellTemplate+='<i class="fa fa-trash"></i>';break;case"profile":case"settings":case"detail":case"embedding":t.cellTemplate+='<i class="icon-settings"></i>';break;case"agents":t.cellTemplate+='<i class="icon-people"></i>';break;case"run":t.cellTemplate+='<i class="fa fa-cogs"></i>';break;case"mailRoom":t.cellTemplate+='<i class="fa fa-envelope"></i>';break;case"chatRoom":t.cellTemplate+='<i class="fa fa-users"></i>';break;case"faxRoom":t.cellTemplate+='<i class="fa fa-fax"></i>';break;case"smsRoom":t.cellTemplate+='<i class="glyphicon glyphicon-comment"></i>';break;default:t.cellTemplate+="{{'APPLICATION_"+e.name.toUpperCase()+"' | translate}}"}else t.cellTemplate+=e.displayName?"{{'"+e.displayName+"' | translate}}":"";t.cellTemplate+="</a> "}}),t.cellTemplate+="<div>",delete t.buttons)}),N(e,{enablePaginationControls:!0,exporterCsvFilename:e+".csv",columnDefs:n,enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:10,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,showTreeExpandNoChildren:!0,data:[],gridMenuTitleFilter:function(t){var e=$q.defer();return e.resolve(r.instant(t)),e.promise},onRegisterApi:function(n){t.gridApi=n,t.gridApi.grid.registerDataChangeCallback(function(){}),t.gridApi.core.on.sortChanged(t,function(t,n){0===n.length?T.order=null:T.order=n[0].name+" "+n[0].sort.direction.toUpperCase(),N(e)}),t.gridApi.pagination.on.paginationChanged(t,function(t,n){T.offset=(t-1)*n,T.limit=n,N(e)}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){b(t,e)}),N(e)})}})}function b(t,e,n){t.filter&&t.filter.term&&n&&(T[e][t.name]=t.filter.term),t.filters&&(t.filters.length>1?t.filters.forEach(function(n){n.term?64===n.condition?T[e][t.name+"_uiFrom"]=n.term:256===n.condition&&(T[e][t.name+"_uiTo"]=n.term):64===n.condition?delete T[e][t.name+"_uiFrom"]:256===n.condition&&delete T[e][t.name+"_uiTo"]}):t.filters.length&&t.filters[0].term?T[e][t.name]=t.filters[0].term:delete T[e][t.name])}function E(){t.$watch("contact",function(e,n){e.disposed!==n.disposed||angular.equals(e,n)||(t.workspace.edited=!0)},!0)}t.moment=moment,t.license=p.license,t.detail={tab:"main"},t.log={daily:{show:"phone",type:"inbound",detail:"general"},history:{show:"phone",type:"inbound",detail:"general"}},t.columns={phone:{general:{header:["APPLICATION_SOURCE","APPLICATION_DESTINATION","APPLICATION_CALL_STATUS","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["source","destination","disposition","agentDisposition","createdAt"]},queue:{header:["APPLICATION_CALLERID","APPLICATION_QUEUE","APPLICATION_DATE"],indexes:["calleridnum","queue","createdAt"]}},email:{general:{header:["APPLICATION_FROM","APPLICATION_TO","APPLICATION_SUBJECT","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["from","account","subject","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{class:"green",name:"mailRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'mailRoom')"}]}}},chat:{general:{header:["APPLICATION_WEBSITE","APPLICATION_VISITOR","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["website","contact","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{class:"green",name:"chatRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'chatRoom')"}]}}},fax:{general:{header:["APPLICATION_FROM","APPLICATION_TO","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["contact","account","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{class:"green",name:"faxRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'faxRoom')"}]}}},sms:{general:{header:["APPLICATION_ACCOUNT","APPLICATION_FROM","APPLICATION_DISPOSITION","APPLICATION_DATE"],indexes:["account","contact","disposition","createdAt"],actions:{name:"action",displayName:"",width:40,buttons:[{class:"green",name:"smsRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'smsRoom')"}]}}}},t.Auth=f,t.getAgent=function(){return f.getCurrentUser().$promise.then(function(e){t.agent=e}).catch(function(t){e.error(t)})},t.getLists=function(){return s.get().$promise.then(function(e){t.lists=e.rows,n.syncUpdates("list",t.lists)}).catch(function(t){e.error(t)})},t.callPhoneBar=function(n,a){var s;switch(a){case"call":s="http://127.0.0.1:"+t.agent.phoneBarRemoteControlPort+"/api/originate/"+n;break;case"transfer":s="http://127.0.0.1:"+t.agent.phoneBarRemoteControlPort+"/api/transfer?number="+n;break;default:s="http://127.0.0.1:"+t.agent.phoneBarRemoteControlPort+"/api/originate/"+n}return A.get(s).success(function(){e.show(r.instant("MESSAGE_WELL_DONE"),"success")}).error(function(t){e.error(t)})},t.copy=function(t){d.open({animation:!0,size:"small",templateUrl:"app/contactmanager/contact/list/copy.modal.html",controller:"ContactManagerListCopyModalCtrl"}).result.then(function(n){return o.save({id:t,controller:"copy"},n).$promise.then(function(t){p.openContactTab({firstName:t.firstName,lastName:t.lastName,id:t.id})}).catch(function(t){e.error(t)})},function(){h.info("Modal dismissed at: "+new Date)})},t.merge=function(n){d.open({animation:!0,size:"lg",templateUrl:"app/main/mergeContact.choose.modal.html",controller:"ContactManagerMergeContactChoose",resolve:{listId:n.ListId,mergecontact:n.id}}).result.then(function(a){d.open({animation:!0,size:"lg",templateUrl:"app/main/mergeContact.merge.modal.html",controller:"ContactManagerMergeContactMerge",resolve:{contactId:a,mergeContact:n}}).result.then(function(s){return s.oldContact=n.id,o.save({id:a,controller:"merge"},s).$promise.then(function(e){p.workspaces.splice(t.index,1),_.remove(p.workspaces,{contactID:e.id}),p.openContactTab({firstName:e.firstName,lastName:e.lastName,id:e.id})}).catch(function(t){e.error(t)})},function(){h.info("Modal dismissed at: "+new Date)})},function(){h.info("Modal dismissed at: "+new Date)})},t.dispose=function(){return d.open({animation:!0,templateUrl:"app/main/cm.disposition.modal.html",controller:"ContactManagerSetDisposition"}).result.then(function(n){return n.contactId=t.contact.id,u.update({id:t.workspace.data.uniqueid},n).$promise.then(function(){t.contact.disposed=!0,e.show(r.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){e.error(t)})})},t.companyInfo=function(e){d.open({animation:!0,size:"lg",templateUrl:"app/main/company.info.modal.html",controller:["$scope","$uibModalInstance","company",function(t,e,n){t.company=n,t.close=function(){e.dismiss("cancel")}}],resolve:{company:_.find(t.companies,{id:e})}})},t.updateLog=function(e,n,a,s){n&&(t.log[e].show=n),a&&(t.log[e].detail=a),s&&(t.log[e].type=s),I(e)},t.openRoom=function(t,e,n){var a=_.find(p.workspaces,{id:t,type:e});if(a)a.active=!0;else{var s;switch(e){case"mailRoom":s="icon-envelope";break;case"chatRoom":s="fa fa-users";break;case"faxRoom":s="fa fa-fax";break;case"smsRoom":s="glyphicon glyphicon-comment"}p.workspaces.push({id:t,type:e,class:s,active:!0,data:n})}};var T={daily:{offset:0,limit:10},history:{offset:0,limit:10}},N=function(e,n){return m.spin("spinner-grid"),o.get(_.merge(_.merge({id:t.workspace.contactID,controller:"log",logType:e,order:"createdAt DESC"},t.log[e]),T[e])).$promise.then(function(a){n&&(t["gridOptions"+e]=n),t["gridOptions"+e].totalItems=a.count,t["gridOptions"+e].data=a.rows,P("gridOptions"+e,a.rows.length)}).catch(function(t){console.error(t)}).finally(function(){m.stop("spinner-grid")})},P=function(t,e){var n=e?30*e+120:177;angular.element(document.getElementsByName(t)[0]).css("height",n+"px")};t.getContact=function(){return o.get({id:t.workspace.contactID}).$promise.then(function(e){e.dateOfBirth&&(e.dateOfBirth=moment(e.dateOfBirth,"DD/MM/YYYY").toDate()),e.CompanyId||(e.CompanyId=""),t.contact=e,t.getCustomFields(e.ListId),E(),t.updateLog("daily"),t.updateLog("history")}).then(function(){t.workspace.data&&t.workspace.synchCall()}).catch(function(t){console.error(t),e.error(t)})},t.getTags=function(){return i.get().$promise.then(function(e){t.tags=_.map(e.rows,"name")}).catch(function(t){console.error(t),e.error(t)})},t.getCompanies=function(){return l.get().$promise.then(function(e){t.companies=e.rows,t.companies.unshift({id:"",name:"-- None --"}),n.syncUpdates("company",t.companies)}).catch(function(t){console.error(t),e.error(t)})},t.getCustomFields=function(n){return t.customFields=[],s.get({listId:n,controller:"customfields",id:"all"}).$promise.then(function(e){e.rows.forEach(function(e){try{"select"===e.type&&(e.values=JSON.parse(e.values)),t.customFields.push(e)}catch(t){console.log("Cf not valid:",e.alias)}})}).catch(function(t){console.error(t),e.error(t)})},t.workspace.synchCall=function(){if(t.contact.disposed=!1,t.enableDisposal=!1,t.workspace.data&&t.workspace.data.uniqueid)return t.workspace.data.agentDisposition?(t.contact.disposed=!0,u.update({id:t.workspace.data.uniqueid},{contactId:t.contact.id}).$promise.then(function(){console.log("contactId updated")}).catch(function(t){e.error(t)})):u.get({id:t.workspace.data.uniqueid}).$promise.then(function(){t.enableDisposal=!0}).catch(function(){n.socket.on("report_call:save",function(e){e.uniqueid===t.workspace.data.uniqueid&&(t.enableDisposal=!0)})});t.contact.disposed=!0},a(function(){t.getTags(),t.getCompanies(),t.getLists(),t.getContact(),t.getAgent()})}}}}]).directive("jscripty",["$compile","xAlert","$http","socket","JscriptyProject",function(t,e,n,a,s){return{restrict:"E",scope:{workspace:"=",index:"=",submit:"&onSubmit"},templateUrl:"app/main/template/template.jscriptyTab.html",compile:function(t,a){return function(t,a,i){t.count=0,t.questions=[];var l,o=t.workspace.data.id;n.get("/api/jscripty/projects/"+o+"/download").success(function(e){e?n.post("/api/jscripty/projects/"+o+"/sessions",{projectId:o,status:"started",queue:t.workspace.data.queue,calleridnum:t.workspace.data.calleridnum,callername:t.workspace.data.callername,membername:t.workspace.data.membername}).success(function(n){l=n.session_id,t.workspace.edited=!0,t.workspace.sessionId=l,t.workspace.projectId=o;var a=mxUtils.parseXml(e),s=new mxCodec(a);t.decObj=s.decode(a.documentElement);var i=_.find(t.decObj.cells,function(t){return t.vertex&&"start"==t.value.nodeName});if("OFF"==i.getAttribute("state")){var c=_.find(i.edges,function(t){return t.source.id==i.id}).target;t.questions[t.count]=t.currentQuestion=r(c)}else t.questions[t.count]=t.currentQuestion=i;t.saveQuestions()}):(console.log("No project published!"),alert("No project published!"),t.submit({index:t.index}))}),t.next=function(e,n){switch(t.currentQuestion.answer&&t.currentQuestion.answer!=n&&(t.questions=_.take(t.questions,t.count+1)),t.currentQuestion.answer=n,e.value.nodeName){case"question":e=r(e)}t.questions[t.count]=t.currentQuestion,t.currentQuestion=e,t.count++,t.questions[t.count]=e,t.saveQuestions()};var r=function(t){var e=[];return t.options=[],_.forEach(t.edges,function(n,a){if(n.source.id==t.id&&n.value){var s=String(n.value).split(",");s.length>1?(_.forEach(s,function(e,a){var s=Object.create(n);s.setValue(e),t.edges.push(s),t.options.push(e)}),e.push(n)):t.options.push(s[0])}}),_.forEach(e,function(e){_.remove(t.edges,function(t){return t.value==e.value&&t.id==e.id})}),t};t.end=function(){t.saveQuestions(),t.workspace.lastQuestionId=t.questions[t.questions.length-1].id,"end"==t.questions[t.questions.length-1].value.nodeName&&(t.workspace.edited=!1,s.update({id:o,controller:"sessions",action:l},{status:"completed",completedAt:Date(),last_question_id:t.questions[t.questions.length-1].id}).$promise.then(function(t){e.show("Project Ended","success")})),t.submit({index:t.index})},t.workspace.end=t.end,t.back=function(){t.count--,t.currentQuestion=t.questions[t.count]},t.setCurrentQuestion=function(e){t.count=e,t.currentQuestion=t.questions[t.count]},t.saveQuestions=function(){for(var n=[],a=[],i=0;i<t.questions.length;i++){if(t.questions[i].children)for(var r=t.questions[i].children,c=0;c<r.length;c++)a[c]={input_id:r[c].id,input_type:r[c].getAttribute("type"),input_label:r[c].getAttribute("label"),input_value:!("checkbox"==r[c].getAttribute("type")&&!r[c].answer)&&r[c].answer};n[i]={sessionId:l,projectId:o,question_id:t.questions[i].id,question_type:t.questions[i].value.nodeName,question_label:t.questions[i].getAttribute("label"),question_text:t.questions[i].getAttribute("question")||t.questions[i].getAttribute("text"),question_other_label:t.questions[i].getAttribute("other"),question_other_answer:t.questions[i].otheranswer,question_answer:t.questions[i].answer,question_options:t.questions[i].options?JSON.stringify({options:t.questions[i].options}):null,index:i,ReportJscriptyInputs:a},a=[]}s.save({id:o,controller:"sessions",action:l,action2:"questions"},n).$promise.then(function(t){}).catch(function(t){e.error(t)})}}}}}]).directive("reportBuilder",["$compile",function(t){return{restrict:"E",scope:{group:"=",fields:"=",forms:"=",firstCall:"="},templateUrl:"app/main/template/template.reportBuilderView.html",compile:function(e,n){var a,s;return a=e.contents().remove(),function(e,n,i){e.operators=[{name:"AND"},{name:"OR"}],e.conditions=[{name:"="},{name:"!="},{name:"<"},{name:"<="},{name:">"},{name:">="},{name:"LIKE"},{name:"NOT LIKE"},{name:"IS NULL"},{name:"IS NOT NULL"},{name:"IS EMPTY"},{name:"IS NOT EMPTY"}],e.inputIsRequired=function(t){if(t.condition)switch(t.condition){case"IS NULL":case"IS NOT NULL":case"IS EMPTY":case"IS NOT EMPTY":t.required=!1;break;default:t.required=!0}},e.addCondition=function(){e.group.rules.push({condition:"=",field:"",value:""})},e.removeCondition=function(t){e.group.rules.splice(t,1)},e.addGroup=function(){e.group.rules.push({group:{operator:"AND",rules:[{condition:"=",field:"",value:""}]}})},e.randomName=function(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")},e.removeGroup=function(){e.$parent.group&&e.$parent.group.rules.splice(e.$parent.$index,1)},s||(s=t(a)),n.append(s(e,function(t){return t}))}}}}]).directive("dynamicName",["$compile",function(t){return{restrict:"A",terminal:!0,priority:1e3,link:function(e,n,a){n.attr("name",e.$eval(a.dynamicName)),n.removeAttr("dynamic-name"),t(n)(e)}}}]).directive("onReadFile",["$parse",function(t){return{restrict:"A",scope:!1,link:function(e,n,a){var s=t(a.onReadFile);n.on("change",function(t){var n=new FileReader;n.onload=function(t){e.$apply(function(){s(e,{$fileContent:t.target.result})})},n.readAsText((t.srcElement||t.target).files[0])})}}}]).directive("motionFileDownload",["xAlert","$translate","$timeout","$location","FileSaver","$compile",function(t,e,n,a,s,i){return{restrict:"E",template:'<a uib-tooltip=\'{{tooltiptext}}\' class="{{btnclass || \'btn default btn-xs blue-hoki\'}}" href="" data-ng-click="download()" ><i class="icon-cloud-download"></i>{{btncontent || \'\'}}</a>',scope:{mimetype:"=",filename:"=",resource:"=",params:"=",btnclass:"@",btncontent:"@",tooltiptext:"@"},link:function(e,n,a){var i=n.children()[0];e.$on("download-start",function(){$(i).attr("disabled","disabled")}),e.$on("downloaded",function(t,n){var a=base64ToBlob(n,e.mimetype);s.saveAs(a,e.filename),$(i).attr("disabled",!1)}),e.download=function(){return e.$emit("download-start"),e.resource.get(e.params).$promise.then(function(t){e.$emit("downloaded",t.downloadString)}).catch(function(e){t.error(e),$(i).attr("disabled",!1)})}}}}]).directive("audioFileDownload",["xAlert","$translate","$uibModal",function(t,e,n){return{restrict:"E",template:'<button type="button" class="btn default btn-xs blue-hoki" data-ng-click="download()"><i class="fa fa-play"></i> {{ \'APPLICATION_PREVIEW\' | translate}}</button>',scope:{resource:"=",params:"="},link:function(e,a,s){var i=a.children()[0];e.$on("download-start",function(t,n){e.tempHtml=$(i).html(),$(i).attr("disabled","disabled").html('<i class="icon-refresh"></i> Loading...')}),e.$on("downloaded",function(t,a){n.open({animation:!0,size:"small",templateUrl:"app/main/audioFileDownload.play.modal.html",controller:["$scope","$uibModalInstance","$sce","audio",function(t,e,n,a){t.audio=n.trustAsResourceUrl("data:audio/wav;base64,"+a.data),t.close=function(){e.dismiss("cancel")}}],resolve:{audio:function(){return{data:a}}}});$(i).html(e.tempHtml).attr("disabled",!1)}),e.$on("error",function(t,n){$(i).html(e.tempHtml).attr("disabled",!1)}),e.download=function(){return e.$emit("download-start"),e.resource.get(e.params).$promise.then(function(t){e.$emit("downloaded",t.downloadString)}).catch(function(n){t.error(n),e.$emit("error")})}}}}]).directive("uiRequired",function(){return{require:"ngModel",link:function(t,e,n,a){a.$validators.required=function(t,e){return!(e&&0===e.length&&"true"===n.uiRequired)},n.$observe("uiRequired",function(){a.$setValidity("required",!("true"===n.uiRequired&&a.$viewValue&&0===a.$viewValue.length))})}}}).directive("schrollBottom",function(){return{scope:{schrollBottom:"="},link:function(t,e){t.$watchCollection("schrollBottom",function(t){t&&$(e).scrollTop($(e)[0].scrollHeight)})}}}).directive("customGridDateFilterHeader",function(){return{templateUrl:"app/main/customDateFilterHeader.html",controller:"gridDatePickerFilterCtrl"}}).directive("customGridTagsFilterHeader",function(){return{templateUrl:"app/main/customTagsFilterHeader.html",controller:"gridTagsFilterCtrl"}}).directive("infiniteScroll",["$window",function(t){return{link:function(t,e,n){var a=parseInt(n.threshold)||0,s=e[0];e.bind("scroll",function(){t.$eval(n.canLoad)&&s.scrollTop+s.offsetHeight>=s.scrollHeight-a&&t.$apply(n.infiniteScroll)})}}}]).directive("tigerDialDisposal",["$compile","xAlert","socket","$translate","$timeout","$rootScope","MotionDialerSpooler","Auth",function(t,e,n,a,s,i,l,o){return{restrict:"E",scope:{workspace:"=",index:"="},templateUrl:"app/main/template/template.tigerDialDisposal.html",compile:function(t,n){return function(t,n,r){t.moment=moment,t.entitySpooler={},t.forms={td:{}},t.init=function(){return o.getCurrentUser().$promise.then(function(e){t.entitySpooler.planningpeer="SIP/"+e.name}).catch(function(t){e.error(t)})},t.save=function(){var n;switch(t.entitySpooler.retrieve){case"CLOSED":n=l.close({id:parseInt(t.workspace.spooler.ticketId)});break;case"OPEN":n=l.open({id:parseInt(t.workspace.spooler.ticketId)});break;case"BLACK_LIST":n=l.blacklist({id:parseInt(t.workspace.spooler.ticketId)});break;case"PLANNED":n=l.planning({id:parseInt(t.workspace.spooler.ticketId),date:moment(t.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm")});break;case"PLANNED_PEER":n=l.planningpeer({id:parseInt(t.workspace.spooler.ticketId),date:moment(t.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm"),peer:t.entitySpooler.planningpeer})}n?n.$promise.then(function(n){n.status>0?e.show(a.instant("MESSAGE_WELL_DONE"),"success"):n.response?n.response.RMI.errors.forEach(function(n){n?(e.show(n.field+": "+n.error,"danger"),i.workspaces.splice(t.index,1)):e.show("Please, check your connection!","danger")}):e.show("Please, check your connection!","danger")}).catch(function(t){e.error(t)}):e.show("RETRIEVE NOT FOUND","danger")},s(function(){t.init()})}}}}]).directive("cssTimer",["$window","$interval",function(t,e){return{restrict:"EA",template:"<span>{{ millis | formatMilliseconds | date:format }}</span>",scope:{interval:"@",format:"@",startTime:"="},link:function(t,n,a){function s(){t.millis=Math.abs((new Date).getTime()-new Date(t.startTime).getTime())+1e3,t.activeInterval=e(function(){t.millis+=t.interval},t.interval)}t.interval||(t.interval=1e3),t.format||(t.format="HH:mm:ss"),s(),t.$watch("startTime",function(n,a){e.cancel(t.activeInterval),s()},!0)}}}]).directive("webPopup",["$compile","xAlert","socket","$translate","$timeout","List","Tag","Company","ReportCall","$uibModal","$rootScope","Auth","$sce",function(t,e,n,a,s,i,l,o,r,c,d,u,p){return{restrict:"E",scope:{workspace:"=",index:"="},templateUrl:"app/main/template/template.webPopup.html",compile:function(t,e){return function(t,e,n){t.html=p.trustAsHtml(t.workspace.data.html)}}}}]),angular.module("xCallyShuttleApp").filter("propsFilter",function(){return function(t,e){var n=[];return angular.isArray(t)?t.forEach(function(t){for(var a=!1,s=Object.keys(e),i=0;i<s.length;i++){var l=s[i],o=e[l].toLowerCase();if(-1!==t[l].toString().toLowerCase().indexOf(o)){a=!0;break}}a&&n.push(t)}):n=t,n}}).filter("capitalize",function(){return function(t){return t?t.replace(/([^\W_]+[^\s-]*) */g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}):""}}).filter("salesforce",function(){var t=["CallDisposition","CallDurationInSeconds","CallObject","CallType","IsArchived","Priority","Status","Type"];return function(e){return _.remove(e,function(e){return!1===e.custom&&t.indexOf(e.name)<0}),e}}).filter("sugarcrm",function(){var t=["id","name","date_entered","date_modified","modified_user_id","modified_by_name","created_by","created_by_name","description","deleted","assigned_user_id","assigned_user_name","duration_hours","duration_minutes","date_start","date_end","parent_type","parent_name","parent_id","accept_status","contact_name","contact_id"];return function(e){return _.remove(e,function(e){return t.indexOf(e.name)>=0}),e}}).filter("freshdesk",function(){var t=["requester","subject","agent","description","status","priority","group","source","ticket_type","group","company"];return function(e){return _.remove(e,function(e){return t.indexOf(e.name)>=0}),e}}).filter("zendesk",function(){var t=["subject","assignee","description"];return function(e){return _.remove(e,function(e){return t.indexOf(e.type)>=0}),e}}).filter("slice",function(){return function(t,e,n){if(t)return t.slice(e,n)}}).filter("trusted",["$sce",function(t){var e=document.createElement("div");return function(n){return e.innerHTML=n,t.trustAsHtml(e.textContent)}}]).filter("formatMilliseconds",[function(){return function(t){return new Date(1970,0,1).setMilliseconds(t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main",{abstract:!0,templateUrl:"app/main/main.html",controller:"MainCtrl",resolve:{authorization:["$q","Auth","$state","$timeout","$location","localStorageService",function(t,e,n,a,s,i){return e.getToken()?t.when():(i.remove("loggedIn"),a(function(){s.path("/login")}),t.reject())}],deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/ckeditor/ckeditor.js","assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("xAlert",["$translate","Notification","$state",function(t,e,n){return{show:function(n,a){switch(a){case"success":e.success({message:n,title:'<i class="glyphicon glyphicon-ok"></i> <strong>'+t.instant("MESSAGE_SUCCESS")+"!</strong>",delay:5e3});break;case"info":e.info({message:n,title:'<i class="glyphicon glyphicon-info-sign"></i> <strong>'+t.instant("MESSAGE_INFO")+"!</strong>",delay:5e3});break;case"danger":e.error({message:n,title:'<i class="glyphicon glyphicon-exclamation-sign"></i> <strong>'+t.instant("MESSAGE_ERROR")+"!</strong>",delay:1e4});break;case"warning":e.warning({message:n,title:'<i class="glyphicon glyphicon-warning-sign"></i> <strong>'+t.instant("MESSAGE_WARNING")+"!</strong>",delay:1e4});break;default:e.info(n)}},error:function(a){var s,i;a?a.status&&401===a.status?(s="Unauthorized!",i=!0):a.data?(s=a.data.translatedMessage||a.data.message||a.data||"Generic Error",a.data.errors&&a.data.errors.length&&_.forEach(a.data.errors,function(t){t.message&&(s+=", "+t.message)})):s=a.translatedMessage||a.message||"Generic Error":s="Generic Error",e.error({message:t.instant(s),title:'<i class="glyphicon glyphicon-exclamation-sign"></i> <strong>'+t.instant("MESSAGE_ERROR")+"!</strong>",delay:1e4}),i&&n.go("login")}}}]).factory("stResource",["$q","$filter","$timeout","$rootScope","$http","$translate","xAlert",function(t,e,n,a,s,i,l){return{getPage:function(e){var n={page:Math.ceil(e.pagination.start/e.pagination.number),per_page:e.pagination.number};e.sort.predicate&&(n.sort_by=e.sort.predicate,n.sort_order=e.sort.reverse?"DESC":"ASC"),_.forIn(e.search.predicateObject,function(t,e){n[e]=t}),e.search.params&&(n.clientQuery={},_.forIn(e.search.params,function(t,e){n.clientQuery[e]=t})),a.$broadcast("$spinnerStart"),s.get(e.url,{params:n}).success(function(t){i.resolve(t),a.$broadcast("$spinnerStop")}).error(function(t){l.error(t),a.$broadcast("$spinnerStop")});var i=t.defer();return i.promise}}}]).factory("xNotification",["$translate","Notification","$rootScope",function(t,e,n){return{show:function(a,s,i,l,o,r){var c=n.$new(),d={message:s,title:a,templateUrl:"app/main/template/template.notification.html",delay:l,scope:c};switch(c.acceptBtn=t.instant("APPLICATION_ACCEPT"),c.rejectBtn=t.instant("APPLICATION_REJECT"),c.nAccept=o,c.nReject=r,i){case"chat":c.class="alert-info",c.icon="icon-bubble";break;case"mail":c.class="alert-success",c.icon="icon-envelope";break;case"fax":c.class="alert-warning",c.icon="fa fa-fax";break;case"sms":c.class="alert-danger",c.icon="glyphicon glyphicon-comment";break;case"openchannel":c.class="alert-danger",c.icon="icon-globe";break;default:c.class="alert-info"}return new e(d)}}}]),angular.module("xCallyShuttleApp").controller("ContactManagerMergeContactChoose",["$scope","$translate","Contact","gridOptions","List","uiGridConstants","xAlert","$stateParams","Company","$uibModalInstance","listId","mergecontact",function(t,e,n,a,s,i,l,o,r,c,d,u){t.initView=function(){var e;return s.get().$promise.then(function(e){return t.lists=[],t.customFields=[],e.rows.forEach(function(e,n){_.forEach(e.CustomFields,function(e){t.customFields.push({name:e.name,alias:e.alias})}),t.lists.push({value:e.id,label:e.name})}),r.get().$promise}).then(function(e){t.companies=[],e.rows.forEach(function(e,n){t.companies.push({value:e.id,label:e.name})})}).then(function(){var s=[{class:"blue-hoki",name:"select",onClick:"grid.appScope.choose(row.entity.id)"}];e={exporterCsvFilename:"Contacts.csv",columnDefs:[{name:"firstName"},{name:"lastName"},{name:"phone"},{name:"email"},{name:"ListId",displayName:"APPLICATION_LIST",field:"List.name",enableFiltering:!1},{name:"CompanyId",displayName:"APPLICATION_COMPANY",field:"Company.name",filter:{type:i.filter.SELECT,term:o.companyId||null,selectOptions:t.companies}}]},_.forEach(t.customFields,function(t){e.columnDefs.push({name:t.name,displayName:t.alias,visible:!1})}),e.columnDefs.push({name:"action",width:30,buttons:s}),t.gridOptions=a.gridOptions(n,e,t,{ListId:d,mergecontact:u})}).catch(function(t){l.error(t)})},t.choose=function(t){c.close(t)},t.cancel=function(){c.dismiss()}}]),angular.module("xCallyShuttleApp").controller("ContactManagerMergeContactMerge",["$scope","$translate","Contact","xAlert","Company","$uibModalInstance","contactId","List","mergeContact","Tag",function(t,e,n,a,s,i,l,o,r,c){t.initView=function(){return s.get().$promise.then(function(e){return t.companies=e.rows,t.companies.unshift({id:"",name:"-- None --"}),c.get().$promise}).then(function(e){return t.tags=_.map(e.rows,"name"),n.get({id:l}).$promise}).then(function(e){t.fields={},t.contact={};var n=_.merge(_.keys(e),_.keys(r));return _.forEach(n,function(n){switch(n){case"tags":t.contact.tags=_.union(e.tags||[],r.tags||[]);break;case"$promise":case"$resolved":break;default:t.fields[n]=[],e[n]&&t.fields[n].push(e[n]),r[n]&&e[n]!==r[n]&&t.fields[n].push(r[n]),t.contact[n]=t.fields[n][0]||null}}),o.get({listId:e.ListId,controller:"customfields"}).$promise}).then(function(e){t.customFields=e.rows,t.customFields.forEach(function(t){t.values=JSON.parse(t.values)})}).catch(function(t){a.error(t)})},t.merge=function(){t.contact.CompanyId||(t.contact.CompanyId=null),i.close(t.contact)},t.cancel=function(){i.dismiss()}}]),angular.module("xCallyShuttleApp").factory("Widget",["$resource",function(t){return t("/api/widgets/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("MarketCtrl",["$scope","$http","$translate","socket","xAlert","Modal","$timeout","Integration",function(t,e,n,a,s,i,l,o){function r(t,e){return Math.floor(Math.random()*(e-t+1))+t}t.initView=function(){return o.get().$promise.then(function(e){t.integrations=e.rows,t.groupedIntegration=_.chunk(t.integrations,4),a.syncUpdates("integration",t.integrations,function(){t.groupedIntegration=_.chunk(t.integrations,4)})}).catch(function(t){s.error(t,"danger")})},t.isProgressing=!1,t.$on("$destroy",function(){a.unsyncUpdates("integration")}),t.installIntegration=function(e){if(navigator.onLine)return t.status="Downloading",t.percentage=r(1,50),t.isProgressing=!0,e.downloading=!0,o.update({id:e.id},{active:!0}).$promise.then(function(){l(function(){t.percentage=r(51,99),t.status="Installing"},2500),l(function(){t.percentage=100,t.isProgressing=!1,t.status="Completed!",e.downloading=!1,s.show(n.instant("MESSAGE_WELL_DONE")+".","success")},5e3)}).catch(function(){e.downloading=!1,t.percentage=0,t.isProgressing=!1,s.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")});s.show(n.instant("MESSAGE_NO_INTERNET_CONNECTION")+".","danger")},t.uninstallIntegration=function(e){if(navigator.onLine)return t.status="Uninstalling",t.percentage=r(1,99),t.isProgressing=!0,e.downloading=!0,o.update({id:e.id},{active:!1}).$promise.then(function(){l(function(){t.percentage=100,t.isProgressing=!1,t.status="Completed!",e.downloading=!1,s.show(n.instant("MESSAGE_WELL_DONE")+".","success")},5e3)}).catch(function(){e.downloading=!1,t.percentage=0,t.isProgressing=!1,s.show(n.instant("MESSAGE_SOMETHING_WENT_WRONG")+".","danger")});s.show(n.instant("MESSAGE_NO_INTERNET_CONNECTION")+".","danger")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.market",{url:"/market",templateUrl:"app/market/market.html",controller:"MarketCtrl",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("MotionbarCtrl",["$scope","$stateParams","$cookieStore","$window","$location","Auth",function(t,e,n,a,s,i){console.log(e),e.token&&e.userId&&e.role&&e.redirectTo?(i.loginWithToken(e.token,e.userId,e.role),a.location.href=decodeURIComponent(e.redirectTo)):s.path("/login")}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("motionbar",{url:"/motionbar?redirectTo&token&userId&role",template:"<div ui-view></div>",controller:"MotionbarCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.motiondialer.blacklist",{url:"/blacklist",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("MotionDialerBlackListListCtrl",["$scope","$uibModal","$translate","xAlert","Modal","MotionDialerBlackList","uiGridConstants","FileUploader","Papa",function(t,e,n,a,s,i,l,o,r){function c(n){e.open({animation:!0,backdrop:"static",keyboard:!1,templateUrl:"app/motiondialer/blacklist/list/list.import.modal.html",controller:"MotionDialerBlackListImportCtrl",resolve:{indexes:function(){return _.keys(n[0])},csv:function(){return n}}}).result.then(function(e){t.gridOptions.data=t.gridOptions.data.concat(e)})}t.initView=function(){t.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!0,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"id",width:60},{name:"phone"},{name:"description",enableSorting:!1},{name:"updatedtime",sort:{direction:l.DESC},enableFiltering:!1},{name:"action",cellTemplate:'<div><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteItem(row.entity.phone, row.entity.id)"><i class="icon-trash"></i></a></div>',enableSorting:!1,cellClass:"ui-grid-vcenter",enableFiltering:!1}]},i.list({page:1,size:6e5}).$promise.then(function(e){e.status>0?t.gridOptions.data=e.response.RMI.rows:a.show("Please, check your connection!","danger")}).catch(function(t){a.error(t)})},t.createItem=function(){e.open({animation:!0,templateUrl:"app/motiondialer/blacklist/list/list.create.modal.html",controller:"MotionDialerBlackListListCreateCtrl"}).result.then(function(e){t.gridOptions.data.push(e.response.RMI)})},t.deleteItem=s.confirm.delete(function(e){return i.delete({id:e}).$promise.then(function(s){s.status>0?(_.remove(t.gridOptions.data,{id:e}),a.show(n.instant("MESSAGE_WELL_DONE"),"success")):a.show(s.message||"Please, check your connection!","danger")}).catch(function(t){a.error(t)})}),(t.uploader=new o({queueLimit:1,clearInputAfterAddedToQueue:!0})).onAfterAddingFile=function(e){r.parse(e._file,{header:!0,complete:function(e){t.uploader.clearQueue(),c(e.data)},error:function(t){a.error(t)}})}}]),angular.module("xCallyShuttleApp").controller("MotionDialerBlackListListCreateCtrl",["$scope","$translate","$uibModalInstance","MotionDialerBlackList","xAlert",function(t,e,n,a,s){t.form={},t.item={},t.save=function(){return a.insert(t.item).$promise.then(function(t){t.status>0?(s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)):s.show(t.message||"Please, check your connection!","danger")}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerBlackListImportCtrl",["$scope","$uibModalInstance","$stateParams","indexes","csv","MotionDialerBlackList",function(t,e,n,a,s,i){function l(e){if(e>=t.csvLength||t.stopped)t.importing=!1;else{var n={phone:"",description:""};if(_.forOwn(t.item,function(t,a){n[a]=s[e][t]}),n.phone)return i.insert(n).$promise.then(function(n){n.status>0?n.response.RMI.Key&&n.response.RMI.Key.indexOf("Found duplicate")>-1?(t.import.fail+=o,t.import.failed++,t.duplicates.push(e+2)):(t.import.success+=o,t.import.succeeded++,r.push(n.response.RMI)):(console.log(n),t.import.fail+=o,t.import.failed++)}).catch(function(e){console.log(e),t.import.fail+=o,t.import.failed++}).finally(function(){l(e+1)});t.noPhone.push(e+2),t.import.fail+=o,t.import.failed++,l(e+1)}}t.form={},t.item={},t.indexes=a,t.importing=!1,t.submitted=!1,t.stopped=!1,t.import={success:0,fail:0,succeeded:0,failed:0},t.csvLength=s.length;var o=100/t.csvLength,r=[];t.start=function(){t.noPhone=[],t.duplicates=[],t.importing=!0,t.submitted=!0,l(0)},t.close=function(){e.close(r)},t.stop=function(){t.stopped=!0}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.motiondialer.blacklist.list",{url:"/list",templateUrl:"app/motiondialer/blacklist/list/list.html",controller:"MotionDialerBlackListListCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").factory("MotionDialerBlackList",["$resource",function(t){return t("/api/rest/blacklist/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},delete:{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.motiondialer.info",{url:"/info",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").factory("MotionDialerSystem",["$resource",function(t){return t("/api/rest/system/:controller",null,{properties:{method:"POST",params:{controller:"properties"}}})}]),angular.module("xCallyShuttleApp").controller("MotionDialerInfoViewCtrl",["$scope","xAlert","MotionDialerSystem","MotionDialerProcess","$translate","$q","usSpinnerService",function(t,e,n,a,s,i,l){t.getProperties=function(){return n.properties().$promise.then(function(n){n.status>0?t.properties=n.response.RMI:e.show(n.message||"Please, check your connection!","danger")}).catch(function(t){e.error(t)})};var o=function(t,e){var n=t?30*t+130:177;angular.element(document.getElementsByName(e)[0]).css("height",n+"px")};t.getLogs=function(){return t.loading=!0,l.spin("logs-spinner"),a.logs().$promise.then(function(n){t.loading=!1,l.stop("logs-spinner"),n.status>0?t.table1.data=n.response.RMI.rows:e.show(n.message||"Please, check your connection!","danger")}).catch(function(n){t.loading=!1,l.stop("logs-spinner"),e.error(n)})},t.initLogs=function(){t.table1={enableGridMenu:!0,exporterMenuVisibleData:!1,exporterCsvFilename:"Motion Dialer Logs.csv",enableHorizontalScrollbar:0,headerCellFilter:"translate",exporterHeaderFilter:s.instant,enableVerticalScrollbar:0,enableFiltering:!0,enableSorting:!0,showGridFooter:!0,paginationPageSizes:[10,25,50],paginationPageSize:10,gridMenuTitleFilter:function(t){var e=i.defer();return e.resolve(s.instant(t)),e.promise},columnDefs:[{name:"timeStamp",headerCellFilter:"translate",displayName:"APPLICATION_DATE",cellFilter:'date:"yyyy-MM-dd HH:mm:ss"',width:145},{name:"renderedMessage",headerCellFilter:"translate",displayName:"APPLICATION_MESSAGE",cellTooltip:!0}],data:[],onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){o(t.table1.paginationPageSize>t.table1.data.length?t.table1.data.length:t.table1.paginationPageSize,"table1")}),t.gridApi.pagination.on.paginationChanged(t,function(e,n){o(n>t.table1.data.length?t.table1.data.length:n,"table1")})}},t.getLogs()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.motiondialer.info.view",{url:"/view",templateUrl:"app/motiondialer/info/view/view.html",controller:"MotionDialerInfoViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.motiondialer.info.view.about",{url:"/about",templateUrl:"app/motiondialer/info/view/view.about.html"}).state("main.motiondialer.info.view.details",{url:"/details",templateUrl:"app/motiondialer/info/view/view.details.html"}).state("main.motiondialer.info.view.logs",{url:"/logs",templateUrl:"app/motiondialer/info/view/view.logs.html"})}]),angular.module("xCallyShuttleApp").factory("MotionDialerContact",["$resource",function(t){return t("/api/rest/contact/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},delete:{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}}})}]),angular.module("xCallyShuttleApp").factory("MotionDialerList",["$resource",function(t){return t("/api/rest/list/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},delete:{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}}})}]),angular.module("xCallyShuttleApp").factory("MotionDialerTimezone",function(){return{list:function(){return[{group:"US (Common)",zones:[{value:"America/Puerto_Rico",name:"Puerto Rico (Atlantic)"},{value:"America/New_York",name:"New York (Eastern)"},{value:"America/Chicago",name:"Chicago (Central)"},{value:"America/Denver",name:"Denver (Mountain)"},{value:"America/Phoenix",name:"Phoenix (MST)"},{value:"America/Los_Angeles",name:"Los Angeles (Pacific)"},{value:"America/Anchorage",name:"Anchorage (Alaska)"},{value:"Pacific/Honolulu",name:"Honolulu (Hawaii)"}]},{group:"America",zones:[{value:"America/Adak",name:"Adak"},{value:"America/Anchorage",name:"Anchorage"},{value:"America/Anguilla",name:"Anguilla"},{value:"America/Antigua",name:"Antigua"},{value:"America/Araguaina",name:"Araguaina"},{value:"America/Argentina/Buenos_Aires",name:"Argentina - Buenos Aires"},{value:"America/Argentina/Catamarca",name:"Argentina - Catamarca"},{value:"America/Argentina/ComodRivadavia",name:"Argentina - ComodRivadavia"},{value:"America/Argentina/Cordoba",name:"Argentina - Cordoba"},{value:"America/Argentina/Jujuy",name:"Argentina - Jujuy"},{value:"America/Argentina/La_Rioja",name:"Argentina - La Rioja"},{value:"America/Argentina/Mendoza",name:"Argentina - Mendoza"},{value:"America/Argentina/Rio_Gallegos",name:"Argentina - Rio Gallegos"},{value:"America/Argentina/Salta",name:"Argentina - Salta"},{value:"America/Argentina/San_Juan",name:"Argentina - San Juan"},{value:"America/Argentina/San_Luis",name:"Argentina - San Luis"},{value:"America/Argentina/Tucuman",name:"Argentina - Tucuman"},{value:"America/Argentina/Ushuaia",name:"Argentina - Ushuaia"},{value:"America/Aruba",name:"Aruba"},{value:"America/Asuncion",name:"Asuncion"},{value:"America/Atikokan",name:"Atikokan"},{value:"America/Atka",name:"Atka"},{value:"America/Bahia",name:"Bahia"},{value:"America/Barbados",name:"Barbados"},{value:"America/Belem",name:"Belem"},{value:"America/Belize",name:"Belize"},{value:"America/Blanc-Sablon",name:"Blanc-Sablon"},{value:"America/Boa_Vista",name:"Boa Vista"},{value:"America/Bogota",name:"Bogota"},{value:"America/Boise",name:"Boise"},{value:"America/Buenos_Aires",name:"Buenos Aires"},{value:"America/Cambridge_Bay",name:"Cambridge Bay"},{value:"America/Campo_Grande",name:"Campo Grande"},{value:"America/Cancun",name:"Cancun"},{value:"America/Caracas",name:"Caracas"},{value:"America/Catamarca",name:"Catamarca"},{value:"America/Cayenne",name:"Cayenne"},{value:"America/Cayman",name:"Cayman"},{value:"America/Chicago",name:"Chicago"},{value:"America/Chihuahua",name:"Chihuahua"},{value:"America/Coral_Harbour",name:"Coral Harbour"},{value:"America/Cordoba",name:"Cordoba"},{value:"America/Costa_Rica",name:"Costa Rica"},{value:"America/Cuiaba",name:"Cuiaba"},{value:"America/Curacao",name:"Curacao"},{value:"America/Danmarkshavn",name:"Danmarkshavn"},{value:"America/Dawson",name:"Dawson"},{value:"America/Dawson_Creek",name:"Dawson Creek"},{value:"America/Denver",name:"Denver"},{value:"America/Detroit",name:"Detroit"},{value:"America/Dominica",name:"Dominica"},{value:"America/Edmonton",name:"Edmonton"},{value:"America/Eirunepe",name:"Eirunepe"},{value:"America/El_Salvador",name:"El Salvador"},{value:"America/Ensenada",name:"Ensenada"},{value:"America/Fortaleza",name:"Fortaleza"},{value:"America/Fort_Wayne",name:"Fort Wayne"},{value:"America/Glace_Bay",name:"Glace Bay"},{value:"America/Godthab",name:"Godthab"},{value:"America/Goose_Bay",name:"Goose Bay"},{value:"America/Grand_Turk",name:"Grand Turk"},{value:"America/Grenada",name:"Grenada"},{value:"America/Guadeloupe",name:"Guadeloupe"},{value:"America/Guatemala",name:"Guatemala"},{value:"America/Guayaquil",name:"Guayaquil"},{value:"America/Guyana",name:"Guyana"},{value:"America/Halifax",name:"Halifax"},{value:"America/Havana",name:"Havana"},{value:"America/Hermosillo",name:"Hermosillo"},{value:"America/Indiana/Indianapolis",name:"Indiana - Indianapolis"},{value:"America/Indiana/Knox",name:"Indiana - Knox"},{value:"America/Indiana/Marengo",name:"Indiana - Marengo"},{value:"America/Indiana/Petersburg",name:"Indiana - Petersburg"},{value:"America/Indiana/Tell_City",name:"Indiana - Tell City"},{value:"America/Indiana/Vevay",name:"Indiana - Vevay"},{value:"America/Indiana/Vincennes",name:"Indiana - Vincennes"},{value:"America/Indiana/Winamac",name:"Indiana - Winamac"},{value:"America/Indianapolis",name:"Indianapolis"},{value:"America/Inuvik",name:"Inuvik"},{value:"America/Iqaluit",name:"Iqaluit"},{value:"America/Jamaica",name:"Jamaica"},{value:"America/Jujuy",name:"Jujuy"},{value:"America/Juneau",name:"Juneau"},{value:"America/Kentucky/Louisville",name:"Kentucky - Louisville"},{value:"America/Kentucky/Monticello",name:"Kentucky - Monticello"},{value:"America/Knox_IN",name:"Knox IN"},{value:"America/La_Paz",name:"La Paz"},{value:"America/Lima",name:"Lima"},{value:"America/Los_Angeles",name:"Los Angeles"},{value:"America/Louisville",name:"Louisville"},{value:"America/Maceio",name:"Maceio"},{value:"America/Managua",name:"Managua"},{value:"America/Manaus",name:"Manaus"},{value:"America/Marigot",name:"Marigot"},{value:"America/Martinique",name:"Martinique"},{value:"America/Matamoros",name:"Matamoros"},{value:"America/Mazatlan",name:"Mazatlan"},{value:"America/Mendoza",name:"Mendoza"},{value:"America/Menominee",name:"Menominee"},{value:"America/Merida",name:"Merida"},{value:"America/Mexico_City",name:"Mexico City"},{value:"America/Miquelon",name:"Miquelon"},{value:"America/Moncton",name:"Moncton"},{value:"America/Monterrey",name:"Monterrey"},{value:"America/Montevideo",name:"Montevideo"},{value:"America/Montreal",name:"Montreal"},{value:"America/Montserrat",name:"Montserrat"},{value:"America/Nassau",name:"Nassau"},{value:"America/New_York",name:"New York"},{value:"America/Nipigon",name:"Nipigon"},{value:"America/Nome",name:"Nome"},{value:"America/Noronha",name:"Noronha"},{value:"America/North_Dakota/Center",name:"North Dakota - Center"},{value:"America/North_Dakota/New_Salem",name:"North Dakota - New Salem"},{value:"America/Ojinaga",name:"Ojinaga"},{value:"America/Panama",name:"Panama"},{value:"America/Pangnirtung",name:"Pangnirtung"},{value:"America/Paramaribo",name:"Paramaribo"},{value:"America/Phoenix",name:"Phoenix"},{value:"America/Port-au-Prince",name:"Port-au-Prince"},{value:"America/Porto_Acre",name:"Porto Acre"},{value:"America/Port_of_Spain",name:"Port of Spain"},{value:"America/Porto_Velho",name:"Porto Velho"},{value:"America/Puerto_Rico",name:"Puerto Rico"},{value:"America/Rainy_River",name:"Rainy River"},{value:"America/Rankin_Inlet",name:"Rankin Inlet"},{value:"America/Recife",name:"Recife"},{value:"America/Regina",name:"Regina"},{value:"America/Resolute",name:"Resolute"},{value:"America/Rio_Branco",name:"Rio Branco"},{value:"America/Rosario",name:"Rosario"},{value:"America/Santa_Isabel",name:"Santa Isabel"},{value:"America/Santarem",name:"Santarem"},{value:"America/Santiago",name:"Santiago"},{value:"America/Santo_Domingo",name:"Santo Domingo"},{value:"America/Sao_Paulo",name:"Sao Paulo"},{value:"America/Scoresbysund",name:"Scoresbysund"},{value:"America/Shiprock",name:"Shiprock"},{value:"America/St_Barthelemy",name:"St Barthelemy"},{value:"America/St_Johns",name:"St Johns"},{value:"America/St_Kitts",name:"St Kitts"},{value:"America/St_Lucia",name:"St Lucia"},{value:"America/St_Thomas",name:"St Thomas"},{value:"America/St_Vincent",name:"St Vincent"},{value:"America/Swift_Current",name:"Swift Current"},{value:"America/Tegucigalpa",name:"Tegucigalpa"},{value:"America/Thule",name:"Thule"},{value:"America/Thunder_Bay",name:"Thunder Bay"},{value:"America/Tijuana",name:"Tijuana"},{value:"America/Toronto",name:"Toronto"},{value:"America/Tortola",name:"Tortola"},{value:"America/Vancouver",name:"Vancouver"},{value:"America/Virgin",name:"Virgin"},{value:"America/Whitehorse",name:"Whitehorse"},{value:"America/Winnipeg",name:"Winnipeg"},{value:"America/Yakutat",name:"Yakutat"},{value:"America/Yellowknife",name:"Yellowknife"}]},{group:"Europe",zones:[{value:"Europe/Amsterdam",name:"Amsterdam"},{value:"Europe/Andorra",name:"Andorra"},{value:"Europe/Athens",name:"Athens"},{value:"Europe/Belfast",name:"Belfast"},{value:"Europe/Belgrade",name:"Belgrade"},{value:"Europe/Berlin",name:"Berlin"},{value:"Europe/Bratislava",name:"Bratislava"},{value:"Europe/Brussels",name:"Brussels"},{value:"Europe/Bucharest",name:"Bucharest"},{value:"Europe/Budapest",name:"Budapest"},{value:"Europe/Chisinau",name:"Chisinau"},{value:"Europe/Copenhagen",name:"Copenhagen"},{value:"Europe/Dublin",name:"Dublin"},{value:"Europe/Gibraltar",name:"Gibraltar"},{value:"Europe/Guernsey",name:"Guernsey"},{value:"Europe/Helsinki",name:"Helsinki"},{value:"Europe/Isle_of_Man",name:"Isle of Man"},{value:"Europe/Istanbul",name:"Istanbul"},{value:"Europe/Jersey",name:"Jersey"},{value:"Europe/Kaliningrad",name:"Kaliningrad"},{value:"Europe/Kiev",name:"Kiev"},{value:"Europe/Lisbon",name:"Lisbon"},{value:"Europe/Ljubljana",name:"Ljubljana"},{value:"Europe/London",name:"London"},{value:"Europe/Luxembourg",name:"Luxembourg"},{value:"Europe/Madrid",name:"Madrid"},{value:"Europe/Malta",name:"Malta"},{value:"Europe/Mariehamn",name:"Mariehamn"},{value:"Europe/Minsk",name:"Minsk"},{value:"Europe/Monaco",name:"Monaco"},{value:"Europe/Moscow",name:"Moscow"},{value:"Europe/Nicosia",name:"Nicosia"},{value:"Europe/Oslo",name:"Oslo"},{value:"Europe/Paris",name:"Paris"},{value:"Europe/Podgorica",name:"Podgorica"},{value:"Europe/Prague",name:"Prague"},{value:"Europe/Riga",name:"Riga"},{value:"Europe/Rome",name:"Rome"},{value:"Europe/Samara",name:"Samara"},{value:"Europe/San_Marino",name:"San Marino"},{value:"Europe/Sarajevo",name:"Sarajevo"},{value:"Europe/Simferopol",name:"Simferopol"},{value:"Europe/Skopje",name:"Skopje"},{value:"Europe/Sofia",name:"Sofia"},{value:"Europe/Stockholm",name:"Stockholm"},{value:"Europe/Tallinn",name:"Tallinn"},{value:"Europe/Tirane",name:"Tirane"},{value:"Europe/Tiraspol",name:"Tiraspol"},{value:"Europe/Uzhgorod",name:"Uzhgorod"},{value:"Europe/Vaduz",name:"Vaduz"},{value:"Europe/Vatican",name:"Vatican"},{value:"Europe/Vienna",name:"Vienna"},{value:"Europe/Vilnius",name:"Vilnius"},{value:"Europe/Volgograd",name:"Volgograd"},{value:"Europe/Warsaw",name:"Warsaw"},{value:"Europe/Zagreb",name:"Zagreb"},{value:"Europe/Zaporozhye",name:"Zaporozhye"},{value:"Europe/Zurich",name:"Zurich"}]},{group:"Asia",zones:[{value:"Asia/Aden",name:"Aden"},{value:"Asia/Almaty",name:"Almaty"},{value:"Asia/Amman",name:"Amman"},{value:"Asia/Anadyr",name:"Anadyr"},{value:"Asia/Aqtau",name:"Aqtau"},{value:"Asia/Aqtobe",name:"Aqtobe"},{value:"Asia/Ashgabat",name:"Ashgabat"},{value:"Asia/Ashkhabad",name:"Ashkhabad"},{value:"Asia/Baghdad",name:"Baghdad"},{value:"Asia/Bahrain",name:"Bahrain"},{value:"Asia/Baku",name:"Baku"},{value:"Asia/Bangkok",name:"Bangkok"},{value:"Asia/Beirut",name:"Beirut"},{value:"Asia/Bishkek",name:"Bishkek"},{value:"Asia/Brunei",name:"Brunei"},{value:"Asia/Calcutta",name:"Calcutta"},{value:"Asia/Choibalsan",name:"Choibalsan"},{value:"Asia/Chongqing",name:"Chongqing"},{value:"Asia/Chungking",name:"Chungking"},{value:"Asia/Colombo",name:"Colombo"},{value:"Asia/Dacca",name:"Dacca"},{value:"Asia/Damascus",name:"Damascus"},{value:"Asia/Dhaka",name:"Dhaka"},{value:"Asia/Dili",name:"Dili"},{value:"Asia/Dubai",name:"Dubai"},{value:"Asia/Dushanbe",name:"Dushanbe"},{value:"Asia/Gaza",name:"Gaza"},{value:"Asia/Harbin",name:"Harbin"},{value:"Asia/Ho_Chi_Minh",name:"Ho Chi Minh"},{value:"Asia/Hong_Kong",name:"Hong Kong"},{value:"Asia/Hovd",name:"Hovd"},{value:"Asia/Irkutsk",name:"Irkutsk"},{value:"Asia/Istanbul",name:"Istanbul"},{value:"Asia/Jakarta",name:"Jakarta"},{value:"Asia/Jayapura",name:"Jayapura"},{value:"Asia/Jerusalem",name:"Jerusalem"},{value:"Asia/Kabul",name:"Kabul"},{value:"Asia/Kamchatka",name:"Kamchatka"},{value:"Asia/Karachi",name:"Karachi"},{value:"Asia/Kashgar",name:"Kashgar"},{value:"Asia/Kathmandu",name:"Kathmandu"},{value:"Asia/Katmandu",name:"Katmandu"},{value:"Asia/Kolkata",name:"Kolkata"},{value:"Asia/Krasnoyarsk",name:"Krasnoyarsk"},{value:"Asia/Kuala_Lumpur",name:"Kuala Lumpur"},{value:"Asia/Kuching",name:"Kuching"},{value:"Asia/Kuwait",name:"Kuwait"},{value:"Asia/Macao",name:"Macao"},{value:"Asia/Macau",name:"Macau"},{value:"Asia/Magadan",name:"Magadan"},{value:"Asia/Makassar",name:"Makassar"},{value:"Asia/Manila",name:"Manila"},{value:"Asia/Muscat",name:"Muscat"},{value:"Asia/Nicosia",name:"Nicosia"},{value:"Asia/Novokuznetsk",name:"Novokuznetsk"},{value:"Asia/Novosibirsk",name:"Novosibirsk"},{value:"Asia/Omsk",name:"Omsk"},{value:"Asia/Oral",name:"Oral"},{value:"Asia/Phnom_Penh",name:"Phnom Penh"},{value:"Asia/Pontianak",name:"Pontianak"},{value:"Asia/Pyongyang",name:"Pyongyang"},{value:"Asia/Qatar",name:"Qatar"},{value:"Asia/Qyzylorda",name:"Qyzylorda"},{value:"Asia/Rangoon",name:"Rangoon"},{value:"Asia/Riyadh",name:"Riyadh"},{value:"Asia/Saigon",name:"Saigon"},{value:"Asia/Sakhalin",name:"Sakhalin"},{value:"Asia/Samarkand",name:"Samarkand"},{value:"Asia/Seoul",name:"Seoul"},{value:"Asia/Shanghai",name:"Shanghai"},{value:"Asia/Singapore",name:"Singapore"},{value:"Asia/Taipei",name:"Taipei"},{value:"Asia/Tashkent",name:"Tashkent"},{value:"Asia/Tbilisi",name:"Tbilisi"},{value:"Asia/Tehran",name:"Tehran"},{value:"Asia/Tel_Aviv",name:"Tel Aviv"},{value:"Asia/Thimbu",name:"Thimbu"},{value:"Asia/Thimphu",name:"Thimphu"},{value:"Asia/Tokyo",name:"Tokyo"},{value:"Asia/Ujung_Pandang",name:"Ujung Pandang"},{value:"Asia/Ulaanbaatar",name:"Ulaanbaatar"},{value:"Asia/Ulan_Bator",name:"Ulan Bator"},{value:"Asia/Urumqi",name:"Urumqi"},{value:"Asia/Vientiane",name:"Vientiane"},{value:"Asia/Vladivostok",name:"Vladivostok"},{value:"Asia/Yakutsk",name:"Yakutsk"},{value:"Asia/Yekaterinburg",name:"Yekaterinburg"},{value:"Asia/Yerevan",name:"Yerevan"}]},{group:"Africa",zones:[{value:"Africa/Abidjan",name:"Abidjan"},{value:"Africa/Accra",name:"Accra"},{value:"Africa/Addis_Ababa",name:"Addis Ababa"},{value:"Africa/Algiers",name:"Algiers"},{value:"Africa/Asmara",name:"Asmara"},{value:"Africa/Asmera",name:"Asmera"},{value:"Africa/Bamako",name:"Bamako"},{value:"Africa/Bangui",name:"Bangui"},{value:"Africa/Banjul",name:"Banjul"},{value:"Africa/Bissau",name:"Bissau"},{value:"Africa/Blantyre",name:"Blantyre"},{value:"Africa/Brazzaville",name:"Brazzaville"},{value:"Africa/Bujumbura",name:"Bujumbura"},{value:"Africa/Cairo",name:"Cairo"},{value:"Africa/Casablanca",name:"Casablanca"},{value:"Africa/Ceuta",name:"Ceuta"},{value:"Africa/Conakry",name:"Conakry"},{value:"Africa/Dakar",name:"Dakar"},{value:"Africa/Dar_es_Salaam",name:"Dar es Salaam"},{value:"Africa/Djibouti",name:"Djibouti"},{value:"Africa/Douala",name:"Douala"},{value:"Africa/El_Aaiun",name:"El Aaiun"},{value:"Africa/Freetown",name:"Freetown"},{value:"Africa/Gaborone",name:"Gaborone"},{value:"Africa/Harare",name:"Harare"},{value:"Africa/Johannesburg",name:"Johannesburg"},{value:"Africa/Kampala",name:"Kampala"},{value:"Africa/Khartoum",name:"Khartoum"},{value:"Africa/Kigali",name:"Kigali"},{value:"Africa/Kinshasa",name:"Kinshasa"},{value:"Africa/Lagos",name:"Lagos"},{value:"Africa/Libreville",name:"Libreville"},{value:"Africa/Lome",name:"Lome"},{value:"Africa/Luanda",name:"Luanda"},{value:"Africa/Lubumbashi",name:"Lubumbashi"},{value:"Africa/Lusaka",name:"Lusaka"},{value:"Africa/Malabo",name:"Malabo"},{value:"Africa/Maputo",name:"Maputo"},{value:"Africa/Maseru",name:"Maseru"},{value:"Africa/Mbabane",name:"Mbabane"},{value:"Africa/Mogadishu",name:"Mogadishu"},{value:"Africa/Monrovia",name:"Monrovia"},{value:"Africa/Nairobi",name:"Nairobi"},{value:"Africa/Ndjamena",name:"Ndjamena"},{value:"Africa/Niamey",name:"Niamey"},{value:"Africa/Nouakchott",name:"Nouakchott"},{value:"Africa/Ouagadougou",name:"Ouagadougou"},{value:"Africa/Porto-Novo",name:"Porto-Novo"},{value:"Africa/Sao_Tome",name:"Sao Tome"},{value:"Africa/Timbuktu",name:"Timbuktu"},{value:"Africa/Tripoli",name:"Tripoli"},{value:"Africa/Tunis",name:"Tunis"},{value:"Africa/Windhoek",name:"Windhoek"}]},{group:"Australia",zones:[{value:"Australia/ACT",name:"ACT"},{value:"Australia/Adelaide",name:"Adelaide"},{value:"Australia/Brisbane",name:"Brisbane"},{value:"Australia/Broken_Hill",name:"Broken Hill"},{value:"Australia/Canberra",name:"Canberra"},{value:"Australia/Currie",name:"Currie"},{value:"Australia/Darwin",name:"Darwin"},{value:"Australia/Eucla",name:"Eucla"},{value:"Australia/Hobart",name:"Hobart"},{value:"Australia/LHI",name:"LHI"},{value:"Australia/Lindeman",name:"Lindeman"},{value:"Australia/Lord_Howe",name:"Lord Howe"},{value:"Australia/Melbourne",name:"Melbourne"},{value:"Australia/North",name:"North"},{value:"Australia/NSW",name:"NSW"},{value:"Australia/Perth",name:"Perth"},{value:"Australia/Queensland",name:"Queensland"},{value:"Australia/South",name:"South"},{value:"Australia/Sydney",name:"Sydney"},{value:"Australia/Tasmania",name:"Tasmania"},{value:"Australia/Victoria",name:"Victoria"},{value:"Australia/West",name:"West"},{value:"Australia/Yancowinna",name:"Yancowinna"}]},{group:"Indian",zones:[{value:"Indian/Antananarivo",name:"Antananarivo"},{value:"Indian/Chagos",name:"Chagos"},{value:"Indian/Christmas",name:"Christmas"},{value:"Indian/Cocos",name:"Cocos"},{value:"Indian/Comoro",name:"Comoro"},{value:"Indian/Kerguelen",name:"Kerguelen"},{value:"Indian/Mahe",name:"Mahe"},{value:"Indian/Maldives",name:"Maldives"},{value:"Indian/Mauritius",name:"Mauritius"},{value:"Indian/Mayotte",name:"Mayotte"},{value:"Indian/Reunion",name:"Reunion"}]},{group:"Atlantic",zones:[{value:"Atlantic/Azores",name:"Azores"},{value:"Atlantic/Bermuda",name:"Bermuda"},{value:"Atlantic/Canary",name:"Canary"},{value:"Atlantic/Cape_Verde",name:"Cape Verde"},{value:"Atlantic/Faeroe",name:"Faeroe"},{value:"Atlantic/Faroe",name:"Faroe"},{value:"Atlantic/Jan_Mayen",name:"Jan Mayen"},{value:"Atlantic/Madeira",name:"Madeira"},{value:"Atlantic/Reykjavik",name:"Reykjavik"},{value:"Atlantic/South_Georgia",name:"South Georgia"},{value:"Atlantic/Stanley",name:"Stanley"},{value:"Atlantic/St_Helena",name:"St Helena"}]},{group:"Pacific",zones:[{value:"Pacific/Apia",name:"Apia"},{value:"Pacific/Auckland",name:"Auckland"},{value:"Pacific/Chatham",name:"Chatham"},{value:"Pacific/Easter",name:"Easter"},{value:"Pacific/Efate",name:"Efate"},{value:"Pacific/Enderbury",name:"Enderbury"},{value:"Pacific/Fakaofo",name:"Fakaofo"},{value:"Pacific/Fiji",name:"Fiji"},{value:"Pacific/Funafuti",name:"Funafuti"},{value:"Pacific/Galapagos",name:"Galapagos"},{value:"Pacific/Gambier",name:"Gambier"},{value:"Pacific/Guadalcanal",name:"Guadalcanal"},{value:"Pacific/Guam",name:"Guam"},{value:"Pacific/Honolulu",name:"Honolulu"},{value:"Pacific/Johnston",name:"Johnston"},{value:"Pacific/Kiritimati",name:"Kiritimati"},{value:"Pacific/Kosrae",name:"Kosrae"},{value:"Pacific/Kwajalein",name:"Kwajalein"},{value:"Pacific/Majuro",name:"Majuro"},{value:"Pacific/Marquesas",name:"Marquesas"},{value:"Pacific/Midway",name:"Midway"},{value:"Pacific/Nauru",name:"Nauru"},{value:"Pacific/Niue",name:"Niue"},{value:"Pacific/Norfolk",name:"Norfolk"},{value:"Pacific/Noumea",name:"Noumea"},{value:"Pacific/Pago_Pago",name:"Pago Pago"},{value:"Pacific/Palau",name:"Palau"},{value:"Pacific/Pitcairn",name:"Pitcairn"},{value:"Pacific/Ponape",name:"Ponape"},{value:"Pacific/Port_Moresby",name:"Port Moresby"},{value:"Pacific/Rarotonga",name:"Rarotonga"},{value:"Pacific/Saipan",name:"Saipan"},{value:"Pacific/Samoa",name:"Samoa"},{value:"Pacific/Tahiti",name:"Tahiti"},{value:"Pacific/Tarawa",name:"Tarawa"},{value:"Pacific/Tongatapu",name:"Tongatapu"},{value:"Pacific/Truk",name:"Truk"},{value:"Pacific/Wake",name:"Wake"},{value:"Pacific/Wallis",name:"Wallis"},{value:"Pacific/Yap",name:"Yap"}]},{group:"Antarctica",zones:[{value:"Antarctica/Casey",name:"Casey"},{value:"Antarctica/Davis",name:"Davis"},{value:"Antarctica/DumontDUrville",name:"DumontDUrville"},{value:"Antarctica/Macquarie",name:"Macquarie"},{value:"Antarctica/Mawson",name:"Mawson"},{value:"Antarctica/McMurdo",name:"McMurdo"},{value:"Antarctica/Palmer",name:"Palmer"},{value:"Antarctica/Rothera",name:"Rothera"},{value:"Antarctica/South_Pole",name:"South Pole"},{value:"Antarctica/Syowa",name:"Syowa"},{value:"Antarctica/Vostok",name:"Vostok"}]},{group:"Arctic",zones:[{value:"Arctic/Longyearbyen",name:"Longyearbyen"}]},{group:"UTC",zones:[{value:"UTC",name:"UTC"}]},{group:"Manual Offsets",zones:[{value:"UTC-12",name:"UTC-12"},{value:"UTC-11",name:"UTC-11"},{value:"UTC-10",name:"UTC-10"},{value:"UTC-9",name:"UTC-9"},{value:"UTC-8",name:"UTC-8"},{value:"UTC-7",name:"UTC-7"},{value:"UTC-6",name:"UTC-6"},{value:"UTC-5",name:"UTC-5"},{value:"UTC-4",name:"UTC-4"},{value:"UTC-3",name:"UTC-3"},{value:"UTC-2",name:"UTC-2"},{value:"UTC-1",name:"UTC-1"},{value:"UTC+0",name:"UTC+0"},{value:"UTC+1",name:"UTC+1"},{value:"UTC+2",name:"UTC+2"},{value:"UTC+3",name:"UTC+3"},{value:"UTC+4",name:"UTC+4"},{value:"UTC+5",name:"UTC+5"},{value:"UTC+6",name:"UTC+6"},{value:"UTC+7",name:"UTC+7"},{value:"UTC+8",name:"UTC+8"},{value:"UTC+9",name:"UTC+9"},{value:"UTC+10",name:"UTC+10"},{value:"UTC+11",name:"UTC+11"},{value:"UTC+12",name:"UTC+12"},{value:"UTC+13",name:"UTC+13"},{value:"UTC+14",name:"UTC+14"}]}]}}}),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.motiondialer",{url:"/motiondialer",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:16}}})}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessListCtrl",["$scope","$uibModal","$translate","xAlert","Modal","MotionDialerProcess","uiGridConstants","usSpinnerService",function(t,e,n,a,s,i,l,o){t.initView=function(){return t.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!0,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,columnDefs:[{name:"id",width:60},{name:"name"},{name:"queue",enableSorting:!1},{name:"extension",enableSorting:!1},{name:"list_name",cellClass:"ui-grid-vcenter",cellTemplate:"<div>{{row.entity.list ? row.entity.list.name : row.entity.list_name}}</div>",headerCellFilter:"translate",enableSorting:!1},{name:"status",cellTemplate:"<div><a class=\"btn btn-xs\" data-ng-class=\"row.entity.status == 'STOP' ? 'red-sunglo' : 'green-meadow'\" data-ng-href=\"#\">{{ (row.entity.status === 'RUN') ? 'RUNNING' : 'STOPPED'}}</a></div>",cellClass:"ui-grid-vcenter",filter:{type:l.filter.SELECT,selectOptions:[{value:"RUN",label:"RUNNING"},{value:"STOP",label:"STOPPED"}]}},{name:"updatedtime",sort:{direction:l.DESC},enableFiltering:!1},{name:"action",cellTemplate:'<div><a class="btn btn-xs blue-hoki" href="/motiondialer/processes/view/{{row.entity.id}}/overview"><i class="icon-settings"></i></a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteItem(row.entity.name, row.entity.id)"><i class="icon-trash"></i></a></div>',enableSorting:!1,cellClass:"ui-grid-vcenter",enableFiltering:!1}]},i.list({page:1,size:6e5}).$promise.then(function(e){e.status>0?t.gridOptions.data=e.response.RMI.rows:a.show("Please, check your connection!","danger")}).catch(function(t){a.error(t)}).finally(function(){o.stop("spinner-grid")})},t.createProcessQueue=function(){e.open({animation:!0,templateUrl:"app/motiondialer/process/list/list.create.queue.modal.html",controller:"MotionDialerProcessListCreateQueueCtrl"}).result.then(function(e){t.gridOptions.data.push(e.response.RMI)})},t.createProcessSquare=function(){e.open({animation:!0,templateUrl:"app/motiondialer/process/list/list.create.square.modal.html",controller:"MotionDialerProcessListCreateSquareCtrl"}).result.then(function(e){t.gridOptions.data.push(e.response.RMI)})},t.deleteItem=s.confirm.delete(function(e){return i.delete({id:e}).$promise.then(function(s){s.status>0?(_.remove(t.gridOptions.data,{id:e}),a.show(n.instant("MESSAGE_WELL_DONE"),"success")):a.show(s.message||"Please, check your connection!","danger")}).catch(function(t){a.error(t)})})}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessListCreateQueueCtrl",["$scope","$translate","$uibModalInstance","MotionDialerProcess","MotionDialerList","Trunk","VoiceQueue","Route","xAlert","List",function(t,e,n,a,s,i,l,o,r,c){t.form={},t.item={fetch_sort:"ASC",timeout:3},t.initModal=function(){var e;return l.get().$promise.then(function(e){return t.queues={},e&&(t.queues=e.rows),i.get().$promise}).then(function(e){return t.trunks={},e&&(t.trunks=e.rows),t.trunks.push({name:"fake"}),c.get().$promise}).then(function(t){if(t&&t.rows.length)return e=t.rows,console.log(e),s.list({page:1,size:6e5}).$promise}).then(function(n){if(t.lists=[],n&&n.status>0){console.log(n.response.RMI.rows);var a;_.forEach(e,function(e){(a=_.find(n.response.RMI.rows,{name:e.name}))&&t.lists.push(a)})}else r.show("Please, check your connection!","danger")}).catch(function(t){r.error(t)})},t.save=function(){var s="_process_"+t.item.name+Math.round(1e5*Math.random()),i="Generated by Motion Dialer, Process Queue"+(t.item.description?", "+t.item.description:"");return o.save({appdata:"Internal Call (MotionDialer)",context:"from-sip",exten:s.replace(/\s/g,"_"),type:"internal",description:i,Applications:[{appdata:["CDR(type)=tigerdial"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["QUEUE_PRIO=99"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["CALLERID(name)=${AUTODIAL_NAME}"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["CALLERID(num)=${AUTODIAL_PHONE}"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:[t.item.queue.name,"","","",t.item.timeout],app:"Queue",interval:"*,*,*,*",type:"internal"}]}).$promise.then(function(e){return a.insert({name:t.item.name,id_list:t.item.list.id,queue:t.item.queue.name,device:t.item.device.name,context:"from-sip",extension:s.replace(/\s/g,"_"),description:t.item.description,auto_closed:!0,fetch_sort:t.item.fetch_sort,context_for_other_calls:"from-sip",extension_for_other_calls:"_TIGER-DIAL-PEER-DO-NOT-DELETE",hooks:[{target:"http://localhost:9000/api/report/integrations/tdDisposal",type:"http",http_method:"POST",json:"true",event:"hangup"}]}).$promise}).then(function(a){a.status>0?(r.show(e.instant("MESSAGE_WELL_DONE"),"success"),a.response.RMI.list=t.item.list,n.close(a)):r.show(a.message||"Please, check your connection!","danger")}).catch(function(t){r.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessListCreateSquareCtrl",["$scope","$translate","$uibModalInstance","MotionDialerProcess","MotionDialerList","SquareProject","Trunk","Route","xAlert","List",function(t,e,n,a,s,i,l,o,r,c){t.form={},t.item={fetch_sort:"ASC"},t.initModal=function(){var e;return i.get().$promise.then(function(e){return t.projects={},e&&(t.projects=e.rows),l.get().$promise}).then(function(e){return t.trunks={},e&&(t.trunks=e.rows),t.trunks.push({name:"fake"}),c.get().$promise}).then(function(t){if(t&&t.rows.length)return e=t.rows,s.list({page:1,size:6e5}).$promise}).then(function(n){if(t.lists=[],n&&n.status>0){var a;_.forEach(e,function(e){(a=_.find(n.response.RMI.rows,{name:e.name}))&&t.lists.push(a)})}else r.show("Please, check your connection!","danger")}).catch(function(t){r.error(t)})},t.save=function(){var s="_process_"+t.item.name+Math.round(1e5*Math.random()),i="Generated by Motion Dialer, Process Square"+(t.item.description?", "+t.item.description:"");return o.save({appdata:"Internal Call (MotionDialer)",context:"from-sip",exten:s.replace(/\s/g,"_"),type:"internal",description:i,Applications:[{appdata:["CDR(type)=tigerdial"],app:"Set",interval:"*,*,*,*",type:"internal"},{appdata:["agi://127.0.0.1/square",t.item.project.name],app:"AGI",interval:"*,*,*,*",type:"internal"}]}).$promise.then(function(e){return a.insert({name:t.item.name,id_list:t.item.list.id,queue:"none",device:t.item.device.name,context:"from-sip",extension:s.replace(/\s/g,"_"),description:t.item.description,auto_closed:!0,channel_limit:15,fetch_sort:t.item.fetch_sort}).$promise}).then(function(a){a.status>0?(r.show(e.instant("MESSAGE_WELL_DONE"),"success"),a.response.RMI.list=t.item.list,n.close(a)):r.show(a.message||"Please, check your connection!","danger")}).catch(function(t){r.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.motiondialer.processes.list",{url:"/list",templateUrl:"app/motiondialer/process/list/list.html",controller:"MotionDialerProcessListCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").factory("MotionDialerProcess",["$resource",function(t){return t("/api/rest/process/:controller",null,{list:{method:"POST",params:{controller:"list"}},insert:{method:"POST",params:{controller:"insert"}},delete:{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},update:{method:"POST",params:{controller:"update"}},logs:{method:"GET",params:{controller:"logs"}}})}]),angular.module("xCallyShuttleApp").factory("MotionDialerSpooler",["$resource",function(t){return t("/api/rest/spooler/:controller/:retrieve/:peer",null,{list:{method:"POST",params:{controller:"list"}},delete:{method:"POST",params:{controller:"delete"}},find:{method:"POST",params:{controller:"find"}},summary:{method:"POST",params:{controller:"summary"}},close:{method:"POST",params:{controller:"retrieve",retrieve:"close"}},open:{method:"POST",params:{controller:"retrieve",retrieve:"open"}},blacklist:{method:"POST",params:{controller:"retrieve",retrieve:"blacklist"}},planning:{method:"POST",params:{controller:"retrieve",retrieve:"planning"}},planningpeer:{method:"POST",params:{controller:"retrieve",retrieve:"planning",peer:"peer"}},fresh:{method:"POST",params:{controller:"fresh"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.motiondialer.processes",{url:"/processes",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("MotionDialerProcessViewCtrl",["$scope","$translate","$stateParams","$uibModal","$state","xAlert","uiGridConstants","usSpinnerService","MotionDialerProcess","MotionDialerSpooler","Modal","VoiceQueue",function(t,e,n,a,s,i,l,o,r,c,d,u){function p(){return c.fresh({id_process:parseInt(n.id)}).$promise.then(function(e){e.status>0?(t.process.runtime||(t.process.runtime={}),t.process.runtime.fresh=e.response.RMI.value):i.show(e.message||"Please, check your connection!","danger")}).catch(function(t){i.error(t)})}t.process={},t.techs=["SIP","IAX","LOCAL","KHOMP"],t.dialFormats=["tech/device/number","tech/number@device"],t.checkDuplicates=["ALWAYS","IFOPEN","NO"],t.codecs=["g729","ilbc","gsm","ulaw","alaw"],t._=_,t.getProcess=function(){return r.find({id:parseInt(n.id)}).$promise.then(function(e){e.status>0?(e.response.RMI.codecs=e.response.RMI.codecs.split(","),t.process=e.response.RMI,t.process.hooks&&t.process.hooks.length?t.process.disposal=!0:t.process.disposal=!1,p()):i.show(e.message||"Please, check your connection!","danger")}).catch(function(t){i.error(t)})},t.getSummary=function(){return c.summary({id_process:parseInt(n.id)}).$promise.then(function(e){if(e.status>0){t.summary=e.response.RMI.totals,t.total=0;for(var n=0;n<t.summary.length;n++)t.total+=t.summary[n][1]}else i.show(e.message||"Please, check your connection!","danger")}).catch(function(t){i.error(t)}).finally(function(){o.stop("spinner-grid")})},t.updateProcess=function(){var n=_.clone(t.process);return delete n.updatedtime,delete n.id_list,delete n.createdtime,delete n.runtime,delete n.fetch_sort,delete n.list,n.codecs=n.codecs.join(","),""===n.timezone&&delete n.timezone,n.disposal?n.hooks=[{target:"http://localhost:9000/api/report/integrations/tdDisposal",type:"http",http_method:"POST",json:"true",event:"hangup"}]:n.hooks=[],delete n.disposal,r.update(n).$promise.then(function(n){n.status>0?(n.response.RMI.codecs=n.response.RMI.codecs.split(","),t.process=n.response.RMI,t.process.hooks&&t.process.hooks.length?t.process.disposal=!0:t.process.disposal=!1,i.show(e.instant("MESSAGE_WELL_DONE"),"success")):n.response.RMI.errors.forEach(function(t){t?i.show(t.field+": "+t.error,"danger"):i.show("Please, check your connection!","danger")})}).catch(function(t){i.error(t)})},t.getSpooler=function(){return o.spin("spinner-grid"),t.gridOptions||(t.gridOptions={paginationPageSizes:[10,25,50,75],paginationPageSize:10,enableFiltering:!0,enableSorting:!0,enableGridMenu:!0,flatEntityAccess:!0,showGridFooter:!0,fastWatch:!0,headerCellFilter:"translate",columnDefs:[{name:"name"},{name:"phones",cellTemplate:"<div>{{row.entity.phones.join(',')}}</div>",cellClass:"ui-grid-vcenter"},{name:"retrieve",displayName:"APPLICATION_STATUS",headerCellFilter:"translate",filter:{type:l.filter.SELECT,selectOptions:[{value:"PLANNED_PEER",label:"PLANNED PEER"},{value:"PLANNED",label:"PLANNED"},{value:"BLACK_LIST",label:"BLACKLIST"},{value:"OPEN",label:"OPEN"},{value:"CLOSED",label:"CLOSED"},{value:"MAX_ATTEMPTS",label:"MAX ATTEMPTS"},{value:"COUNTER_BLOCK",label:"COUNTER BLOCK"},{value:"PLANNED_REQUEST",label:"PLANNED REQUEST"},{value:"DELETE",label:"DELETE"}]}},{name:"counter",cellTemplate:"<div>{{grid.appScope.getCounter(row.entity)}}</div>",cellClass:"ui-grid-vcenter",enableFiltering:!1},{name:"planningtime",cellTemplate:"<div><span data-ng-if=\"row.entity.retrieve === 'PLANNED_PEER' || row.entity.retrieve === 'PLANNED'\">{{row.entity.planningtime | date:'yyyy-MM-dd HH:mm'}}</span></div>",cellClass:"ui-grid-vcenter",enableFiltering:!1},{name:"planningpeer",cellTemplate:"<div><span data-ng-if=\"row.entity.retrieve === 'PLANNED_PEER'\">{{row.entity.planningpeer}}</span></div>",cellClass:"ui-grid-vcenter",enableFiltering:!1},{name:"action",cellTemplate:'<div><a class="btn btn-xs green" data-ng-click="grid.appScope.historySpooler(row.entity.history)"><i class="icon-info"></i></a> <a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.editSpooler(row.entity)"><i class="icon-settings"></i></a></div>',enableSorting:!1,cellClass:"ui-grid-vcenter",enableFiltering:!1}]}),c.list({id_process:parseInt(n.id),page:1,size:6e5}).$promise.then(function(e){e.status>0?t.gridOptions.data=e.response.RMI.rows:i.show(e.message||"Please, check your connection!","danger")}).catch(function(t){i.error(t)}).finally(function(){o.stop("spinner-grid")})},t.deleteSpooler=d.confirm.delete(function(n){return c.delete({id:n}).$promise.then(function(a){a.status>0?(_.remove(t.gridOptions.data,{id:n}),i.show(e.instant("MESSAGE_WELL_DONE"),"success")):i.show(a.message||"Please, check your connection!","danger")}).catch(function(t){i.error(t)})}),t.historySpooler=function(e){a.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.spooler.history.modal.html",controller:"MotionDialerViewSpoolerHistoryCtrl",resolve:{historySpooler:function(){return e}}}).result.then(function(e){t.gridOptions.data.push(e.response.RMI)})},t.editSpooler=function(t){a.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.spooler.edit.modal.html",controller:"MotionDialerViewSpoolerEditCtrl",resolve:{entitySpooler:function(){return _.clone(t)}}}).result.then(function(e){_.merge(t,e)})},t.initSettings=function(){return t.queues=null,u.get().$promise.then(function(e){e&&(t.queues=e.rows)}).catch(function(t){i.error(t)})},t.createInterval=function(e){a.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.create.interval.modal.html",controller:"MotionDialerViewCreateIntervalCtrl",resolve:{objectProcess:function(){return t.process},intervalType:function(){return e},intervalValue:function(){return null},intervalIndex:function(){return null}}}).result.then(function(e){t.process=e})},t.editInterval=function(e,n,s){a.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.create.interval.modal.html",controller:"MotionDialerViewCreateIntervalCtrl",resolve:{objectProcess:function(){return t.process},intervalType:function(){return e},intervalValue:function(){return n},intervalIndex:function(){return s}}}).result.then(function(e){t.process=e})},t.deleteInterval=d.confirm.delete(function(n,a){var s={id:t.process.id};return a?(s.intervals=[],s.intervals=s.intervals.concat(t.process.intervals),s.intervals.splice(n,1)):(s.not_intervals=[],s.not_intervals=s.not_intervals.concat(t.process.not_intervals),s.not_intervals.splice(n,1)),r.update(s).$promise.then(function(n){n.status>0?(n.response.RMI.codecs=n.response.RMI.codecs.split(","),t.process=n.response.RMI,i.show(e.instant("MESSAGE_WELL_DONE"),"success")):n.response.RMI.errors.forEach(function(t){t?i.show(t.field+": "+t.error,"danger"):i.show("Please, check your connection!","danger")})}).catch(function(t){i.error(t)})}),t.runOrStop=function(){a.open({animation:!0,templateUrl:"app/motiondialer/process/view/view.run.process.modal.html",controller:"MotionDialerViewRunProcessCtrl",resolve:{statusProcess:function(){return t.process.status}}}).result.then(function(e){t.process.status=e.status})},t.goToContacts=function(t){t&&s.go("main.contactmanager.contacts.list",{listId:t})},t.getCounter=function(t){return t.counter+t.counter_amd+t.counter_busy+t.counter_congestion+t.counter_drop+t.counter_failed+t.counter_noanswer+t.counter_nosuchextension+t.counter_ringtimeout}}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewCreateIntervalCtrl",["$scope","$translate","$uibModalInstance","$stateParams","MotionDialerProcess","xAlert","objectProcess","intervalType","intervalValue","intervalIndex","interval",function(t,e,n,a,s,i,l,o,r,c,d){function u(t){var e,n,a,s;return e=t.t_from&&t.t_to&&!t.alwaysTime?moment(t.t_from).format("HH:mm")+"-"+moment(t.t_to).format("HH:mm"):"*",t.wd_from&&"always"!==t.wd_from?(n=t.wd_from.toUpperCase(),t.wd_to&&"always"!==t.wd_to&&(n+="-"+t.wd_to.toUpperCase())):n="*",t.md_from&&"always"!==t.md_from?(a=t.md_from,t.md_to&&"always"!==t.md_to&&(a+="-"+t.md_to)):a="*",t.m_from&&"always"!==t.m_from?(s=t.m_from,t.m_to&&"always"!==t.m_to&&(s+="-"+t.m_to)):s="*",e+"|"+n+"|"+a+"|"+s}t.isNew=!1,t.form={},t.$interval=d.interval,r||(r=o?"8:00-20:00|MON-FRI|*|*":"00:01-07:59|SAT-SUN|*|*",t.isNew=!0),t.splittedInterval=function(t){var e,n={};return t.split("|").forEach(function(t,a){switch(a){case 0:"*"!==t?(e=t.split("-"),n.t_from=moment(e[0],"HH:mm"),n.t_to=moment(e[1],"HH:mm"),n.alwaysTime=!1):(n.t_from=moment(new Date),n.t_to=moment(new Date),n.alwaysTime=!0);break;case 1:"*"!==t?(e=t.split("-"),n.wd_from=e[0].toLowerCase(),n.wd_to=e[1]?e[1].toLowerCase():"always"):(n.wd_from="always",n.wd_to="always");break;case 2:"*"!==t?(e=t.split("-"),n.md_from=e[0],n.md_to=e[1]?e[1]:"always"):(n.md_from="always",n.md_to="always");break;case 3:"*"!==t?(e=t.split("-"),n.m_from=e[0],n.m_to=e[1]?e[1]:"always"):(n.m_from="always",n.m_to="always")}}),n}(r),t.save=function(){var a=u(t.splittedInterval);console.log(a);var r={id:l.id};return o?(r.intervals=[],r.intervals=r.intervals.concat(l.intervals),t.isNew?r.intervals.push(a):r.intervals[c]=a):(r.not_intervals=[],r.not_intervals=r.not_intervals.concat(l.not_intervals),t.isNew?r.not_intervals.push(a):r.not_intervals[c]=a),console.log(r),s.update(r).$promise.then(function(t){t.status>0?(t.response.RMI.codecs=t.response.RMI.codecs.split(","),i.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t.response.RMI)):t.response.RMI.errors.forEach(function(t){t?i.show(t.field+": "+t.error,"danger"):i.show("Please, check your connection!","danger")})}).catch(function(t){i.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.motiondialer.processes.view",{url:"/view/:id",templateUrl:"app/motiondialer/process/view/view.html",controller:"MotionDialerProcessViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.motiondialer.processes.view.overview",{url:"/overview",templateUrl:"app/motiondialer/process/view/view.overview.html"}).state("main.motiondialer.processes.view.settings",{url:"/settings",templateUrl:"app/motiondialer/process/view/view.settings.html"}).state("main.motiondialer.processes.view.intervals",{url:"/intervals",templateUrl:"app/motiondialer/process/view/view.intervals.html"}).state("main.motiondialer.processes.view.spooler",{url:"/spooler",templateUrl:"app/motiondialer/process/view/view.spooler.html"})}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewRunProcessCtrl",["$scope","$stateParams","$uibModalInstance","$translate","statusProcess","MotionDialerProcess","xAlert",function(t,e,n,a,s,i,l){t.status="RUN"===s?"STOP":"RUN",t.yes=function(){i.update({id:parseInt(e.id),status:t.status}).$promise.then(function(t){t.status>0?(l.show(a.instant("MESSAGE_WELL_DONE"),"success"),n.close(t.response.RMI)):l.show(t.message||"Please, check your connection!","danger")}).catch(function(t){l.error(t)})},t.no=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewSpoolerEditCtrl",["$scope","$translate","$uibModalInstance","$stateParams","MotionDialerSpooler","xAlert","entitySpooler","Agent",function(t,e,n,a,s,i,l,o){t.moment=moment,t.entitySpooler=l,_.includes(["PLANNED","PLANNED_PEER"],t.entitySpooler.retrieve)||(t.entitySpooler.planningtime=moment()),t.initModal=function(){return o.get().$promise.then(function(e){t.agents=[],e&&e.rows.forEach(function(e){t.agents.push("SIP/"+e.name)})}).catch(function(t){i.error(t)})},t.save=function(){var a;switch(t.entitySpooler.retrieve){case"CLOSED":a=s.close({id:parseInt(t.entitySpooler.id)});break;case"OPEN":a=s.open({id:parseInt(t.entitySpooler.id)});break;case"BLACK_LIST":a=s.blacklist({id:parseInt(t.entitySpooler.id)});break;case"PLANNED":a=s.planning({id:parseInt(t.entitySpooler.id),date:moment(t.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm")});break;case"PLANNED_PEER":a=s.planningpeer({id:parseInt(t.entitySpooler.id),date:moment(t.entitySpooler.planningtime).format("YYYY-MM-DD HH:mm"),peer:t.entitySpooler.planningpeer})}a?a.$promise.then(function(a){console.log(a),a.status>0?(i.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t.entitySpooler)):a.response.RMI.errors.forEach(function(t){t?i.show(t.field+": "+t.error,"danger"):i.show("Please, check your connection!","danger")})}).catch(function(t){i.error(t)}):i.show("RETRIEVE NOT FOUND","danger")},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").controller("MotionDialerViewSpoolerHistoryCtrl",["$scope","$translate","$uibModalInstance","$stateParams","MotionDialerSpooler","xAlert","historySpooler",function(t,e,n,a,s,i,l){t.historySpooler=l,t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").factory("ReportMotionDialer",["$resource",function(t){return t("/api/report/motiondialer/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("ResetCtrl",["$scope","Auth","$location","$window","$rootScope","Setting","xAlert","$stateParams","$state",function(t,e,n,a,s,i,l,o,r){t.userReset={},t.getInfo=function(){return i.get({controller:"info"}).$promise.then(function(e){return t.info=e,i.get({id:1}).$promise}).then(function(e){t.setting=e}).catch(function(t){console.error(t)})},s.bodyLayout="login",t.$on("$viewContentLoaded",function(){Metronic.init(),Layout.init()}),t.reset=function(){e.reset({token:o.token,password:t.userReset.password}).then(function(){r.go("login",{reset:!0})}).catch(function(t){l.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("reset",{url:"/reset/:token",templateUrl:"app/reset/reset.html",controller:"ResetCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/login.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SalesforceListCtrl",["$scope","SalesforceAccount","gridOptions","xAlert","$translate",function(t,e,n,a,s){t.initView=function(){var a={exporterCsvFilename:"salesforce_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",buttons:[{class:"blue-hoki",href:"/salesforce/view/{{row.entity.id}}/account",name:"profile"},{class:"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.checkAccount=function(t){return e.check({id:t}).$promise.then(function(){a.show(s.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")}).catch(function(){a.show(s.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.salesforce.list",{url:"/list",templateUrl:"app/salesforce/list/list.html",controller:"SalesforceListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("SalesforceAccount",["$resource",function(t){return t("/api/salesforce/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}}})}]).factory("SalesforceConfiguration",["$resource",function(t){return t("/api/salesforce/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("SalesforceField",["$resource",function(t){return t("/api/salesforce/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.salesforce",{url:"/salesforce",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.salesforce.view.configurations",{url:"/configurations",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","SalesforceConfiguration","$uibModal",function(t,e,n,a,s,i){t.initView=function(){var n={exporterCsvFilename:"salesforce_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/salesforce/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(s,n,t,{accountId:e.id})},t.createItem=function(){i.open({animation:!0,templateUrl:"app/salesforce/view/configuration/list/create.modal.html",controller:"SalesforceCreateConfigurationCtrl"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SalesforceCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","SalesforceConfiguration","xAlert","$stateParams","channel",function(t,e,n,a,s,i,l){t.form={},t.item={},t.channels=l,t.item.channel="voice",t.item.type="Queue",t.save=function(){return a.save({accountId:i.id},t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.salesforce.view.configurations.list",{url:"/list",templateUrl:"app/salesforce/view/configuration/list/list.html",controller:"SalesforceViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewConfigurationViewCtrl",["$scope","$filter","$stateParams","$translate","socket","variable","xAlert","SalesforceAccount","SalesforceConfiguration","SalesforceField","Variable",function(t,e,n,a,s,i,l,o,r,c,d){t.$on("$destroy",function(){s.unsyncUpdates("salesforce_field")}),t.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},t.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],t.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],t.groupVariableByGroup=function(t){switch(t.group){case"voice_queue":return"Voice: Queue";default:return"Other"}},t.initView=function(){t.configurationName="",t.subjectConfig=[],t.descriptionConfig=[],t.fieldConfig=[],t.variables=i},t.getConfiguration=function(){return r.get({accountId:n.id,id:n.configurationId}).$promise.then(function(e){t.configurationName=e.name,t.subjectConfig=e.Subject,t.descriptionConfig=e.Description,t.fieldConfig=e.Field,s.socket.on("salesforce_field:remove",function(e){_.remove(t.subjectConfig,{id:e.id}),_.remove(t.descriptionConfig,{id:e.id}),_.remove(t.fieldConfig,{id:e.id})})}).catch(function(t){l.error(t)})},t.getCustomVariables=function(){return d.get().$promise.then(function(e){t.customVariables=e.rows}).catch(function(t){l.error(t)})},t.getFields=function(){return o.fields({id:n.id}).$promise.then(function(n){t.accountFields=_.sortByOrder(e("salesforce")(n),"name","asc"),console.log(t.accountFields)}).catch(function(t){l.error(t)})},t.addItem=function(e){var a={};switch(e){case"subject":case"description":a={type:"string",content:""};break;case"field":a={content:""}}return r.save({accountId:n.id,id:n.configurationId,controller:e},a).$promise.then(function(n){switch(e){case"subject":t.subjectConfig.push(n);break;case"description":t.descriptionConfig.push(n);break;case"field":t.fieldConfig.push(n)}}).catch(function(t){l.error(t)})},t.changeType=function(e){"variable"===e.type?(e.content="",e.variableName=""):"string"===e.type?(e.VariableId=null,e.variableName=""):"customVariable"===e.type&&(e.VariableId=null,e.content=""),t.updateField(e)},t.updateField=function(t){return c.update({accountId:n.id,configurationId:n.configurationId,id:t.id},t).$promise.then(function(){}).catch(function(t){l.error(t)})},t.removeItem=function(t){return c.delete({accountId:n.id,configurationId:n.configurationId,id:t.id}).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){l.error(t)})},t.changeDescType=function(e){"keyValue"===e.type?(e.content="","string"===e.keyType?(e.VariableId=null,e.variableName=""):"variable"===e.keyType?(e.keyContent="",e.VariableId=null):"customVariable"===e.keyType&&(e.keyContent="",e.variableName="")):"string"===e.type&&(e.VariableId=null,e.variableName="",e.key="",e.keyContent=""),t.updateField(e)},t.getSystemFieldOptions=function(e){if(e){var n=_.find(t.accountFields,"name",e);if(n)switch(n.type){case"picklist":return n.picklistValues;default:return}}},t.changeFieldType=function(e){e.content="",e.variableName="",e.nameField="",e.VariableId=null,t.updateField(e)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.salesforce.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/salesforce/view/configuration/view/view.html",controller:"SalesforceViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("SalesforceViewCtrl",["$scope","$http","$stateParams","$translate","$location","WizardHandler","socket","xAlert","Modal","$filter","SalesforceAccount",function(t,e,n,a,s,i,l,o,r,c,d){t.initView=function(){return d.get({id:n.id}).$promise.then(function(e){t.account=e}).catch(function(t){o.error(t)})},t.updateItem=function(){return d.update({id:n.id},t.account).$promise.then(function(){o.show(a.instant("MESSAGE_WELL_DONE")+".","success")}).catch(function(t){o.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.salesforce.view",{url:"/view/:id",templateUrl:"app/salesforce/view/view.html",controller:"SalesforceViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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"})}]),angular.module("xCallyShuttleApp").controller("SalesforceWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","SalesforceAccount",function(t,e,n,a,s,i,l){t.translate=a,t.initWizard=function(){t.$translate=a,t.forms={},t.item={},t.item.serverUrl=n.protocol()+"://"+location.host},t.next=function(){i.wizard().next()},t.exitValidation=function(t){return t},t.createItem=function(){return l.save(t.item).$promise.then(function(){s.show(a.instant("MESSAGE_WELL_DONE")+".","success"),n.path("/salesforce/list")}).catch(function(t){s.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.salesforce.wizard",{url:"/wizard",templateUrl:"app/salesforce/wizard/wizard.html",controller:"SalesforceWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.customization",{url:"/customization",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("CustomizationGeneralViewCtrl",["$scope","gridOptions","$uibModal","FileUploader","$cookieStore","xAlert","$translate","Setting","$rootScope",function(t,e,n,a,s,i,l,o,r){t.radioSwitch={isActive:!!r.license.custom,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var c=t.uploader=new a({url:"api/settings/logo/main",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+s.get("token")}});c.filters.push({name:"imageFilter",fn:function(t){var e="|"+t.type.slice(t.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(e)}}),c.onSuccessItem=function(t,e){r.settings.logo=e.logo,i.show(l.instant("MESSAGE_WELL_DONE"),"success")},c.onErrorItem=function(){i.show(l.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},c.onCompleteAll=function(){c.clearQueue()};var d=t.uploader2=new a({url:"api/settings/logo/login",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+s.get("token")}});d.filters.push({name:"imageFilter",fn:function(t){var e="|"+t.type.slice(t.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(e)}}),d.onSuccessItem=function(t,e){i.show(l.instant("MESSAGE_WELL_DONE"),"success")},d.onErrorItem=function(){i.show(l.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},d.onCompleteAll=function(){d.clearQueue()},t.initView=function(){return o.get({id:1}).$promise.then(function(e){t.settings={defaultLogo:e.defaultLogo,defaultLoginLogo:e.defaultLoginLogo,footerWhiteLabel:e.footerWhiteLabel,defaultFooterWhiteLabel:e.defaultFooterWhiteLabel}}).catch(function(t){i.error(t)})},t.update=function(){return o.update({id:1},t.settings).$promise.then(function(e){_.merge(r.settings,t.settings),i.show(l.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.customization.view.general",{url:"/general",templateUrl:"app/setting/customization/view/general/general.html",controller:"CustomizationGeneralViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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("CustomizationMotionBarViewCtrl",["$scope","gridOptions","$uibModal","FileUploader","$cookieStore","xAlert","$translate","Setting","$rootScope","$location",function(t,e,n,a,s,i,l,o,r,c){!r.license.preferred&&c.path("/landing"),t.radioSwitch={isActive:!!r.license.preferred,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var d=t.uploader=new a({url:"api/settings/logo/motionbar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+s.get("token")}});d.filters.push({name:"imageFilter",fn:function(t){var e="|"+t.type.slice(t.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(e)}}),d.onSuccessItem=function(t,e){i.show(l.instant("MESSAGE_WELL_DONE"),"success")},d.onErrorItem=function(){i.show(l.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},d.onCompleteAll=function(){d.clearQueue()},t.initView=function(){return o.get({id:1}).$promise.then(function(e){t.settings={defaultMotionBarLogo:e.defaultMotionBarLogo}}).catch(function(t){i.error(t)})},t.update=function(){return o.update({id:1},t.settings).$promise.then(function(t){i.show(l.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.customization.view.motionbar",{url:"/motionbar",templateUrl:"app/setting/customization/view/motionbar/motionbar.html",controller:"CustomizationMotionBarViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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("CustomizationViewCtrl",["$scope",function(t){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.customization.view",{url:"/view",templateUrl:"app/setting/customization/view/view.html",controller:"CustomizationViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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").config(["$stateProvider",function(t){t.state("main.setting.general",{url:"/general",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("GeneralMainViewCtrl",["$scope","xAlert","$translate","Setting",function(t,e,n,a){t.initView=function(){return a.get({id:1}).$promise.then(function(e){t.settings={agi_port:e.agi_port,min_internal:e.min_internal,min_mailbox:e.min_mailbox,securePassword:e.securePassword,mailRoutingCapacity:e.mailRoutingCapacity,chatRoutingCapacity:e.chatRoutingCapacity,logoutOnWindowClose:e.logoutOnWindowClose}}).catch(function(t){e.error(t)})},t.update=function(){return a.update({id:1},t.settings).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){e.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.general.view.main",{url:"/main",templateUrl:"app/setting/general/view/main/main.html",controller:"GeneralMainViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("GeneralViewCtrl",["$scope",function(t){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.general.view",{url:"/view",templateUrl:"app/setting/general/view/view.html",controller:"GeneralViewCtrl"})}]),angular.module("xCallyShuttleApp").factory("License",["$resource",function(t){return t("/api/licenses/:id/:controller",{id:"@id"},{request:{method:"POST",params:{id:"request"}},update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.license",{url:"/license",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("LicenseUpdateCtrl",["$scope","$translate","$uibModalInstance","xAlert","licenseString","License",function(t,e,n,a,s,i){t.form={},t.item={license:s.value},t.update=function(){return i.update(t.item).$promise.then(function(t){a.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){a.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").controller("LicenseViewCtrl",["$scope","$rootScope","$translate","License","xAlert","$window","$uibModal",function(t,e,n,a,s,i,l){t.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.initView=function(){return a.get(function(e){t.item=e.license,t.licenseString=e.licenseString})},t.submitRequest=function(){return a.request(t.item,function(){s.show(n.instant("MESSAGE_WELL_DONE"),"success")},function(t){switch(t.status){case 304:s.show(t.statusText,"info");break;default:s.error(t)}})},t.updateLicense=function(){l.open({animation:!0,templateUrl:"app/setting/license/view/update.modal.html",controller:"LicenseUpdateCtrl",resolve:{licenseString:{value:t.licenseString}}}).result.then(function(){i.location.reload()})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.license.view",{url:"/view",templateUrl:"app/setting/license/view/view.html",controller:"LicenseViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/pricing-tables.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Externip",["$resource",function(t){return t("/api/network/externips/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Localnet",["$resource",function(t){return t("/api/network/localnets/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.network",{url:"/network",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ExternipCtrl",["$scope","$uibModal","gridOptions","Externip",function(t,e,n,a){t.initView=function(){var e={exporterCsvFilename:"network_externip.csv",columnDefs:[{name:"value"},{name:"action",buttons:[{class:"blue-hoki",onClick:"grid.appScope.createItem(row.entity)",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(a,e,t)},t.createItem=function(n){e.open({animation:!0,templateUrl:"app/setting/network/view/externip/externip.create.modal.html",controller:"ExternipCreateCtrl",resolve:{item:n}}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ExternipCreateCtrl",["$scope","$translate","$uibModalInstance","$stateParams","Externip","xAlert","item",function(t,e,n,a,s,i,l){t.initModal=function(){t.form={},t.item=l||{},t.title=l?e.instant("APPLICATION_EDIT_EXTERNIP"):e.instant("APPLICATION_NEW_EXTERNIP")},t.save=function(){return l?s.update({id:t.item.id},t.item).$promise.then(function(t){i.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){i.error(t)}):s.save({},t.item).$promise.then(function(t){i.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){i.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.network.view.externip",{url:"/externip",templateUrl:"app/setting/network/view/externip/externip.html",controller:"ExternipCtrl"})}]),angular.module("xCallyShuttleApp").controller("LocalnetCtrl",["$scope","gridOptions","Localnet","$uibModal",function(t,e,n,a){t.initView=function(){var a={exporterCsvFilename:"network_localnet.csv",columnDefs:[{name:"value"},{name:"action",buttons:[{class:"blue-hoki",onClick:"grid.appScope.createItem(row.entity)",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=e.gridOptions(n,a,t)},t.createItem=function(e){a.open({animation:!0,templateUrl:"app/setting/network/view/localnet/localnet.create.modal.html",controller:"LocalnetCreateCtrl",resolve:{item:e}}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("LocalnetCreateCtrl",["$scope","$translate","$uibModalInstance","$stateParams","Localnet","xAlert","item",function(t,e,n,a,s,i,l){t.initModal=function(){if(t.form={},t.item=l||{},t.title=l?e.instant("APPLICATION_EDIT_LOCALNET"):e.instant("APPLICATION_NEW_LOCALNET"),l&&l.value){var n=t.item.value.split("/");n.length>1&&(t.item.address=n[0],t.item.mask=n[1])}},t.save=function(){var a=t.item.address+"/"+t.item.mask;return l?s.update({id:t.item.id},{value:a}).$promise.then(function(t){i.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){i.error(t)}):s.save({},{value:a}).$promise.then(function(t){i.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){i.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.network.view.localnet",{url:"/localnet",templateUrl:"app/setting/network/view/localnet/localnet.html",controller:"LocalnetCtrl"})}]),angular.module("xCallyShuttleApp").controller("StunaddrCtrl",["$scope","Setting","xAlert","$translate",function(t,e,n,a){t.initView=function(){return e.get({id:1}).$promise.then(function(e){t.item={stunaddr:e.stunaddr}}).catch(function(t){n.error(t)})},t.update=function(){return e.update({id:1},t.item).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){n.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.network.view.stunaddr",{url:"/stunaddr",templateUrl:"app/setting/network/view/stunaddr/stunaddr.html",controller:"StunaddrCtrl"})}]),angular.module("xCallyShuttleApp").controller("NetworkViewCtrl",function(){}),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.network.view",{url:"/view",templateUrl:"app/setting/network/view/view.html",controller:"NetworkViewCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting",{url:"/setting",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:18}}})}]),angular.module("xCallyShuttleApp").factory("Setting",["$resource",function(t){return t("/api/settings/:id/:controller/:param",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Smtp",["$resource",function(t){return t("/api/mail/servers/out/:id/:controller/:controller2",{id:"@id"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.smtp",{url:"/smtp",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("SmtpViewCtrl",["$scope","$stateParams","$translate","socket","MailServerOut","Setting","MailAccount","xAlert","Modal",function(t,e,n,a,s,i,l,o,r){t.initView=function(){return t.smtpDisabled=!1,t.isActive=!0,t.size="small",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.CONST_TIMEOUT=3e4,t.item={account:{service:!0,MailServerOut:{ssl:!1}}},t.$on("$destroy",function(){a.socket.removeAllListeners("mail_server_out:state")}),a.socket.on("mail_server_out:state",function(e){t.item&&Number(e.id)===t.item.account.MailServerOut.id&&(t.item.account.MailServerOut.state=e.state,t.item.account.MailServerOut.source=JSON.parse(e.source))}),i.get({id:"smtp"}).$promise.then(function(e){t.item.account=e}).catch(function(e){switch(e.status){case 404:t.item.account.name=null,t.item.account.address=null,t.item.account.description="Custom account",t.item.account.MailServerOut={port:465,ssl:!0},o.show("Service SMTP server not configured.","info");break;default:o.error(e)}})},t.updateItem=function(){return t.item.account.id?(delete t.item.account.MailServerOut.state,delete t.item.account.MailServerOut.source,i.update({id:"smtp",controller:t.item.account.id},t.item.account).$promise.then(function(){o.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})):i.save({id:"smtp"},{description:t.item.account.description,name:t.item.account.name,address:t.item.account.address,service:t.item.account.service,custom:!0,MailServerOut:t.item.account.MailServerOut}).$promise.then(function(e){t.item.account=e,o.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})},t.test=function(){return s.get({id:t.item.account.MailServerOut.id,controller:"test"}).$promise.catch(function(t){console.error(t)})},t.delete=r.confirm.delete(function(){return i.delete({id:"smtp"}).$promise.then(function(){o.show(n.instant("MESSAGE_WELL_DONE")+"!","success"),t.item={account:{service:!0,name:null,address:null,description:"Custom account",MailServerOut:{port:465,ssl:!0}}}}).catch(function(t){o.error(t)})})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.smtp.view",{url:"/view",templateUrl:"app/setting/smtp/view/view.html",controller:"SmtpViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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").config(["$stateProvider",function(t){t.state("main.setting.system",{url:"/system",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("SystemViewConsoleCtrl",["$scope","Setting","xAlert","usSpinnerService","$timeout","$translate","socket",function(t,e,n,a,s,i,l){function o(e){var n=_.findIndex(t.commandHistory.commands,function(t){return t===e});-1!==n&&t.commandHistory.commands.splice(n,1),t.commandHistory.commands.unshift(e)}t.output="<b>"+i.instant("APPLICATION_CONSOLE_WELCOME")+"</b><br/>",t.item={command:""},t.commandHistory={commands:[],index:-1},t.busy=!1,t.cmdFocus=function(){s(function(){angular.element("#command").trigger("focus")})},t.sendCmd=function(){if(t.commandHistory.index=-1,t.tmp=t.item.command,t.item.command="",t.output+="<b>motion*CLI> "+t.tmp+"</b><br>",t.tmp)return o(t.tmp.trim()),t.busy=!0,a.spin("console-spinner"),e.save({controller:"asterisk"},{command:t.tmp}).$promise.catch(function(t){n.error(t)})},l.socket.on("console:result",function(e){t.output+=e.content.replace(/(?:\r\n|\r|\n)/g,"<br />").replace("Response: Follows<br />Privilege: Command<br />","").replace(/ActionID: .[0-9]*<br \/>/,"").replace(/ActionID: .[0-9]*/,"")+"<br>",a.stop("console-spinner"),t.busy=!1,t.cmdFocus()}),l.socket.on("console:error",function(e){a.stop("console-spinner"),t.output+="command error:"+e.data.message+"<br>",t.busy=!1,t.cmdFocus()}),t.keyUp=function(e){switch(e.keyCode){case 40:t.commandHistory.commands[t.commandHistory.index-1]?t.item.command=t.commandHistory.commands[--t.commandHistory.index]:(t.item.command="",t.commandHistory.index=-1);break;case 38:t.commandHistory.commands[t.commandHistory.index+1]&&(t.item.command=t.commandHistory.commands[++t.commandHistory.index]);break;case 37:case 39:break;default:t.commandHistory.index=-1}},s(function(){angular.element("#command").trigger("focus"),a.stop("console-spinner")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.system.view.console",{url:"/console",templateUrl:"app/setting/system/view/console/console.html",controller:"SystemViewConsoleCtrl"})}]),angular.module("xCallyShuttleApp").controller("SystemViewGeneralCtrl",["$scope","$stateParams","$translate","socket","Setting","xAlert","usSpinnerService",function(t,e,n,a,s,i,l){function o(e){t.system.memory={labels:_.keys(e.memory.details),values:_.values(_.map(e.memory.details,function(t){return Math.round(t/1024)})),Total:Math.round(e.memory.Total/1024)},l.stop("memory-spinner"),t.system.disks=[],_.forEach(e.disks,function(e){t.system.disks.push({mount:e.mount,size:Number((e.size/1048576).toFixed(2)),values:_.values(_.map(e.details,function(t){return Number((t/1048576).toFixed(2))})),labels:_.keys(e.details)})}),t.system.mount=t.system.disks[0],l.stop("disk-spinner"),t.system.cpu={motion:Math.round(e.cpu.motion),cores:[]},_.forEach(e.cpu.cores,function(e){delete e.nice,delete e.irq,t.system.cpu.cores.push({labels:_.keys(e),values:_.values(e),colours:["#803690","#DCDCDC","#00ADF9"]})}),l.stop("cpu-spinner"),t.loading=!1}t.system={mount:void 0},t.initView=function(){return l.spin("memory-spinner"),l.spin("disk-spinner"),l.spin("cpu-spinner"),t.loading=!0,s.get({controller:"system"}).$promise.then(function(t){o(t)}).catch(function(e){l.stop("memory-spinner"),l.stop("disk-spinner"),l.stop("cpu-spinner"),t.loading=!1,i.error(e)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.system.view.general",{url:"/general",templateUrl:"app/setting/system/view/general/general.html",controller:"SystemViewGeneralCtrl"})}]),angular.module("xCallyShuttleApp").controller("SystemViewLogsCtrl",["$scope","$stateParams","$translate","socket","Setting","xAlert","usSpinnerService",function(t,e,n,a,s,i,l){t.logfiles=["access","motion-info","motion-error","dashboard-info","dashboard-error","agi-info","agi-error","ami-info","ami-error","api-info","api-error","chat-info","chat-error","mail-info","mail-error","fax-info","fax-error","sms-info","sms-error","openchannel-info","openchannel-error"],t.item={filename:"access"},t.getLog=function(){return t.log="",t.loading=!0,l.spin("logs-spinner"),s.get({controller:"logs",filename:t.item.filename}).$promise.then(function(e){t.log=e.log,t.loading=!1,l.stop("logs-spinner")}).catch(function(e){l.stop("logs-spinner"),t.loading=!1,i.error(e)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.system.view.logs",{url:"/logs",templateUrl:"app/setting/system/view/logs/logs.html",controller:"SystemViewLogsCtrl"})}]),angular.module("xCallyShuttleApp").controller("SystemViewCtrl",["$scope",function(t){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.system.view",{url:"/view",templateUrl:"app/setting/system/view/view.html",controller:"SystemViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("UpdateListCtrl",["$scope","gridOptions","$uibModal","$location","Update","xAlert","$log","$translate","$state",function(t,e,n,a,s,i,l,o,r){t.initCounter=function(){t.$on("timer-stopped",function(t,e){i.show(o.instant("MESSAGE_UPDATE_COMPLETED"),"success"),r.go("main.setting.updates.list")})},t.initView=function(){return s.get({controller:"current"}).$promise.then(function(e){t.currentVersion=e.currentVersion,t.latestVersion=e.latestVersion}).catch(function(t){console.log(t)})},t.pull=function(){n.open({animation:!0,templateUrl:"app/setting/update/list/list.pull.html",controller:"UpdateListPullCtrl"}).result.then(function(){return a.path("/setting/updates/landing"),s.pull().$promise.then(function(e){var n=!1;e&&(e.summary&&_.forOwn(e.summary,function(t){t&&(n=!0)}),(e.insertions&&!_.isEmpty(e.insertions)||e.deletions&&!_.isEmpty(e.deletions))&&(n=!0)),n?(t.$broadcast("timer-stop"),document.getElementsByTagName("timer")[0].stop()):(i.show(o.instant("MESSAGE_NO_UPDATES"),"success"),a.path("/setting/updates/list"))}).catch(function(t){console.log(t),i.error(t),a.path("/setting/updates/list")})},function(){l.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.updates.list",{url:"/list",templateUrl:"app/setting/update/list/list.html",controller:"UpdateListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"css",insertBefore:"#ng_load_plugins_before",files:["assets/css/pricing-table.css"]}])}]}}).state("main.setting.updates.landing",{url:"/landing",templateUrl:"app/setting/update/list/landing.html",controller:"UpdateListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"css",insertBefore:"#ng_load_plugins_before",files:["assets/css/error.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("UpdateListPullCtrl",["$scope","$uibModalInstance",function(t,e){t.modal={dismissable:!0,title:"Confirm Update",html:"Are you sure you want to update?",buttons:[{classes:"btn btn-success",text:"Update",click:function(){e.close()}},{classes:"btn default",text:"Cancel",click:function(){e.dismiss("cancel")}}]}}]),angular.module("xCallyShuttleApp").factory("Update",["$resource",function(t){return t("/api/updates/:id/:controller",{id:"@id"},{pull:{method:"GET",params:{id:"pull"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.setting.updates",{url:"/updates",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["hasUpdate"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcListCtrl",["$scope","$uibModal","$translate","SquareOdbc","gridOptions","xAlert",function(t,e,n,a,s,i){t.initView=function(){var e={exporterCsvFilename:"odbc.csv",columnDefs:[{name:"name"},{name:"dsn",displayName:"APPLICATION_ODBC"},{name:"description"},{name:"action",width:250,buttons:[{class:"blue-hoki",href:"/square/odbc/view/{{row.entity.id}}/settings",name:"settings"},{class:"green-jungle",name:"check",onClick:"grid.appScope.checkConnection(row.entity.id)"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=s.gridOptions(a,e,t)},t.createItem=function(){e.open({animation:!0,templateUrl:"app/square/odbc/list/list.create.modal.html",controller:"SquareOdbcListCreateCtrl"}).result.then(function(){t.gridOptions.getPage()})},t.checkConnection=function(t){return a.get({id:t,controller:"check"}).$promise.then(function(){i.show(n.instant("MESSAGE_CONNECTION_VERIFIED"),"success")}).catch(function(){i.show(n.instant("MESSAGE_CONNECTION_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").controller("SquareOdbcListCreateCtrl",["$scope","$translate","$uibModalInstance","SquareOdbc","xAlert",function(t,e,n,a,s){t.form={},t.item={},t.item.dsn||(t.item.dsn="DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion"),t.save=function(){return a.save(t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.odbc.list",{url:"/list",templateUrl:"app/square/odbc/list/list.html",controller:"SquareOdbcListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.odbc",{url:"/odbc",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").factory("SquareOdbc",["$resource",function(t){return t("/api/square/odbc/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SquareOdbcViewCtrl",["$scope","$translate","$stateParams","SquareOdbc","xAlert",function(t,e,n,a,s){t.odbc={},t.getOdbc=function(){return a.get({id:n.id}).$promise.then(function(e){t.odbc=e}).catch(function(t){s.error(t)})},t.updateOdbc=function(){var i=angular.copy(t.odbc);return a.update({id:n.id},i).$promise.then(function(){s.show(e.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){s.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.odbc.view",{url:"/view/:id",templateUrl:"app/square/odbc/view/view.html",controller:"SquareOdbcViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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.odbc.view.settings",{url:"/settings",templateUrl:"app/square/odbc/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SquareProjectListCtrl",["$scope","$uibModal","SquareProject","gridOptions","uiGridConstants",function(t,e,n,a,s){t.initView=function(){var e={exporterCsvFilename:"projects.csv",columnDefs:[{name:"name"},{name:"description"},{name:"createdAt",displayName:"APPLICATION_CREATED_AT",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.createdAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:s.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:s.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"updatedAt",displayName:"APPLICATION_UPDATED_AT",cellClass:"text-center ui-grid-vcenter",cellTemplate:"<div>{{row.entity.updatedAt | date:'yyyy-MM-dd HH:mm:ss'}}</div>",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:s.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:s.filter.LESS_THAN_OR_EQUAL,hasTime:!0}]},{name:"action",width:160,buttons:[{class:"blue-hoki",href:"/square/projects/view/{{row.entity.id}}",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(n,e,t)},t.createItem=function(){e.open({animation:!0,templateUrl:"app/square/project/list/list.create.modal.html",controller:"SquareProjectListCreateCtrl"}).result.then(function(e){console.log(e),t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SquareProjectListCreateCtrl",["$scope","$translate","$uibModalInstance","$location","SquareProject","xAlert",function(t,e,n,a,s,i){t.form={},t.item={},t.save=function(){return s.save(t.item).$promise.then(function(t){n.close(t),a.path("/square/projects/view/"+t.id)}).catch(function(t){i.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.projects.list",{url:"/list",templateUrl:"app/square/project/list/list.html",controller:"SquareProjectListCtrl",authenticate:!0})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.projects",{url:"/projects",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").factory("SquareProject",["$resource",function(t){return t("/api/square/projects/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SquareProjectViewCtrl",["$scope","$stateParams","Auth","xAlert","SquareProject","socket","$translate","$log","$uibModal",function(t,e,n,a,s,i,l,o,r){t.squareProject={},t.$on("$destroy",function(){i.unsyncUpdates("square_project")}),t.getProject=function(){return s.get({id:e.id}).$promise.then(function(e){t.squareProject=e,angular.element(document).ready(function(){window.onerror=function(t,e,n){try{null!==t&&-1!==t.indexOf("Script error.")||((new Image).src="assets/plugins/mxgraph/images/1x1.png?msg="+encodeURIComponent(t)+"&url="+encodeURIComponent(e)+"&lnum="+encodeURIComponent(n))}catch(t){a.error(t)}},e.token=n.getToken();var t=new EditorUi(new Editor);t.openString(e.preproduction,e.name,e),t.editor.graphChangeListener=function(t,e){e.properties.rtChange||!1||(this.modified=!0)}}),i.socket.on("square_project:save",function(n){n.id===e.id&&(t.squareProject=_.merge(t.squareProject,n))})}).catch(function(t){a.error(t)})},t.editNotes=function(){r.open({animation:!0,templateUrl:"app/square/project/view/projectNotes.modal.html",controller:["$scope","$uibModalInstance","notes",function(t,e,n){t.notes=n,t.close=function(){e.close(t.notes)},t.cancel=function(){e.dismiss("cancel")}}],resolve:{notes:{value:t.squareProject.notes}}}).result.then(function(t){return s.update({id:e.id},{notes:t.value}).$promise.then(function(){a.show(l.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){a.error(t)})},function(){o.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.projects.view",{url:"/view/:id",templateUrl:"app/square/project/view/view.html",controller:"SquareProjectViewCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/square/js/custom.js","assets/plugins/mxgraph/js/mxClient.js","assets/plugins/square/js/Editor.js","assets/plugins/square/js/Graph.js","assets/plugins/square/js/EditorUi.js","assets/plugins/square/js/Actions.js","assets/plugins/square/js/Menus.js","assets/plugins/square/js/Sidebar.js","assets/plugins/square/js/Toolbar.js","assets/plugins/square/js/Dialogs.js"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.realtime",{url:"/realtime",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:14}}})}]),angular.module("xCallyShuttleApp").factory("ReportSquare",["$resource",function(t){return t("/api/report/square/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("ReportSquareDetail",["$resource",function(t){return t("/api/report/square/details/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").controller("SquareRealtimeViewGeneralCtrl",["$scope","$log","$uibModal","$translate","socket","xAlert","ReportSquare","usSpinnerService","$q","uiGridConstants",function(t,e,n,a,s,i,l,o,r,c){function d(e){return o.spin("spinner-grid"),l.get(p).$promise.then(function(e){t.gridOptions.totalItems=e.count,t.gridOptions.data=e.rows}).catch(function(t){i.error(t)}).finally(function(){e&&u(),o.stop("spinner-grid")})}function u(){s.socket.on("report_square:save",function(e){if(e.leaveAt)_.remove(t.gridOptions.data,{id:e.id})&&d();else if(!_.find(t.gridOptions.data,{id:e.id})&&t.gridOptions.data.length<p.limit){var n=_.clone(p);if(_.forEach(["offset","limit","controller","order"],function(t){delete n[t]}),_.isEmpty(n))t.gridOptions.data.push(e);else{var a=!0;_.forOwn(n,function(t,n){_.includes(e[n],t)||(a=!1)}),a&&t.gridOptions.data.push(e)}}})}var p={controller:"realtime",offset:0,limit:25};t.moment=moment,t.init=function(){t.gridOptions={enableGridMenu:!0,headerCellFilter:"translate",enableHorizontalScrollbar:0,enableVerticalScrollbar:0,enableFiltering:!0,showGridFooter:!0,paginationPageSizes:[10,25,50,75],paginationPageSize:25,useExternalPagination:!0,useExternalSorting:!0,useExternalFiltering:!0,showTreeExpandNoChildren:!0,columnDefs:[{name:"uniqueid"},{name:"callerid"},{name:"extension"},{name:"project_name",displayName:"APPLICATION_PROJECT",headerCellFilter:"translate"},{name:"joinAt",displayName:"APPLICATION_ELAPSED_TIME",headerCellFilter:"translate",cellClass:"text-center ui-grid-vcenter",cellTemplate:'<div><css-timer start-time="row.entity.joinAt"></css-timer></div>',enableSorting:!1,enableColumnMenu:!1,enableFiltering:!1}],data:[],gridMenuTitleFilter:function(t){var e=r.defer();return e.resolve(a.instant(t)),e.promise},onRegisterApi:function(e){t.gridApi=e,t.gridApi.grid.registerDataChangeCallback(function(){m(t.gridApi.core.getVisibleRows(t.gridApi.grid).length)}),t.gridApi.core.on.sortChanged(t,function(t,e){0===e.length?p.order=null:p.order=e[0].name+" "+e[0].sort.direction.toUpperCase(),d()}),t.gridApi.pagination.on.paginationChanged(t,function(t,e){p.offset=(t-1)*e,p.limit=e,d()}),t.gridApi.core.on.filterChanged(t,function(){this.grid.columns.forEach(function(t){t.filters[0].term?p[t.name]=t.filters[0].term:delete p[t.name]}),d()})}},d(!0)};var m=function(t){var e=t?30*t+130:270;angular.element(document.getElementsByClassName("ui-grid")[0]).css("height",e+"px"),angular.element(document.getElementsByClassName("ui-grid-viewport")).css("height",30*t+"px")};t.$on("$destroy",function(){s.unsyncUpdates("report_square")})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.realtime.view.general",{url:"/general",templateUrl:"app/square/realtime/view/general/general.html",controller:"SquareRealtimeViewGeneralCtrl"})}]),angular.module("xCallyShuttleApp").controller("SquareRealtimeViewCtrl",["$scope",function(t){}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.realtime.view",{url:"/view",templateUrl:"app/square/realtime/view/view.html",controller:"SquareRealtimeViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]}])}]}})}]),angular.module("xCallyShuttleApp").controller("SquareRecordingListCtrl",["$scope","SquareRecording","gridOptions","uiGridConstants",function(t,e,n,a){t.SquareRecording=e;t.initView=function(){var s={exporterCsvFilename:"recordings.csv",rowHeight:30,columnDefs:[{name:"uniqueid"},{name:"callerid",displayName:"APPLICATION_CALLERIDNUM"},{name:"filename"},{name:"extension"},{name:"projectName",displayName:"APPLICATION_PROJECT"},{name:"createdAt",displayName:"APPLICATION_DATE",cellFilter:"date:'yyyy-MM-dd HH:mm'",filterHeaderTemplate:'<div class="ui-grid-filter-container row"><div ng-repeat="colFilter in col.filters" class="col-md-6 col-md-offset-0 col-sm-5 col-sm-offset-0 col-xs-5 col-xs-offset-0"><div custom-grid-date-filter-header></div></div></div>',filters:[{name:"From",condition:a.filter.GREATER_THAN_OR_EQUAL,hasTime:!0},{name:"To",condition:a.filter.LESS_THAN_OR_EQUAL,hasTime:!0}],sort:{direction:a.DESC,priority:0}},{name:"audio",displayName:"",width:100,enableSorting:!1,enableFiltering:!1,cellClass:"ui-grid-vcenter",cellTemplate:"<div><audio-file-download data-ng-if=\"row.entity.savePath.split('.').pop() == 'wav'\" params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.SquareRecording\"></audio-file-download><span data-ng-if=\"row.entity.value.split('.').pop() == 'gsm'\" title=\"{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}\">{{'MESSAGE_GSM_PREVIEW_NOT_SUPPORTED' | translate}}</span></div>"},{name:"action",width:80,buttons:[{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.filename || row.entity.uniqueid, row.entity.id)"},{directive:"<motion-file-download params=\"{id:row.entity.id,controller:'stream'}\" resource=\"grid.appScope.SquareRecording\" mimetype=\"'audio/'+row.entity.value.split('.').pop()\" btnclass=\"btn btn-xs blue-hoki\" filename=\"(row.entity.filename || row.entity.uniqueid)+'.'+row.entity.savePath.split('.').pop()\"></motion-file-download>"}]}]};t.gridOptions=n.gridOptions(e,s,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.recordings.list",{url:"/list",templateUrl:"app/square/recording/list/list.html",controller:"SquareRecordingListCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square.recordings",{url:"/recordings",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").factory("SquareRecording",["$resource",function(t){return t("/api/square/recordings/:id/:controller",{id:"@id"},{update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.square",{url:"/square",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:14}}})}]),angular.module("xCallyShuttleApp").factory("Agent",["$resource",function(t){return t("/api/agents/:id/:controller/:controller1/:controller2/:controller3",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},update:{method:"PUT"},patch:{method:"PATCH"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.agents",{url:"/agents",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}}})}]),angular.module("xCallyShuttleApp").controller("AgentListCtrl",["$scope","$timeout","Agent","Auth","gridOptions",function(t,e,n,a,s){t.initView=function(){t.Auth=a;var e={exporterCsvFilename:"agents.csv",columnDefs:[{name:"fullname"},{name:"name",displayName:"APPLICATION_USERNAME"},{name:"internal"},{name:"email"},{name:"description"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/staff/agents/view/{{row.entity.id}}/account",name:"profile"},{class:"green-meadow",href:"/staff/agents/view/{{row.entity.id}}/queues/voice",name:"queues"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};t.gridOptions=s.gridOptions(n,e,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.agents.list",{url:"/list",templateUrl:"app/staff/agent/list/list.html",controller:"AgentListCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}}})}]),angular.module("xCallyShuttleApp").controller("AgentViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$cookieStore","Agent","FileUploader","Auth","MailQueue","User","VoiceQueue","ChatQueue","FaxQueue","SmsQueue","OpenChannelQueue","Setting",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f){t.Auth=r,t.forms={},t.params={penalty:0},t.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"};var A=function(e){return{select:function(n,a){return l.save(n,{values:a,penalty:t.params.penalty}).$promise.then(function(){e()}).catch(function(t){console.log(t)})},deselect:function(t){return l.delete(t).$promise.then(function(){e()}).catch(function(t){console.log(t)})}}};t.initVoiceQueues=function(){var e={},n={};return t.penalty=0,u.get().$promise.then(function(t){return e.queues=_.map(t.rows,function(t){return{name:t.name}}),l.get({id:s.id,controller:"voice",controller2:"queues"}).$promise}).then(function(t){n.queues=_.map(t.rows,function(t){return{name:t.name,penalty:t.UserHasVoiceQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(e,n,"voice",s.id,A,t.initVoiceQueues)}).catch(function(t){console.error(t)})},t.initChatQueues=function(){var e={},n={};return t.penalty=0,p.get().$promise.then(function(t){return e.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name}}),l.get({id:s.id,controller:"chat",controller2:"queues"}).$promise}).then(function(t){n.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name,penalty:t.UserHasChatQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(e,n,"chat",s.id,A,t.initChatQueues)}).catch(function(t){console.error(t)})},t.initMailQueues=function(){var e={},n={};return t.penalty=0,c.get().$promise.then(function(t){return e.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name}}),l.get({id:s.id,controller:"mail",controller2:"queues"}).$promise}).then(function(t){n.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name,penalty:t.UserHasMailQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(e,n,"mail",s.id,A,t.initMailQueues)}).catch(function(t){console.error(t)})},t.initSmsQueues=function(){var e={},n={};return t.penalty=0,g.get().$promise.then(function(t){return e.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name}}),l.get({id:s.id,controller:"sms",controller2:"queues"}).$promise}).then(function(t){n.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name,penalty:t.UserHasSmsQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(e,n,"sms",s.id,A,t.initSmsQueues)}).catch(function(t){console.error(t)})},t.initFaxQueues=function(){var e={},n={};return t.penalty=0,m.get().$promise.then(function(t){return e.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name}}),l.get({id:s.id,controller:"fax",controller2:"queues"}).$promise}).then(function(t){n.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name,penalty:t.UserHasFaxQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(e,n,"fax",s.id,A,t.initFaxQueues)}).catch(function(t){console.error(t)})},t.initOpenchannelQueues=function(){var e={},n={};return t.penalty=0,h.get().$promise.then(function(t){return e.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name}}),l.get({id:s.id,controller:"openchannel",controller2:"queues"}).$promise}).then(function(t){n.queues=_.map(t.rows,function(t){return{id:t.id,name:t.name,penalty:t.UserHasOpenchannelQueue.penalty}})}).then(function(){ComponentsDropdowns.bindAgent(e,n,"openchannel",s.id,A,t.initOpenchannelQueues)}).catch(function(t){console.error(t)})},t.updatePassword=function(){var e={newPassword:t.agent.newPwd};return r.isAgent()?e.oldPassword=t.agent.currentPwd:e.id=s.id,d.changePassword(e).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE"),"success"),t.agent.newPwd="",t.agent.reNewPwd="",t.agent.currentPwd="",t.forms.changePwd.$setPristine(),t.forms.changePwd.$setUntouched()}).catch(function(t){n.error(t)})};var v=t.uploader=new o({url:"api/users/"+s.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+i.get("token")}});v.filters.push({name:"imageFilter",fn:function(t){var e="|"+t.type.slice(t.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(e)}}),v.onSuccessItem=function(e,s){t.agent.userpic=s.userpic,t.agent.id===r.getCurrentUser().id&&(r.getCurrentUser().userpic=s.userpic),n.show(a.instant("MESSAGE_WELL_DONE"),"success")},v.onErrorItem=function(){n.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},v.onCompleteAll=function(){v.clearQueue()},t.initView=function(){return l.get({id:s.id}).$promise.then(function(e){return t.agent=e,t.agent.transport=t.agent.transport?t.agent.transport.split(","):[],t.agent.allow=t.agent.allow?t.agent.allow.split(";"):[],t.agent.nat=t.agent.nat?t.agent.nat.split(","):[],f.get({id:1}).$promise}).then(function(e){t.setting=e}).catch(function(t){n.error(t)})},t.patchItem=function(){return l.update({id:s.id},{chatCapacity:t.agent.chatCapacity,mailCapacity:t.agent.mailCapacity,faxCapacity:t.agent.faxCapacity,smsCapacity:t.agent.smsCapacity,openchannelCapacity:t.agent.openchannelCapacity}).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){n.error(t)})},t.updateItem=function(){var e=angular.copy(t.agent);return delete e.password,delete e.md5secret,e.transport=e.transport.join(","),e.allow=e.allow.join(";"),e.nat=e.nat.join(","),l.update({id:s.id},e).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){n.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.agents.view",{url:"/view/:id",templateUrl:"app/staff/agent/view/view.html",controller:"AgentViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]},data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.account",{url:"/account",templateUrl:"app/staff/agent/view/view.account.html",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:4}},resolve:{deps:["$ocLazyLoad",function(t){return t.load({insertBefore:"#ng_load_plugins_before",files:["assets/scripts/jquery.sparkline.min.js","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js","assets/scripts/profile.js"]})}]}}).state("main.staff.agents.view.voice",{url:"/voice",templateUrl:"app/staff/agent/view/view.voice.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.chat",{url:"/chat",templateUrl:"app/staff/agent/view/view.chat.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.mail",{url:"/mail",templateUrl:"app/staff/agent/view/view.mail.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.fax",{url:"/fax",templateUrl:"app/staff/agent/view/view.fax.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.sms",{url:"/sms",templateUrl:"app/staff/agent/view/view.sms.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.openchannel",{url:"/openchannel",templateUrl:"app/staff/agent/view/view.openchannel.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.motionbar",{url:"/motionbar",templateUrl:"app/staff/agent/view/view.motionbar.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}}}).state("main.staff.agents.view.queues",{url:"/queues",templateUrl:"app/staff/agent/view/view.queues.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:4}},cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.staff.agents.view.queues.voice",{url:"/voice",templateUrl:"app/staff/agent/view/view.queues.voice.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:7}}}).state("main.staff.agents.view.queues.chat",{url:"/chat",templateUrl:"app/staff/agent/view/view.queues.chat.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:8}}}).state("main.staff.agents.view.queues.mail",{url:"/mail",templateUrl:"app/staff/agent/view/view.queues.mail.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:9}}}).state("main.staff.agents.view.queues.fax",{url:"/fax",templateUrl:"app/staff/agent/view/view.queues.fax.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:10}}}).state("main.staff.agents.view.queues.sms",{url:"/sms",templateUrl:"app/staff/agent/view/view.queues.sms.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:11}}}).state("main.staff.agents.view.queues.openchannel",{url:"/openchannel",templateUrl:"app/staff/agent/view/view.queues.openchannel.html",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:20}}})}]),angular.module("xCallyShuttleApp").controller("AgentWizardCtrl",["$scope","$rootScope","$location","$translate","$http","Agent","VoiceQueue","ChatQueue","MailQueue","SmsQueue","FaxQueue","OpenChannelQueue","Setting","xAlert","WizardHandler",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g){t.maxAmount=1e3,t._data={voice:{queues:[]},chat:{queues:[]},mail:{queues:[]},sms:{queues:[]},fax:{queues:[]},openchannel:{queues:[]}},t._agent=angular.copy(t._data),t.forms={info:void 0,voice:void 0},t.item={role:"agent",allow:["alaw","ulaw","gsm"],transport:["udp"],context:"from-sip"},t.next=function(){g.wizard().next()},t.getAmount=function(){return p.get({controller:"internal",internal:t.item.minInternal}).$promise.then(function(e){t.item.minInternal=Number(e.value),t.maxAmount=e.range||1e3}).catch(function(t){m.error(t)})},t.exitValidation=function(t){return t},t.getFirstFreeInternal=function(){return p.get({controller:"internal"}).$promise.then(function(e){return t.internal=e,t.item.internal=e.value,t.item.minInternal=e.value,t.maxAmount=e.range||1e3,p.get({id:1}).$promise}).then(function(e){t.setting=e}).catch(function(t){m.error(t)})},t.createItem=function(){var e=angular.copy(t.item);return delete e.minInternal,e.transport&&(e.transport=e.transport.join(",")),t.item.allow&&(e.allow=e.allow.join(";")),e.channels=t._agent,i.save(e).$promise.then(function(t){n.path("/staff/agents/view/"+t.id+"/queues/voice")}).catch(function(t){console.log(t),m.error(t)})},t.createItems=function(){var e=angular.copy(t.item);return delete e.internal,e.transport&&(e.transport=e.transport.join(",")),e.allow&&(e.allow=e.allow.join(";")),i.save({id:"bulk"},e).$promise.then(function(){n.path("/staff/agents/list")}).catch(function(t){console.log(t),m.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.agents.wizard",{url:"/wizard",templateUrl:"app/staff/agent/wizard/wizard.html",controller:"AgentWizardCtrl",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}},resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.staff.agents.bulk",{url:"/bulk",templateUrl:"app/staff/agent/wizard/wizard-bulk.html",controller:"AgentWizardCtrl",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff",{url:"/staff",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("TeamCreateCtrl",["$scope","$uibModalInstance","Team","xAlert",function(t,e,n,a){t.form={},t.item={},t.ok=function(){return n.save(t.item).$promise.then(function(){e.close(t.item)}).catch(function(t){a.error(t)})},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("TeamListCtrl",["$scope","Team","gridOptions","$uibModal",function(t,e,n,a){t.initView=function(){var a={exporterCsvFilename:"teams.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:100,buttons:[{class:"{{row.entity.defaultEntry ? 'blue-hoki disabled' : 'blue-hoki'}}",href:"/staff/teams/view/{{row.entity.id}}/settings",name:"profile"},{class:"{{row.entity.defaultEntry ? 'green-turquoise disabled' : 'green-turquoise'}}",name:"agents",href:"/staff/teams/view/{{row.entity.id}}/agents"},{class:"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.createItem=function(){a.open({animation:!0,templateUrl:"app/staff/team/list/create.modal.html",controller:"TeamCreateCtrl"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.teams.list",{url:"/list",templateUrl:"app/staff/team/list/list.html",controller:"TeamListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Team",["$resource",function(t){return t("/api/teams/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.teams",{url:"/teams",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin"],redirectTo:"landing"}}})}]),angular.module("xCallyShuttleApp").controller("TeamViewCtrl",["$scope","$http","$stateParams","$translate","Team","Agent","xAlert",function(t,e,n,a,s,i,l){var o=function(){return{select:function(e){return console.log("agents",e),s.save({id:t.team.id,controller:"agents"},{agents:e})},deselect:function(e){return s.delete({id:t.team.id,controller:"agents",agents:e})}}};t.initView=function(){return s.get({id:n.id}).$promise.then(function(e){t.team=e}).catch(function(t){l.error(t)})},t.initAgents=function(){return i.get().$promise.then(function(e){return t.agents=e.rows,s.get({id:n.id,controller:"agents"}).$promise}).then(function(e){ComponentsDropdowns.bindTeam(_.map(e.rows,"id"),_.map(t.agents,function(t){return{id:t.id,name:t.name,fullname:t.fullname,internal:t.internal}}),o)}).catch(function(t){l.error(t)})},t.updateItem=function(){var e=angular.copy(t.team);return s.update({id:n.id},e).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){l.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.teams.view",{url:"/view/:id",templateUrl:"app/staff/team/view/view.html",controller:"TeamViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.staff.teams.view.agents",{url:"/agents",templateUrl:"app/staff/team/view/view.agents.html",resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]}])}]}}).state("main.staff.teams.view.settings",{url:"/settings",templateUrl:"app/staff/team/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TelephoneListCtrl",["$scope","Telephone","gridOptions",function(t,e,n){t.initView=function(){var a={exporterCsvFilename:"telephones.csv",columnDefs:[{name:"fullname"},{name:"name"},{name:"internal"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/staff/telephones/view/{{row.entity.id}}/account",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.telephones.list",{url:"/list",templateUrl:"app/staff/telephone/list/list.html",controller:"TelephoneListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("Telephone",["$resource",function(t){return t("/api/telephones/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.telephones",{url:"/telephones",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin"],redirectTo:"landing"}}})}]),angular.module("xCallyShuttleApp").controller("TelephoneViewCtrl",["$scope","$http","$stateParams","$translate","$cookieStore","Auth","xAlert","Telephone","Setting","User",function(t,e,n,a,s,i,l,o,r,c){t.initView=function(){return t.Auth=i,t.forms={},o.get({id:n.id}).$promise.then(function(e){return delete e.password,t.item=e,t.item.transport=t.item.transport?t.item.transport.split(","):[],t.item.allow=t.item.allow?t.item.allow.split(";"):[],r.get({id:1}).$promise}).then(function(e){t.setting=e}).catch(function(t){l.error(t)})},t.updateItem=function(){var e=angular.copy(t.item);return e.transport=e.transport.join(","),e.allow=e.allow.join(";"),o.update(e).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){l.error(t)})},t.updatePassword=function(){var e={newPassword:t.item.newPwd,id:n.id};return c.changePassword(e).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE"),"success"),t.item.newPwd="",t.item.reNewPwd="",t.forms.changePwd.$setPristine(),t.forms.changePwd.$setUntouched()}).catch(function(t){l.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.telephones.view",{url:"/view/:id",templateUrl:"app/staff/telephone/view/view.html",controller:"TelephoneViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.staff.telephones.view.account",{url:"/account",templateUrl:"app/staff/telephone/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(t){return t.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"]})}]}}).state("main.staff.telephones.view.voice",{url:"/voice",templateUrl:"app/staff/telephone/view/view.voice.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("TelephoneWizardCtrl",["$scope","$http","$location","WizardHandler","xAlert","$translate","Telephone","Setting",function(t,e,n,a,s,i,l,o){t.forms={},t.item={allow:["alaw","ulaw","gsm"],transport:["udp"],context:"from-sip"},t.next=function(){a.wizard().next()},t.exitValidation=function(t){return t},t.getFirstFreeInternal=function(){return o.get({controller:"internal"}).$promise.then(function(e){return t.item.internal=e.value,o.get({id:1}).$promise}).then(function(e){t.setting=e}).catch(function(t){s.error(t)})},t.createItem=function(){var e=angular.copy(t.item);return e.transport&&(e.transport=e.transport.join(",")),t.item.allow&&(e.allow=e.allow.join(";")),l.save(e).$promise.then(function(){n.path("/staff/telephones/list")}).catch(function(t){s.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.telephones.wizard",{url:"/wizard",templateUrl:"app/staff/telephone/wizard/wizard.html",controller:"TelephoneWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("UserListCtrl",["$scope","$timeout","User","Auth","gridOptions",function(t,e,n,a,s){function i(t){if(t){var e=_.words(t);return _.map(e,function(t){return t?t[0]:""}).join("").toUpperCase()}return!1}t.getUserAvatar=function(t,n,a){e(function(){angular.element("#userImg"+t).avatar({useGravatar:!1,initials:a?[]:i(n),fallbackImage:"api/users/avatar/"+a,size:80})})},t.isAdmin=function(t){return"admin"===t},t.initView=function(){var e={exporterCsvFilename:"users.csv",columnDefs:[{name:"fullname"},{name:"name",displayName:"APPLICATION_USERNAME"},{name:"internal"},{name:"email"},{name:"description"},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/staff/users/view/{{row.entity.id}}/account",name:"profile"},{class:"green-meadow",href:"/staff/users/view/{{row.entity.id}}/permit/voice",name:"permits",hide:"grid.appScope.isAdmin(row.entity.role)"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.fullname, row.entity.id)"}]}]};t.gridOptions=s.gridOptions(n,e,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.users.list",{url:"/list",templateUrl:"app/staff/user/list/list.html",controller:"UserListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Module",["$resource",function(t){return t("/api/modules/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("User",["$resource",function(t){return t("/api/users/:id/:controller/:controller2/:controller3",{id:"@id"},{changePassword:{method:"PUT",params:{controller:"password"}},update:{method:"PUT"},me:{method:"GET",params:{id:"me"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.users",{url:"/users",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("UserViewCtrl",["$scope","$stateParams","$cookieStore","$translate","FileUploader","User","Auth","xAlert","MailQueue","VoiceQueue","ChatQueue","FaxQueue","SmsQueue","OpenChannelQueue","Team","Module","Setting","$location",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A){function v(t,e){var n,a,s=e.length;for(n=0;n<s;n++){if(e[n].id===t)return e[n];if(e[n].SubModules&&e[n].SubModules.length&&(a=v(t,e[n].SubModules)))return a}}function I(e){var n=v(e.ModuleId,t.modules);!0===e.status?n.status=!0:_.filter(n.SubModules,{status:!0}).length||(n.status=!1),n.ModuleId&&I(n)}function b(t,e){t.forEach(function(t){t.status=e,t.SubModules&&t.SubModules.length&&b(t.SubModules,e)})}function E(t,e){e.forEach(function(e){_.find(t,{id:e.id})?e.status=!0:e.status=!1,e.SubModules&&e.SubModules.length&&E(t,e.SubModules)})}function T(t,e){return t=_.union(t,_.map(_.filter(e,{status:!0}),"id")),e.forEach(function(e){e.SubModules&&e.SubModules.length&&(t=_.union(t,T(t,e.SubModules)))}),t}t.Auth=l,t._=_,t.forms={},t.moduleSwitch={onText:"On",offText:"Off",isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.checkUser=function(){var t=l.getCurrentUser();l.isAdmin()||Number(e.id)===t.id||A.path("main.dashboard.voice")},t.initVoiceQueues=function(){var t={},n={};return c.get().$promise.then(function(n){return t.queues=_.map(n.rows,function(t){return{name:t.name}}),i.query({id:e.id,controller:"allowed",controller2:"voice",controller3:"queues"}).$promise}).then(function(t){n.queues=_.map(t,function(t){return{name:t.name}})}).then(function(){ComponentsDropdowns.bindPermit(t,n,"voice",e.id,i)}).catch(function(t){console.error(t)})},t.initChatQueues=function(){var t={},n={};return d.get().$promise.then(function(n){return t.queues=_.map(n.rows,function(t){return{id:t.id,name:t.name}}),i.query({id:e.id,controller:"allowed",controller2:"chat",controller3:"queues"}).$promise}).then(function(t){n.queues=_.map(t,function(t){return{id:t.id,name:t.name}})}).then(function(){ComponentsDropdowns.bindPermit(t,n,"chat",e.id,i)}).catch(function(t){console.error(t)})},t.initMailQueues=function(){var t={},n={};return r.get().$promise.then(function(n){return t.queues=_.map(n.rows,function(t){return{id:t.id,name:t.name}}),i.query({id:e.id,controller:"allowed",controller2:"mail",controller3:"queues"}).$promise}).then(function(t){n.queues=_.map(t,function(t){return{id:t.id,name:t.name}})}).then(function(){ComponentsDropdowns.bindPermit(t,n,"mail",e.id,i)}).catch(function(t){console.error(t)})},t.initSmsQueues=function(){var t={},n={};return p.get().$promise.then(function(n){return t.queues=_.map(n.rows,function(t){return{id:t.id,name:t.name}}),i.query({id:e.id,controller:"allowed",controller2:"sms",controller3:"queues"}).$promise}).then(function(t){n.queues=_.map(t,function(t){return{id:t.id,name:t.name}})}).then(function(){ComponentsDropdowns.bindPermit(t,n,"sms",e.id,i)}).catch(function(t){console.error(t)})},t.initFaxQueues=function(){var t={},n={};return u.get().$promise.then(function(n){return t.queues=_.map(n.rows,function(t){return{id:t.id,name:t.name}}),i.query({id:e.id,controller:"allowed",controller2:"fax",controller3:"queues"}).$promise}).then(function(t){n.queues=_.map(t,function(t){return{id:t.id,name:t.name}})}).then(function(){ComponentsDropdowns.bindPermit(t,n,"fax",e.id,i)}).catch(function(t){console.error(t)})},t.initOpenchannelQueues=function(){var t={},n={};return m.get().$promise.then(function(n){return t.queues=_.map(n.rows,function(t){return{id:t.id,name:t.name}}),i.query({id:e.id,controller:"allowed",controller2:"openchannel",controller3:"queues"}).$promise}).then(function(t){n.queues=_.map(t,function(t){return{id:t.id,name:t.name}})}).then(function(){ComponentsDropdowns.bindPermit(t,n,"openchannel",e.id,i)}).catch(function(t){console.error(t)})},t.initView=function(){return i.get({id:e.id}).$promise.then(function(e){return t.user=e,t.user.transport=t.user.transport?t.user.transport.split(","):[],t.user.allow=t.user.allow?t.user.allow.split(";"):[],f.get({id:1}).$promise}).then(function(e){t.setting=e}).catch(function(t){o.error(t)})},t.updateItem=function(){var n=angular.copy(t.user);return delete n.password,delete n.md5secret,n.transport=n.transport.join(","),n.allow=n.allow.join(";"),i.update({id:e.id},n).$promise.then(function(){o.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})},t.updatePassword=function(){var n={newPassword:t.user.newPwd};return l.isAdmin()?n.id=e.id:n.oldPassword=t.user.currentPwd,i.changePassword(n).$promise.then(function(){o.show(a.instant("MESSAGE_WELL_DONE"),"success"),t.user.newPwd="",t.user.reNewPwd="",t.user.currentPwd="",t.forms.changePwd.$setPristine(),t.forms.changePwd.$setUntouched()}).catch(function(t){o.error(t)})};var N=t.uploader=new s({url:"api/users/"+e.id+"/avatar",queueLimit:1,withCredentials:!0,headers:{Authorization:"Bearer "+n.get("token")}});N.filters.push({name:"imageFilter",fn:function(t){var e="|"+t.type.slice(t.type.lastIndexOf("/")+1)+"|";return-1!=="|jpg|png|jpeg|".indexOf(e)}}),t.getModules=function(){return t.associatedModules=[],h.get().$promise.then(function(n){return t.modules=_.filter(n.rows,function(t){return!t.ModuleId}),i.query({id:e.id,controller:"allowed",controller2:"modules"}).$promise}).then(function(e){E(e,t.modules)}).catch(function(t){o.error(t)})},t.updatePermissions=function(n){n.ModuleId&&I(n),n.SubModules&&n.SubModules.length&&b(n.SubModules,n.status);var s=T([],t.modules);return i.save({id:e.id,controller:"allowed",controller2:"modules"},{modules:s}).$promise.then(function(){o.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){o.error(t)})},N.onSuccessItem=function(e,n){t.user.userpic=n.userpic,t.user.id===l.getCurrentUser().id&&(l.getCurrentUser().userpic=n.userpic),o.show(a.instant("MESSAGE_WELL_DONE"),"success")},N.onErrorItem=function(){o.show(a.instant("MESSAGE_SOMETHING_WENT_WRONG"),"danger")},N.onCompleteAll=function(){N.clearQueue()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.users.view",{url:"/view/:id",templateUrl:"app/staff/user/view/view.html",controller:"UserViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.staff.users.view.account",{url:"/account",templateUrl:"app/staff/user/view/view.account.html",resolve:{deps:["$ocLazyLoad",function(t){return t.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"]})}]}}).state("main.staff.users.view.voice",{url:"/voice",templateUrl:"app/staff/user/view/view.voice.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}}).state("main.staff.users.view.permit",{url:"/permit",templateUrl:"app/staff/user/view/view.permit.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}},cache:!1,serie:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.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/plugins/jquery-quicksearch/jquery.quicksearch.js","assets/scripts/components-dropdowns.js"]})}]}}).state("main.staff.users.view.permit.voice",{url:"/voice",templateUrl:"app/staff/user/view/view.permit.voice.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}}).state("main.staff.users.view.permit.chat",{url:"/chat",templateUrl:"app/staff/user/view/view.permit.chat.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.chat"}}}).state("main.staff.users.view.permit.mail",{url:"/mail",templateUrl:"app/staff/user/view/view.permit.mail.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.mail"}}}).state("main.staff.users.view.permit.fax",{url:"/fax",templateUrl:"app/staff/user/view/view.permit.fax.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.fax"}}}).state("main.staff.users.view.permit.sms",{url:"/sms",templateUrl:"app/staff/user/view/view.permit.sms.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.sms"}}}).state("main.staff.users.view.permit.openchannel",{url:"/openchannel",templateUrl:"app/staff/user/view/view.permit.openchannel.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.openchannel"}}}).state("main.staff.users.view.permit.modules",{url:"/modules",templateUrl:"app/staff/user/view/view.permit.modules.html",data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").controller("UserWizardCtrl",["$scope","$location","WizardHandler","xAlert","$translate","User","Setting","Auth",function(t,e,n,a,s,i,l,o){t.initWizard=function(){return t.Auht=o,t.forms={info:void 0,voice:void 0},t.item={role:"user",host:"dynamic",context:"from-sip"},l.get({controller:"internal"}).$promise.then(function(e){return t.item.internal=e.value,l.get({id:1}).$promise}).then(function(e){t.setting=e}).catch(function(t){a.error(t)})},t.next=function(){n.wizard().next()},t.exitValidation=function(t){return t},t.createItem=function(){return i.save(t.item).$promise.then(function(t){e.path("user"===t.role?"/staff/users/view/"+t.id+"/permit/voice":"/staff/users/view/"+t.id+"/account")}).catch(function(t){a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.staff.users.wizard",{url:"/wizard",templateUrl:"app/staff/user/wizard/wizard.html",controller:"UserWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmListCtrl",["$scope","SugarcrmAccount","gridOptions","xAlert","$translate",function(t,e,n,a,s){t.initView=function(){var a={exporterCsvFilename:"sugarcrm_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",width:250,buttons:[{class:"blue-hoki",href:"/sugarcrm/view/{{row.entity.id}}/account",name:"profile"},{class:"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.checkAccount=function(t){return e.get({id:t,controller:"check"}).$promise.then(function(){a.show(s.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")}).catch(function(){a.show(s.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.sugarcrm.list",{url:"/list",templateUrl:"app/sugarcrm/list/list.html",controller:"SugarcrmListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").factory("SugarcrmAccount",["$resource",function(t){return t("/api/sugarcrm/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},moduleFields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}},modules:{params:{controller:"modules"},isArray:!0}})}]).factory("SugarcrmConfiguration",["$resource",function(t){return t("/api/sugarcrm/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("SugarcrmField",["$resource",function(t){return t("/api/sugarcrm/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.sugarcrm",{url:"/sugarcrm",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin"],redirectTo:"main.dashboard.voice"}}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.sugarcrm.view.configurations",{url:"/configurations",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","SugarcrmConfiguration","$uibModal",function(t,e,n,a,s,i){t.initView=function(){var n={exporterCsvFilename:"sugarcrm_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/sugarcrm/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(s,n,t,{accountId:e.id})},t.createItem=function(){i.open({animation:!0,templateUrl:"app/sugarcrm/view/configuration/list/create.modal.html",controller:"SugarcrmCreateConfigurationCtrl"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("SugarcrmCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","SugarcrmConfiguration","xAlert","$stateParams","channel",function(t,e,n,a,s,i,l){t.form={},t.item={},t.channels=l,t.item.channel="voice",t.item.type="Queue",t.save=function(){return a.save({accountId:i.id},t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.sugarcrm.view.configurations.list",{url:"/list",templateUrl:"app/sugarcrm/view/configuration/list/list.html",controller:"SugarcrmViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewConfigurationViewCtrl",["$scope","$filter","$stateParams","$translate","socket","variable","xAlert","SugarcrmAccount","SugarcrmConfiguration","SugarcrmField","Variable","usSpinnerService",function(t,e,n,a,s,i,l,o,r,c,d,u){t.$on("$destroy",function(){s.unsyncUpdates("sugarcrm_field")}),t.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},t.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],t.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],t.defaultMappingSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.groupVariableByGroup=function(t){switch(t.group){case"voice_queue":return"Voice: Queue";default:return"Other"}},t.initView=function(){t.configurationName="",t.subjectConfig=[],t.descriptionConfig=[],t.fieldConfig=[],t.variables=i,t.mapping={}},t.getConfiguration=function(){return r.get({accountId:n.id,id:n.configurationId}).$promise.then(function(e){t.configurationName=e.name,t.subjectConfig=e.Subject,t.descriptionConfig=e.Description,t.fieldConfig=e.Field,t.mapping.defaultMapping=e.defaultMapping,t.mapping.mappingModule=e.mappingModule,t.mapping.mappingFields=e.mappingFields,t.getModuleFields(),s.socket.on("sugarcrm_field:remove",function(e){_.remove(t.subjectConfig,{id:e.id}),_.remove(t.descriptionConfig,{id:e.id}),_.remove(t.fieldConfig,{id:e.id})})}).catch(function(t){l.error(t)})},t.getCustomVariables=function(){return d.get().$promise.then(function(e){t.customVariables=e.rows}).catch(function(t){l.error(t)})},t.getFields=function(){return o.fields({id:n.id}).$promise.then(function(n){t.accountFields=_.sortByOrder(e("sugarcrm")(n),"name","asc"),_.forEach(n,function(t){t.options=_.toArray(t.options)})}).catch(function(t){l.error(t)})},t.getModules=function(){return o.modules({id:n.id}).$promise.then(function(e){t.accountModules=e}).catch(function(t){l.error(t)})},t.getModuleFields=function(){if(!t.mapping.defaultMapping&&t.mapping.mappingModule)return o.moduleFields({id:n.id,module:t.mapping.mappingModule}).$promise.then(function(e){t.moduleFields=e}).catch(function(t){l.error(t)}).finally(function(){u.stop("spinner-grid")})},t.addItem=function(e){var a={};switch(e){case"subject":case"description":a={type:"string",content:""};break;case"field":a={content:""}}return r.save({accountId:n.id,id:n.configurationId,controller:e},a).$promise.then(function(n){switch(e){case"subject":t.subjectConfig.push(n);break;case"description":t.descriptionConfig.push(n);break;case"field":t.fieldConfig.push(n)}}).catch(function(t){l.error(t)})},t.changeType=function(e){"variable"===e.type?(e.content="",e.variableName=""):"string"===e.type?(e.VariableId=null,e.variableName=""):"customVariable"===e.type&&(e.VariableId=null,e.content=""),t.updateField(e)},t.updateField=function(t){return c.update({accountId:n.id,configurationId:n.configurationId,id:t.id},t).$promise.then(function(){}).catch(function(t){l.error(t)})},t.removeItem=function(t){return c.delete({accountId:n.id,configurationId:n.configurationId,id:t.id}).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){l.error(t)})},t.changeFieldType=function(e){e.content="",e.variableName="",e.nameField="",e.VariableId=null,t.updateField(e)},t.changeDescType=function(e){"keyValue"===e.type?(e.content="","string"===e.keyType?(e.VariableId=null,e.variableName=""):"variable"===e.keyType?(e.keyContent="",e.VariableId=null):"customVariable"===e.keyType&&(e.keyContent="",e.variableName="")):"string"===e.type&&(e.VariableId=null,e.variableName="",e.key="",e.keyContent=""),t.updateField(e)},t.getSystemFieldOptions=function(e){if(e){var n=_.find(t.accountFields,"name",e);return n?n.options.length>0?n.options:null:void 0}},t.updateMapping=function(){return t.mapping.defaultMapping&&(t.mapping.mappingModule=null,t.mapping.mappingFields=[]),r.update({accountId:n.id,id:n.configurationId},t.mapping).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE")+".","success")}).catch(function(t){l.error(t)})},t.updateMappingModule=function(){u.spin("spinner-grid"),t.mapping.mappingFields=[],t.getModuleFields()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.sugarcrm.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/sugarcrm/view/configuration/view/view.html",controller:"SugarcrmViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmViewCtrl",["$scope","$http","$stateParams","$translate","$location","$filter","WizardHandler","socket","xAlert","Modal","SugarcrmAccount",function(t,e,n,a,s,i,l,o,r,c,d){t.initView=function(){return d.get({id:n.id}).$promise.then(function(e){t.account=e}).catch(function(t){r.error(t)})},t.updateItem=function(){return d.update({id:n.id},t.account).$promise.then(function(){r.show(a.instant("MESSAGE_WELL_DONE")+".","success")}).catch(function(t){r.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.sugarcrm.view",{url:"/view/:id",templateUrl:"app/sugarcrm/view/view.html",controller:"SugarcrmViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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"})}]),angular.module("xCallyShuttleApp").controller("SugarcrmkWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","SugarcrmAccount",function(t,e,n,a,s,i,l){t.translate=a,t.initWizard=function(){t.$translate=a,t.forms={},t.item={},t.item.serverUrl=n.protocol()+"://"+location.host},t.next=function(){i.wizard().next()},t.exitValidation=function(t){return t},t.createItem=function(){return l.save(t.item).$promise.then(function(){s.show(a.instant("MESSAGE_WELL_DONE")+".","success"),n.path("/sugarcrm/list")}).catch(function(t){s.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.sugarcrm.wizard",{url:"/wizard",templateUrl:"app/sugarcrm/wizard/wizard.html",controller:"SugarcrmkWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("CannedAnswer",["$resource",function(t){return t("/api/answers/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.answers",{url:"/answers",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:58}}})}]),angular.module("xCallyShuttleApp").controller("AnswerListCtrl",["$scope","$uibModal","CannedAnswer","gridOptions",function(t,e,n,a){t.initView=function(){var e={exporterCsvFilename:"answers.csv",columnDefs:[{name:"key",displayName:"APPLICATION_KEY"},{name:"value"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/tools/answers/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.key, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(n,e,t)},t.createItem=function(){e.open({animation:!0,templateUrl:"app/tools/answer/list/list.create.modal.html",controller:"AnswerListCreateCtrl"}).result.then(function(e){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("AnswerListCreateCtrl",["$scope","$translate","$uibModalInstance","CannedAnswer","xAlert",function(t,e,n,a,s){t.form={},t.item={},t.save=function(){return a.save(t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.answers.list",{url:"/list",templateUrl:"app/tools/answer/list/list.html",controller:"AnswerListCtrl"})}]),angular.module("xCallyShuttleApp").controller("AnswerViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location","CannedAnswer",function(t,e,n,a,s,i,l){t.getAnswer=function(){return l.get({id:s.id}).$promise.then(function(e){t.answer=e}).catch(function(t){n.error(t)})},t.updateAnswer=function(){var e=angular.copy(t.answer);return l.update({id:s.id},e).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){n.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.answers.view",{url:"/view/:id",templateUrl:"app/tools/answer/view/view.html",controller:"AnswerViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.answers.view.settings",{url:"/settings",templateUrl:"app/tools/answer/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("Automation",["$resource",function(t){return t("/api/automations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.automations",{url:"/automations",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:51}}})}]),angular.module("xCallyShuttleApp").controller("AutomationListCtrl",["$scope","$http","$translate","xAlert","Automation","gridOptions",function(t,e,n,a,s,i){t.onText="On",t.offText="Off",t.isActive=!0,t.size="mini",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initView=function(){var e={exporterCsvFilename:"Automations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"channel"},{name:"status",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.status" type="checkbox" switch-active="{{ grid.appScope.isActive }}" switch-on-text="{{ grid.appScope.onText }}" switch-off-text="{{ grid.appScope.offText }}" switch-on-color="{{ grid.appScope.onColor }}" switch-off-color="{{ grid.appScope.offColor }}" switch-animate="{{ grid.appScope.animate }}" switch-size="{{ grid.appScope.size }}" switch-label="{{ grid.appScope.label }}" switch-icon="{{ grid.appScope.icon }}" switch-radio-off="{{ grid.appScope.radioOff }}" switch-label-width="{{ grid.appScope.labelWidth }}" switch-handle-width="{{ grid.appScope.handleWidth }}"></div>',width:100,enableFiltering:!1},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/tools/automations/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=i.gridOptions(s,e,t)},t.updateItem=function(t){return s.update({id:t.id},t).$promise.then(function(){a.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){console.error(t),a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.automations.list",{url:"/list",templateUrl:"app/tools/automation/list/list.html",controller:"AutomationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("AutomationViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","automations","Automation","$location",function(t,e,n,a,s,i,l,o){t.$automations=i,t.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.forms={general:{}},t.addCondition=function(e){t.automation[e].push({field:"",operator:"",value:""})},t.removeCondition=function(e,n){t.automation[e].splice(n,1)},t.addAction=function(){t.automation.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},t.resetActionData=function(t){t.data1="",t.data2="",t.data3="",t.data4="",t.data5=""},t.removeAction=function(e){t.automation.Actions.splice(e,1)},t.initView=function(){return l.get({id:e.id}).$promise.then(function(e){t.automation=e}).catch(function(t){s.error(t),o.path("/tools/automations/list")})},t.updateAutomation=function(){return l.update({id:e.id},t.automation).$promise.then(function(){s.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){console.error(t),s.error(t)})},t.exitValidation=function(e){return console.log(e&&(t.automation.All.length||t.automation.Any.length)&&t.automation.Actions.length),!(!e||!t.automation.All.length&&!t.automation.Any.length||!t.automation.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.automations.view",{url:"/view/:id",templateUrl:"app/tools/automation/view/view.html",controller:"AutomationViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.tools.automations.view.settings",{url:"/settings",templateUrl:"app/tools/automation/view/view.settings.html"}).state("main.tools.automations.view.routes",{url:"/routes",templateUrl:"app/tools/automation/view/view.routes.html"}).state("main.tools.automations.view.application",{url:"/application",templateUrl:"app/tools/automation/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("AutomationWizardCtrl",["$scope","$http","$location","xAlert","automations","WizardHandler","Automation",function(t,e,n,a,s,i,l){t.$automations=s,t.statusSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.tempData={voice:{},mail:{},chat:{},fax:{}},t.item={All:[],Any:[],Actions:[]},t.forms={general:void 0,settings:void 0},t.addCondition=function(e){t.item[e].push({field:"",operator:"",value:""})},t.removeCondition=function(e,n){t.item[e].splice(n,1)},t.addAction=function(){t.item.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},t.resetActionData=function(t){t.data1="",t.data2="",t.data3="",t.data4="",t.data5=""},t.removeAction=function(e){t.item.Actions.splice(e,1)},t.$watch("item.channel",function(e,n){n&&(t.tempData[n].All=_.clone(t.item.All,!0),t.tempData[n].Any=_.clone(t.item.Any,!0),t.tempData[n].Actions=_.clone(t.item.Actions,!0)),t.item.All=t.tempData[e].All?t.tempData[e].All:[],t.item.Any=t.tempData[e].Any?t.tempData[e].Any:[],t.item.Actions=t.tempData[e].Actions?t.tempData[e].Actions:[]},!0),t.item.channel="mail",t.createItem=function(){return l.save(t.item).$promise.then(function(){n.path("/tools/automations/list")}).catch(function(t){console.error(t),a.error(t)})},t.next=function(){i.wizard().next()},t.previous=function(){i.wizard().previous()},t.exitValidation=function(t){return t},t.exitSettingsValidation=function(e){return!(!e||!t.item.All.length&&!t.item.Any.length||!t.item.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.automations.wizard",{url:"/wizard",templateUrl:"app/tools/automation/wizard/wizard.html",controller:"AutomationWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("Interval",["$resource",function(t){return t("/api/intervals/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.intervals",{url:"/intervals",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:53}}})}]),angular.module("xCallyShuttleApp").controller("IntervalListCtrl",["$scope","$uibModal","Interval","gridOptions",function(t,e,n,a){t.initView=function(){var e={exporterCsvFilename:"intervals.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/tools/intervals/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(n,e,t)},t.createItem=function(){e.open({animation:!0,templateUrl:"app/tools/interval/list/list.create.modal.html",controller:"IntervalListCreateCtrl"}).result.then(function(e){console.log(e),t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("IntervalListCreateCtrl",["$scope","$translate","$uibModalInstance","Interval","xAlert",function(t,e,n,a,s){t.form={},t.item={},t.save=function(){return a.save(t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.intervals.list",{url:"/list",templateUrl:"app/tools/interval/list/list.html",controller:"IntervalListCtrl"})}]),angular.module("xCallyShuttleApp").controller("IntervalViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","WizardHandler","Modal","interval",function(t,e,n,a,s,i,l,o,r,c){function d(e){var n,a,s,i;n=e.t_from&&e.t_to&&!e.alwaysTime?moment(e.t_from).format("HH:mm")+"-"+moment(e.t_to).format("HH:mm"):"*",e.wd_from&&"always"!==e.wd_from?(a=e.wd_from,e.wd_to&&"always"!==e.wd_to&&(a+="-"+e.wd_to)):a="*",e.md_from&&"always"!==e.md_from?(s=e.md_from,e.md_to&&"always"!==e.md_to&&(s+="-"+e.md_to)):s="*",e.m_from&&"always"!==e.m_from?(i=e.m_from,e.m_to&&"always"!==e.m_to&&(i+="-"+e.m_to)):i="*",void 0!==t.selectedSubInterval?t.interval.SubIntervals[t.selectedSubInterval].interval=n+","+a+","+s+","+i:t.subinterval.interval=n+","+a+","+s+","+i}t.$translate=a,t.$interval=c.interval,t.selectedSubInterval=void 0,t.switch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.gridOptions={columnDefs:[{name:"name",displayName:"APPLICATION_NAME",headerCellFilter:"translate"},{name:"interval",displayName:"APPLICATION_INTERVAL",headerCellFilter:"translate"},{name:"action",displayName:"APPLICATION_ACTION",headerCellFilter:"translate",width:125,cellTemplate:'<a class="btn btn-xs blue-hoki" data-ng-click="grid.appScope.openSubInterval(grid.appScope.gridOptions.data.indexOf(row.entity))">{{\'APPLICATION_SETTINGS\' | translate}}</a><a class="btn btn-xs red-sunglo" data-ng-click="grid.appScope.deleteSubInterval(row.entity.name+\' interval\', grid.appScope.gridOptions.data.indexOf(row.entity))">{{\'APPLICATION_DELETE\' | translate}}</a>'}]},t.forms={subinterval:void 0,general:void 0},t.initSubInterval=function(e){e&&(t.selectedSubInterval=void 0),t.subinterval={},t.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}},t.next=function(){o.wizard().next()},t.previous=function(){o.wizard().previous()},t.exitValidation=function(t){return t},t.deselectAndRedirect=function(e){t.selectedSubInterval=void 0,l.path(e)},t.getInterval=function(){e.get("/api/intervals/"+s.id).success(function(e){t.interval=e,t.gridOptions.data=e.SubIntervals}).error(function(t){console.error(t),l.path("/tools/intervals/list")})},t.openSubInterval=function(e){t.selectedSubInterval=e,l.path("/tools/intervals/view/"+s.id+"/subintervals/settings")},t.updateInterval=function(i){t.selectedSubInterval=void 0,e.put("/api/intervals/"+s.id,t.interval).success(function(){t.getInterval(),n.show(a.instant("MESSAGE_WELL_DONE")+"!","success"),i&&l.path("/tools/intervals/view/"+s.id+"/"+i)}).error(function(t){n.error(t)})},t.getSubInterval=function(){void 0===t.selectedSubInterval&&l.path("/tools/intervals/list"),t.splittedInterval={t_from:moment(new Date),t_to:moment(new Date)};var e;(t.interval.SubIntervals[t.selectedSubInterval]?t.interval.SubIntervals[t.selectedSubInterval].interval.split(","):["*","*","*","*"]).forEach(function(n,a){switch(a){case 0:"*"!==n?(e=n.split("-"),t.splittedInterval.t_from=moment(e[0],"HH:mm"),t.splittedInterval.t_to=moment(e[1],"HH:mm"),t.splittedInterval.alwaysTime=!1):(t.splittedInterval.t_from=moment(new Date),t.splittedInterval.t_to=moment(new Date),t.splittedInterval.alwaysTime=!0);break;case 1:"*"!==n?(e=n.split("-"),t.splittedInterval.wd_from=e[0],t.splittedInterval.wd_to=e[1]?e[1]:"always"):(t.splittedInterval.wd_from="always",t.splittedInterval.wd_to="always");break;case 2:"*"!==n?(e=n.split("-"),t.splittedInterval.md_from=e[0],t.splittedInterval.md_to=e[1]?e[1]:"always"):(t.splittedInterval.md_from="always",t.splittedInterval.md_to="always");break;case 3:"*"!==n?(e=n.split("-"),t.splittedInterval.m_from=e[0],t.splittedInterval.m_to=e[1]?e[1]:"always"):(t.splittedInterval.m_from="always",t.splittedInterval.m_to="always")}})},t.$watch("splittedInterval",function(t){t&&d(t)},!0),t.addSubInterval=function(){t.interval.SubIntervals.push(t.subinterval),t.updateInterval("subintervals")},t.deleteSubInterval=r.confirm.delete(function(e){t.interval.SubIntervals.splice(e,1),t.updateInterval()})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.intervals.view",{url:"/view/:id",templateUrl:"app/tools/interval/view/view.html",controller:"IntervalViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.intervals.view.settings",{url:"/settings",templateUrl:"app/tools/interval/view/view.settings.html"}).state("main.tools.intervals.view.subintervals",{url:"/subintervals",templateUrl:"app/tools/interval/view/view.subintervals.html"}).state("main.tools.intervals.view.subinterval",{url:"/subinterval",templateUrl:"app/tools/interval/view/view.subinterval.html"}).state("main.tools.intervals.view.subintervals.settings",{url:"/settings",templateUrl:"app/tools/interval/view/view.subintervalSettings.html"})}]),angular.module("xCallyShuttleApp").controller("PauseListCtrl",["$scope","$log","$uibModal","$translate","Pause","gridOptions",function(t,e,n,a,s,i){t.initView=function(){var e={exporterCsvFilename:"pauses.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/tools/pauses/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=i.gridOptions(s,e,t)},t.createItem=function(){n.open({animation:!0,templateUrl:"app/tools/pause/list/list.create.modal.html",controller:"PauseListCreateCtrl"}).result.then(function(e){console.log(e),t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("PauseListCreateCtrl",["$scope","$translate","$uibModalInstance","Pause","xAlert",function(t,e,n,a,s){t.form={},t.item={},t.save=function(){return a.save(t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.pauses.list",{url:"/list",templateUrl:"app/tools/pause/list/list.html",controller:"PauseListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Pause",["$resource",function(t){return t("/api/pauses/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.pauses",{url:"/pauses",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:57}}})}]),angular.module("xCallyShuttleApp").controller("PauseViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location","Pause",function(t,e,n,a,s,i,l){t.getPause=function(){return l.get({id:s.id}).$promise.then(function(e){t.pause=e}).catch(function(t){n.error(t)})},t.updatePause=function(){var e=angular.copy(t.pause);return l.update({id:s.id},e).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){n.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.pauses.view",{url:"/view/:id",templateUrl:"app/tools/pause/view/view.html",controller:"PauseViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.pauses.view.settings",{url:"/settings",templateUrl:"app/tools/pause/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SchedulerListCtrl",["$scope","Scheduler","gridOptions","xAlert","$translate","socket",function(t,e,n,a,s,i){t._=_,t.switches={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.scheduleTypes=[{name:"APPLICATION_REPORT_EXTRACTION",value:"report"},{name:"APPLICATION_HISTORY_MOVE",value:"history"},{name:"APPLICATION_DB_BACKUP",value:"backup"}],t.initView=function(){var a={exporterCsvFilename:"Schedules.csv",columnDefs:[{name:"name"},{name:"type",cellTemplate:'<div class="centered-uigrid-td">{{grid.appScope._.find(grid.appScope.scheduleTypes,{value:row.entity.type}).name | translate}}</div>'},{name:"description"},{name:"active",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.active" type="checkbox" switch-active="{{ grid.appScope.switches.isActive }}" switch-on-text="{{ \'APPLICATION_YES\' | translate }}" switch-off-text="{{ \'APPLICATION_NO\' | translate }}" switch-on-color="{{ grid.appScope.switches.onColor }}" switch-off-color="{{ grid.appScope.switches.offColor }}" switch-animate="{{ grid.appScope.switches.animate }}" switch-size="{{ grid.appScope.switches.size }}" switch-label="{{ grid.appScope.switches.label }}" switch-icon="{{ grid.appScope.switches.icon }}" switch-radio-off="{{ grid.appScope.switches.radioOff }}" switch-label-width="{{ grid.appScope.switches.labelWidth }}" switch-handle-width="{{ grid.appScope.switches.handleWidth }}"></div>',enableFiltering:!1,enableSorting:!1},{name:"sendMail",displayName:"APPLICATION_SEND_MAIL",cellTemplate:'<div data-ng-if="row.entity.type == \'report\'" class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.sendMail" type="checkbox" switch-active="{{ grid.appScope.switches.isActive }}" switch-on-text="{{ \'APPLICATION_YES\' | translate }}" switch-off-text="{{ \'APPLICATION_NO\' | translate }}" switch-on-color="{{ grid.appScope.switches.onColor }}" switch-off-color="{{ grid.appScope.switches.offColor }}" switch-animate="{{ grid.appScope.switches.animate }}" switch-size="{{ grid.appScope.switches.size }}" switch-label="{{ grid.appScope.switches.label }}" switch-icon="{{ grid.appScope.switches.icon }}" switch-radio-off="{{ grid.appScope.switches.radioOff }}" switch-label-width="{{ grid.appScope.switches.labelWidth }}" switch-handle-width="{{ grid.appScope.switches.handleWidth }}"></div>',enableFiltering:!1,enableSorting:!1},{name:"action",width:100,buttons:[{class:"blue-hoki",href:"/tools/scheduler/view/{{row.entity.id}}/settings",name:"settings"},{class:"green-turquoise",name:"run",onClick:"grid.appScope.runSchedule(row.entity.id)"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.updateItem=function(t){return e.update({id:t.id},t).$promise.then(function(){a.show(s.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){console.error(t),a.error(t)})},t.runSchedule=function(t){return e.get({id:t,controller:"run"}).$promise.then(function(){a.show(s.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){console.error(t),a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.scheduler.list",{url:"/list",templateUrl:"app/tools/scheduler/list/list.html",controller:"SchedulerListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Scheduler",["$resource",function(t){return t("/api/scheduler/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.scheduler",{url:"/scheduler",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:61}}})}]),angular.module("xCallyShuttleApp").controller("SchedulerViewCtrl",["$scope","xAlert","$translate","$stateParams","socket","$location","ReportTree","Scheduler","DefaultReport","CustomReport","$timeout","MailServerOut",function(t,e,n,a,s,i,l,o,r,c,d,u){function p(){switch(t.schedule.cronType=t.rangeExec.type,t.rangeExec.type){case"daily":t.schedule.cron="00 "+t.rangeExec.hour+" * * *";break;case"weekly":t.schedule.cron="00 "+t.rangeExec.hour+" * * "+t.rangeExec.weekDays.join(",");break;case"monthly":t.schedule.cron="00 "+t.rangeExec.hour+" "+t.rangeExec.monthDay+" * *"}}function m(e){var n;switch(e.cronType){case"daily":t.rangeExec.hour=Number(e.cron.split(" ")[1]),t.rangeExec.type=e.cronType;break;case"weekly":n=e.cron.split(" "),t.rangeExec.hour=Number(n[1]),n[4].split(",").forEach(function(e){t.rangeExec.weekDays.push(Number(e))}),t.rangeExec.type=e.cronType;break;case"monthly":n=e.cron.split(" "),t.rangeExec.hour=Number(n[1]),t.rangeExec.monthDay=Number(n[2]),t.rangeExec.type=e.cronType;break;case"currentDay":t.switchValues.today=!0}t.$watch("rangeExec",function(e){t.switchValues.today||p()},!0)}t.forms={},t.rangeExec={weekDays:[],monthDay:null,hour:0,type:null},t.initReports=function(){var n;return t.reports=[],t.tempTodayCron=null,l.query().$promise.then(function(e){return t.defaultTreeData=JSON.parse(e[0].tree),t.customTreeData=JSON.parse(e[1].tree),r.get().$promise}).then(function(e){return t.defRep=e.rows,t.defRep.length&&_.forEach(t.defRep,function(e){(n=_.find(t.defaultTreeData,{id:e.parent}))&&(e.parent="Motion Reports - "+n.text,e.type="default")}),c.get().$promise}).then(function(e){return t.cusRep=e.rows,t.cusRep.length&&_.forEach(t.cusRep,function(e){(n=_.find(t.customTreeData,{id:e.parent}))&&(e.parent="Custom Reports - "+n.text,e.type="custom")}),u.get().$promise}).then(function(e){t.mailServers=e.rows}).catch(function(t){e.error(t)})},t.initView=function(){return o.get({id:a.id}).$promise.then(function(e){t.schedule=e,m(e)}).then(function(){s.socket.on("schedule:update",function(e){t.schedule.id===e.id&&(t.schedule.active=e.active,t.schedule.sendMail=e.sendMail)})}).catch(function(t){console.error(t),i.path("/tools/scheduler/list")})},t.refreshSlider=function(){d(function(){t.$broadcast("rzSliderForceRender"),t.refreshSlider=null})},t.monthDays=function(){for(var t=[],e=1;e<=31;e++)t.push(e);return t}(),t.hours=function(){for(var t=[],e=0;e<=23;e++)t.push(e);return t}(),t.setReportTree=function(e){t.schedule.reportType=e.type},t.validitySlider={ceil:24,floor:0,showTicks:!0},t.switchValues={today:!1},t.switches={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.scheduleTypes=[{name:"APPLICATION_REPORT_EXTRACTION",value:"report"}],t.todayCron=[{name:"15 min",value:"*/15 * * * *"},{name:"30 min",value:"*/30 * * * *"},{name:"1 h",value:"0 * * * *"}],t.reportRanges=[{name:"APPLICATION_PREVIOUS_DAY",value:"yesterday"},{name:"APPLICATION_LAST_SEVEN_DAYS",value:"last7"},{name:"APPLICATION_LAST_THIRTY_DAYS",value:"last30"},{name:"APPLICATION_LAST_MONTH",value:"lastMonth"}],t.cronTypes=[{name:"APPLICATION_DAY",value:"daily"},{name:"APPLICATION_WEEK",value:"weekly"},{name:"APPLICATION_MONTH",value:"monthly"}],t.weekDays=[{name:"APPLICATION_MONDAY",value:1},{name:"APPLICATION_TUESDAY",value:2},{name:"APPLICATION_WEDNESDAY",value:3},{name:"APPLICATION_THURSDAY",value:4},{name:"APPLICATION_FRIDAY",value:5},{name:"APPLICATION_SATURDAY",value:6},{name:"APPLICATION_SUNDAY",value:0}],t.checkToday=function(){t.switchValues.today?(t.schedule.cron=angular.copy(t.tempTodayCron),t.schedule.cronType="currentDay"):(t.tempTodayCron=angular.copy(t.schedule.cron),t.schedule.cron=void 0,p())},t.updateSchedule=function(){return o.update({id:t.schedule.id},t.schedule).$promise.then(function(){e.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){console.error(t),e.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.scheduler.view",{url:"/view/:id",templateUrl:"app/tools/scheduler/view/view.html",controller:"SchedulerViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.scheduler.view.settings",{url:"/settings",templateUrl:"app/tools/scheduler/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("SchedulerWizardCtrl",["$scope","WizardHandler","$location","xAlert","Scheduler","ReportTree","$translate","DefaultReport","CustomReport","MailServerOut",function(t,e,n,a,s,i,l,o,r,c){function d(){switch(t.item.cronType=t.rangeExec.type,t.rangeExec.type){case"daily":t.item.cron="00 "+t.rangeExec.hour+" * * *";break;case"weekly":t.item.cron="00 "+t.rangeExec.hour+" * * "+t.rangeExec.weekDays.join(",");break;case"monthly":t.item.cron="00 "+t.rangeExec.hour+" "+t.rangeExec.monthDay+" * *"}}t.forms={},t.item={validityStart:8,validityEnd:16,type:"report",reportType:"default"},t.initReports=function(){t.reports=[];var e;return i.query().$promise.then(function(e){return t.defaultTreeData=JSON.parse(e[0].tree),t.customTreeData=JSON.parse(e[1].tree),o.get().$promise}).then(function(n){return t.defRep=n.rows,t.defRep.length&&_.forEach(t.defRep,function(n){(e=_.find(t.defaultTreeData,{id:n.parent}))&&(n.parent="Motion Reports - "+e.text,n.type="default")}),r.get().$promise}).then(function(n){return t.cusRep=n.rows,t.cusRep.length&&_.forEach(t.cusRep,function(n){(e=_.find(t.customTreeData,{id:n.parent}))&&(n.parent="Custom Reports - "+e.text,n.type="custom")}),c.get().$promise}).then(function(e){t.mailServers=e.rows}).catch(function(t){a.error(t)})},t.setReportTree=function(e){t.item.reportType=e.type},t.validitySlider={ceil:24,floor:0,showTicks:!0},t.switchValues={today:!1},t.switches={isActive:!0,size:"mini",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.scheduleTypes=[{name:"APPLICATION_REPORT_EXTRACTION",value:"report"}],t.todayCron=[{name:"15 min",value:"*/15 * * * *"},{name:"30 min",value:"*/30 * * * *"},{name:"1 h",value:"0 * * * *"}],t.reportRanges=[{name:"APPLICATION_PREVIOUS_DAY",value:"yesterday"},{name:"APPLICATION_LAST_SEVEN_DAYS",value:"last7"},{name:"APPLICATION_LAST_THIRTY_DAYS",value:"last30"},{name:"APPLICATION_LAST_MONTH",value:"lastMonth"}],t.cronTypes=[{name:"APPLICATION_DAY",value:"daily"},{name:"APPLICATION_WEEK",value:"weekly"},{name:"APPLICATION_MONTH",value:"monthly"}],t.weekDays=[{name:"APPLICATION_MONDAY",value:1},{name:"APPLICATION_TUESDAY",value:2},{name:"APPLICATION_WEDNESDAY",value:3},{name:"APPLICATION_THURSDAY",value:4},{name:"APPLICATION_FRIDAY",value:5},{name:"APPLICATION_SATURDAY",value:6},{name:"APPLICATION_SUNDAY",value:0}],t.tempTodayCron=null,t.checkToday=function(){t.switchValues.today?(t.item.cron=angular.copy(t.tempTodayCron),t.item.cronType="currentDay"):(t.tempTodayCron=angular.copy(t.item.cron),t.item.cron=void 0,d())},t.monthDays=function(){for(var t=[],e=1;e<=31;e++)t.push(e);return t}(),t.hours=function(){for(var t=[],e=0;e<=23;e++)t.push(e);return t}(),t.rangeExec={weekDays:[],monthDay:null,hour:0,type:null},t.$watch("rangeExec",function(e){t.switchValues.today||d()},!0),t.next=function(){e.wizard().next()},t.previous=function(){e.wizard().previous()},t.exitValidation=function(t){return t},t.createItem=function(){return s.save(t.item).$promise.then(function(){n.path("/tools/scheduler/list")}).catch(function(t){a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.scheduler.wizard",{url:"/wizard",templateUrl:"app/tools/scheduler/wizard/wizard.html",controller:"SchedulerWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("SoundListCtrl",["$scope","$http","socket","Modal","$q","FileUploader","$translate","xAlert","$cookieStore","$sce","Sound",function(t,e,n,a,s,i,l,o,r,c,d){t.Sound=d,t.isCollapsed=!0,t.downloadButtonClass="btn btn-xs blue-hoki",t.delete=a.confirm.delete(function(t){e.delete("/api/sounds/"+t).success(function(t){}).error(function(t){console.log(t)})}),t.updateAudio=function(t,n){var a=s.defer();return e.put("/api/sounds/"+t,n).success(function(t){a.resolve()}).error(function(t){console.log(t.message),a.reject(t.message)}),a.promise},t.$on("$destroy",function(){n.unsyncUpdates("sound")}),t.initList=function(){e.get("/api/sounds").success(function(e){t.sounds=e.rows,e.rows.length||(t.isCollapsed=!1),n.syncUpdates("sound",t.sounds,function(){t.sounds.length||(t.isCollapsed=!1)})})};var u=t.uploader=new i({url:"/api/sounds",withCredentials:!0,headers:{Authorization:"Bearer "+r.get("token")}});u.filters.push({name:"customFilter",fn:function(t,e){return this.queue.length<10}}),u.onWhenAddingFileFailed=function(t,e,n){console.info("onWhenAddingFileFailed",t,e,n)},u.onAfterAddingFile=function(t){console.info("onAfterAddingFile",t)},u.onAfterAddingAll=function(t){console.info("onAfterAddingAll",t)},u.onBeforeUploadItem=function(t){console.info("onBeforeUploadItem",t)},u.onProgressItem=function(t,e){console.info("onProgressItem",t,e),t.isUploading=!0},u.onProgressAll=function(t){console.info("onProgressAll",t)},u.onSuccessItem=function(t,e,n,a){console.info("onSuccessItem",t,e,n,a),t.isUploading=!1},u.onErrorItem=function(t,e,n,a){console.info("onErrorItem",t,e,n,a),t.responseMessage=e,t.isUploading=!1},u.onCancelItem=function(t,e,n,a){console.info("onCancelItem",t,e,n,a),t.isUploading=!1},u.onCompleteItem=function(t,e,n,a){console.info("onCompleteItem",t,e,n,a),t.isUploading=!1},u.onCompleteAll=function(){console.info("onCompleteAll")}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.sounds.list",{url:"/list",templateUrl:"app/tools/sound/list/list.html",controller:"SoundListCtrl",authenticate:!0,resolve:{deps:["$ocLazyLoad",function(t){return t.load({insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/plugins/bootstrap-fileinput/bootstrap-fileinput.js"]})}]}})}]),angular.module("xCallyShuttleApp").factory("Sound",["$resource",function(t){return t("/api/sounds/:id/:controller",{name:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.sounds",{url:"/sounds",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:60}}})}]),angular.module("xCallyShuttleApp").controller("TagListCtrl",["$scope","$uibModal","Tag","gridOptions","$rootScope",function(t,e,n,a,s){t.initView=function(){var e={exporterCsvFilename:"tag.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/tools/tags/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(n,e,t)},t.createItem=function(){e.open({animation:!0,templateUrl:"app/tools/tag/list/list.create.modal.html",controller:"TagListCreateCtrl"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("TagListCreateCtrl",["$scope","$translate","$uibModalInstance","Tag","xAlert",function(t,e,n,a,s){t.form={},t.item={},t.save=function(){return a.save(t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.tags.list",{url:"/list",templateUrl:"app/tools/tag/list/list.html",controller:"TagListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Tag",["$resource",function(t){return t("/api/tags/:id/:controller/:tag",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.tags",{url:"/tags",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:55}}})}]),angular.module("xCallyShuttleApp").controller("TagViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","$location","Tag","gridOptions","List","Company","Contact","uiGridConstants","usSpinnerService",function(t,e,n,a,s,i,l,o,r,c,d,u,p){function m(){p.stop("spinner-grid"),t.readyGrid=!0}t.getTag=function(){return l.get({id:s.id}).$promise.then(function(e){t.tag=e}).catch(function(t){n.error(t)})},t.updateTag=function(){var e=angular.copy(t.tag);return l.update({id:s.id},e).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){n.error(t)})},t.initChat=function(){p.spin("spinner-grid");var e={enableRowSelection:!1,exporterCsvFilename:"tagChat.csv",columnDefs:[{name:"type"},{name:"status"},{name:"ChatWebsite.name",displayName:"APPLICATION_WEBSITE"},{name:"ChatVisitor.email",displayName:"APPLICATION_VISITOR"},{name:"action",width:40,buttons:[{class:"green",name:"chatRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'chatRoom')"}]}]};t.gridOptions=o.gridOptions(l,e,t,{controller:"chat",tag:t.tag.name},null,null,m())},t.initMail=function(){p.spin("spinner-grid");var e={enableRowSelection:!1,exporterCsvFilename:"tagMail.csv",columnDefs:[{name:"subject"},{name:"from"},{name:"account"},{name:"status"},{name:"action",width:40,buttons:[{class:"green",name:"mailRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'mailRoom')"}]}]};t.gridOptions=o.gridOptions(l,e,t,{controller:"mail",tag:t.tag.name},null,null,m())},t.initFax=function(){p.spin("spinner-grid");var e={enableRowSelection:!1,exporterCsvFilename:"tagFax.csv",columnDefs:[{name:"from"},{name:"account"},{name:"status"},{name:"action",width:40,buttons:[{class:"green",name:"faxRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'faxRoom')"}]}]};t.gridOptions=o.gridOptions(l,e,t,{controller:"fax",tag:t.tag.name},null,null,m())},t.initSms=function(){p.spin("spinner-grid");var e={enableRowSelection:!1,exporterCsvFilename:"tagSms.csv",columnDefs:[{name:"from"},{name:"status"},{name:"action",width:40,buttons:[{class:"green",name:"smsRoom",onClick:"grid.appScope.openRoom(row.entity.id, 'smsRoom')"}]}]};t.gridOptions=o.gridOptions(l,e,t,{controller:"sms",tag:t.tag.name},null,null,m())},t.initContacts=function(){t.readyGrid=!1,p.spin("spinner-grid");var e;return r.get().$promise.then(function(e){return t.lists=[],e.rows.forEach(function(e,n){t.lists.push({value:e.id,label:e.name})}),c.get().$promise}).then(function(e){t.companies=[],e.rows.forEach(function(e,n){t.companies.push({value:e.id,label:e.name})})}).then(function(){e={enableRowSelection:!1,exporterCsvFilename:"tagContacts.csv",columnDefs:[{name:"firstName"},{name:"lastName"},{name:"phone"},{name:"email"},{name:"ListId",displayName:"APPLICATION_LIST",field:"List.name",filter:{type:u.filter.SELECT,selectOptions:t.lists}},{name:"CompanyId",displayName:"APPLICATION_COMPANY",field:"Company.name",filter:{type:u.filter.SELECT,term:s.companyId||null,selectOptions:t.companies}},{name:"action",width:40,buttons:[{class:"blue-hoki",name:"profile",onClick:"grid.appScope.openContactTab(row.entity)"}]}]},t.gridOptions=o.gridOptions(l,e,t,{controller:"contacts",tag:t.tag.name},null,null,m())}).catch(function(t){n.error(t)})},t.openRoom=function(e,n){var a=_.find(t.workspaces,{id:e,type:n});if(a)a.active=!0;else{var s;switch(n){case"mailRoom":s="icon-envelope";break;case"chatRoom":s="fa fa-users";break;case"faxRoom":s="fa fa-fax";break;case"smsRoom":s="glyphicon glyphicon-comment"}t.workspaces.push({id:e,type:n,class:s,active:!0})}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.tags.view",{url:"/view/:id",templateUrl:"app/tools/tag/view/view.html",controller:"TagViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.tags.view.settings",{url:"/settings",templateUrl:"app/tools/tag/view/view.settings.html"}).state("main.tools.tags.view.chat",{url:"/chat",templateUrl:"app/tools/tag/view/view.chat.html"}).state("main.tools.tags.view.mail",{url:"/mail",templateUrl:"app/tools/tag/view/view.mail.html"}).state("main.tools.tags.view.fax",{url:"/fax",templateUrl:"app/tools/tag/view/view.fax.html"}).state("main.tools.tags.view.sms",{url:"/sms",templateUrl:"app/tools/tag/view/view.sms.html"}).state("main.tools.tags.view.contacts",{url:"/contacts",templateUrl:"app/tools/tag/view/view.contacts.html"})}]),angular.module("xCallyShuttleApp").controller("TemplateListCtrl",["$scope","Template","gridOptions",function(t,e,n){t.initView=function(){var a={exporterCsvFilename:"templates.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/tools/templates/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.templates.list",{url:"/list",templateUrl:"app/tools/template/list/list.html",controller:"TemplateListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Template",["$resource",function(t){return t("/api/templates/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.templates",{url:"/templates",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:56}}})}]),angular.module("xCallyShuttleApp").controller("TemplateViewCtrl",["$scope","$rootScope","$http","$translate","$stateParams","xAlert","Template","templateVariable",function(t,e,n,a,s,i,l,o){t.initItem=function(){CKEDITOR.plugins.addExternal("richparams","/assets/plugins/ckeditor-richparams/"),t.options={language:e.language,allowedContent:!0,entities:!1,skin:"office2013",contentsCss:"/assets/css/global/richparams.css",extraPlugins:"richparams,autogrow",autoGrow_minHeight:450,richparams:o,disableNativeSpellChecker:!1,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},{name:"document",items:["Source"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]},"/",{name:"motion",items:["voice","chat","mail","sms","openchannel","fax"]}]},t.form={},t.item={},t.item=l.get({id:s.id})},t.updateItem=function(){return l.update(t.item).$promise.then(function(){i.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.templates.view",{url:"/view/:id",templateUrl:"app/tools/template/view/view.html",controller:"TemplateViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.templates.view.settings",{url:"/settings",templateUrl:"app/tools/template/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TemplateWizardCtrl",["$scope","$rootScope","$location","$http","WizardHandler","xAlert","Template","templateVariable",function(t,e,n,a,s,i,l,o){t.initWizard=function(){CKEDITOR.plugins.addExternal("richparams","/assets/plugins/ckeditor-richparams/"),t.options={language:e.language,allowedContent:!0,entities:!1,skin:"office2013",contentsCss:"/assets/css/global/richparams.css",extraPlugins:"richparams,autogrow",autoGrow_minHeight:450,disableNativeSpellChecker:!1,richparams:o,toolbar:[{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"insert",items:["Image","Table","HorizontalRule","SpecialChar"]},{name:"tools",items:["Maximize"]},{name:"document",items:["Source"]},"/",{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote"]},{name:"styles",items:["Styles","Format"]},"/",{name:"motion",items:["voice","chat","mail","sms","openchannel","fax"]}]},t.item={},t.form={}},t.exitValidation=function(t){return t},t.createItem=function(){return l.save({name:t.item.name,description:t.item.description,subject:t.item.subject||null,html:t.item.html||null,text:t.item.text||null}).$promise.then(function(){n.path("/tools/templates/list")}).catch(function(t){i.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.templates.wizard",{url:"/wizard",templateUrl:"app/tools/template/wizard/wizard.html",controller:"TemplateWizardCtrl"})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools",{url:"/tools",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:13}}})}]),angular.module("xCallyShuttleApp").controller("TriggerListCtrl",["$scope","$http","$translate","Modal","xAlert","Trigger","gridOptions",function(t,e,n,a,s,i,l){t.onText="On",t.offText="Off",t.isActive=!0,t.size="mini",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initView=function(){var e={exporterCsvFilename:"Triggers.csv",columnDefs:[{name:"name"},{name:"description"},{name:"channel"},{name:"status",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.status" type="checkbox" switch-active="{{ grid.appScope.isActive }}" switch-on-text="{{ grid.appScope.onText }}" switch-off-text="{{ grid.appScope.offText }}" switch-on-color="{{ grid.appScope.onColor }}" switch-off-color="{{ grid.appScope.offColor }}" switch-animate="{{ grid.appScope.animate }}" switch-size="{{ grid.appScope.size }}" switch-label="{{ grid.appScope.label }}" switch-icon="{{ grid.appScope.icon }}" switch-radio-off="{{ grid.appScope.radioOff }}" switch-label-width="{{ grid.appScope.labelWidth }}" switch-handle-width="{{ grid.appScope.handleWidth }}"></div>',width:100,enableFiltering:!1},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/tools/triggers/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=l.gridOptions(i,e,t)},t.updateItem=function(t){return i.update({id:t.id},t).$promise.then(function(){s.show(n.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){s.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.triggers.list",{url:"/list",templateUrl:"app/tools/trigger/list/list.html",controller:"TriggerListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Trigger",["$resource",function(t){return t("/api/triggers/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]);angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.triggers",{url:"/triggers",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:50}}})}]),angular.module("xCallyShuttleApp").controller("TriggerViewCtrl",["$scope","$stateParams","$http","$translate","xAlert","triggers","Trigger","$location",function(t,e,n,a,s,i,l,o){t.$triggers=i,t.recordSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.forms={general:{}},t.addCondition=function(e){t.trigger[e].push({field:"",operator:"",value:""})},t.removeCondition=function(e,n){t.trigger[e].splice(n,1)},t.addAction=function(){t.trigger.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},t.resetActionData=function(t){t.data1="",t.data2="",t.data3="",t.data4="",t.data5=""},t.removeAction=function(e){t.trigger.Actions.splice(e,1)},t.initView=function(){return l.get({id:e.id}).$promise.then(function(e){t.trigger=e}).catch(function(t){s.error(t),o.path("/tools/triggers/list")})},t.updateTrigger=function(){return l.update({id:e.id},t.trigger).$promise.then(function(){s.show(a.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){console.error(t),s.error(t)})},t.exitValidation=function(e){return!(!e||!t.trigger.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.triggers.view",{url:"/view/:id",templateUrl:"app/tools/trigger/view/view.html",controller:"TriggerViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load({insertBefore:"#ng_load_plugins_before",files:["assets/css/profile.css","assets/css/tasks.css"]})}]}}).state("main.tools.triggers.view.settings",{url:"/settings",templateUrl:"app/tools/trigger/view/view.settings.html"}).state("main.tools.triggers.view.routes",{url:"/routes",templateUrl:"app/tools/trigger/view/view.routes.html"}).state("main.tools.triggers.view.application",{url:"/application",templateUrl:"app/tools/trigger/view/view.application.html"})}]),angular.module("xCallyShuttleApp").controller("TriggerWizardCtrl",["$scope","$http","$location","xAlert","triggers","WizardHandler","Trigger",function(t,e,n,a,s,i,l){t.$triggers=s,t.statusSwitch={onText:"On",offText:"Off",isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.tempData={voice:{},mail:{},chat:{},fax:{}},t.item={All:[],Any:[],Actions:[]},t.forms={general:void 0,settings:void 0},t.addCondition=function(e){t.item[e].push({field:"",operator:"",value:""})},t.removeCondition=function(e,n){t.item[e].splice(n,1)},t.addAction=function(){t.item.Actions.push({action:"",data1:"",data2:"",data3:"",data4:"",data5:""})},t.resetActionData=function(t){t.data1="",t.data2="",t.data3="",t.data4="",t.data5=""},t.removeAction=function(e){t.item.Actions.splice(e,1)},t.$watch("item.channel",function(e,n){n&&(t.tempData[n].All=_.clone(t.item.All,!0),t.tempData[n].Any=_.clone(t.item.Any,!0),t.tempData[n].Actions=_.clone(t.item.Actions,!0)),t.item.All=t.tempData[e].All?t.tempData[e].All:[],t.item.Any=t.tempData[e].Any?t.tempData[e].Any:[],t.item.Actions=t.tempData[e].Actions?t.tempData[e].Actions:[]},!0),t.item.channel="voice",t.createItem=function(){return l.save(t.item).$promise.then(function(){n.path("/tools/triggers/list")}).catch(function(t){console.error(t),a.error(t)})},t.next=function(){i.wizard().next()},t.previous=function(){i.wizard().previous()},t.exitValidation=function(t){return t},t.exitSettingsValidation=function(e){return!(!e||!t.item.Actions.length)}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.triggers.wizard",{url:"/wizard",templateUrl:"app/tools/trigger/wizard/wizard.html",controller:"TriggerWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("TrunkListCtrl",["$scope","Trunk","gridOptions","xAlert","$translate","socket",function(t,e,n,a,s,i){function l(){i.socket.on("voice:trunks",function(e){var n=_.find(t.gridOptions.data,{name:e.name});n&&(n.status=e.status,n.peerstatus=e.peerstatus)})}t.isActive=!0,t.size="mini",t.animate=!0,t.radioOff=!0,t.handleWidth="auto",t.labelWidth="auto",t.inverse=!0,t.offColor="danger",t.onColor="success",t.initView=function(){var a={exporterCsvFilename:"Trunks.csv",columnDefs:[{name:"name"},{name:"active",cellTemplate:'<div class="centered-uigrid-td"><input data-ng-change="grid.appScope.updateItem(row.entity)", bs-switch ng-model="row.entity.active" type="checkbox" switch-active="{{ grid.appScope.isActive }}" switch-on-text="{{ \'APPLICATION_YES\' | translate }}" switch-off-text="{{ \'APPLICATION_NO\' | translate }}" switch-on-color="{{ grid.appScope.onColor }}" switch-off-color="{{ grid.appScope.offColor }}" switch-animate="{{ grid.appScope.animate }}" switch-size="{{ grid.appScope.size }}" switch-label="{{ grid.appScope.label }}" switch-icon="{{ grid.appScope.icon }}" switch-radio-off="{{ grid.appScope.radioOff }}" switch-label-width="{{ grid.appScope.labelWidth }}" switch-handle-width="{{ grid.appScope.handleWidth }}"></div>'},{name:"host"},{name:"description"},{name:"status",cellTemplate:'<div class="centered-uigrid-td" data-ng-if="row.entity.active && row.entity.registry && row.entity.status">{{row.entity.status}}</div>'},{name:"peerstatus",cellTemplate:'<div class="centered-uigrid-td" data-ng-if="row.entity.active && row.entity.peerstatus">{{row.entity.peerstatus}}</div>'},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/tools/trunks/view/{{row.entity.name}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.name)"}]}]};t.gridOptions=n.gridOptions(e,a,t,null,null,null,l)},t.updateItem=function(t){return e.update({id:t.name},t).$promise.then(function(){a.show(s.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){console.error(t),a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.trunks.list",{url:"/list",templateUrl:"app/tools/trunk/list/list.html",controller:"TrunkListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Trunk",["$resource",function(t){return t("/api/trunks/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.trunks",{url:"/trunks",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:52}}})}]),angular.module("xCallyShuttleApp").controller("TrunkViewCtrl",["$scope","$http","xAlert","$translate","$stateParams","socket","$location","Trunk","VoiceContext",function(t,e,n,a,s,i,l,o,r){t.activeSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.initView=function(){return o.get({id:s.id}).$promise.then(function(e){e.nat=e.nat?e.nat.split(","):[],e.allow=e.allow?e.allow.split(";"):[],e.insecure=e.insecure?e.insecure.split(","):[],e.transport=e.transport?e.transport.split(","):[],t.trunk=e}).then(function(){i.socket.on("voice:trunk",function(e){t.trunk.name===e.username&&(t.trunk.status=e.status,t.trunk.peerstatus=e.peerstatus)})}).catch(function(t){console.error(t),l.path("/tools/trunks/list")})},t.updateTrunk=function(){""===t.trunk.password&&delete t.trunk.password;var e=angular.copy(t.trunk);return e.nat=e.nat.join(","),e.allow=e.allow.join(";"),e.insecure=e.insecure.join(","),e.transport=e.transport.join(","),o.update({id:s.id},e).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){n.error(t)})},t.getContexts=function(){return r.get().$promise.then(function(e){t.voiceContexts=e.rows}).catch(function(t){n.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.trunks.view",{url:"/view/:id",templateUrl:"app/tools/trunk/view/view.html",controller:"TrunkViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.trunks.view.settings",{url:"/settings",templateUrl:"app/tools/trunk/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("TrunkWizardCtrl",["$scope","WizardHandler","$location","xAlert","Trunk",function(t,e,n,a,s){t.initWizard=function(){t.forms={},t.item={context:"from-voip-provider"}},t.next=function(){e.wizard().next()},t.previous=function(){e.wizard().previous()},t.exitValidation=function(t){return t},t.createItem=function(){return t.item.fromuser=t.item.defaultuser,t.item.fromdomain=t.item.host,s.save(t.item).$promise.then(function(){n.path("/tools/trunks/list")}).catch(function(t){a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.trunks.wizard",{url:"/wizard",templateUrl:"app/tools/trunk/wizard/wizard.html",controller:"TrunkWizardCtrl"})}]),angular.module("xCallyShuttleApp").controller("VariableListCtrl",["$scope","$uibModal","Variable","gridOptions",function(t,e,n,a){t.initView=function(){var e={exporterCsvFilename:"variables.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:75,buttons:[{class:"blue-hoki",href:"/tools/variables/view/{{row.entity.id}}/settings",name:"settings"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(n,e,t)},t.createItem=function(){e.open({animation:!0,templateUrl:"app/tools/variable/list/list.create.modal.html",controller:"VariableListCreateCtrl"}).result.then(function(e){console.log(e),t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("VariableListCreateCtrl",["$scope","$translate","$uibModalInstance","Variable","xAlert",function(t,e,n,a,s){t.form={},t.item={},t.save=function(){return a.save(t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.variables.list",{url:"/list",templateUrl:"app/tools/variable/list/list.html",controller:"VariableListCtrl"})}]),angular.module("xCallyShuttleApp").factory("Variable",["$resource",function(t){return t("/api/variables/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.variables",{url:"/variables",template:"<div ui-view></div>",abstract:!0,data:{permissions:{only:["admin","user"],redirectTo:"landing",id:54}}})}]),angular.module("xCallyShuttleApp").controller("VariableViewCtrl",["$scope","$translate","$stateParams","xAlert","Variable",function(t,e,n,a,s){t.getVariable=function(){return s.get({id:n.id}).$promise.then(function(e){t.variable=e}).catch(function(t){a.error(t)})},t.updateVariable=function(){return s.update({id:n.id},t.variable).$promise.then(function(){a.show(e.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.variables.view",{url:"/view/:id",templateUrl:"app/tools/variable/view/view.html",controller:"VariableViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]}}).state("main.tools.variables.view.settings",{url:"/settings",templateUrl:"app/tools/variable/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCloneModalCtrl",["$scope","$uibModalInstance","name",function(t,e,n){t.forms={dashboard:{}},t.item={name:n},t.ok=function(){e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCreateModalCtrl",["$scope","$uibModalInstance",function(t,e){t.forms={dashboard:void 0},t.item={},t.ok=function(){t.item.model=JSON.stringify({title:t.item.name}),e.close(t.item)},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardListCtrl",["$scope","$http","$translate","xAlert","Modal","$uibModal","$log","YourDashboard","gridOptions",function(t,e,n,a,s,i,l,o,r){t.initView=function(){var e={exporterCsvFilename:"voice_contexts.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{class:"green",href:"/tools/yourdashboards/show/{{row.entity.id}}",name:"view"},{class:"blue-hoki",href:"/tools/yourdashboards/view/{{row.entity.id}}/settings",name:"settings"},{class:"{{row.entity.defaultEntry ? 'red-sunglo disabled' : 'red-sunglo'}}",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"},{class:"purple",name:"clone",onClick:"grid.appScope.clone(row.entity.id,row.entity.name)"}]}]};t.gridOptions=r.gridOptions(o,e,t)},t.create=function(){i.open({animation:!0,templateUrl:"app/tools/yourdashboard/list/create.modal.html",controller:"YourdashboardListCreateModalCtrl"}).result.then(function(e){return o.save(e).$promise.then(function(){a.show(n.instant("MESSAGE_WELL_DONE"),"success"),t.gridOptions.getPage()}).catch(function(t){console.error(t),a.error(t)})},function(){l.info("Modal dismissed at: "+new Date)})},t.clone=function(e,s){i.open({animation:!0,templateUrl:"app/tools/yourdashboard/list/clone.modal.html",controller:"YourdashboardListCloneModalCtrl",resolve:{name:function(){return s+"_copy"}}}).result.then(function(s){return o.save({id:e,controller:"clone"},s).$promise.then(function(){a.show(n.instant("MESSAGE_WELL_DONE"),"success"),t.gridOptions.getPage()}).catch(function(t){console.error(t),a.error(t)})},function(){l.info("Modal dismissed at: "+new Date)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.yourdashboards.list",{url:"/list",templateUrl:"app/tools/yourdashboard/list/list.html",controller:"YourdashboardListCtrl",data:{permissions:{only:["admin","user"],redirectTo:"landing",id:59}}})}]),angular.module("xCallyShuttleApp").controller("LeaveEditedDashboardModalCtrl",["$scope","$uibModalInstance",function(t,e){t.close=function(){e.close()},t.cancel=function(){e.dismiss("cancel")}}]),angular.module("xCallyShuttleApp").controller("YourdashboardShowCtrl",["$scope","$rootScope","localStorageService","xAlert","$translate","Auth","$stateParams","$location","$uibModal","$log","YourDashboard","$interval",function(t,e,n,a,s,i,l,o,r,c,d,u){function p(){return d.get({id:l.id,controller:"values"}).$promise.then(function(){}).catch(function(t){console.error("Error retrieving widgets values",t)})}function m(t){var e,n;if(!t)return 0;for(e=n=(t=t.toString()).length;e--;){var a=t[e].charCodeAt();56320<=a&&a<=57343&&e--,127<a&&a<=2047?n++:2047<a&&a<=65535&&(n+=2)}return n}t.Auth=i,t.editMode=!1;var g;t.getDashboard=function(){return d.get({id:l.id}).$promise.then(function(e){!e[i.getRole()]&&o.path("/landing");var n={name:"dashboard",structure:"4-8",enableconfirmdelete:!0,maximizable:!0,collapsible:!0};e.model=JSON.parse(e.model||'{"title":"Dashboard"}'),e.editable=!(!i.isAdmin()||!e.editable),t.dashboard=_.merge(n,e),p(),g=u(function(){p()},1e3*parseInt(t.dashboard.timeout||5))}).catch(function(t){o.path("/tools/yourdashboards/list")})},t.$on("$locationChangeStart",function(e,n,a){t.editMode&&(e.preventDefault(),r.open({animation:!0,templateUrl:"app/tools/yourdashboard/show/leaveEditedDashboard.modal.html",controller:"LeaveEditedDashboardModalCtrl"}).result.then(function(e){t.editMode=!1;var a=location.protocol+"//"+location.host;o.path(n.replace(a,""))},function(){c.info("Modal dismissed at: "+new Date)}))});t.$on("adfDashboardChanged",function(n,i,o){var r=angular.copy(t.dashboard);if(r.name=t.dashboard.model.title,r.model=JSON.stringify(r.model),m(r.model)<=64e3)return d.update({id:l.id},r).$promise.then(function(){a.show(s.instant("MESSAGE_DASHBOARD_SAVED")+"!","success"),t.editMode=!1}).catch(function(e){a.error(e),r.model=JSON.parse(r.model),r.name="dashboard",t.dashboard=r});a.show(s.instant("MESSAGE_DASHBOARD_TOO_BIG")+"!","warning"),e.$broadcast("adfToggleEditMode")}),t.$on("adfIsEditMode",function(){t.editMode=!0}),t.$on("$destroy",function(){u.cancel(g)})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.yourdashboards.show",{url:"/show/:id",templateUrl:"app/tools/yourdashboard/show/show.html",controller:"YourdashboardShowCtrl",data:{permissions:{only:["admin","user","agent"],redirectTo:"landing",id:2}}})}]),angular.module("xCallyShuttleApp").controller("YourdashboardViewCtrl",["$scope","$rootScope","xAlert","$translate","$stateParams","$location","YourDashboard",function(t,e,n,a,s,i,l){t.radioSwitch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},t.getDashboard=function(){return l.get({id:s.id}).$promise.then(function(e){delete e.model,t.dashboard=e}).catch(function(){i.path("/tools/yourdashboards/list")})},t.updateDashboard=function(){var e=angular.copy(t.dashboard);return l.update({id:s.id},e).$promise.then(function(){n.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(a){n.error(a),t.dashboard=e})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.yourdashboards.view",{url:"/view/:id",templateUrl:"app/tools/yourdashboard/view/view.html",controller:"YourdashboardViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{insertBefore:"#ng_load_plugins_before",files:["assets/plugins/bootstrap-fileinput/bootstrap-fileinput.css","assets/css/profile.css","assets/css/tasks.css"]}])}]},data:{permissions:{only:["admin","user"],redirectTo:"landing",id:59}}}).state("main.tools.yourdashboards.view.settings",{url:"/settings",templateUrl:"app/tools/yourdashboard/view/view.settings.html"})}]),angular.module("xCallyShuttleApp").factory("YourDashboard",["$resource",function(t){return t("/api/dashboards/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.tools.yourdashboards",{url:"/yourdashboards",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ZendeskListCtrl",["$scope","ZendeskAccount","gridOptions","xAlert","$translate",function(t,e,n,a,s){t.initView=function(){var a={exporterCsvFilename:"zendesk_account.csv",columnDefs:[{name:"name",displayName:"APPLICATION_NAME"},{name:"username"},{name:"remoteUri",displayName:"APPLICATION_URI"},{name:"action",buttons:[{class:"blue-hoki",href:"/zendesk/view/{{row.entity.id}}/account",name:"profile"},{class:"green-jungle",name:"check",onClick:"grid.appScope.checkAccount(row.entity.id)"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=n.gridOptions(e,a,t)},t.checkAccount=function(t){return e.check({id:t}).$promise.then(function(){a.show(s.instant("MESSAGE_ACCOUNT_VERIFIED"),"success")}).catch(function(){a.show(s.instant("MESSAGE_ACCOUNT_INVALID"),"danger")})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.zendesk.list",{url:"/list",templateUrl:"app/zendesk/list/list.html",controller:"ZendeskListCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.load([{name:"smart-table",insertBefore:"#ng_load_plugins_before",files:["assets/css/smart_table.css"]}])}]}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.zendesk.view.configurations",{url:"/configurations",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewConfigurationListCtrl",["$scope","$stateParams","$translate","gridOptions","ZendeskConfiguration","$uibModal",function(t,e,n,a,s,i){t.initView=function(){var n={exporterCsvFilename:"zendesk_configurations.csv",columnDefs:[{name:"name"},{name:"description"},{name:"action",width:125,buttons:[{class:"blue-hoki",href:"/zendesk/view/{{row.entity.AccountId}}/configurations/view/{{row.entity.id}}",name:"profile"},{class:"red-sunglo",name:"delete",onClick:"grid.appScope.deleteItem(row.entity.name, row.entity.id)"}]}]};t.gridOptions=a.gridOptions(s,n,t,{accountId:e.id})},t.createItem=function(){i.open({animation:!0,templateUrl:"app/zendesk/view/configuration/list/create.modal.html",controller:"ZendeskCreateConfigurationCtrl"}).result.then(function(){t.gridOptions.getPage()})}}]),angular.module("xCallyShuttleApp").controller("ZendeskCreateConfigurationCtrl",["$scope","$translate","$uibModalInstance","ZendeskConfiguration","xAlert","$stateParams","channel",function(t,e,n,a,s,i,l){t.form={},t.item={},t.channels=l,t.item.channel="voice",t.item.type="Queue",t.save=function(){return a.save({accountId:i.id},t.item).$promise.then(function(t){s.show(e.instant("MESSAGE_WELL_DONE"),"success"),n.close(t)}).catch(function(t){s.error(t)})},t.cancel=function(){n.dismiss()}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.zendesk.view.configurations.list",{url:"/list",templateUrl:"app/zendesk/view/configuration/list/list.html",controller:"ZendeskViewConfigurationListCtrl"})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewConfigurationViewCtrl",["$scope","$stateParams","$filter","$translate","socket","ZendeskConfiguration","xAlert","variable","Variable","ZendeskAccount","Tag","ZendeskField",function(t,e,n,a,s,i,l,o,r,c,d,u){t.$on("$destroy",function(){s.unsyncUpdates("zendesk_field")}),t.config={autoHideScrollbar:!1,theme:"dark",advanced:{updateOnContentResize:!0},setHeight:300,scrollInertia:0},t.fieldType=[{type:"string",title:"String"},{type:"variable",title:"Variable"},{type:"customVariable",title:"Custom Variable"}],t.descFieldType=[{type:"string",title:"String"},{type:"keyValue",title:"Key Value"}],t.groupVariableByGroup=function(t){switch(t.group){case"voice_queue":return"Voice: Queue";case"voice_outbound":return"Voice: Outbound";default:return"Other"}},t.initView=function(){t.configurationName="",t.subjectConfig=[],t.descriptionConfig=[],t.fieldConfig=[],t.selectedTags={tags:[]},t.variables=o},t.getConfiguration=function(){return i.get({accountId:e.id,id:e.configurationId}).$promise.then(function(e){t.configurationName=e.name,t.subjectConfig=e.Subject,t.descriptionConfig=e.Description,t.fieldConfig=e.Field,t.selectedTags={tags:_.map(e.Tags,function(t){return t.id})},s.socket.on("zendesk_field:remove",function(e){_.remove(t.subjectConfig,{id:e.id}),_.remove(t.descriptionConfig,{id:e.id}),_.remove(t.fieldConfig,{id:e.id})})}).catch(function(t){l.error(t)})},t.getCustomVariables=function(){return r.get().$promise.then(function(e){t.customVariables=e.rows}).catch(function(t){l.error(t)})},t.getFields=function(){return c.fields({id:e.id}).$promise.then(function(e){t.accountFields=n("zendesk")(e)}).catch(function(t){l.error(t)})},t.getTags=function(){return d.get().$promise.then(function(e){t.tags=e.rows}).catch(function(t){l.error(t)})},t.addItem=function(n){var a={};switch(n){case"subject":case"description":a={type:"string",content:""};break;case"field":a={content:""}}return i.save({accountId:e.id,id:e.configurationId,controller:n},a).$promise.then(function(e){switch(n){case"subject":t.subjectConfig.push(e);break;case"description":t.descriptionConfig.push(e);break;case"field":t.fieldConfig.push(e)}}).catch(function(t){l.error(t)})},t.changeType=function(e){"variable"===e.type?(e.content="",e.variableName=""):"string"===e.type?(e.VariableId=null,e.variableName=""):"customVariable"===e.type&&(e.VariableId=null,e.content=""),t.updateField(e)},t.updateField=function(t){return u.update({accountId:e.id,configurationId:e.configurationId,id:t.id},t).$promise.then(function(){}).catch(function(t){l.error(t)})},t.removeItem=function(t){return u.delete({accountId:e.id,configurationId:e.configurationId,id:t.id}).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE")+"!","success")}).catch(function(t){l.error(t)})},t.changeDescType=function(e){"keyValue"===e.type?(e.content="","string"===e.keyType?(e.VariableId=null,e.variableName=""):"variable"===e.keyType?(e.keyContent="",e.VariableId=null):"customVariable"===e.keyType&&(e.keyContent="",e.variableName="")):"string"===e.type&&(e.VariableId=null,e.variableName="",e.key="",e.keyContent=""),t.updateField(e)},t.changeFieldType=function(e){if(e.content="",e.variableName="",e.nameField="",e.VariableId=null,e.idField){var n=_.find(t.accountFields,"id",e.idField);n&&(n.system_field_options?(e.customField=!1,e.nameField=n.title.toLowerCase()):e.customField=!0)}t.updateField(e)},t.updateTags=function(){return i.update({accountId:e.id,id:e.configurationId,controller:"tags"},t.selectedTags.tags).$promise.then(function(){l.show(a.instant("MESSAGE_WELL_DONE")+".","success")}).catch(function(t){l.error(t)})},t.getSystemFieldOptions=function(e){if(e){var n=_.find(t.accountFields,"id",e);return n?n.system_field_options?n.system_field_options:null:void 0}}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.zendesk.view.configurations.view",{url:"/view/:configurationId",templateUrl:"app/zendesk/view/configuration/view/view.html",controller:"ZendeskViewConfigurationViewCtrl"})}]),angular.module("xCallyShuttleApp").controller("ZendeskViewCtrl",["$scope","$stateParams","$translate","xAlert","Modal","ZendeskAccount",function(t,e,n,a,s,i){t.initView=function(){return i.get({id:e.id}).$promise.then(function(e){t.account=e}).catch(function(t){a.error(t)})},t.updateItem=function(){return i.update({id:e.id},t.account).$promise.then(function(){a.show(n.instant("MESSAGE_WELL_DONE")+".","success")}).catch(function(t){a.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.zendesk.view",{url:"/view/:id",templateUrl:"app/zendesk/view/view.html",controller:"ZendeskViewCtrl",resolve:{deps:["$ocLazyLoad",function(t){return t.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"})}]),angular.module("xCallyShuttleApp").controller("ZendeskWizardCtrl",["$scope","$http","$location","$translate","xAlert","WizardHandler","ZendeskAccount",function(t,e,n,a,s,i,l){t.translate=a,t.initWizard=function(){t.$translate=a,t.forms={},t.item={},t.item.authType="password",t.item.serverUrl=n.protocol()+"://"+location.host},t.next=function(){i.wizard().next()},t.exitValidation=function(t){return t},t.createItem=function(){return l.save(t.item).$promise.then(function(){s.show(a.instant("MESSAGE_WELL_DONE")+".","success"),n.path("/zendesk/list")}).catch(function(t){s.error(t)})}}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.zendesk.wizard",{url:"/wizard",templateUrl:"app/zendesk/wizard/wizard.html",controller:"ZendeskWizardCtrl"})}]),angular.module("xCallyShuttleApp").factory("ZendeskAccount",["$resource",function(t){return t("/api/zendesk/accounts/:id/:controller",{id:"@id"},{update:{method:"PUT"},fields:{params:{controller:"fields"},isArray:!0},check:{params:{controller:"check"}}})}]).factory("ZendeskConfiguration",["$resource",function(t){return t("/api/zendesk/accounts/:accountId/configurations/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]).factory("ZendeskField",["$resource",function(t){return t("/api/zendesk/accounts/:accountId/configurations/:configurationId/fields/:id/:controller",{id:"@id"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").config(["$stateProvider",function(t){t.state("main.zendesk",{url:"/zendesk",template:"<div ui-view></div>",abstract:!0})}]),angular.module("xCallyShuttleApp").factory("AuthResource",["$resource",function(t){return t("/auth/local/:controller/:controller2/:param",{param:"@param"},{update:{method:"PUT"}})}]),angular.module("xCallyShuttleApp").factory("Auth",["$location","$rootScope","$http","User","$cookieStore","$q","localStorageService",function(t,e,n,a,s,i,l){var o={};return s.get("token")&&(o=a.me()),{login:function(t,r){var c=r||angular.noop,d=i.defer();return n.post("/auth/local",{name:t.name,password:t.password,remember:t.remember}).success(function(t){return s.put("role",t.role),s.put("token",t.token),s.put("userId",t.userId),l.set("loggedIn",!0),o=a.me({},function(){e.$broadcast("login")}),d.resolve(t),c()}).error(function(t){return this.logout(),d.reject(t),c(t)}.bind(this)),d.promise},recover:function(t,e){var a=e||angular.noop,s=i.defer();return n.post("/auth/local/recover",{email:t.email}).success(function(t){return s.resolve(t),a()}).error(function(t){return s.reject(t),a(t)}.bind(this)),s.promise},reset:function(t,e){var a=e||angular.noop,s=i.defer();return n.post("/auth/local/reset/"+t.token,{password:t.password}).success(function(t){return s.resolve(t),a()}).error(function(t){return s.reject(t),a(t)}.bind(this)),s.promise},loginWithToken:function(t,n,i){s.put("role",i),s.put("token",t),s.put("userId",n),o=a.me({},function(){e.$broadcast("login")})},logout:function(){s.remove("role"),s.remove("token"),s.remove("userId"),l.set("loggedIn"),o={},e.$broadcast("logout")},createUser:function(t,e){var n=e||angular.noop;return a.save(t,function(e){return s.put("token",e.token),o=a.me(),n(t)},function(t){return this.logout(),n(t)}.bind(this)).$promise},changePassword:function(t,e,n){var s=n||angular.noop;return a.changePassword({id:o.id},{oldPassword:t,newPassword:e},function(t){return s(null,t)},function(t){return s(t)}).$promise},getCurrentUser:function(){return o},isLoggedIn:function(){return o.hasOwnProperty("role")},isLoggedInAsync:function(t){o.hasOwnProperty("$promise")?o.$promise.then(function(){t(!0)}).catch(function(){t(!1)}):t(o.hasOwnProperty("role")?!0:!1)},isAdmin:function(){return"admin"===(s.get("role")||o.role)},isUser:function(){return"user"===(s.get("role")||o.role)},isAgent:function(){return"agent"===(s.get("role")||o.role)},getRole:function(){return o.role},getToken:function(){return s.get("token")}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderAccountEmail",["$compile","$timeout","MailAccount","xAlert","Template",function(t,e,n,a,s){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/accountEmail/actionBuilder.html",compile:function(i){function l(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var o,r;return o=i.contents().remove(),function(i,c){i.randomName=l(),e(function(){return n.get().$promise.then(function(t){return _.forEach(t.rows,function(t){t.id=String(t.id)}),i.accounts=t,s.get().$promise}).then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),i.templates=t.rows}).catch(function(t){a.error(t)})}),r||(r=t(o)),c.append(r(i,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderAccountSms",["$compile","$timeout","SmsAccount","xAlert",function(t,e,n,a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/accountSms/actionBuilder.html",compile:function(s){function i(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var l,o;return l=s.contents().remove(),function(s,r){s.randomName=i(),e(function(){return n.get().$promise.then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),s.accounts=t}).catch(function(t){a.error(t)})}),o||(o=t(l)),r.append(o(s,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderAccountTemplate",["$compile","xAlert","$http","$timeout","Template","MailAccount",function(t,e,n,a,s,i){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/accountTemplate/actionBuilder.html",compile:function(n){function l(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var o,r;return o=n.contents().remove(),function(n,c){n.randomName=l(),a(function(){return s.get().$promise.then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),n.templates=t}).then(function(){return i.get().$promise}).then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),n.accounts=t}).catch(function(t){e.error(t)})}),r||(r=t(o)),c.append(r(n,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderClose",["$compile",function(t){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/close/actionBuilder.html",compile:function(e){function n(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var a,s;return a=e.contents().remove(),function(e,i){e.randomName=n(),s||(s=t(a)),i.append(s(e,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderCm",["$compile","xAlert","$http","$timeout","$translate","List",function(t,e,n,a,s,i){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/cm/actionBuilder.html",compile:function(n){var s,l;return s=n.contents().remove(),function(n,o){n.randomName=function(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}(),n.switch={isActive:!0,size:"small",animate:!0,radioOff:!0,handleWidth:"auto",labelWidth:"auto",inverse:!0,offColor:"danger",onColor:"success"},a(function(){return i.get().$promise.then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),n.lists=t.rows}).catch(function(t){e.error(t)})}),l||(l=t(s)),o.append(l(n,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderEmail",["$compile","xAlert","$timeout","Template",function(t,e,n,a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/email/actionBuilder.html",compile:function(s){function i(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var l,o;return l=s.contents().remove(),function(s,r){s.randomName=i(),n(function(){return a.get().$promise.then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),s.templates=t.rows}).catch(function(t){e.error(t)})}),o||(o=t(l)),r.append(o(s,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderForward",["$compile",function(t){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/forward/actionBuilder.html",compile:function(e){function n(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var a,s;return a=e.contents().remove(),function(e,i){e.randomName=n(),s||(s=t(a)),i.append(s(e,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderHttp",["$compile",function(t){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/http/actionBuilder.html",compile:function(e){function n(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var a,s;return a=e.contents().remove(),function(e,i){e.randomName=n(),e.methods=["GET","POST"],s||(s=t(a)),i.append(s(e,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderIntegration",["$compile","xAlert","$http","$timeout","Integration","$translate","ZendeskAccount","DeskAccount","SalesforceAccount","FreshdeskAccount","SugarcrmAccount",function(t,e,n,a,s,i,l,o,r,c,d){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/integration/actionBuilder.html",compile:function(n){function i(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var u,p;return u=n.contents().remove(),function(n,m){n.randomName=i(),a(function(){return s.get({active:1}).$promise.then(function(t){_.remove(t.rows,function(t){return"iframe"===t.state}),n.integrations=t.rows,n.element.data1&&g()}).catch(function(t){e.error(t)})});var g=function(){var t;switch(n.element.data1){case"zendesk":t=l;break;case"desk":t=o;break;case"salesforce":t=r;break;case"freshdesk":t=c;break;case"sugarcrm":t=d}if(t)return t.get().$promise.then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),n.accounts=t.rows,n.element.data2&&h()}).catch(function(t){e.error(t)})},h=function(){var t=_.find(n.accounts,{id:n.element.data2}).Configurations;_.forEach(t,function(t){t.id=String(t.id)}),n.configurations=t};n.changeIntegration=function(){n.element.data2="",g()},n.changeAccount=function(){n.element.data3="",h()},p||(p=t(u)),m.append(p(n,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderJscripty",["$compile","xAlert","$http","$timeout","Template","$translate","JscriptyProject",function(t,e,n,a,s,i,l){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/jscripty/actionBuilder.html",compile:function(n){var s,i;return s=n.contents().remove(),function(n,o){n.randomName=function(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}(),a(function(){return l.get().$promise.then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),n.projects=t.rows}).catch(function(t){e.error(t)})}),i||(i=t(s)),o.append(i(n,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderMotionBar",["$compile","xAlert","$http","$timeout","Template",function(t,e,n,a,s){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/motionbar/actionBuilder.html",compile:function(n){var i,l;return i=n.contents().remove(),function(n,o){function r(){return s.get().$promise.then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),n.templates=t.rows}).catch(function(t){e.error(t)})}n.randomName=function(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}(),n.motionActions=[{name:"Popup",value:"0"},{name:"URL",value:"1"},{name:"Windows App",value:"2"}],n.changeMode=function(){n.element.data2="",n.element.data3="",r()},a(function(){return r()}),l||(l=t(i)),o.append(l(n,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderStatus",["$compile",function(t){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/status/actionBuilder.html",compile:function(e){var n,a;return n=e.contents().remove(),function(e,s){e.randomName=function(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}(),e.states=[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"}],a||(a=t(n)),s.append(a(e,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderTag",["$compile","xAlert","$http","$timeout","Tag",function(t,e,n,a,s){return{restrict:"E",scope:{myElement:"=element",form:"="},templateUrl:"components/directives/action/tag/actionBuilder.html",compile:function(n){function i(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var l,o;return l=n.contents().remove(),function(n,r){console.log("myElement",n.myElement),n.randomName=i(),n.data={tags:n.myElement.data1?n.myElement.data1.split(";"):[]},n.$watch("data.tags",function(t){n.myElement.data1=t.join(";")}),a(function(){return s.get().$promise.then(function(t){n.tags=t.rows}).catch(function(t){e.error(t)})}),o||(o=t(l)),r.append(o(n,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderTemplate",["$compile","xAlert","$timeout","Template",function(t,e,n,a){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/template/actionBuilder.html",compile:function(s){function i(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var l,o;return l=s.contents().remove(),function(s,r){s.randomName=i(),n(function(){return a.get().$promise.then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),s.templates=t.rows}).catch(function(t){e.error(t)})}),o||(o=t(l)),r.append(o(s,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderUrlForward",["$compile",function(t){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/urlforward/actionBuilder.html",compile:function(e){function n(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}var a,s;return a=e.contents().remove(),function(e,i){e.randomName=n(),e.types=[{name:"HTTP GET",value:"GET"},{name:"HTTP POST",value:"POST"}],s||(s=t(a)),i.append(s(e,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("actionBuilderWebPopup",["$compile","xAlert","$http","$timeout","Template",function(t,e,n,a,s){return{restrict:"E",scope:{element:"=",form:"="},templateUrl:"components/directives/action/webPopup/actionBuilder.html",compile:function(n){var i,l;return i=n.contents().remove(),function(n,o){function r(){return s.get().$promise.then(function(t){_.forEach(t.rows,function(t){t.id=String(t.id)}),n.templates=t.rows}).catch(function(t){e.error(t)})}n.typeChange=function(){n.element.data1=null},n.randomName=function(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}(),a(function(){r(),n.element.data2=n.element.data2||"motion"}),l||(l=t(i)),o.append(l(n,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").directive("conditionBuilder",["$compile","$timeout","$translate","xAlert",function(t,e,n,a){return{restrict:"E",scope:{element:"=",serviceindex:"=",service:"=",form:"="},templateUrl:"components/directives/condition/conditionBuilder.html",compile:function(s){var i,l;return i=s.contents().remove(),function(s,o){function r(t){var e=_.find(s.service.services[s.serviceindex].conditions,{value:t});if(e)if(s.elementType=e.type,s.translateName=e.translate,e.arr)s.values=e.arr;else if(e.resource)return e.resource.get(e.params||{}).$promise.then(function(t){s.values=_.map(t.rows,function(t){return{name:t[e.resName||e.resValue],value:String(t[e.resValue])}})}).catch(function(t){a.show(n.instant(t.message),"danger")})}s._=_,s.randomName=function(t,e){var n=[];for(t=t||5,e=e||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";--t;)n.push(e.charAt(Math.floor(Math.random()*e.length)));return n.join("")}(),e(function(){s.element.field&&r(s.element.field)}),s.checkCondition=function(t){s.element.value="",s.element.operator="",r(t)},l||(l=t(i)),o.append(l(s,function(t){return t}))}}}}]),angular.module("xCallyShuttleApp").factory("xNotificationLicense",["Notification","$rootScope","$location",function(t,e,n){return{show:function(a){var s=e.$new();return s.class="alert-warning",s.icon="fa fa-exclamation-triangle",s.more=function(){n.path("/setting/license/view")},new t({delay:a,templateUrl:"components/factories/xNotificationLicense/xNotificationLicense.html",scope:s})}}}]),angular.module("xCallyShuttleApp").filter("secToTime",[function(){return function(t){return new Date(1970,0,1).setSeconds(t)}}]),angular.module("xCallyShuttleApp").controller("FooterController",["$scope","Setting",function(t,e){t.year=moment().year(),t.$on("$includeContentLoaded",function(){Layout.initFooter()}),t.initFooter=function(){return e.get({controller:"info"}).$promise.then(function(e){t.info=e}).catch(function(t){console.error(t)})}}]),angular.module("xCallyShuttleApp").controller("HeaderController",["$scope","$rootScope","$location","$state","$http","$interval","$notification","Auth","xAlert","socket","xNotificationLicense","toastr","localStorageService","Agent","SmsReport","MailReport","OpenChannelReport","ChatReport","ChatRoom","xNotification","$timeout","$translate","$window","User","Pause","Action","FaxReport","List","MailAccount","ChatWebsite","FaxAccount","SmsAccount","OpenChannelAccount","ReportAgent","$uibModal","$log","ReportDial",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A,v,I,b,E,T,N,P,C,O,S,x,w,L,R,y,D,k,M,U){function G(t,e,n){return null===e&&(e=50),null===n&&(n="..."),t&&t.length>e?t.substring(0,e-n.length)+n:t}function q(e){var n,a="reason";switch(e){case"mail":n=h;break;case"chat":n=A;break;case"fax":n=O;break;case"sms":n=g;break;case"agent":n=D,a="lastevent";break;case"dial":n=U,a="dialstatus";break;case"openchannel":n=f;break;default:return}return n.get({limit:10,order:"updatedAt DESC"}).$promise.then(function(n){_.forEach(n.rows,function(t){if(t[a])switch(t[a].toLowerCase()){case"answer":case"connect":case"complete":t.status="taken";break;case"answered_elsewhere":t.status="taken_elsewhere";break;case"called":t.status="lost";break;case"busy":t.status="busy";break;case"rejected":t.status="rejected";break;case"cancel":case"abandoned":t.status="abandoned"}}),t.agentNotifications[e].rows=n.rows,c.socket.on("report_"+e+":save",function(n){n.status="none",t.agentNotifications[e].rows.unshift(n),"agent"!==e&&"dial"!==e&&(t.agentNotifications[e].timeout[n.id]=setTimeout(function(){clearTimeout(t.agentNotifications[e].timeout[n.id]),_.find(t.agentNotifications[e].rows,{id:n.id}).status="lost",angular.element(document.getElementById("header_"+e+"_notification_bar")).hasClass("open")||t.agentNotifications[e].new++,delete t.agentNotifications[e].timeout[n.id]},1e3*n.timeslot))}),c.socket.on("report_"+e+":update",function(n){"agent"===e&&(_.find(t.activeCalls,{id:n.id})&&(n.agentcomplete||n.agentringnoanswer||n.agentdump)?_.remove(t.activeCalls,{id:n.id}):!n.agentconnectAt||n.agentcomplete||n.agentringnoanswer||n.agentdump||t.activeCalls.push(n));var s=_.find(t.agentNotifications[e].rows,{id:n.id});if(s&&("agent"!==e&&"dial"!==e&&t.agentNotifications[e].timeout[n.id]&&(clearTimeout(t.agentNotifications[e].timeout[n.id]),delete t.agentNotifications[e].timeout[n.id]),n[a])){switch(n[a].toLowerCase()){case"answer":case"connect":case"complete":n.status="taken";break;case"answered_elsewhere":n.status="taken_elsewhere",angular.element(document.getElementById("header_"+e+"_notification_bar")).hasClass("open")||t.agentNotifications.chat.new++;break;case"busy":n.status="busy",angular.element(document.getElementById("header_"+e+"_notification_bar")).hasClass("open")||t.agentNotifications[e].new++;break;case"rejected":n.status="rejected";break;case"cancel":case"abandoned":n.status="abandoned",angular.element(document.getElementById("header_"+e+"_notification_bar")).hasClass("open")||t.agentNotifications[e].new++}_.merge(s,n)}})}).catch(function(t){r.error(t)})}t.moment=moment,$(document).on("click",".tabbed-dropdown",function(t){t.stopPropagation()}),t.license.hasOwnProperty("expirationTime")&&(o.isAdmin()||o.isUser())&&!t.license.demo&&i(function(){"main.setting.license.view"!==a.current.name&&d.show(3e4)},3e4),t.openRoom=function(e,n){var a=_.find(t.workspaces,{id:e,type:n});if(a)a.active=!0;else{var s;switch(n){case"mailRoom":s="icon-envelope";break;case"chatRoom":s="fa fa-users";break;case"faxRoom":s="fa fa-fax";break;case"smsRoom":s="glyphicon glyphicon-comment";break;case"openchannelRoom":s="icon-globe"}t.workspaces.push({id:e,type:n,class:s,active:!0})}},t.toggleSidebar=function(){e.settings.layout.pageSidebarClosed=!e.settings.layout.pageSidebarClosed,p.set("sidebarClosed",e.settings.layout.pageSidebarClosed)},t.chooseContact=function(e){k.open({animation:!0,templateUrl:"app/main/chooseContact.modal.html",controller:"ChooseContactModalCtrl",resolve:{data:function(){return{eventChannel:"voice",calleridnum:e}}}}).result.then(function(n){n?t.openContactTab(n):t.newContact({calleridnum:e})},function(){M.info("Modal dismissed at: "+new Date)})},t.loadNotifications=function(e){if(!t.busyLoad[e].end){t.busyLoad[e].busy=!0;var n,a="reason";switch(e){case"mail":n=h;break;case"chat":n=A;break;case"fax":n=O;break;case"sms":n=g;break;case"agent":n=D,a="lastevent";break;case"dial":n=U,a="dialstatus";break;case"openchannel":n=f;break;default:return}return n.get({limit:10,offset:t.agentNotifications[e].rows.length,order:"updatedAt DESC"}).$promise.then(function(n){n.rows.length?(_.forEach(n.rows,function(t){if(t[a])switch(t[a].toLowerCase()){case"answer":case"connect":case"complete":t.status="taken";break;case"answered_elsewhere":t.status="taken_elsewhere";break;case"called":t.status="lost";break;case"busy":t.status="busy";break;case"rejected":t.status="rejected";break;case"abandoned":t.status="abandoned"}}),t.agentNotifications[e].rows=t.agentNotifications[e].rows.concat(n.rows)):t.busyLoad[e].end=!0,t.busyLoad[e].busy=!1}).catch(function(t){r.error(t)})}},t.headerPause=function(e,n,a){return C.save({name:e,agent:t.headerAgent.id,type:n||"DEFAULT PAUSE",data4:n||"DEFAULT PAUSE",channel:a||"all"}).$promise.then(function(){r.show(E.instant("MESSAGE_WELL_DONE"),"success")}).catch(function(t){r.error(t)})},o.isAgent()&&(t.headerAgent=o.getCurrentUser(),t.readyTimer=1e3*moment().unix(),P.get().$promise.then(function(e){t.headerPauses=e.rows,c.syncUpdates("pause",t.headerPauses)}).then(function(){c.socket.on("agent:save",function(e){e=e.newValues||e,t.headerAgent.id===e.id&&(_.merge(t.headerAgent,e),e.voicePause&&e.mailPause&&e.chatPause&&e.faxPause&&e.smsPause&&e.openchannelPause||(t.readyTimer=1e3*moment().unix()))})}).finally(function(){o.getCurrentUser().loginInPause&&!p.get("loggedIn")&&t.headerPause("pause")}).catch(function(t){console.log("Error synchronizing agent status:",t)}),t.agentNotifications={mail:{rows:[],new:0,timeout:{}},chat:{rows:[],new:0,timeout:{}},fax:{rows:[],new:0,timeout:{}},sms:{rows:[],new:0,timeout:{}},agent:{rows:[],new:0},dial:{rows:[],new:0},openchannel:{rows:[],new:0}},t.busyLoad={mail:{busy:!1,end:!1},chat:{busy:!1,end:!1},fax:{busy:!1,end:!1},sms:{busy:!1,end:!1},agent:{busy:!1,end:!1},dial:{busy:!1,end:!1},openchannel:{busy:!1,end:!1}},D.get({id:"active",controller:"calls"}).$promise.then(function(e){t.activeCalls=e.rows}).catch(function(t){r.error(t)}),q("agent"),q("dial"),t.license.mail&&q("mail"),t.license.chat&&q("chat"),t.license.fax&&q("fax"),t.license.messaging&&q("sms"),t.license.openchannel&&q("openchannel")),c.socket.on("user_has_chat_room:save",function(e){var n;return v.get({id:Number(e.ChatRoomId)}).$promise.then(function(e){n=e;var a=_.find(t.workspaces,{id:Number(n.id),type:"chatRoom"});a?a.name=t.getFullnames(n):t.workspaces.push({id:n.id,name:t.getFullnames(n),type:"chatRoom",class:"icon-bubble",unread:1})}).catch(function(t){console.error(t)})}),c.socket.on("chat_message:save",function(e){var n;if(e.UserId!==o.getCurrentUser().id&&!_.find(t.workspaces,{id:Number(e.ChatRoomId),type:"chatRoom"}))return v.get({id:Number(e.ChatRoomId)}).$promise.then(function(e){n=e,t.workspaces.push({id:n.id,name:t.getFullnames(e),type:"chatRoom",class:"icon-bubble",unread:1})}).catch(function(t){console.error(t)})});var F=function(){return T.Notification};T.onfocus=function(){e.settings.layout.onFocus=!0},T.onblur=function(){e.settings.layout.onFocus=!1},t.getFullnames=function(t){var e=_.without(_.map(t.Users,"fullname"),o.getCurrentUser().fullname);return t.ChatVisitor&&e.unshift(t.ChatVisitor.fullname),e.join(", ")},t.openContact=function(e,n,a){if(a&&"<unknown>"!==a){var s,i;switch(e){case"mail":s=x,i={email:a};break;case"chat":s=w,i={email:a};break;case"fax":s=L,i={fax:a};break;case"sms":s=R,i={mobile:a};break;default:return}return s.get({id:n}).$promise.then(function(t){return t.ListId?S.save({listId:t.ListId,controller:"contacts"},i).$promise:null}).then(function(e){if(e){var n=_.find(t.workspaces,{contactID:e.id});n?n.active=!0:t.workspaces.push({active:!0,class:"icon-user",contactID:e.id,name:e.email,type:"contact"})}else r.show(E.instant("MESSAGE_NO_LIST_CONFIGURED"),"info")}).catch(function(t){console.error(t)})}},t.initHeader=function(){if("agent"===o.getCurrentUser().role&&(c.socket.on("report_chat:save",function(t){F&&!e.settings.layout.onFocus&&l("CHAT CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming Chat Visitor!",delay:1e3*t.timeslot});var n="<b>"+E.instant("APPLICATION_FROM")+"</b>: "+t.visitorname+"<br><b>"+E.instant("APPLICATION_EMAIL")+"</b>: "+t.visitoremail;"queue"===t.application&&(n+="<br><b>"+E.instant("APPLICATION_QUEUE")+"</b>: "+t.queuename),I.show(E.instant("APPLICATION_NEW_CHAT_REQUEST"),n,"chat",1e3*t.timeslot,function(){return A.get({id:t.id,controller1:"accept",controller2:t.uniqueid}).$promise.then(function(){r.show("Chat properly assigned","success")}).catch(function(t){switch(t.status){case 504:r.show(E.instant("MESSAGE_CHAT_ALREADY_MANAGED"),"info");break;default:r.error(t)}})},function(){return A.get({id:t.id,controller1:"reject"}).$promise.then(function(){r.show("Chat properly rejected","success")}).catch(function(t){r.error(t)})})}),c.socket.on("report_mail:save",function(n){if(!_.find(t.workspaces,{id:n.roomid,type:"mailRoom"})){var a="<b>"+E.instant("APPLICATION_ACCOUNT")+"</b>: "+n.accountname+"<br> <b>"+E.instant("APPLICATION_FROM")+"</b>: "+n.from+"<br> <b>"+E.instant("APPLICATION_SUBJECT")+"</b>: "+(G(n.subject,30,"...")||"No subject");"queue"===n.application&&(a+="<br><b>"+E.instant("APPLICATION_QUEUE")+"</b>: "+n.queuename),I.show(E.instant("APPLICATION_NEW_MAIL_REQUEST"),a,"mail",1e3*n.timeslot,function(){return h.get({id:n.id,controller1:"accept",controller2:n.uniqueid}).$promise.then(function(){var e=_.find(t.workspaces,{id:n.roomid,type:"mailRoom"});e?e.active=!0:t.workspaces.push({id:n.roomid,name:n.subject||"No subject",type:"mailRoom",class:"icon-envelope",active:!0,unread:0})}).catch(function(t){switch(t.status){case 504:r.show(E.instant("MESSAGE_MAIL_ALREADY_MANAGED"),"info");break;default:r.error(t)}})},function(){return h.get({id:n.id,controller1:"reject"}).$promise.catch(function(t){r.error(t)})}),F&&!e.settings.layout.onFocus?l("MAIL CHANNEL",{icon:"assets/images/media/channels/mail64.png",body:"NEW Incoming Mail Message!",delay:1e3*n.timeslot}):console.log("Notification API not supported in your browser")}}),c.socket.on("report_sms:save",function(e){var n="<b>"+E.instant("APPLICATION_ACCOUNT")+"</b>: "+e.accountname+"<br> <b>"+E.instant("APPLICATION_FROM")+"</b>: "+e.from;"queue"===e.application&&(n+="<br><b>"+E.instant("APPLICATION_QUEUE")+"</b>: "+e.queuename),I.show(E.instant("APPLICATION_NEW_SMS_REQUEST"),n,"sms",1e3*e.timeslot,function(){return g.get({id:e.id,controller1:"accept",controller2:e.uniqueid}).$promise.then(function(){var n=_.find(t.workspaces,{id:e.roomid,type:"smsRoom"});n?n.active=!0:t.workspaces.push({id:e.roomid,name:e.from,type:"smsRoom",class:"glyphicon glyphicon-comment",active:!0})}).catch(function(t){switch(t.status){case 504:r.show(E.instant("MESSAGE_SMS_ALREADY_MANAGED"),"info");break;default:r.error(t)}})},function(){return g.get({id:e.id,controller1:"reject"}).$promise.then(function(){r.show("SMS properly rejected","success")}).catch(function(t){r.error(t)})}),F?l("SMS CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming SMS Message!",delay:1e3*e.timeslot}):console.log("Notification API not supported in your browser")}),c.socket.on("report_openchannel:save",function(e){var n="<b>"+E.instant("APPLICATION_ACCOUNT")+"</b>: "+e.accountname+"<br> <b>"+E.instant("APPLICATION_FROM")+"</b>: "+e.from;"queue"===e.application&&(n+="<br><b>"+E.instant("APPLICATION_QUEUE")+"</b>: "+e.queuename),I.show(E.instant("APPLICATION_NEW_MESSAGE"),n,"openchannel",1e3*e.timeslot,function(){return f.get({id:e.id,controller1:"accept",controller2:e.uniqueid}).$promise.then(function(){var n=_.find(t.workspaces,{id:e.roomid,type:"openchannelRoom"});n?n.active=!0:t.workspaces.push({id:e.roomid,name:e.from,type:"openchannelRoom",class:"icon-globe",active:!0})}).catch(function(t){switch(t.status){case 504:r.show(E.instant("MESSAGE_ALREADY_MANAGED"),"info");break;default:r.error(t)}})},function(){return f.get({id:e.id,controller1:"reject"}).$promise.then(function(){r.show("Message properly rejected","success")}).catch(function(t){r.error(t)})}),F?l("OPEN CHANNEL",{icon:"assets/images/media/channels/chat64.png",body:"NEW Incoming Message!",delay:1e3*e.timeslot}):console.log("Notification API not supported in your browser")}),c.socket.on("report_fax:save",function(n){if(!_.find(t.workspaces,{id:n.roomid,type:"faxRoom"})){var a="<b>"+E.instant("APPLICATION_ACCOUNT")+"</b>: "+n.accountname+"<br>               <b>"+E.instant("APPLICATION_PHONE")+"</b>: "+n.from;"queue"===n.application&&(a+="<br><b>"+E.instant("APPLICATION_QUEUE")+"</b>: "+n.queuename),I.show(E.instant("APPLICATION_NEW_FAX_REQUEST"),a,"fax",1e3*n.timeslot,function(){return O.get({id:n.id,controller1:"accept",controller2:n.uniqueid}).$promise.then(function(){var e=_.find(t.workspaces,{id:n.roomid,type:"faxRoom"});e?e.active=!0:t.workspaces.push({id:n.roomid,name:n.from,type:"faxRoom",class:"fa fa-fax",active:!0,unread:0})}).catch(function(t){switch(t.status){case 504:r.show(E.instant("MESSAGE_FAX_ALREADY_MANAGED"),"info");break;default:r.error(t)}})},function(){return O.get({id:n.id,controller1:"reject"}).$promise.catch(function(t){r.err(t)})}),F&&!e.settings.layout.onFocus?l("FAX CHANNEL",{icon:"assets/images/media/channels/telephone124.png",body:"NEW Incoming Fax Message!",delay:1e3*n.timeslot}):console.log("Notification API not supported in your browser")}}),o.getCurrentUser().loginInPause))return C.save({name:"pause",agent:o.getCurrentUser().id,type:"LOGININPAUSE",data4:"LOGININPAUSE",channel:"all"}).$promise.catch(function(t){r.error(t)})},t.logout=function(){return s.get("/auth/local/logout").success(function(){o.logout(),n.path("/login")}).error(function(t){r.error(t)})},t.isActive=function(t){return t===n.path()},t.$on("$destroy",function(){console.log("header $destroy"),c.unsyncUpdates("pause"),c.unsyncUpdates("agent"),c.unsyncUpdates("report_chat"),c.unsyncUpdates("report_mail"),c.unsyncUpdates("report_fax"),c.unsyncUpdates("report_sms"),c.unsyncUpdates("report_openchannel"),c.unsyncUpdates("user_has_chat_room"),c.unsyncUpdates("chat_message"),c.unsyncUpdates("report_integration:sugarcrm"),c.unsyncUpdates("report_integration:freshdesk")})}]),angular.module("xCallyShuttleApp").factory("Modal",["$rootScope","$uibModal",function(t,e){function n(n,a){var s=t.$new();return n=n||{},a=a||"modal-default",angular.extend(s,n),e.open({templateUrl:"components/modal/delete.html",windowClass:a,scope:s})}return{confirm:{delete:function(t){return t=t||angular.noop,function(){var e,a=Array.prototype.slice.call(arguments),s=a.shift();(e=n({modal:{dismissable:!0,title:"Confirm Delete",html:"<p>Are you sure you want to delete"+(s?"<strong> "+s+"</strong>":" selected items")+"?</p>",buttons:[{classes:"btn red",text:"Delete",click:function(t){e.close(t)}},{classes:"btn default",text:"Cancel",click:function(t){e.dismiss(t)}}]}},"over-topbar center")).result.then(function(e){t.apply(e,a)})}}}}}]),angular.module("xCallyShuttleApp").service("application",function(){return{application:{applications:[{type:null,name:"APPLICATION_QUEUE",value:"Queue"},{type:null,name:"APPLICATION_PLAYBACK",value:"Playback"},{type:null,name:"Dial",value:"Dial"},{type:"internalDial",name:"APPLICATION_INTERNAL_DIAL",value:"Dial"},{type:"externalDial",name:"APPLICATION_EXTERNAL_DIAL",value:"Dial"},{type:"RingGroup",name:"Ring Group",value:"Dial"},{type:null,name:"Cally-Square Project",value:"AGI"},{type:null,name:"GoTo",value:"Goto"},{type:null,name:"Hangup",value:"Hangup"},{type:null,name:"Set",value:"Set"},{type:null,name:"APPLICATION_VOICEMAIL",value:"Voicemail"},{type:"videoOn",name:"APPLICATION_VIDEO_ON",value:"Set"},{type:"custom",name:"Custom",value:"custom"}],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"}],checkUnderscore:function(t){return 0===t.indexOf("_")?t:"_"+t}}}}),angular.module("xCallyShuttleApp").service("automations",function(){return{services:{mail:{conditions:[{name:"APPLICATION_STATUS",value:"status",type:"select",arr:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",type:"input",operators:[{value:"greater_or_equal",name:"APPLICATION_GTE_TO"},{value:"less_or_equal",name:"APPLICATION_LTE_TO"},{value:"greater",name:"APPLICATION_GREATER_THAN"},{value:"less",name:"APPLICATION_LESS_THAN"}]}],actions:[{name:"APPLICATION_STATUS",value:"status"}]},chat:{conditions:[{name:"APPLICATION_STATUS",value:"status",type:"select",arr:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"},{name:"APPLICATION_STATUS_PENDING",value:"PENDING"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",type:"input",operators:[{value:"greater_or_equal",name:"APPLICATION_GTE_TO"},{value:"less_or_equal",name:"APPLICATION_LTE_TO"},{value:"greater",name:"APPLICATION_GREATER_THAN"},{value:"less",name:"APPLICATION_LESS_THAN"}]}],actions:[{name:"APPLICATION_STATUS",value:"status"}]},fax:{conditions:[{name:"APPLICATION_STATUS",value:"status",type:"select",arr:[{name:"APPLICATION_STATUS_NEW",value:"NEW"},{name:"APPLICATION_STATUS_OPEN",value:"OPEN"},{name:"APPLICATION_STATUS_CLOSED",value:"CLOSED"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_HOURS_SINCE_CREATED",value:"createdAt",type:"input",operators:[{value:"greater_or_equal",name:"APPLICATION_GTE_TO"},{value:"less_or_equal",name:"APPLICATION_LTE_TO"},{value:"greater",name:"APPLICATION_GREATER_THAN"},{value:"less",name:"APPLICATION_LESS_THAN"}]}],actions:[{name:"APPLICATION_STATUS",value:"status"}]}},channels:["mail","fax","chat"]}}),angular.module("xCallyShuttleApp").service("channel",function(){return[{name:"Voice",value:"voice"}]}),angular.module("xCallyShuttleApp").service("desk_com",function(){return{fields:[{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"]}}]}}),angular.module("xCallyShuttleApp").service("interval",function(){return{interval:{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"}],monthsNumber:[{value:"always",name:"APPLICATION_ALWAYS"},{value:"1",name:"APPLICATION_JANUARY"},{value:"2",name:"APPLICATION_FEBRUARY"},{value:"3",name:"APPLICATION_MARCH"},{value:"4",name:"APPLICATION_APRIL"},{value:"5",name:"APPLICATION_MAY"},{value:"6",name:"APPLICATION_JUNE"},{value:"7",name:"APPLICATION_JULY"},{value:"8",name:"APPLICATION_AUGUST"},{value:"9",name:"APPLICATION_SEPTEMBER"},{value:"10",name:"APPLICATION_OCTOBER"},{value:"11",name:"APPLICATION_NOVEMBER"},{value:"12",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]}}}),angular.module("xCallyShuttleApp").service("report",["ReportAgent","ReportCall","ReportMailSession","ReportMember","ReportQueue","ReportIntegration","ReportChatSession","ReportSmsSession","Contact","Recording","ReportSquare","ReportSquareDetail","User","ReportFaxSession","MailRoom","MailMessage","FaxRoom","FaxMessage","ChatRoom","ChatMessage","SmsRoom","SmsMessage","OpenChannelRoom","OpenChannelMessage","ReportOpenChannelSession","ReportMotionDialer","UserHasVoiceQueue",function(t,e,n,a,s,i,l,o,r,c,d,u,p,m,g,h,f,A,v,I,b,E,T,N,P,_,C){return{tables:[{value:"users",resource:p,channel:"General"},{value:"cm_contacts",resource:r,channel:"General"},{value:"report_integration_history",resource:i,channel:"General"},{value:"report_agent_history",resource:t,channel:"Voice"},{value:"report_call_history",resource:e,channel:"Voice"},{value:"report_member_history",resource:a,channel:"Voice"},{value:"report_queue_history",resource:s,channel:"Voice"},{value:"voice_recordings",resource:c,channel:"Voice"},{value:"report_square_history",resource:d,channel:"Voice"},{value:"report_square_details_history",resource:u,channel:"Voice"},{value:"report_tdial",resource:_,channel:"Voice"},{value:"report_chat_session_history",resource:l,channel:"Chat"},{value:"chat_rooms",resource:v,channel:"Chat"},{value:"chat_messages",resource:I,channel:"Chat"},{value:"report_mail_session_history",resource:n,channel:"Mail"},{value:"mail_rooms",resource:g,channel:"Mail"},{value:"mail_messages",resource:h,channel:"Mail"},{value:"report_fax_session_history",resource:m,channel:"Fax"},{value:"fax_rooms",resource:f,channel:"Fax"},{value:"fax_messages",resource:A,channel:"Fax"},{value:"report_sms_session_history",resource:o,channel:"Sms"},{value:"sms_rooms",resource:b,channel:"Sms"},{value:"sms_messages",resource:E,channel:"Sms"},{value:"report_openchannel_session_history",resource:P,channel:"Open Channel"},{value:"openchannel_rooms",resource:T,channel:"Open Channel"},{value:"openchannel_messages",resource:N,channel:"Open Channel"},{value:"user_has_voice_queues",resource:C,channel:"Voice"}]}}]),angular.module("xCallyShuttleApp").service("strategies",function(){return["beepall","roundrobin"]}),angular.module("xCallyShuttleApp").service("triggers",["VoiceQueue","ChatQueue","MailQueue","FaxQueue","SmsQueue","OpenChannelQueue","Route",function(t,e,n,a,s,i,l){return{services:{voice:{conditions:[{name:"APPLICATION_QUEUE",value:"queue",type:"select",resource:t,resValue:"name",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_CALL_STATUS",value:"lastevent",type:"select",translate:!0,arr:[{name:"ringing",value:"called"},{name:"up",value:"connect"},{name:"hangup",value:"complete"},{name:"rejected",value:"rejected"},{name:"ringnoanswer",value:"agentringnoanswer"},{name:"abandoned",value:"abandoned"}],operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_OUTBOUND_ROUTE",value:"routeId",type:"select",resource:l,resValue:"id",resName:"exten",params:{type:"outbound"},operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]}],actions:[{name:"APPLICATION_CONTACT_MANAGER",value:"contactManager"},{name:"APPLICATION_INTEGRATIONS",value:"integration",propertyField:"select"},{name:"APPLICATION_MOTION_BAR",value:"motionbar",propertyField:"select"},{name:"APPLICATION_JSCRIPTY",value:"jscripty",propertyField:"select"},{name:"APPLICATION_URL_FORWARD",value:"urlForward"},{name:"APPLICATION_WEB_POPUP",value:"webPopup"}]},mail:{conditions:[{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_CC",value:"cc",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_SUBJECT",value:"subject",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_BODY",value:"text",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_TEMPLATE",value:"template"},{name:"APPLICATION_EMAIL",value:"email"},{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_FORWARD",value:"forward"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},chat:{conditions:[{name:"APPLICATION_NAME",value:"fullname",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"}]},{name:"APPLICATION_EMAIL",value:"email",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},sms:{conditions:[{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_BODY",value:"body",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},fax:{conditions:[{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]},openchannel:{conditions:[{name:"APPLICATION_FROM",value:"from",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_TO",value:"to",type:"input",operators:[{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]},{name:"APPLICATION_BODY",value:"body",type:"input",operators:[{value:"equals",name:"APPLICATION_EQUALS_TO"},{value:"not_equals",name:"APPLICATION_NOT_EQUALS_TO"},{value:"contains",name:"APPLICATION_CONTAINS"},{value:"not_contains",name:"APPLICATION_NOT_CONTAINS"}]}],actions:[{name:"APPLICATION_EMAIL_FROM_ACCOUNT",value:"accountEmail"},{name:"APPLICATION_SMS",value:"accountSms"},{name:"APPLICATION_TEMPLATE",value:"accountTemplate"},{name:"APPLICATION_TAG",value:"tag"},{name:"APPLICATION_URL_FORWARD",value:"http"},{name:"APPLICATION_CLOSE",value:"close"}]}},channels:["voice","mail","chat","sms","fax","openchannel"]}}]),angular.module("xCallyShuttleApp").service("variable",function(){return[{title:"Unique ID",name:"uniqueid",group:"voice_queue"},{title:"Caller Number",name:"calleridnum",group:"voice_queue"},{title:"Caller Name",name:"calleridname",group:"voice_queue"},{title:"Queue",name:"queue",group:"voice_queue"},{title:"Called Number",name:"destcalleridnum",group:"voice_queue"},{title:"Called Name",name:"destcalleridname",group:"voice_queue"},{title:"Hold Time",name:"holdtime",group:"voice_queue"},{title:"Talk Time",name:"talktime",group:"voice_queue"},{title:"Connected Time",name:"agentconnectAt",group:"voice_queue"},{title:"Called Time",name:"agentcalledAt",group:"voice_queue"},{title:"DNID",name:"destexten",group:"voice_queue"},{title:"Complete Time",name:"agentcompleteAt",group:"voice_queue"},{title:"No Answer Time",name:"agentringnoanswerAt",group:"voice_queue"},{title:"Recording URL",name:"recordingURL",group:"voice_queue"},{title:"Unique ID",name:"uniqueid",group:"voice_outbound"},{title:"Caller Number",name:"calleridnum",group:"voice_outbound"},{title:"Caller Name",name:"calleridname",group:"voice_outbound"},{title:"Called Number",name:"destcalleridnum",group:"voice_outbound"},{title:"Called Name",name:"destcalleridname",group:"voice_outbound"},{title:"Start Time",name:"starttime",group:"voice_outbound"},{title:"Answer Time",name:"answertime",group:"voice_outbound"},{title:"Complete Time",name:"endtime",group:"voice_outbound"},{title:"Recording URL",name:"recordingURL",group:"voice_outbound"},{title:"Member Name",name:"membername",group:"voice_outbound"}]}),angular.module("xCallyShuttleApp").controller("SidebarController",["$scope","$rootScope","$resource","$location","Auth","Dashboard","Integration","xAlert","$stateParams","socket","$uibModal","Setting",function(t,e,n,a,s,i,l,o,r,c,d,u){t.Auth=s,t.$on("$includeContentLoaded",function(){Metronic.init(),Layout.initSidebar()}),t.getSidebarDashboards=function(){return i.get().$promise.then(function(n){e.dashboards=n.rows,c.syncUpdates("dashboard",e.dashboards),t.$watch("dashboards",function(t){t&&e.initTours()},!0)}).catch(function(){o.show("Error loading your dashboards","danger")})},t.about=function(){d.open({animation:!0,size:"sm",templateUrl:"app/main/about.modal.html",controller:["$scope","$uibModalInstance",function(t,e){t.year=moment().year(),t.getInfo=function(){return u.get({controller:"info"}).$promise.then(function(e){t.info=e}).catch(function(t){console.error(t)})},t.close=function(){e.dismiss("cancel")}}]})},t.getSidebarIntegrations=function(){if(s.isAdmin()||s.isAgent()||e.userModules[19])return l.get().$promise.then(function(e){t.integrations=e.rows,c.syncUpdates("integration",t.integrations)}).catch(function(t){o.error(t)})},t.$on("sidebar $destroy",function(){console.log("destroy"),c.unsyncUpdates("dashboard"),c.unsyncUpdates("integration")})}]),angular.module("xCallyShuttleApp").factory("socket",["$rootScope","$window","socketFactory","Auth",function(t,e,n,a){var s=a.getCurrentUser(),i=n({ioSocket:io("",{query:"token="+a.getToken()+"&userId="+s.id+"&name="+s.name+"&role="+(s.role||"agent")+"&source=browser",path:"/socket.io-client",multiplex:!1})});return t.$on("logout",function(){i&&(i.disconnect(!0),e.location.reload())}),{socket:i,syncUpdates:function(t,e,n){n=n||angular.noop,i.on(t+":save",function(t){var a=_.find(e,{id:t.id}),s=e.indexOf(a),i="created";a?(_.merge(e[s],t),i="updated"):e.unshift(t),n(i,t,e)}),i.on(t+":remove",function(t){_.remove(e,{id:t.id}),n("deleted",t,e)})},unsyncUpdates:function(t){i.removeAllListeners(t+":save"),i.removeAllListeners(t+":update"),i.removeAllListeners(t+":remove")},syncUpdatesByAttributes:function(t,e,n,a){a=a||angular.noop,i.on(t+":save",function(t){var s=!0;if(_.forIn(e,function(e,n){return!(!t[n]||t[n]!==e)||(s=!1)}),s){var i=_.find(n,{id:t.id}),l=n.indexOf(i),o="created";i?(_.merge(n[l],t),o="updated"):n.unshift(t),a(o,t,n)}}),i.on(t+":remove",function(t){_.remove(n,{id:t.id}),a("deleted",t,n)})},syncMailMessageUpdates:function(t,e,n,a){a=a||angular.noop,i.on(t+":"+e+":save",function(t){var e=_.find(n,{id:t.id}),s=n.indexOf(e),i="created";e?(_.merge(n[s],t),i="updated"):n.unshift(t),a(i,t)}),i.on(t+":"+e+":remove",function(t){_.remove(n,{id:t.id}),a("deleted",t,n)})},unsyncMailMessageUpdates:function(t,e){i.removeAllListeners(t+":"+e+":save"),i.removeAllListeners(t+":"+e+":remove")},syncFaxMessageUpdates:function(t,e,n,a){a=a||angular.noop,i.on(t+":"+e+":save",function(t){var e=_.find(n,{id:t.id}),s=n.indexOf(e),i="created";e?(_.merge(n[s],t),i="updated"):n.unshift(t),a(i,t)}),i.on(t+":"+e+":remove",function(t){_.remove(n,{id:t.id}),a("deleted",t,n)})},unsyncFaxMessageUpdates:function(t,e){i.removeAllListeners(t+":"+e+":save"),i.removeAllListeners(t+":"+e+":remove")}}}]),function(t,e){angular.module("adf.widget.counter",["adf.provider"]).config(["dashboardProvider",function(t){t.widget("counter",{title:"Single Value",description:"Single Value for db results",templateUrl:"{widgetsPath}/counter/src/view.html",controller:"apiwidgetCounterViewCtrl",edit:{templateUrl:"{widgetsPath}/counter/src/edit.html",controller:"apiwidgetCounterEditCtrl"}})}]).service("apiServiceCounter",["Widget",function(t){return{get:function(e){return t.get({select:e.select,condition:encodeURIComponent(e.condition),table:e.report.replace("_history",""),controller:"counter"}).$promise.then(function(t){return t}).catch(function(t){console.log(t)})}}}]).controller("apiwidgetCounterEditCtrl",["$scope","report",function(t,e){t.config.reportTables=e.tables,t.config.colors=[{name:"Grey",value:"grey"},{name:"Grey 2",value:"grey-cascade"},{name:"Grey 3",value:"grey-silver"},{name:"Grey 4",value:"grey-steel"},{name:"Grey 5",value:"grey-carrara"},{name:"Grey 6",value:"grey-gallery"},{name:"Blue",value:"blue"},{name:"Blue 2",value:"blue-hoki"},{name:"Blue 3",value:"blue-steel"},{name:"Blue 4",value:"blue-madison"},{name:"Blue 5",value:"blue-chambray"},{name:"Blue 6",value:"blue-ebonyclay"},{name:"Red",value:"red"},{name:"Red 2",value:"red-pink"},{name:"Red 3",value:"red-sunglo"},{name:"Red 4",value:"red-intense"},{name:"Red 5",value:"red-thunderbird"},{name:"Red 6",value:"red-flamingo"},{name:"Green",value:"green"},{name:"Green 2",value:"green-meadow"},{name:"Green 3",value:"green-seagreen"},{name:"Green 4",value:"green-turquoise"},{name:"Green 5",value:"green-haze"},{name:"Green 6",value:"green-jungle"},{name:"Purple",value:"purple"},{name:"Purple 2",value:"purple-plum"},{name:"Purple 3",value:"purple-medium"},{name:"Purple 4",value:"purple-studio"},{name:"Purple 5",value:"purple-wisteria"},{name:"Purple 6",value:"purple-seance"},{name:"Yellow",value:"yellow"},{name:"Yellow 2",value:"yellow-gold"},{name:"Yellow 3",value:"yellow-casablanca"},{name:"Yellow 4",value:"yellow-crusta"},{name:"Yellow 5",value:"yellow-lemon"},{name:"Yellow 6",value:"yellow-saffron"}],t.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"},{name:"Volume Control Phone",value:"fa-volume-control-phone"},{name:"Comments",value:"fa-comments-o"},{name:"Commenting",value:"fa-commenting-o"},{name:"Coffee",value:"fa-coffee"},{name:"Clock",value:"fa-clock-o"},{name:"Envelope",value:"fa-envelope-o"},{name:"Hourglass",value:"fa-hourglass-half"},{name:"Percent",value:"fa-percent"}],t.config.select=t.config.select?t.config.select:"COUNT(*)",t.config.color=t.config.color?t.config.color:"blue-madison",t.config.icon=t.config.icon?t.config.icon:"fa-comments",t.config.link=t.config.link?t.config.link:"#",t.config.linkText=t.config.linkText?t.config.linkText:"VIEW MORE"}]).controller("apiwidgetCounterViewCtrl",["$scope","$interval","apiServiceCounter","socket",function(t,e,n,a){var s=t.$parent.model.wid;a.socket.on("widget_update:"+s,function(e){e&&e.length>1||_.keys(e[0]).length>1?(t.tooManyResults=!0,t.result=null):(t.tooManyResults=!1,null!==_.values(e[0])[0]?t.result=_.values(e[0])[0].toString():t.result="--")}),t.$on("$destroy",function(){a.socket.removeAllListeners("widget_update:"+s)})}]),angular.module("adf.widget.counter").run(["$templateCache",function(t){t.put("{widgetsPath}/counter/src/edit.html","<form role=form><div class=form-group><label for=select>Select</label> <input type=text class=form-control id=condition ng-model=config.select placeholder=Select></div><div class=form-group><label class=control-label>From</label><ui-select data-ng-model=config.report name=report theme=bootstrap><ui-select-match placeholder=From>{{'APPLICATION_'+$select.selected.value.toUpperCase() | translate}}</ui-select-match><ui-select-choices group-by=\"'channel'\" repeat=\"table.value as table in config.reportTables | filter: $select.search\"><div ng-bind-html=\"'APPLICATION_'+table.value.toUpperCase() | translate | highlight: $select.search\"></div></ui-select-choices></ui-select></div><div class=form-group><label for=condition>Where</label> <input type=text class=form-control id=condition ng-model=config.condition placeholder=Where></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 }}\"><div data-ng-class=\"'bg-'+$select.selected.value\">&nbsp;</div></ui-select-match><ui-select-choices repeat=\"color.value as color in config.colors | filter: $select.search\"><div data-ng-class=\"'bg-'+color.value\">&nbsp;</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 }}\"><i class=fa ng-class=$select.selected.value></i></ui-select-match><ui-select-choices repeat=\"icon.value as icon in config.icons | filter: $select.search\"><i class=fa ng-class=icon.value></i></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>"),t.put("{widgetsPath}/counter/src/view.html",'<div class=dashboard-stat ng-class=config.color ng-if=result><div class=visual><i class=fa ng-class=config.icon></i></div><div class=details><div class=number>{{result}}</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=tooManyResults><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_TOO_MANY_RESULTS\' | translate}}</div><div class="alert alert-danger" role=alert ng-if="!result && !tooManyResults"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>{{\'APPLICATION_ERROR\' | translate}}:</span> {{\'MESSAGE_QUERY_NOT_VALID\' | translate}}</div>')}])}(window),function(t,e){angular.module("adf.widget.pie-chart",["adf.provider"]).config(["dashboardProvider",function(t){t.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",["Widget",function(t){return{get:function(e){return t.get({condition:encodeURIComponent(e.condition),table:e.report.replace("_history",""),fields:e.fields,controller:"piechart"}).$promise.then(function(t){return t}).catch(function(t){console.log(t)})}}}]).controller("apiWidgetPieChartEditCtrl",["$scope","report",function(t,e){function n(){return t.config.fields||(t.config.fields=[{column:"",alias:""}]),t.config.fields}t.config.reportTables=e.tables,t.config.fields=t.config.fields?t.config.fields:[{column:"",alias:""}],t.addField=function(){n().push({})},t.removeField=function(t){n().splice(t,1)}}]).controller("apiWidgetPieChartViewCtrl",["$scope","$interval","apiServicePieChart","socket",function(t,e,n,a){var s=t.$parent.model.wid;a.socket.on("widget_update:"+s,function(e){if(e&&1===e.length){t.labels=[],t.data=[];for(var n in e[0])t.labels.push(n),t.data.push(e[0][n])}else t.labels=[],t.data=[]}),t.$on("$destroy",function(){a.socket.removeAllListeners("widget_update:"+s)})}]),angular.module("adf.widget.pie-chart").run(["$templateCache",function(t){t.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 }}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match><ui-select-choices group-by="\'channel\'" repeat="table.value as table in config.reportTables | filter: $select.search"><div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | 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></form>'),t.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(t,e){angular.module("adf.widget.table",["adf.provider"]).value("apiServiceUrlTable","/api/widgets/table").config(["dashboardProvider",function(t){t.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(t,e,n){return{get:function(a){var s=t.defer();return e.get(n,{params:{condition:encodeURIComponent(a.condition),table:a.report,fields:a.fields}}).success(function(t){t?s.resolve(t):s.reject()}).error(function(t){console.log(t),s.reject()}),s.promise}}}]).controller("apiWidgetTableEditCtrl",["$scope",function(t){function e(){return t.config.fields||(t.config.fields=[{column:"",alias:""}]),t.config.fields}t.config.reportTables=[{name:"Agents",value:"agent"},{name:"Calls",value:"call"},{name:"Dials",value:"dial"},{name:"Members",value:"member"},{name:"Queues",value:"queue"}],t.config.timeout=t.config.timeout?t.config.timeout:1,t.config.height=t.config.height?t.config.height:350,t.config.fields=t.config.fields?t.config.fields:[{column:"",alias:""}],t.addField=function(){e().push({})},t.removeField=function(t){e().splice(t,1)}}]).controller("apiWidgetTableViewCtrl",["$scope","$interval","apiServiceTable",function(t,e,n){t.config.timeout=t.config.timeout?t.config.timeout:1,t.config.height=t.config.height?t.config.height:350,t.config.style={"max-height":t.config.height+"px",overflow:"scroll"},t.tableApiCall=function(){t.config.condition&&t.config.report&&t.config.fields.length&&""!==t.config.fields[0].column&&""!==t.config.fields[0].alias&&n.get(t.config).then(function(e){t.results=e})},t.tableApiCall();var a=e(function(){t.tableApiCall()},1e3*parseInt(t.config.timeout));t.$on("$destroy",function(){e.cancel(a)})}]),angular.module("adf.widget.table").run(["$templateCache",function(t){t.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>'),t.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);var Metronic=function(){var t,e=!1,n=!1,a=!1,s=!1,i=[],l="assets/",o="img/",r="plugins/",c={blue:"#89C4F4",red:"#F3565D",green:"#1bbc9b",purple:"#9b59b6",grey:"#95a5a6",yellow:"#F8CB00"},d=function(){"rtl"===$("body").css("direction")&&(e=!0),n=!!navigator.userAgent.match(/MSIE 8.0/),a=!!navigator.userAgent.match(/MSIE 9.0/),(s=!!navigator.userAgent.match(/MSIE 10.0/))&&$("html").addClass("ie10"),(s||a||n)&&$("html").addClass("ie")},u=function(){for(var t=0;t<i.length;t++)i[t].call()},p=function(){var t;if(n){var e;$(window).resize(function(){e!=document.documentElement.clientHeight&&(t&&clearTimeout(t),t=setTimeout(function(){u()},50),e=document.documentElement.clientHeight)})}else $(window).resize(function(){t&&clearTimeout(t),t=setTimeout(function(){u()},50)})},m=function(){$("body").on("click",".portlet > .portlet-title > .tools > a.remove",function(t){t.preventDefault();var e=$(this).closest(".portlet");$("body").hasClass("page-portlet-fullscreen")&&$("body").removeClass("page-portlet-fullscreen"),e.find(".portlet-title .fullscreen").tooltip("destroy"),e.find(".portlet-title > .tools > .reload").tooltip("destroy"),e.find(".portlet-title > .tools > .remove").tooltip("destroy"),e.find(".portlet-title > .tools > .config").tooltip("destroy"),e.find(".portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip("destroy"),e.remove()}),$("body").on("click",".portlet > .portlet-title .fullscreen",function(t){t.preventDefault();var e=$(this).closest(".portlet");if(e.hasClass("portlet-fullscreen"))$(this).removeClass("on"),e.removeClass("portlet-fullscreen"),$("body").removeClass("page-portlet-fullscreen"),e.children(".portlet-body").css("height","auto");else{var n=Metronic.getViewPort().height-e.children(".portlet-title").outerHeight()-parseInt(e.children(".portlet-body").css("padding-top"))-parseInt(e.children(".portlet-body").css("padding-bottom"));$(this).addClass("on"),e.addClass("portlet-fullscreen"),$("body").addClass("page-portlet-fullscreen"),e.children(".portlet-body").css("height",n)}}),$("body").on("click",".portlet > .portlet-title > .tools > a.reload",function(t){t.preventDefault();var e=$(this).closest(".portlet").children(".portlet-body"),n=$(this).attr("data-url"),a=$(this).attr("data-error-display");n?(Metronic.blockUI({target:e,animate:!0,overlayColor:"none"}),$.ajax({type:"GET",cache:!1,url:n,dataType:"html",success:function(t){Metronic.unblockUI(e),e.html(t)},error:function(t,n,s){Metronic.unblockUI(e);var i="Error on reloading the content. Please check your connection and try again.";"toastr"==a&&toastr?toastr.error(i):"notific8"==a&&$.notific8?($.notific8("zindex",11500),$.notific8(i,{theme:"ruby",life:3e3})):alert(i)}})):(Metronic.blockUI({target:e,animate:!0,overlayColor:"none"}),window.setTimeout(function(){Metronic.unblockUI(e)},1e3))}),$('.portlet .portlet-title a.reload[data-load="true"]').click(),$("body").on("click",".portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand",function(t){t.preventDefault()})},g=function(){if($().uniform){var t=$("input[type=checkbox]:not(.toggle, .make-switch, .icheck), input[type=radio]:not(.toggle, .star, .make-switch, .icheck)");t.size()>0&&t.each(function(){0===$(this).parents(".checker").size()&&$(this).show()})}},h=function(){$().iCheck&&$(".icheck").each(function(){var t=$(this).attr("data-checkbox")?$(this).attr("data-checkbox"):"icheckbox_minimal-grey",e=$(this).attr("data-radio")?$(this).attr("data-radio"):"iradio_minimal-grey";t.indexOf("_line")>-1||e.indexOf("_line")>-1?$(this).iCheck({checkboxClass:t,radioClass:e,insert:'<div class="icheck_line-icon"></div>'+$(this).attr("data-label")}):$(this).iCheck({checkboxClass:t,radioClass:e})})},f=function(){$().bootstrapSwitch&&$(".make-switch").bootstrapSwitch()},A=function(){$().confirmation&&$("[data-toggle=confirmation]").confirmation({container:"body",btnOkClass:"btn-xs btn-success",btnCancelClass:"btn-xs btn-danger"})},v=function(){$("body").on("shown.bs.collapse",".accordion.scrollable",function(t){Metronic.scrollTo($(t.target))})},I=function(){if(location.hash){var t=location.hash.substr(1);$('a[href="#'+t+'"]').parents(".tab-pane:hidden").each(function(){var t=$(this).attr("id");$('a[href="#'+t+'"]').click()}),$('a[href="#'+t+'"]').click()}},b=function(){$("body").on("hide.bs.modal",function(){$(".modal:visible").size()>1&&!1===$("html").hasClass("modal-open")?$("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")})},E=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"})},T=function(){$("body").on("click",".dropdown-menu.hold-on-click",function(t){t.stopPropagation()})},N=function(){$("body").on("click",'[data-close="alert"]',function(t){$(this).parent(".alert").hide(),$(this).closest(".note").hide(),t.preventDefault()}),$("body").on("click",'[data-close="note"]',function(t){$(this).closest(".note").hide(),t.preventDefault()}),$("body").on("click",'[data-remove="note"]',function(t){$(this).closest(".note").remove(),t.preventDefault()})},P=function(){$('[data-hover="dropdown"]').not(".hover-initialized").each(function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")})},_=function(){$(".popovers").popover(),$(document).on("click.bs.popover.data-api",function(e){t&&t.popover("hide")})},C=function(){Metronic.initSlimScroll(".scroller")},O=function(){jQuery.fancybox&&$(".fancybox-button").size()>0&&$(".fancybox-button").fancybox({groupAttr:"data-rel",prevEffect:"none",nextEffect:"none",closeBtn:!0,helpers:{title:{type:"inside"}}})},S=function(){(n||a)&&$("input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)").each(function(){var t=$(this);""===t.val()&&""!==t.attr("placeholder")&&t.addClass("placeholder").val(t.attr("placeholder")),t.focus(function(){t.val()==t.attr("placeholder")&&t.val("")}),t.blur(function(){""!==t.val()&&t.val()!=t.attr("placeholder")||t.val(t.attr("placeholder"))})})},x=function(){$().select2&&$(".select2me").select2({placeholder:"Select"})};return{init:function(){d(),p(),g(),h(),f(),C(),O(),x(),m(),N(),T(),I(),E(),_(),v(),b(),A(),S()},initAjax:function(){g(),h(),f(),P(),C(),x(),O(),T(),E(),_(),v(),A()},initComponents:function(){this.initAjax()},setLastPopedPopover:function(e){t=e},addResizeHandler:function(t){i.push(t)},runResizeHandlers:function(){u()},scrollTo:function(t,e){var n=t&&t.size()>0?t.offset().top:0;t&&($("body").hasClass("page-header-fixed")&&(n-=$(".page-header").height()),n+=e||-1*t.height()),$("html,body").animate({scrollTop:n},"slow")},initSlimScroll:function(t){$(t).each(function(){if(!$(this).attr("data-initialized")){var t;t=$(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:e?"left":"right",height:t,alwaysVisible:"1"==$(this).attr("data-always-visible"),railVisible:"1"==$(this).attr("data-rail-visible"),disableFadeOut:!0}),$(this).attr("data-initialized","1")}})},destroySlimScroll:function(t){$(t).each(function(){if("1"===$(this).attr("data-initialized")){$(this).removeAttr("data-initialized"),$(this).removeAttr("style");var t={};$(this).attr("data-handle-color")&&(t["data-handle-color"]=$(this).attr("data-handle-color")),$(this).attr("data-wrapper-class")&&(t["data-wrapper-class"]=$(this).attr("data-wrapper-class")),$(this).attr("data-rail-color")&&(t["data-rail-color"]=$(this).attr("data-rail-color")),$(this).attr("data-always-visible")&&(t["data-always-visible"]=$(this).attr("data-always-visible")),$(this).attr("data-rail-visible")&&(t["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 e=$(this);$.each(t,function(t,n){e.attr(t,n)})}})},scrollTop:function(){Metronic.scrollTo()},blockUI:function(t){var e="";if(e=(t=$.extend(!0,{},t)).animate?'<div class="loading-message '+(t.boxed?"loading-message-boxed":"")+'"><div class="block-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>':t.iconOnly?'<div class="loading-message '+(t.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""></div>':t.textOnly?'<div class="loading-message '+(t.boxed?"loading-message-boxed":"")+'"><span>&nbsp;&nbsp;'+(t.message?t.message:"LOADING...")+"</span></div>":'<div class="loading-message '+(t.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-blue.gif" align=""><span>&nbsp;&nbsp;'+(t.message?t.message:"LOADING...")+"</span></div>",t.target){var n=$(t.target);n.height()<=$(window).height()&&(t.cenrerY=!0),n.block({message:e,baseZ:t.zIndex?t.zIndex:1e3,centerY:void 0!==t.cenrerY&&t.cenrerY,css:{top:"10%",border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:t.overlayColor?t.overlayColor:"#555",opacity:t.boxed?.05:.1,cursor:"wait"}})}else $.blockUI({message:e,baseZ:t.zIndex?t.zIndex:1e3,css:{border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:t.overlayColor?t.overlayColor:"#555",opacity:t.boxed?.05:.1,cursor:"wait"}})},unblockUI:function(t){t?$(t).unblock({onUnblock:function(){$(t).css("position",""),$(t).css("zoom","")}}):$.unblockUI()},startPageLoading:function(t){t&&t.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"/>&nbsp;&nbsp;<span>'+(t&&t.message?t.message:"Loading...")+"</span></div>"))},stopPageLoading:function(){$(".page-loading, .page-spinner-bar").remove()},alert:function(t){t=$.extend(!0,{container:"",place:"append",type:"success",message:"",close:!0,reset:!0,focus:!0,closeInSeconds:0,icon:""},t);var e=Metronic.getUniqueID("Metronic_alert"),n='<div id="'+e+'" class="Metronic-alerts alert alert-'+t.type+' fade in">'+(t.close?'<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>':"")+(""!==t.icon?'<i class="fa-lg fa fa-'+t.icon+'"></i>  ':"")+t.message+"</div>";return t.reset&&$(".Metronic-alerts").remove(),t.container?"append"==t.place?$(t.container).append(n):$(t.container).prepend(n):$("body").hasClass("page-container-bg-solid")?$(".page-title").after(n):$(".page-bar").size()>0?$(".page-bar").after(n):$(".page-breadcrumb").after(n),t.focus&&Metronic.scrollTo($("#"+e)),t.closeInSeconds>0&&setTimeout(function(){$("#"+e).remove()},1e3*t.closeInSeconds),e},initUniform:function(t){t?$(t).each(function(){0===$(this).parents(".checker").size()&&($(this).show(),$(this).uniform())}):g()},updateUniform:function(t){$.uniform.update(t)},initFancybox:function(){O()},getActualVal:function(t){return(t=$(t)).val()===t.attr("placeholder")?"":t.val()},getURLParameter:function(t){var e,n,a=window.location.search.substring(1).split("&");for(e=0;e<a.length;e++)if((n=a[e].split("="))[0]==t)return unescape(n[1]);return null},isTouchDevice:function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}},getViewPort:function(){var t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),{width:t[e+"Width"],height:t[e+"Height"]}},getUniqueID:function(t){return"prefix_"+Math.floor(Math.random()*(new Date).getTime())},isIE8:function(){return n},isIE9:function(){return a},isRTL:function(){return e},isAngularJsApp:function(){return"undefined"!=typeof angular},getAssetsPath:function(){return l},setAssetsPath:function(t){l=t},setGlobalImgPath:function(t){o=t},getGlobalImgPath:function(){return l+o},setGlobalPluginsPath:function(t){r=t},getGlobalPluginsPath:function(){return l+r},getGlobalCssPath:function(){return l+"css/"},getBrandColor:function(t){return c[t]?c[t]:""},getResponsiveBreakpoint:function(t){var e={xs:480,sm:768,md:900,lg:1200};return e[t]?e[t]:0}}}(),Layout=function(){var t=Metronic.getResponsiveBreakpoint("md"),e=function(){var e,n=$(".page-content"),a=$(".page-sidebar"),i=$("body");if(!0===i.hasClass("page-footer-fixed")&&!1===i.hasClass("page-sidebar-fixed")){var l=Metronic.getViewPort().height-$(".page-footer").outerHeight()-$(".page-header").outerHeight();n.height()<l&&n.attr("style","min-height:"+l+"px")}else{if(i.hasClass("page-sidebar-fixed"))e=s(),!1===i.hasClass("page-footer-fixed")&&(e-=$(".page-footer").outerHeight());else{var o=$(".page-header").outerHeight(),r=$(".page-footer").outerHeight();(e=Metronic.getViewPort().width<t?Metronic.getViewPort().height-o-r:a.height()+20)+o+r<=Metronic.getViewPort().height&&(e=Metronic.getViewPort().height-o-r)}n.attr("style","min-height:"+e+"px")}},n=function(e,n){var a=location.hash.toLowerCase(),s=$(".page-sidebar-menu");if("click"===e||"set"===e?n=$(n):"match"===e&&s.find("li > a").each(function(){var t=$(this).attr("href").toLowerCase();t.length>1&&a.substr(1,t.length-1)==t.substr(1)&&(n=$(this))}),n&&0!=n.size()&&"javascript:;"!==n.attr("href").toLowerCase()&&"#"!==n.attr("href").toLowerCase()){parseInt(s.data("slide-speed")),s.data("keep-expanded");s.find("li.active").removeClass("active"),s.find("li > a > .selected").remove(),!1===s.hasClass("page-sidebar-menu-hover-submenu")?s.find("li.open").each(function(){0===$(this).children(".sub-menu").size()&&($(this).removeClass("open"),$(this).find("> a > .arrow.open").removeClass("open"))}):s.find("li.open").removeClass("open"),n.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"===e&&Metronic.getViewPort().width<t&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click()}},a=function(){jQuery(".page-sidebar").on("click","li > a",function(n){var a=$(this).next().hasClass("sub-menu");if(!(Metronic.getViewPort().width>=t&&1===$(this).parents(".page-sidebar-menu-hover-submenu").size()))if(!1!==a){if(!$(this).next().hasClass("sub-menu always-open")){var s=$(this).parent().parent(),i=$(this),l=$(".page-sidebar-menu"),o=jQuery(this).next(),r=l.data("auto-scroll"),c=parseInt(l.data("slide-speed"));!0!==l.data("keep-expanded")&&(s.children("li.open").children("a").children(".arrow").removeClass("open"),s.children("li.open").children(".sub-menu:not(.always-open)").slideUp(c),s.children("li.open").removeClass("open"));o.is(":visible")?(jQuery(".arrow",jQuery(this)).removeClass("open"),jQuery(this).parent().removeClass("open"),o.slideUp(c,function(){!0===r&&!1===$("body").hasClass("page-sidebar-closed")&&($("body").hasClass("page-sidebar-fixed")?l.slimScroll({scrollTo:i.position().top}):Metronic.scrollTo(i,-200)),e()})):a&&(jQuery(".arrow",jQuery(this)).addClass("open"),jQuery(this).parent().addClass("open"),o.slideDown(c,function(){!0===r&&!1===$("body").hasClass("page-sidebar-closed")&&($("body").hasClass("page-sidebar-fixed")?l.slimScroll({scrollTo:i.position().top}):Metronic.scrollTo(i,-200)),e()})),n.preventDefault()}}else Metronic.getViewPort().width<t&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click()}),jQuery(".page-sidebar").on("click"," li > a.ajaxify",function(e){e.preventDefault(),Metronic.scrollTop();var n=$(this).attr("href"),a=jQuery(".page-sidebar ul"),s=($(".page-content"),$(".page-content .page-content-body"));a.children("li.active").removeClass("active"),a.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<t&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),Metronic.startPageLoading();var i=$(this);$.ajax({type:"GET",cache:!1,url:n,dataType:"html",success:function(t){0===i.parents("li.open").size()&&$(".page-sidebar-menu > li.open > a").click(),Metronic.stopPageLoading(),s.html(t),Layout.fixContentHeight(),Metronic.initAjax()},error:function(t,e,n){Metronic.stopPageLoading(),s.html("<h4>Could not load the requested content.</h4>")}})}),jQuery(".page-content").on("click",".ajaxify",function(e){e.preventDefault(),Metronic.scrollTop();var n=$(this).attr("href"),a=($(".page-content"),$(".page-content .page-content-body"));Metronic.startPageLoading(),Metronic.getViewPort().width<t&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),$.ajax({type:"GET",cache:!1,url:n,dataType:"html",success:function(t){Metronic.stopPageLoading(),a.html(t),Layout.fixContentHeight(),Metronic.initAjax()},error:function(t,e,n){a.html("<h4>Could not load the requested content.</h4>"),Metronic.stopPageLoading()}})}),l(),$(".page-sidebar").on("click",".sidebar-search .remove",function(t){t.preventDefault(),$(".sidebar-search").removeClass("open")}),$(".page-sidebar .sidebar-search").on("keypress","input.form-control",function(t){if(13==t.which)return $(".sidebar-search").submit(),!1}),0!==$(".sidebar-search").size()&&($(".sidebar-search .input-group").on("click",function(t){t.stopPropagation()}),$("body").on("click",function(){$(".sidebar-search").hasClass("open")&&$(".sidebar-search").removeClass("open")}))},s=function(){var t=Metronic.getViewPort().height-$(".page-header").outerHeight();return $("body").hasClass("page-footer-fixed")&&(t-=$(".page-footer").outerHeight()),t},i=function(){var n=$(".page-sidebar-menu");Metronic.destroySlimScroll(n),0!==$(".page-sidebar-fixed").size()?Metronic.getViewPort().width>=t&&(n.attr("data-height",s()),Metronic.initSlimScroll(n),e()):e()},l=function(){var t=$("body");t.hasClass("page-sidebar-fixed")&&$(".page-sidebar").on("mouseenter",function(){t.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").removeClass("page-sidebar-menu-closed")}).on("mouseleave",function(){t.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").addClass("page-sidebar-menu-closed")})},o=function(){$("body");$.cookie&&"1"===$.cookie("sidebar_closed")&&Metronic.getViewPort().width>=t?($("body").addClass("page-sidebar-closed"),$(".page-sidebar-menu").addClass("page-sidebar-menu-closed")):$.cookie&&$.cookie("sidebar_closed","0")},r=function(){$(".page-header").on("click",'.hor-menu a[data-toggle="tab"]',function(t){t.preventDefault();var e=$(".hor-menu .nav").find("li.current");$("li.active",e).removeClass("active"),$(".selected",e).remove();var n=$(this).parents("li").last();n.addClass("current"),n.find("a:first").append('<span class="selected"></span>')}),$(".page-header").on("click",".search-form",function(t){$(this).addClass("open"),$(this).find(".form-control").focus(),$(".page-header .search-form .form-control").on("blur",function(t){$(this).closest(".search-form").removeClass("open"),$(this).unbind("blur")})}),$(".page-header").on("keypress",".hor-menu .search-form .form-control",function(t){if(13==t.which)return $(this).closest(".search-form").submit(),!1}),$(".page-header").on("mousedown",".search-form.open .submit",function(t){t.preventDefault(),t.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(t){t.stopPropagation()})},c=function(){$("body").on("shown.bs.tab",'a[data-toggle="tab"]',function(){e()})},d=function(){navigator.userAgent.match(/iPhone|iPad|iPod/i)?$(window).bind("touchend touchcancel touchleave",function(t){$(this).scrollTop()>300?$(".scroll-to-top").fadeIn(500):$(".scroll-to-top").fadeOut(500)}):$(window).scroll(function(){$(this).scrollTop()>300?$(".scroll-to-top").fadeIn(500):$(".scroll-to-top").fadeOut(500)}),$(".scroll-to-top").click(function(t){return t.preventDefault(),$("html, body").animate({scrollTop:0},500),!1})},u=function(){var e,n=$(".full-height-content");if(e=Metronic.getViewPort().height-$(".page-header").outerHeight(!0)-$(".page-footer").outerHeight(!0)-$(".page-title").outerHeight(!0)-$(".page-bar").outerHeight(!0),n.hasClass("portlet")){var a=n.find(".portlet-body");if(Metronic.getViewPort().width<t)return void Metronic.destroySlimScroll(a.find(".full-height-content-body"));e=e-n.find(".portlet-title").outerHeight(!0)-parseInt(n.find(".portlet-body").css("padding-top"))-parseInt(n.find(".portlet-body").css("padding-bottom"))-2,n.hasClass("full-height-content-scrollable")?(e-=35,a.find(".full-height-content-body").css("height",e),Metronic.initSlimScroll(a.find(".full-height-content-body"))):a.css("min-height",e)}else{if(Metronic.getViewPort().width<t)return void Metronic.destroySlimScroll(n.find(".full-height-content-body"));n.hasClass("full-height-content-scrollable")?(e-=35,n.find(".full-height-content-body").css("height",e),Metronic.initSlimScroll(n.find(".full-height-content-body"))):n.css("min-height",e)}};return{initHeader:function(){r()},setSidebarMenuActiveLink:function(t,e){n(t,e)},initSidebar:function(){i(),a(),o(),Metronic.isAngularJsApp()&&n("match"),Metronic.addResizeHandler(i)},initContent:function(){u(),c(),Metronic.addResizeHandler(e),Metronic.addResizeHandler(u)},initFooter:function(){d()},init:function(){this.initHeader(),this.initSidebar(),this.initContent(),this.initFooter()},fixContentHeight:function(){e()},initFixedSidebarHoverEffect:function(){l()},initFixedSidebar:function(){i()},getLayoutImgPath:function(){return Metronic.getAssetsPath()+"img/"},getLayoutCssPath:function(){return Metronic.getAssetsPath()+"css/"}}}();angular.module("xCallyShuttleApp").run(["$templateCache",function(t){t.put("app/adminreset/adminreset.html",'\x3c!-- BEGIN LOGO --\x3e\n<div class="logo" data-ng-init="getInfo()">\n\t<a href="index.html">\n\t\t<img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n\t</a>\n</div>\n\x3c!-- END LOGO --\x3e\n\x3c!-- BEGIN RESET --\x3e\n<div class="content">\n\t\x3c!-- BEGIN RESET FORM --\x3e\n\t<form name="resetForm" data-ng-submit="resetForm.$valid && updatePassword()" novalidate>\n\t\t<h3>{{\'APPLICATION_RESET_PASSWORD\' | translate}}</h3>\n\t\t<p>\n\t\t\t{{\'MESSAGE_FIRST_LOGIN_PASSWORD_RESET\' | translate}}\n\t\t</p>\n\t\t<div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.password.$invalid}">\n\t\t\t<label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n\t\t\t<div class="input-icon">\n\t\t\t\t<i class="icon-key"></i>\n\t\t\t\t<input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" name="password" ng-model="user.password"  data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n\t\t\t</div>\n\t\t\t<span class="help-block">\n\t\t\t\t{{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n\t\t\t</span>\n\t\t\t<span data-ng-show="resetForm.$submitted && resetForm.password.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n\t\t\t<span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.password.$error.pattern" class="help-block help-block-error">\n\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t</span>\n\t\t</div>\n\t\t<div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.rePassword.$invalid}">\n\t\t\t<label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}</label>\n\t\t\t<div class="input-icon">\n\t\t\t\t<i class="icon-key"></i>\n\t\t\t\t<input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" name="rePassword" ng-model="user.rePassword" nx-equal="user.password" required/>\n\t\t\t</div>\n\t\t\t<span data-ng-show="resetForm.$submitted && resetForm.rePassword.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n\t\t\t<span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.$error.nxEqual" class="help-block help-block-error">\n\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n\t\t\t</span>\n\t\t</div>\n\t\t<div class="form-actions">\n\t\t\t<button type="submit" class="btn btn-success uppercase">{{\'APPLICATION_SUBMIT\' | translate}}</button>\n\t\t</div>\n\t</form>\n\t\x3c!-- END RESET FORM--\x3e\n\t\t<div class="login-options">\n\t\t\t<h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n\t\t\t<ul class="social-icons">\n\t\t\t\t<li>\n\t\t\t\t\t<a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xenialab"></a>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xenialab"></a>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a class="social-icon-color googleplus" data-original-title="Goole Plus" href="#"></a>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a class="social-icon-color linkedin" data-original-title="Linkedin" href="#"></a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n</div>\n<div class="copyright">\n\txCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} &copy; Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n\x3c!-- END RESET --\x3e\n'),t.put("app/analytic/extracted/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-file-pdf-o"></i>\n\t\t\t\t\t<a href="/analytics/extracted/list">{{ \'APPLICATION_EXTRACTED_REPORTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="fa fa-file-pdf-o font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_EXTRACTED_REPORTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.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    \x3c!-- START NAME --\x3e\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    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START TABLE --\x3e\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}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n        <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n          <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | 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    \x3c!-- END TABLE--\x3e\n\n    \x3c!-- START METRIC --\x3e\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    \x3c!-- END METRIC --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\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'),t.put("app/analytic/metric/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-calculator"></i>\n\t\t\t\t\t<a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t\x3c!-- <div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-calculator font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_DEFAULT_METRICS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t</div>\n\t\t\t</div> --\x3e\n\t\t\t\x3c!-- <div class="portlet-body"> --\x3e\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\x3c!-- <div ui-grid="gridOptionsDefault" data-ng-if="gridOptionsDefault" name="gridOptionsDefault"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptionsDefault.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div> --\x3e\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t\x3c!-- </div> --\x3e\n\t\t\t<div class="portlet-title">\x3c!-- removed margin-top20 class from title when commented the default metrics section--\x3e\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-calculator font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_METRICS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="create()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_METRIC\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions" data-ng-if="gridOptions" name="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/analytic/metric/list/view.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_METRIC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="forms.metric" novalidate>\n\n    \x3c!-- START NAME --\x3e\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}}</label>\n      <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required readonly/>\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    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START TABLE --\x3e\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}}</label>\n      <ui-select data-ng-model="item.table" name="table" theme="bootstrap" required data-ng-disabled="true">\n        <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n        <ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n          <div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | 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    \x3c!-- END TABLE--\x3e\n\n    \x3c!-- START METRIC --\x3e\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}}</label>\n      <textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="item.metric" required readonly/></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    \x3c!-- END METRIC --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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" readonly></textarea>\n    </div>\n    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/analytic/metric/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getMetric()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-eye"></i>\n\t\t\t\t\t<a href="/analytics/metrics/list">{{ \'APPLICATION_METRICS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="metric" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="metric">\n\t\t\t\t\t<a href="#">{{metric.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/metric.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{metric.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.analytics.metrics.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/analytics/metrics/view/{{metric.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/analytic/metric/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_METRIC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateMetric()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="metric.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.table.$touched || forms.general.$submitted) && forms.general.table.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="metric.table" name="table" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="table.value as table in tables | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.table.$touched || forms.general.$submitted) && forms.general.table.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TABLE--\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START METRIC --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METRIC\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="metric" placeholder="{{\'APPLICATION_METRIC\' | translate}}" class="form-control" data-ng-model="metric.metric" required/></textarea>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.metric.$touched || forms.general.$submitted) && forms.general.metric.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END METRIC --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="metric.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.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 class="has-error">\n    <span data-ng-show="showAlert" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_SELECT_FOLDER\' | translate}}.\n  </span>\n  </div>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.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    \x3c!-- START NAME --\x3e\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    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\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'),t.put("app/analytic/report/list/deleteNode.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_DELETE_FOLDER\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<p>\n  {{\'MESSAGE_DELETE_NODE\' | translate}} : <b>{{node}}</b>?\n</p>\n<p>\n  {{\'MESSAGE_ALL_REPORTS_WILL_BE_DELETED\' | translate}}\n</p>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-danger" 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'),t.put("app/analytic/report/list/extract.modal.html",'<div class="modal-header">\n  <button type="button" ng-click="cancel()" class="close">×</button>\n  <h4 class="modal-title">{{ \'APPLICATION_EXTRACT_REPORT\' | translate }}</h4>\n</div>\n<div class="modal-body" style="text-align:center;">\n  <form name="forms.report" class="form-inline mbottom20" novalidate>\n    <div class="form-group" data-ng-class="{\'hidden\':daily}">\n      <label class="control-label">{{\'APPLICATION_DATE_RANGE\' | translate}}</label>\n      <input type="daterange" name="dates" ranges="ranges" style="min-width:190px;" enabletimepicker="timepicker" placeholder="{{\'APPLICATION_DATE_RANGE\' | translate}}" class="form-control" data-ng-model="dates" max-date="{{maxdate}}" data-ng-required="!daily" data-ng-disabled="daily" data-ng-class="{\'disabled-invisible\':daily}" style="cursor:pointer;" readonly/>\n    </div>\n    <div class="form-group" data-ng-if="daily">\n      <label class="control-label">{{\'APPLICATION_FROM\' | translate}}</label>\n    </div>\n    <div class="form-group" data-ng-if="daily">\n      <uib-timepicker ng-model="dailyTime.start" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n    </div>\n    <div class="form-group" data-ng-if="daily">\n      <label class="control-label">{{\'APPLICATION_TO\' | translate}}</label>\n    </div>\n    <div class="form-group" data-ng-if="daily">\n      <uib-timepicker ng-model="dailyTime.end" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n    </div>\n      \x3c!-- START STATUS --\x3e\n      <div class="form-group">\n      <input\n      bs-switch\n      class="form-control"\n      ng-model="daily"\n      type="checkbox"\n      name="auth"\n      switch-active="{{ dailySwitch.isActive }}"\n      switch-on-text="{{ dailySwitch.onText }}"\n      switch-off-text="{{ dailySwitch.offText }}"\n      switch-on-color="{{ dailySwitch.onColor }}"\n      switch-off-color="{{ dailySwitch.offColor }}"\n      switch-animate="{{ dailySwitch.animate }}"\n      switch-size="{{ dailySwitch.size }}"\n      switch-label="{{ dailySwitch.label }}"\n      switch-icon="{{ dailySwitch.icon }}"\n      switch-radio-off="{{ dailySwitch.radioOff }}"\n      switch-label-width="{{ dailySwitch.labelWidth }}"\n      switch-handle-width="{{ dailySwitch.handleWidth }}">\n    </div>\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn default green-jungle" type="button" data-ng-click="extract(\'csv\')"><i class="fa fa-file-excel-o"></i> {{ \'APPLICATION_SAVE_AS_CSV\' | translate }}</button>\n  <button class="btn default red-intense" type="button" data-ng-click="extract(\'pdf\')"><i class="fa fa-file-pdf-o"></i> {{ \'APPLICATION_SAVE_AS_PDF\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/analytic/report/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getTrees()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-book-open"></i>\n\t\t\t\t\t<a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t<div class="col-fixed">\n\t\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t\t<div class="portlet light bordered">\n\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t<div class="caption font-green-sharp" style="padding-left:10px;">\n\t\t\t\t\t\t<i class="icon-folder font-green-sharp"></i>\n\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_FOLDERS\' | translate }} </span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="inputs">\n\t\t\t\t\t\t<div class="portlet-input input-inline input-small">\n\t\t\t\t\t\t\t<div class="input-icon right">\n\t\t\t\t\t\t\t\t<i class="icon-magnifier"></i>\n\t\t\t\t\t\t\t\t<input type="text" data-ng-model="searchField" data-ng-change="searchTrees()" class="form-control input-circle" placeholder="search...">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t<div js-tree="defaultTreeConfig" ng-model="defaultTreeData" should-apply="ac()" tree="defaultTreeInstance" tree-events="ready:initDefaultScopeTree;select_node:selectDefaultNode;"></div>\n\t\t\t\t\t<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\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t\t</div>\n\t\t<div class="row tree-row">\n\t\t\t<div class="col-md-12">\n\t\t\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t<i class="icon-book-open font-green-sharp"></i>\n\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_REPORTS\' | translate }}<span data-ng-if="selectedNode"> - {{selectedNode}}</span></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div data-ng-if="!defaultTreeActive" class="actions">\n\t\t\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t\t\t<span class="btn default btn-file">\n\t\t\t\t\t\t\t\t<span class="fileinput-new">\n\t\t\t\t\t\t\t\t<i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_JSON\' | translate}}</span>\n\t\t\t\t\t\t\t\t<input type="file" on-read-file="import($fileContent)"/>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t\t\t<button class="btn green-jungle " ng-click="create()">\n\t\t\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_REPORT\' | translate }}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t<div ng-slide-down="gridOptions" lazy-render duration="1">\n\t\t\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/analytic/report/list/preview.modal.html",'<div class="modal-header">\n  <button type="button" ng-click="cancel()" class="close">×</button>\n  <h4 class="modal-title">{{ \'APPLICATION_REPORT_PREVIEW\' | translate }}</h4>\n</div>\n<div class="modal-body" style="text-align:center;">\n  <form name="forms.report" class="form-inline mbottom20" novalidate>\n    <div class="form-group" data-ng-class="{\'hidden\':daily}">\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" style="min-width:190px;" enabletimepicker="timepicker" placeholder="{{\'APPLICATION_DATE_RANGE\' | translate}}" class="form-control" data-ng-model="dates" data-ng-change="getPage()" max-date="{{maxdate}}" data-ng-required="!daily" data-ng-disabled="daily" data-ng-class="{\'disabled-invisible\':daily}" style="cursor:pointer;" readonly/>\n    </div>\n    <div class="form-group" data-ng-if="daily">\n      <label class="control-label">{{\'APPLICATION_FROM\' | translate}}</label>\n    </div>\n    <div class="form-group" data-ng-if="daily">\n      <uib-timepicker ng-model="dailyTime.start" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n    </div>\n    <div class="form-group" data-ng-if="daily">\n      <label class="control-label">{{\'APPLICATION_TO\' | translate}}</label>\n    </div>\n    <div class="form-group" data-ng-if="daily">\n      <uib-timepicker ng-model="dailyTime.end" ng-change="changed()" hour-step="1" minute-step="1" show-meridian="false"></uib-timepicker>\n    </div>\n    <div class="form-group" data-ng-if="daily">\n      <button class="btn btn-small btn-sm btn-success" data-ng-click="getPage()">Apply</button>\n    </div>\n      <div class="form-group">\n      <input\n      bs-switch\n      class="form-control"\n      ng-model="daily"\n      type="checkbox"\n      name="auth"\n      data-ng-change="getPage()"\n      switch-active="{{ dailySwitch.isActive }}"\n      switch-on-text="{{ dailySwitch.onText }}"\n      switch-off-text="{{ dailySwitch.offText }}"\n      switch-on-color="{{ dailySwitch.onColor }}"\n      switch-off-color="{{ dailySwitch.offColor }}"\n      switch-animate="{{ dailySwitch.animate }}"\n      switch-size="{{ dailySwitch.size }}"\n      switch-label="{{ dailySwitch.label }}"\n      switch-icon="{{ dailySwitch.icon }}"\n      switch-radio-off="{{ dailySwitch.radioOff }}"\n      switch-label-width="{{ dailySwitch.labelWidth }}"\n      switch-handle-width="{{ dailySwitch.handleWidth }}">\n    </div>\n  </form>\n  <div ng-slide-down="showResult" lazy-render duration="1">\n    <div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="grid extract-grid">\n      <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n    </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'),t.put("app/analytic/report/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getReport()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-book-open"></i>\n\t\t\t\t\t<a href="/analytics/reports/list">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="report" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="report">\n\t\t\t\t\t<a href="#">{{report.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/analytic/report/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<div class="caption-subject font-blue-madison bold uppercase dot">{{ \'APPLICATION_REPORT\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} - {{report.name}} </div>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_BUILD\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab" data-ng-click="showResult = true">{{ \'APPLICATION_TEST_PREVIEW\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\n\t\t\t\t<div class="tab-content">\n\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.report.$valid && forms.general.$valid && updateReport()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="report.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="report.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t\t\x3c!-- BUILD TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.report" data-ng-submit="forms.report.$valid && forms.general.$valid && updateReport()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START TABLE INPUT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.report.table.$touched || forms.report.$submitted) && forms.report.table.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TABLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="report.table" name="table" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{\'APPLICATION_\'+$select.selected.value.toUpperCase() | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices group-by="\'channel\'" repeat="table.value as table in tables | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="\'APPLICATION_\'+table.value.toUpperCase() | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.report.table.$touched || forms.report.$submitted) && forms.report.table.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TABLE INPUT--\x3e\n\t\t\t\t\t\t\t<div data-ng-if="report.table" class="mbottom20 pbottom20 table-responsive">\n\t\t\t\t\t\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_FIELDS\' | translate}} </span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\t\t\t\t<table class="table table-striped table-bordered table-hover">\n\t\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t<th>{{ \'APPLICATION_FIELD\' | translate }} / {{ \'APPLICATION_METRIC\' | translate }}</th>\n\t\t\t\t\t\t\t\t\t\t\t<th style="min-width:167px;">{{ \'APPLICATION_ALIAS\' | translate }}</th>\n\t\t\t\t\t\t\t\t\t\t\t<th>{{ \'APPLICATION_FUNCTION\' | translate }}</th>\n\t\t\t\t\t\t\t\t\t\t\t<th>{{ \'APPLICATION_FORMAT\' | translate }}</th>\n\t\t\t\t\t\t\t\t\t\t\t<th>{{ \'APPLICATION_GROUP_BY\' | translate }}</th>\n\t\t\t\t\t\t\t\t\t\t\t<th>{{ \'APPLICATION_ORDER_BY\' | translate }}</th>\n\t\t\t\t\t\t\t\t\t\t\t<th></th>\n\t\t\t\t\t\t\t\t\t\t\t<th style="min-width:66px;"></th>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t\t<tbody ui-sortable="sortableOptions" data-ng-model="report.Fields">\n\t\t\t\t\t\t\t\t\t\t<tr data-ng-repeat="field in report.Fields">\n\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START FIELD --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.report.$submitted && !field.field}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-if="!field.custom" data-ng-model="field.field" dynamic-name="randomName()" theme="bootstrap" on-select="setMetricId($item,$index)" required>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}"><span ng-bind-html="$select.selected.name"></span></ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tableField.value as tableField in tableFields | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="tableField.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input data-ng-if="field.custom" type="text" dynamic-name="randomName()" placeholder="{{\'APPLICATION_CUSTOM\' | translate}}" class="form-control" data-ng-model="field.field" required/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" data-ng-click="toggleCustom(field)" class="btn btn-default">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="icon-pencil" data-ng-class="{\'font-blue\':field.custom}"></span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.report.$submitted && !field.field" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END FIELD--\x3e\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START ALIAS --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.report.$submitted && !field.alias}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label">{{\'APPLICATION_ALIAS\' | translate}}<span class="required" aria-required="true">*</span></label> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" dynamic-name="randomName()" placeholder="{{\'APPLICATION_ALIAS\' | translate}}" class="form-control" data-ng-model="field.alias" data-ng-pattern="\'[A-Za-z0-9 <>=,%_\\\\+*!\\\\-\\\\[\\\\]]+\'" required/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.report.$submitted && !field.alias" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.report.$submitted && !field.alias" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END ALIAS --\x3e\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START FUNCTION --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="field.function" name="function" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_FUNCTION\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="function.value as function in functions | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="function.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END FUNCTION--\x3e\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START FORMAT --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="field.format" name="format" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_FORMAT\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="format.value as format in formatFunctions | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="format.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END FORMAT--\x3e\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START GROUP_BY --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="field.groupBy" name="groupBy" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_GROUP_BY\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="groupBy.value as groupBy in groupByField | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{$translate.instant(groupBy.name)}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END GROUP_BY--\x3e\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START ORDER_BY --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label">{{\'APPLICATION_FIELD\' | translate}}<span class="required" aria-required="true">*</span></label> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="field.orderBy" name="orderBy" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_ORDER_BY\' | translate}}" allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="orderBy in [\'ASC\',\'DESC\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="orderBy | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END TABLE INPUT--\x3e\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td class="report-field-remove">\n\t\t\t\t\t\t\t\t\t\t\t\t<button class="btn red" type="button" data-ng-click="removeField($index)"><i class="fa fa-times"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td class="report-field-handle">\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <img data-ng-src="assets/images/move.png" class="img-responsive"> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t<tr data-ng-hide="report.Fields.length" class="unsortable">\n\t\t\t\t\t\t\t\t\t\t\t<td colspan="8" style="text-align:center;">\n\t\t\t\t\t\t\t\t\t\t\t\t<i>{{ \'MESSAGE_ADD_A_FIELD\' | translate }}</i>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_FIELD\' | translate}}\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div data-ng-if="report.Fields.length" class="mbottom20 pbottom20">\n\t\t\t\t\t\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CONDITIONS\' | translate}} </span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="alert alert-info">\n\t\t\t\t\t\t\t\t\t<strong>Output</strong>\n\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t<span ng-bind-html="output"></span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<report-builder group="report.conditions.group" fields="tableFields" forms="forms" firstCall=\'true\'></report-builder>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END BUILD TAB --\x3e\n\n\t\t\t\t\t\x3c!-- PREVIEW TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t<div ng-slide-down="showResult" lazy-render duration="0.5">\n\t\t\t\t\t\t\t<div ui-grid="gridOptions" data-ng-if="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-move-columns class="grid">\n\t\t\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END PREVIEW TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/offline/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-login"></i>\n\t\t\t\t\t\t<a href="/channels/chat/offline/list">{{ \'APPLICATION_OFFLINE\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-question font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_OFFLINE_MESSAGES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/offline/message/message.directive.html",'<div class="message">\n  <div class="row">\n    <div class="col-md-12">\n      <span class="bold">From: </span>\n      [<a href="" data-ng-click="openContact(message.email)">{{message.email}}</a>]\n    </div>\n  </div>\n  <br>\n  <span class="todo-tasklist-date">\n    <i class="icon-calendar"></i> {{message.createdAt | date:\'medium\'}} (<span am-time-ago="message.createdAt"></span>)\n  </span>\n  <hr>\n  <div class="body text-left message-body" data-ng-bind="message.text"></div>\n  <h5 data-ng-hide="message.text" class="media-heading"><i>{{\'MESSAGE_NO_AVAILABLE_TEXT\' | translate | lowercase}}</i></h5>\n</div>\n'),t.put("app/channels/chat/offline/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView();">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-login"></i>\n\t\t\t\t\t<a href="/channels/chat/offline/list">Offline</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t<a href="#">{{enquiry.username}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption">\n\t\t\t\t\t<span data-ng-if="enquiry.ChatWebsite" class="caption-subject font-green-sharp bold uppercase">{{enquiry.ChatWebsite.name}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="row">\n\t\t\t\t\t<div class="col-md-4">\n\t\t\t\t\t\t\x3c!-- Visitor Information --\x3e\n\t\t\t\t\t\t<div class="portlet">\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<v-accordion class="vAccordion--default">\n\t\t\t\t\t\t\t\t\t<v-pane expanded="true">\n\t\t\t\t\t\t\t\t\t\t<v-pane-header>\n\t\t\t\t\t\t\t\t\t\t\t<ng-letter-avatar data-ng-if="enquiry.ChatVisitor" height="40" width="40" data="{{enquiry.ChatVisitor.fullname}}" fontsize="25" avatarcustombgcolor="#B0B0B0" charCount="2" avatarcustomborder="border:2px solid #EA4C61" shape="round"></ng-letter-avatar>\n\t\t\t\t\t\t\t\t\t\t</v-pane-header>\n\t\t\t\t\t\t\t\t\t\t<v-pane-content>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_NAME\' | translate}}:<p>{{enquiry.ChatVisitor.fullname}}</p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_EMAIL\' | translate}}:<p><a data-ng-click="openContact(enquiry.ChatVisitor.email)" href="">{{enquiry.ChatVisitor.email}}</a></p>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-if="enquiry.ChatVisitor.labelOfflineData1">{{enquiry.ChatVisitor.labelOfflineData1}}: <p>{{enquiry.ChatVisitor.offlineData1}}</p></span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-if="enquiry.ChatVisitor.labelOfflineData2">{{enquiry.ChatVisitor.labelOfflineData2}}: <p>{{enquiry.ChatVisitor.offlineData2}}</p></span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-if="enquiry.ChatVisitor.labelOfflineData3">{{enquiry.ChatVisitor.labelOfflineData3}}: <p>{{enquiry.ChatVisitor.offlineData3}}</p></span>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}:<p>{{enquiry.ChatVisitor.remote_address}}</p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_BROWSER\' | translate}}:<p>{{enquiry.ChatVisitor.browser}}</p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_REFERER\' | translate}}:<p>{{enquiry.ChatVisitor.referer}} - {{enquiry.ChatWebsite.name}}</p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_OS\' | translate}}:<p>{{enquiry.ChatVisitor.os}}</p>\n\t\t\t\t\t\t\t\t\t\t</v-pane-content>\n\t\t\t\t\t\t\t\t\t</v-pane>\n\t\t\t\t\t\t\t\t</v-accordion>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="col-md-8">\n\t\t\t\t\t\t\x3c!-- Offline message --\x3e\n\t\t\t\t\t\t<div id="mail-box">\n\t\t\t\t\t\t\t<ul class="chats">\n\t\t\t\t\t\t\t\t<li class="in">\n\t\t\t\t\t\t\t\t\t<enquiry-message message="enquiry" list-id="enquiry.ChatWebsite.ListId"></enquiry-message>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t\t</div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/online/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-login"></i>\n\t\t\t\t\t\t<a href="/channels/chat/online/list">{{ \'APPLICATION_ONLINE\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-question font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/online/view/view.detail.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DETAIL\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body row" data-ng-init="initView()">\n\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t<div class="news-blocks">\n\t\t\t\t\t\t<h3>\n\t\t\t\t\t\t\t<a href="#" class="inactive-link">{{\'APPLICATION_MESSAGES\' | translate}}</a>\n\t\t\t\t\t\t\t\x3c!-- <a href="#" data-ng-click="export()" data-ng-show="chatRoom.ChatMessages.length" class="btn btn-sm blue pull-right"><i class="icon-cloud-download"></i> {{\'APPLICATION_EXPORT\' | translate}} CSV </a> --\x3e\n\t\t\t\t\t\t\t<a href="api/chat/rooms/{{chatRoom.id}}/export" target="_blank" data-ng-show="chatRoom.ChatMessages.length" class="btn btn-sm blue pull-right"><i class="icon-cloud-download"></i> {{\'APPLICATION_EXPORT\' | translate}} CSV </a>\n\t\t\t\t\t\t\t<hr>\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t<div class="news-block-tags">\n\t\t\t\t\t\t\t<em am-time-ago="chatRoom.ChatVisitor.ChatEnquiry.createdAt"></em>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<div ng-scrollbars ng-scrollbars-config="config">\n\t\t\t\t\t\t\t\t<ul class="chats">\n\t\t\t\t\t\t\t\t\t<li data-ng-class="{\'out\': message.User, \'in\':message.ChatVisitor}" data-ng-repeat="message in chatRoom.ChatMessages | orderBy:\'createdAt\'">\n\t\t\t\t\t\t\t\t\t\t<img class="avatar" data-ng-src="api/users/avatar/{{message.User.userpic || \'unknown_avatar\'}}">\n\t\t\t\t\t\t\t\t\t\t<div class="message">\n\t\t\t\t\t\t\t\t\t\t\t<span class="arrow">\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="name">\n\t\t\t\t\t\t\t\t\t\t\t\t{{message.User ? message.User.fullname : message.ChatVisitor.fullname}}\n\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t<span class="datetime">\n\t\t\t\t\t\t\t\t\t\t\t\tat {{message.createdAt | date: \'medium\'}}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span class="body">\n\t\t\t\t\t\t\t\t\t\t\t\t{{message.body}}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t<div class="news-blocks">\n\t\t\t\t\t\t\t<h3>\n\t\t\t\t\t\t\t\t<a href="#" class="inactive-link">{{\'APPLICATION_VISITOR\' | translate}}</a>\n\t\t\t\t\t\t\t\t<hr>\n\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatRoom.ChatVisitor.fullname}}</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatRoom.ChatVisitor.email}}</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatRoom.ChatVisitor.remote_address}}</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t\t\t<i class="icon-home"></i>\n\t\t\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatRoom.ChatVisitor.referer}} - {{chatRoom.ChatVisitor.ChatWebsite.name}}</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t\t\t<i class="icon-cursor"></i>\n\t\t\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatRoom.ChatVisitor.browser}}</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t\t\t<i class="icon-screen-desktop"></i>\n\t\t\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatRoom.ChatVisitor.os}}</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n'),t.put("app/channels/chat/online/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-login"></i>\n\t\t\t\t\t<a href="/channels/chat/online/list">Online</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/enquiry.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- START USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{chatRoom.ChatVisitor.email}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{chatRoom.ChatVisitor.fullname}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.chat.online.view.detail\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/chat/online/view/{{chatRoom.id}}/detail">\n\t\t\t\t\t\t\t<i class="icon-tag"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_DETAIL\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/preview/preview.html",'<style>\n.xc_header_logo\n{\n\tdisplay:block;\n  background-image:url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/motion_logo.png);\n\twidth:40px;\n\theight:40px;\n\tfloat:left;;\n\tmargin-left: 10px !important;\n  margin-top: 6px !important;\n}\n.xc_rating {\n  text-align: center;\n}\n.xc_rating_label > input{ /* HIDE RADIO */\n  display:none;\n}\n.xc_rating_label > input + img{ /* IMAGE STYLES */\n  cursor:pointer;\n  border:2px solid transparent;\n}\n.xc_rating_label > input:checked + img{ /* (CHECKED) IMAGE STYLES */\n  /*border:2px solid #f00;*/\n  background-color: #efefef;\n}\n\n.xc_label {\n  display: inline-block;\n  max-width: 100%;\n  margin-bottom: 5px;\n  font-weight: bold;\n}\n\n.xc_online_message,\n.xc_offline_message,\n.xc_rating_message\n{\n  text-align: center;\n}\n\n.xc_div_group {\n  margin: 10px 0 10px 0;\n}\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\ndiv.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\ndiv.xc_chat_head.rounded\n{\n  border-radius: 20px 20px 0px 0px !important;\n}\n\ndiv.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/iconVisitorchat.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,.xc_rating_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\na.xc_btn_exit_chat_confirm:hover\n{\n  color:red;\n}\n\na.xc_btn_exit_chat_cancel:hover\n{\n  color:#0c0;\n}\n\nform.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.xc_input_rating_message\n{\n  height:100px;\n}\n\n.xc_form_signup,.xc_form_enquiry,.xc_form_rating\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 norepeat;\n}\n\n.xc_submission_confirmed\n{\n  background:transparent url({{chatWebsite.remote}}/api/xchatty/assets?resource=images/bullet_tick.png) left center norepeat;\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\ni.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    <i class="xc_header_logo" style="background-image:url(/api/xchatty/assets?resource=images/{{(chatWebsite.defaultLogo || !license.custom) ? \'motionLogo.png\' : (!chatWebsite.defaultLogo && chatWebsite.logo && license.custom) ? chatWebsite.logo+\'&uploaded\' : \'motionLogo.png\'}});background-size:contain;"></i>\n\t</a>\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    \x3c!-- <div class="xc_notifications_wrapper">\n    <ul class="xc_errorlist"></ul>\n  </div> --\x3e\n  <div class="xc_enquiry_wrapper" data-ng-show=\'statePreview.state == "offline"\'>\n    <form class="xc_form_enquiry" accept-charset="UTF-8">\n      <p class="xc_offline_message" ng-bind-html=\'chatWebsite.offline_message\'></p>\n      <br>\n      <div ng-if="chatWebsite.enquiry_enable">\n        <div class="xc_div_group">\n          <label for="enquiryFullname" class="xc_label">{{chatWebsite.name_title}} *</label>\n          <input id="enquiryFullname" maxlength="45" data-label="Name" type="text" name="data[Enquiry][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_enquiry_fullname" required/>\n        </div>\n        <br>\n        <div class="xc_div_group">\n          <label for="enquiryEmail" class="xc_label">{{chatWebsite.email_title}} *</label>\n          <input id="enquiryEmail" maxlength="85" type="text" data-label="Email Address" name="data[Enquiry][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_enquiry_email" required/>\n        </div>\n        <br>\n        <div class="xc_div_group">\n          <label for="enquiryMessage" class="xc_label">{{chatWebsite.message_title}} *</label>\n          <textarea id="enquiryMessage" data-label="Message" maxlength="1500" placeholder="{{chatWebsite.enquiry_message_placeholder}}" name="data[Enquiry][message]" class="xc_input_enquiry_message" required></textarea>\n        </div>\n        <br>\n        <button type="submit" class="xc_btn_enquiry xc_btn_style">{{chatWebsite.enquiry_button}}</button>\n      </div>\n    </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 class="xc_online_message" ng-bind-html=\'chatWebsite.online_message\'></p>\n      <br>\n      <div class="xc_div_group">\n        <label for="dataFullname" class="xc_label">{{chatWebsite.name_title}} *</label>\n        <input maxlength="45" id="dataFullname" data-label="Fullname" type="text" name="data[Discussion][fullname]" placeholder="{{chatWebsite.username_placeholder}}" class="xc_input_fullname" required/>\n      </div>\n      <br>\n      <div class="xc_div_group">\n        <label for="dataEmail" class="xc_label">{{chatWebsite.email_title}} *</label>\n        <input maxlength="85" id="dataEmail" data-label="Email Address" type="text" name="data[Discussion][email]" placeholder="{{chatWebsite.email_placeholder}}" class="xc_input_email" required/>\n      </div>\n      <br>\n      <input type="hidden" class="xc_input_visitor_time" name="data[Discussion][visitor_time]" />\n      <button type="submit" class="xc_btn_signup xc_btn_style">{{chatWebsite.start_chat_button}}</button>\n    </form>\n  </div>\n  <div class="xc_rating_wrapper" data-ng-show=\'statePreview.state == "rating"\'>\n    <form class="xc_form_rating" accept-charset="UTF-8">\n      <p class="xc_rating_message">{{chatWebsite.rating_message}}</p>\n      <br>\n      <div class="xc_rating">\n        <label class="xc_rating_label" style="padding:30px;">\n          <input type="radio" name="data[Rating][rating]" value="good" />\n          <img src="{{chatWebsite.remote}}/api/xchatty/assets?resource=images/like.png" alt="Good" height="50"/>\n        </label>\n        <label class="xc_rating_label" style="padding:30px;">\n          <input type="radio" name="data[Rating][rating]" value="bad"/>\n          <img src="{{chatWebsite.remote}}/api/xchatty/assets?resource=images/dislike.png" alt="Good" height="50"/>\n        </label>\n      </div>\n      <div class="xc_div_group">\n        <label for="ratingMessage" class="xc_label">Message</label>\n        <textarea id="ratingMessage" data-label="Message" maxlength="1500" name="data[Rating][message]" class="xc_input_rating_message"></textarea>\n      </div>\n      <button type="submit" class="xc_button_rating xc_btn_style">{{chatWebsite.rating_send}}</button>\n      <button type="button" class="xc_button_skip_rating xc_btn_style">{{chatWebsite.rating_skip}}</button>\n    </form>\n  </div>\n  <div class="xc_footer">\n    <div data-ng-if="chatWebsite.defaultWhiteLabel || !license.custom" class="xc_powered"><a>Powered by xCALLY</a></div>\n\t\t<div data-ng-if="!chatWebsite.defaultWhiteLabel && license.custom" data-ng-bind-html="chatWebsite.whiteLabel"></div>\n  </div>\n</div>\n</div>\n'),t.put("app/channels/chat/queue/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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" data-ng-pattern="settings.patternName" required />\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.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="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START STRATEGY --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.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 | uppercase}}</ui-select-match>\n        <ui-select-choices repeat="strategy in strategies | 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="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END STRATEGY --\x3e\n\n    \x3c!-- START TIMEOUT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.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 min="1"/>\n      <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TIMEOUT --\x3e\n\n    \x3c!-- START AGENTS--\x3e\n    <div class="form-body" data-ng-init="getTeams()">\n      <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n      <div class="input-group input-small mbottom20">\n        <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n        <div class="spinner-buttons input-group-btn btn-group-vertical">\n          <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n            <i class="fa fa-angle-up"></i>\n          </button>\n          <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n            <i class="fa fa-angle-down"></i>\n          </button>\n        </div>\n      </div>\n      <div class="form-group last">\n        <div class="col-md-12" id="multi-select-team">\n        </div>\n      </div>\n    </div>\n    \x3c!-- END AGENTS--\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/chat/queue/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t\t\t<form action="index.html" class="form-horizontal form-row-seperated">\n\t\t\t\t\t<div class="form-body">\n\t\t\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n\t\t\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-team">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END FORM--\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/queue/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getQueue()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/channels/chat/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="queue" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="queue">\n\t\t\t\t\t<a href="#">{{queue.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{queue.name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.chat.queues.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/chat/queues/view/{{queue.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.chat.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/chat/queues/view/{{queue.id}}/agents">\n\t\t\t\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_AGENTS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/queue/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateChatQueue()" novalidate>\n\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\x3c!-- START STRATEGY --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n\t\t\t\t\t\t<ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="strategy in strategies | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END STRATEGY --\x3e\n\n\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}} {{\'APPLICATION_TIMEOUT\' | translate}}</label>\n\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" min="1" data-ng-model="queue.timeout"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t<input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/realtime/view/agent/agent.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n  <div>{{agent.ipaddr}}:{{agent.port}}</div>\n  <div>{{agent.fullcontact}}</div>\n  <div>{{agent.useragent}}</div>\n  <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n  {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/chat/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    <div class="form-group row">\n  <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n  <div class="col-md-10">\n    <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n      <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.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  </div>\n</div>\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/chat/realtime/view/application/application.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initApplications()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/realtime/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-energy"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t<div>\n\t\t\t<nav class="navbar navbar-default" role="navigation">\n\t\t\t\t<div class="collapse navbar-collapse">\n\t\t\t\t\t<ul class="nav navbar-nav">\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.chat.realtime.view.agents\')}">\n\t\t\t\t\t\t\t<a href="/channels/chat/realtime/view/agents">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_AGENTS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.chat.realtime.view.applications\')}">\n\t\t\t\t\t\t\t<a href="/channels/chat/realtime/view/applications">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_APPLICATIONS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href="#">\n\t\t\t\t\t\t\t\t<b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}}  </b><input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="showTimers"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="showTimers"\n\t\t\t\t\t\t\t\tswitch-active="{{ timerSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ timerSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ timerSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ timerSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ timerSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ timerSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ timerSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ timerSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ timerSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</nav>\n\t\t</div>\n\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/room/external/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n\t<div class="portlet light" data-ng-init="initView()">\n\t\t<div class="portlet-title">\n\t<div class="caption">\n\t\t<div class="btn-group btn-group-solid">\n\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n\t\t</div>\n\t\t<div class="btn-group btn-group-solid">\n\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n\t\t</div>\n\t</div>\n\t<div class="actions">\n\t\t<a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n\t\t\t<i class="fa fa-tags"></i>\n\t\t</a>\n\t\t<a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n\t\t\t<i class="fa fa-refresh"></i>\n\t\t</a>\n\t</div>\n</div>\n<div class="portlet-title" data-ng-show="tags.length">\n\t\x3c!-- START TAGS --\x3e\n\t<div class="form-group">\n\t\t<div class="row">\n\t\t\t<div class="col-md-1">\n\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t\t<div class="col-md-11">\n\t\t\t\t<ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n\t\t\t\t\t<ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search">\n\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t</ui-select-choices>\n\t\t\t\t</ui-select>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\x3c!-- END TAGS --\x3e\n</div>\n<div class="portlet-body">\n\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\x3c!-- START TABLE --\x3e\n\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-selection ui-grid-pagination class="ui-grid">\n\t\t\t<div class="watermark" data-ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/room/group/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n\t<div class="portlet light" data-ng-init="initView()">\n\t\t<div class="portlet-title">\n\t<div class="caption">\n\t\t<div class="btn-group btn-group-solid">\n\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n\t\t</div>\n\t\t<div class="btn-group btn-group-solid">\n\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n\t\t</div>\n\t</div>\n\t<div class="actions">\n\t\t<a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n\t\t\t<i class="fa fa-tags"></i>\n\t\t</a>\n\t\t<a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n\t\t\t<i class="fa fa-refresh"></i>\n\t\t</a>\n\t</div>\n</div>\n<div class="portlet-title" data-ng-show="tags.length">\n\t\x3c!-- START TAGS --\x3e\n\t<div class="form-group">\n\t\t<div class="row">\n\t\t\t<div class="col-md-1">\n\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t\t<div class="col-md-11">\n\t\t\t\t<ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n\t\t\t\t\t<ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search">\n\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t</ui-select-choices>\n\t\t\t\t</ui-select>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\x3c!-- END TAGS --\x3e\n</div>\n<div class="portlet-body">\n\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-selection ui-grid-pagination class="ui-grid">\n\t\t\t<div class="watermark" data-ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/room/internal/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initView()">\n\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination class="ui-grid">\n\t\t\t<div class="watermark" data-ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/room/room.add.html",'<div class="modal-header">\n  <button ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">&times;</button>\n  <h4 class="modal-title">{{\'APPLICATION_NEW_GROUP\' | translate}}</h4>\n</div>\n\n<div class="modal-body">\n  <div class="portlet box blue">\n\t\t<div class="portlet-title">\n\t\t\t<div class="caption">\n\t\t\t\t<i class="icon-people"></i>{{\'APPLICATION_AGENTS\' | translate}}\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t<ul>\n\t\t\t\t<li data-ng-repeat="item in items">\n\t\t\t\t\t {{item.fullname}}\n\t\t\t\t</li>\n        <li data-ng-repeat="item in selected.items">\n\t\t\t\t\t {{item.fullname}}\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</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'),t.put("app/channels/chat/room/room.close.html",'<div class="modal-header">\n  <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">&times;</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 && !closed" ng-bind="modal.text | translate"></p>\n  <form name="form" novalidate data-ng-init="initDisposition()">\n  <div class="form-group">\n    <ui-select data-ng-model="item.disposition" name="list" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n      <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n      <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n        <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n      </ui-select-choices>\n    </ui-select>\n  </div>\n  <div class="note note-warning" data-ng-hide="dispositions.length">\n    <h4 class="block">Warning!</h4>\n    <p>\n      {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n    </p>\n  </div>\n</form>\n  \x3c!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> --\x3e\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  \x3c!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> --\x3e\n</div>\n'),t.put("app/channels/chat/room/room.directive.html",'<div class="portlet light">\n  <div class="portlet-title">\n    <div class="caption">\n      <span data-ng-if="chatRoom" class="label label-sm label-default">{{chatRoom.status}}</span>\n      <span data-ng-if="chatRoom.ChatWebsite"> | </span>\n      <span data-ng-if="chatRoom.ChatWebsite" class="caption-subject font-green-sharp bold uppercase">{{chatRoom.ChatWebsite.name | truncate: 25: \'...\': true}}</span>\n    </div>\n    <div class="actions">\n      <button class="btn btn-icon-only btn-primary" data-ng-click="addAgent(chatRoom.id)" data-ng-disabled="chatRoom.status === \'CLOSED\'">\n        <i class="fa fa-user-plus"></i>\n      </button>\n      <button class="btn btn-icon-only" data-ng-class="{\'btn-success\':chatRoom.status !== \'CLOSED\',\'grey-cascade\':chatRoom.status === \'CLOSED\'}" data-ng-click="closeRoom(chatRoom.id)" data-ng-if="chatRoom.ChatVisitors.length" data-ng-disabled="chatRoom.status === \'CLOSED\' && chatRoom.disposition">\n        <i data-ng-class="{\'fa fa-upload\':chatRoom.status !== \'CLOSED\',\'icon-target\':chatRoom.status === \'CLOSED\'}"></i>\n      </button>\n      <a href="api/chat/rooms/{{chatRoom.id}}/export" target="_blank" class="btn btn-primary btn-icon-only" data-ng-if="chatRoom" title="{{\'APPLICATION_EXPORT\' | translate}} CSV">\n        <i class="fa fa-download"></i>\n      </a>\n      <button class="btn default btn-icon-only" data-ng-if="chatRoom && chatRoom.status !== \'CLOSED\'" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n        <i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n      </button>\n    </div>\n  </div>\n  <div class="portlet-body">\n<div class="row">\n  <div data-ng-class="panelLeft" data-ng-show="panelLeft">\n    <div class="portlet">\n      <div class="portlet-body">\n        <div class="portlet-title line">\n          <div class="form">\n            \x3c!-- START TAGS --\x3e\n            <div class="form-group">\n              <div class="row">\n                <div class="col-md-1">\n                  <a href="#" class="btn btn-icon-only">\n                    <i class="fa fa-tags" style="color: gray;"></i>\n                  </a>\n                </div>\n                <div class="col-md-11">\n                  <ui-select multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged(chatRoom.id)" on-remove="onChanged(chatRoom.id)">\n                    <ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n                    <ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n                      {{tag}}\n                    </ui-select-choices>\n                  </ui-select>\n                </div>\n              </div>\n            </div>\n            \x3c!-- END TAGS --\x3e\n          </div>\n        </div>\n        <v-accordion class="vAccordion--default">\n          <v-pane data-ng-if="chatRoom.ChatVisitors.length" data-ng-repeat="chatVisitor in chatRoom.ChatVisitors" expanded="true">\n            <v-pane-header>\n              <ng-letter-avatar\n              height="40"\n              width="40"\n              data="{{chatRoom.ChatVisitor.fullname}}"\n              fontsize="25"\n              avatarcustombgcolor="#B0B0B0"\n              charCount="2"\n              avatarcustomborder="border:2px solid #EA4C61"\n              shape="round"></ng-letter-avatar>\n            </v-pane-header>\n            <v-pane-content>\n              {{\'APPLICATION_ROOM_ID\' | translate}}: <p>{{chatRoom.id}}</p>\n              {{\'APPLICATION_NAME\' | translate}}: <p>{{chatRoom.ChatVisitor.fullname}}</p>\n              {{\'APPLICATION_EMAIL\' | translate}}: <p><a data-ng-click="openContact(chatRoom.ChatVisitor.email)" href="">{{chatRoom.ChatVisitor.email}}</a></p>\n              <span data-ng-if="chatRoom.ChatVisitor.labelData1">{{chatRoom.ChatVisitor.labelData1}}: <p>{{chatRoom.ChatVisitor.data1}}</p></span>\n              <span data-ng-if="chatRoom.ChatVisitor.labelData2">{{chatRoom.ChatVisitor.labelData2}}: <p>{{chatRoom.ChatVisitor.data2}}</p></span>\n              <span data-ng-if="chatRoom.ChatVisitor.labelData3">{{chatRoom.ChatVisitor.labelData3}}: <p>{{chatRoom.ChatVisitor.data3}}</p></span>\n              {{\'APPLICATION_REMOTE_ADDRESS\' | translate}}: <p>{{chatRoom.ChatVisitor.remote_address}}</p>\n              {{\'APPLICATION_BROWSER\' | translate}}: <p>{{chatRoom.ChatVisitor.browser}}</p>\n              {{\'APPLICATION_REFERER\' | translate}}:<p>{{chatRoom.ChatVisitor.referer}} - {{enquiry.ChatWebsite.name}}</p>\n              {{\'APPLICATION_OS\' | translate}}: <p>{{chatRoom.ChatVisitor.os}}</p>\n            </v-pane-content>\n          </v-pane>\n\n          <v-pane data-ng-repeat="user in chatRoom.Users | filter:{ id: \'!\' + user.id}">\n            <v-pane-header>\n              <ng-letter-avatar\n              height="40"\n              width="40"\n              data="{{user.fullname}}"\n              fontsize="25"\n              avatarcustombgcolor="#B0B0B0"\n              avatarcustomborder="border:2px solid #3399CC"\n              charCount="2"\n              shape="round"></ng-letter-avatar>\n            </v-pane-header>\n            <v-pane-content>\n              {{\'APPLICATION_NAME\' | translate}}: <p>{{user.fullname}}</p>\n              {{\'APPLICATION_ROLE\' | translate}}: <p>{{user.role}}</p>\n              {{\'APPLICATION_INTERNAL\' | translate}}: <p>{{user.internal}}</p>\n              {{\'APPLICATION_EMAIL\' | translate}}: <p><a data-ng-href="mailto:{{user.email}}">{{user.email}}</a></p>\n            </v-pane-content>\n          </v-pane>\n        </v-accordion>\n      </div>\n    </div>\n  </div>\n  <div data-ng-class="panelRight">\n    <div class="note note-info" data-ng-if="chatRoom && chatRoom.status == \'CLOSED\'">\n      <h4 class="block"><i class="icon-info"></i> {{\'MESSAGE_CHAT_ROOM_CLOSED\' | translate}}!</h4>\n      <p>\n        <strong>{{\'MESSAGE_CHAT_ROOM_CLOSED_DETAILS\' | translate}}.</strong>\n      </p>\n      <hr>\n      <p>\n        <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{chatRoom.disposition}}</strong>\n      </p>\n      <p>\n        <i class="icon-star"></i> {{\'APPLICATION_RATING\' | translate}}: <strong>{{chatRoom.rating | ucfirst}}</strong>\n      </p>\n      <p>\n        <i class="icon-note"></i> {{\'APPLICATION_RATING_MESSAGE\' | translate}}: <strong>{{chatRoom.ratingMessage}}</strong>\n      </p>\n      <p>\n        <i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{chatRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="chatRoom.updatedAt"></span>)\n      </p>\n    </div>\n    <div class="portlet light bordered">\n      <div class="portlet-body">\n        <div id="chat-box" schroll-bottom="chatRoom.ChatMessages">\n        <ul class="chats">\n          <li data-ng-repeat="message in chatRoom.ChatMessages" data-ng-class="message.UserId == user.id ? \'out\' : \'in\'">\n            <div class="avatar" data-ng-class="message.ChatVisitor ? \'pretty-avatar-v\' : \'pretty-avatar\'">\n              <ng-letter-avatar\n              data-ng-if="!message.ChatVisitor"\n              height="40"\n              width="40"\n              fontsize="25"\n              data="{{message.User.fullname}}"\n              avatarcustombgcolor="#B0B0B0"\n              avatarcustomborder="border:2px solid #3399CC"\n              charCount="2"\n              shape="round"></ng-letter-avatar>\n              <ng-letter-avatar\n              data-ng-if="message.ChatVisitor"\n              height="40"\n              width="40"\n              fontsize="25"\n              data="{{message.ChatVisitor.fullname}}"\n              avatarcustombgcolor="#B0B0B0"\n              avatarcustomborder="border:2px solid #EA4C61"\n              charCount="2"\n              shape="round"></ng-letter-avatar>\n            </div>\n            <div class="message">\n              <span class="arrow"></span>\n              <a data-ng-click="message.ChatVisitor && openContact(chatRoom.ChatVisitor.email)" class="name">{{message.User.fullname || message.ChatVisitor.fullname}} </a>\n              <i class="icon-calendar" title="{{message.createdAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.createdAt"></span>\n              <ng-emoticons emoticons-data="message.body"></ng-emoticons>\n            </div>\n          </li>\n          <li data-ng-if="chatRoom.status === \'CLOSED\'">\n            <div class="media-body" style="text-align: center;">\n              <h5 class="media-heading"><i>{{\'MESSAGE_CHAT_CLOSED\' | translate | lowercase}}</i></h5>\n            </div>\n          </li>\n        </ul>\n      </div>\n      <div class="chat-form" data-ng-if="chatRoom && isMyRoom(chatRoom.Users)">\n        <div class="input-cont">\n          <input class="form-control" type="text" placeholder="Type a message here..." ng-enter="sendMessage()" data-ng-model="message.body" data-ng-disabled="chatRoom.status === \'CLOSED\'"/>\n        </div>\n        <div class="btn-cont">\n          <span class="arrow"></span>\n          <a href="#" class="btn blue icn-only" data-ng-disabled="chatRoom.status === \'CLOSED\'" data-ng-click="sendMessage()">\n            <i class="fa fa-check icon-white"></i>\n          </a>\n        </div>\n      </div>\n      <div class="form-group chat-canned-answer-div" data-ng-if="chatRoom.status !== \'CLOSED\'" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}">\n        <div class="row">\n          <div class="col-md-1">\n            <a href="#" class="btn btn-icon-only">\n              <i class="fa fa-magic" style="color: gray;"></i>\n            </a>\n          </div>\n          <div class="col-md-11">\n            <input type="text"\n            data-ng-model="modelOptions.selectedAnswer"\n            uib-typeahead="key for key in getAnswers($viewValue)"\n            placeholder="Canned answers.."\n            typeahead-loading="loadingLocations"\n            typeahead-no-results="noResults"\n            typeahead-on-select="onSelect($item)"\n            class="form-control">\n            <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n            <div ng-show="noResults">\n              <i class="glyphicon glyphicon-remove"></i> No Results Found\n            </div>\n            <span data-ng-show="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n'+"              <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n            </span>\n          </div>\n        </div>\n\n      </div>\n    </div>\n  </div>\n</div>\n</div>\n</div>\n"),t.put("app/channels/chat/room/room.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\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="fa fa-spinner"></i>\n          <a href="#">{{ \'APPLICATION_CHANNELS\' | 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="fa fa-users"></i>\n          <a href="#">{{ \'APPLICATION_INTERACTIONS\' | translate }}</a>\n        </li>\n      </ul>\n    </div>\n\n    <div class="row inbox">\n      <div class="col-md-2">\n        <ul class="inbox-nav margin-bottom-10">\n          <li data-ng-class="{active: $state.includes(\'main.channels.chat.room.internal\')}">\n            <a href="/channels/chat/room/internal/list" class="btn">\n              {{\'APPLICATION_INTERNAL\' | translate}}\n            </a>\n            <b></b>\n          </li>\n          <li data-ng-class="{active: $state.includes(\'main.channels.chat.room.external\')}">\n            <a href="/channels/chat/room/external/list" class="btn">\n              {{\'APPLICATION_EXTERNAL\' | translate}}\n            </a>\n            <b></b>\n          </li>\n          <li data-ng-class="{active: $state.includes(\'main.channels.chat.room.group\')}">\n            <a href="/channels/chat/room/group/list" class="btn">\n              {{\'APPLICATION_GROUPS\' | translate}}\n            </a>\n            <b></b>\n          </li>\n        </ul>\n      </div>\n\n      <div class="col-md-10">\n        <div class="room-content">\n          <div ui-view></div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/room/template.html",'<div ng-bind-html="neText" ne-hljs></div>\n<div class="ne-video" ng-if="video.host" class="fade">\n  <div class="ne-video-preview" ng-hide="nePlayVideo || !options.video.details">\n    <div class="ne-video-thumb" ng-click="nePlayVideo=!nePlayVideo">\n      <img ng-src="{{video.thumbnail}}" alt=""/>\n      <i class="fa fa-play-circle-o"></i>\n    </div>\n    <div class="ne-video-detail">\n      <div class="ne-video-title">\n        <a ng-href="{{video.url}}">{{video.title}}</a>\n      </div>\n      <div class="ne-video-desc">\n        {{video.description}}\n      </div>\n      <div class="ne-video-stats">\n        <span><i class="fa fa-eye"></i> {{video.views}}</span>\n        <span><i class="fa fa-heart"></i> {{video.likes}}</span>\n      </div>\n    </div>\n  </div>\n  <div class="ne-video-player" ng-if="nePlayVideo || !(options.video.details)">\n    <iframe ng-src="{{video.embedSrc}}" frameBorder="0" width="{{video.width}}" height="{{video.height}}" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\n  </div>\n</div>\n<div class="ne-video" ng-if="video.basic">\n  <div class="ne-video-player">\n    <div class="player">\n      <video ng-src="{{video.basic}}" controls></video>\n    </div>\n  </div>\n</div>\n<div ng-init="neImageLong=false" ng-class="{false:\'ne-image\', true:\'ne-image ne-image-long\'}[neImageLong]"\nng-if="image.url">\n<div class="ne-image-wrapper">\n  <img ng-src="{{image.url}}" ng-click="neImageLong=!neImageLong" alt=""/>\n</div>\n</div>\n\x3c!-- <div class="ne-pdf" ng-if="pdf.url">\n  <div class="ne-pdf-preview" ng-hide="neShowPdf">\n    <div class="ne-pdf-icon">\n      <i class="fa fa-file-pdf-o"></i>\n    </div>\n    <div class="ne-pdf-detail" >\n      <div class="ne-pdf-title">\n        <a href="">{{pdf.url}}</a>\n      </div>\n      <div class="ne-pdf-view">\n\n        <button><i class="fa fa-download"></i> <a ng-href="{{pdf.url}}" target="_blank">Download</a></button>\n        <button ng-click="neShowPdf=!neShowPdf"><i class="fa fa-eye"></i> View PDF</button>\n\n      </div>\n    </div>\n  </div>\n  <div class="ne-pdf-viewer" ng-if="neShowPdf" ng-show="neShowPdf">\n    <iframe ng-src="{{pdf.url}}" frameBorder="0"></iframe>\n  </div>\n\n</div>\n<div class="ne-audio" ng-if="audio.url">\n  <audio ng-src="{{audio.url}}" controls></audio>\n</div> --\x3e\n'),t.put("app/channels/chat/room/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TRANSPORT --\x3e\n  <div class="form-group">\n    <form name="form" novalidate>\n      \x3c!-- START TAGS --\x3e\n      <div class="form-group">\n        <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n          <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n          <ui-select-choices repeat="tag in tags | filter: $select.search">\n            {{tag}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n      \x3c!-- END TAGS --\x3e\n    </form>\n  </div>\n  \x3c!-- END TRANSPORT --\x3e\n</div>\n<div class="modal-footer">\n  <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n  \x3c!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> --\x3e\n</div>\n'),t.put("app/channels/chat/visitor/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-question"></i>\n\t\t\t\t\t\t<a href="/channels/chat/visitors/list">{{ \'APPLICATION_VISITORS\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-question font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_VISITORS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/visitor/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-question"></i>\n\t\t\t\t\t<a href="/channels/chat/visitors/list">{{ \'APPLICATION_VISITORS\' | translate }}</a>\n\t\t\t\t\t<i  class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="chatVisitor">\n\t\t\t\t\t<a href="#">{{chatVisitor.fullname}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/visitor.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{chatVisitor.fullname}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.chat.visitors.view.profile\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/chat/visitors/view/{{chatVisitor.id}}/profile">\n\t\t\t\t\t\t\t<i class="icon-tag"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_PROFILE\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/visitor/view/view.profile.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PROFILE\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t<div>\n\t\t\t\t\t<h4 class="profile-desc-title">{{chatVisitor.email}}</h4>\n\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t<i class="icon-magnifier"></i>\n\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatVisitor.origin}}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatVisitor.remote_address}}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatVisitor.user_agent | truncate: 50: \'...\'}}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t<i class="icon-flag"></i>\n\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatVisitor.visitor_language}}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t<i class="icon-home"></i>\n\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatVisitor.referer}}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t<i class="icon-cursor"></i>\n\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatVisitor.browser}}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="margin-top-20 profile-desc-link">\n\t\t\t\t\t\t<i class="icon-screen-desktop"></i>\n\t\t\t\t\t\t<a href="#" class="inactive-link">{{chatVisitor.os}}</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/website/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_WEB_SITES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/channels/chat/websites/wizard">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_WEB_SITE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/website/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/channels/chat/websites/view/{{chatWebsite.id}}/actions/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/website/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.settings" ng-submit="updateItem()" novalidate>\n\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/chat/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.from.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.mail.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler" maxlength="160"  name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\x3c!-- <input type="checkbox" data-ng-model="application.alwaysTime"> --\x3e\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t</div>\n\t\t\t\t\t<button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/website/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n\t\t\t\t\t\t<form name="forms.action" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.ChatQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/chat/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler"  maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <input type="checkbox" data-ng-model="application.alwaysTime"> --\x3e\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/website/view/disposition/modal/add.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n      <div class="">\n        <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n        <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n        </span>\n      </div>\n    </div>\n    \x3c!-- END NAME --\x3e\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/chat/website/view/disposition/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions actions-md">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n\t\t\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t<div class="row" data-ng-hide="dispositions.length">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div class="note note-info">\n\t\t\t\t\t\t\t\t<h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="row" data-ng-repeat="disposition in dispositions">\n\t\t\t\t\t\t<div class="col-md-12 form-group">\n\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t<button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t\t\t\t\t\t<button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/website/view/embedding/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">\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_EMBEDDING\' | translate}}</span>\n        </div>\n        <div class="actions">\n          <div class="btn-group">\n            <a class="btn green-jungle" href="#" data-ng-click="copyToClipboard();">\n              <i class="fa fa-clipboard"></i> {{\'APPLICATION_COPY_TO_CLIPBOARD\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n      <div class="portlet-body">\n        <div class="row">\n          <div class="col-md-12">\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                  <code-mirror lang="html" model="snippetCode"></code-mirror>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n'),t.put("app/channels/chat/website/view/form/view/view.html",'<div class="row" data-ng-init="getChatWebsiteFields(\'online\');getChatWebsiteFields(\'offline\');">\n  <div class="col-md-12">\n    <div class="portlet light">\n      <div class="portlet-title tabbable-line">\n        <ul class="nav nav-tabs">\n          <li class="active">\n            <a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ONLINE\' | translate}}</a>\n          </li>\n          <li>\n            <a href="#" data-target="#tab_1_2" 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-12">\n          <div class="tab-content">\n            <div class="tab-pane active" id="tab_1_1">\n              <div class="row">\n                <div class="col-md-6">\n                  <div class="portlet">\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_FIELDS_SELECTED\' | translate }}</span>\n                      </div>\n                      <div class="actions">\n                        <div class="btn-group">\n                          <a class="btn green-jungle" href="#" data-ng-click="saveForm(\'online\');">\n                            <i class="fa fa-check"></i> {{ \'APPLICATION_SAVE\' | translate }}\n                          </a>\n                        </div>\n                      </div>\n                    </div>\n                    <div class="portlet-body">\n                      <div fb-builder="online"></div>\n                    </div>\n                  </div>\n                </div>\n                <div class="col-md-6">\n                  <div class="portlet">\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_FIELDS_AVAILABLE\' | translate }}</span>\n                      </div>\n                    </div>\n                    <div class="portlet-body">\n                      <div fb-components></div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n            <div class="tab-pane" id="tab_1_2">\n              <div class="row">\n                <div class="col-md-6">\n                  <div class="portlet">\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_FIELDS_SELECTED\' | translate }}</span>\n                      </div>\n                      <div class="actions">\n                        <div class="btn-group">\n                          <a class="btn green-jungle" href="#" data-ng-click="saveForm(\'offline\');">\n                            <i class="fa fa-check"></i> {{ \'APPLICATION_SAVE\' | translate }}\n                          </a>\n                        </div>\n                      </div>\n                    </div>\n                    <div class="portlet-body">\n                      <div fb-builder="offline"></div>\n                    </div>\n                  </div>\n                </div>\n                <div class="col-md-6">\n                  <div class="portlet">\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_FIELDS_AVAILABLE\' | translate }}</span>\n                      </div>\n                    </div>\n                    <div class="portlet-body">\n                      <div fb-components></div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n</div>\n'),t.put("app/channels/chat/website/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- ACCEPT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START ACCEPT URL --\x3e\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl"  ng-required="account.acceptMethod"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ACCEPT URL--\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START ACTIONS--\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START PAUSE --\x3e\n\t\t\t\t\t\t\t\t<div class="row" ng-repeat = "action in account.actions">\n\t\t\t\t\t\t\t\t\t<div  ng-switch="action.action">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-switch-when="pause">\n\t\t\t\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-4">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-change="resetActionData(action)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="action.enabled"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-if="action.enabled" class="form-group col-md-8">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select  name="action" data-ng-model="action.type"  theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t  \t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ACTION --\x3e\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ACCEPT TAB --\x3e\n\t\t\t\t\t\x3c!-- START REJECT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START REJECT URL --\x3e\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- END REJECT URL --\x3e\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END REJECT TAB --\x3e\n\t\t\t\t\t\x3c!-- START CLOSE TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.close" data-ng-submit="forms.close.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CLOSE TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/website/view/proactive/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{title}}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START TYPE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.type.$touched || form.$submitted) && form.type.$invalid}">\n      <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n      <ui-select name="type" ng-model="item.type" theme="bootstrap" ng-disabled="disabled">\n        <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n        <ui-select-choices repeat="item.type as item in possibleType | filter: $select.search">\n          <div ng-bind-html="item.title | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n    </div>\n    \x3c!-- END TYPE --\x3e\n\n    \x3c!-- START SELECTOR --\x3e\n    <div class="form-group" data-ng-if="item.type === \'mouseOver\'" data-ng-class="{\'has-error\': (form.selector.$touched || form.$submitted) && form.selector.$invalid}">\n      <label class="control-label">{{\'APPLICATION_SELECTOR\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="selector" placeholder="{{\'APPLICATION_SELECTOR\' | translate}}" class="form-control" data-ng-model="item.selector" required/>\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END SELECTOR --\x3e\n\n    \x3c!-- START TIMEOUT --\x3e\n    <div class="form-group" data-ng-if="item.type === \'timeout\'" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.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="item.timeout" min="0" required/>\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TIMEOUT --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/chat/website/view/proactive/list/list.html",'<div class="row" data-ng-init="initProactiveActions()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_PROACTIVE_ACTIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROACTIVE_ACTION\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/website/view/setting/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItemChatWebsite()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START LIST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="license.cm">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group">\n\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="chatWebsite.ListId" name="list" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="list.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" data-ng-click="chatWebsite.ListId = null" class="btn btn-default">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LIST --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/website/view/snippet/view/view.html",'<div class="row" data-ng-init="initView();getServiceMailAccount();">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SNIPPET\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_APPEARANCE\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_FORMS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_LABELS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_SETTINGS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_5" data-toggle="tab">{{\'APPLICATION_OFFLINE\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="row">\n\t\t\t\t\t\t<div class="col-md-8">\n\t\t\t\t\t\t\t<div class="tab-content">\n\n\t\t\t\t\t\t\t\t\x3c!-- APPEARANCE TAB --\x3e\n\t\t\t\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t\t\t\t<form name="forms.formAppearance" data-ng-submit="forms.formAppearance.$valid && updateItem()" novalidate>\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START MAIN COLOR --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.host.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAIN_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END MAIN COLOR --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START FOCUS COLOR --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FOCUS_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END FOCUS COLOR --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START BUTTON COLOR --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_BUTTON_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END BUTTON COLOR --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START HEADER SHAPE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.headerShape.$touched || forms.formAppearance.$submitted) && forms.formAppearance.headerShape.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HEADER_SHAPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="chatWebsite.header_shape" name="headerShape" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant(\'APPLICATION_\' + $select.selected.toUpperCase())}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="headerShape in [\'rounded\',\'squared\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="$translate.instant(\'APPLICATION_\' + headerShape.toUpperCase()) | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END HEADER SHAPE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ANIMATION TOGGLE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.animationToggle.$touched || forms.formAppearance.$submitted) && forms.formAppearance.animationToggle.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\t\t\tng-model="chatWebsite.animation"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ true }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END ANIMATION TOGGLE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<div class="portlet-title tabbable-line margin-top20">\n\t\t\t\t\t\t\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_WHITE_LABEL\' | translate}}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\t\t\tng-model="chatWebsite.defaultWhiteLabel"\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-init="chatWebsite.defaultWhiteLabel = license.custom ? chatWebsite.defaultWhiteLabel : true"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tname="defaultWhitelabel"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END DEFAULT --\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START LABEL --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.whiteLabel.$touched || forms.formAppearance.$submitted) && forms.formAppearance.whiteLabel.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_WHITE_LABEL\' | translate}}<span data-ng-if="!chatWebsite.defaultWhiteLabel" class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<textarea type="password" name="whiteLabel" placeholder="{{\'APPLICATION_WHITE_LABEL\' | translate}}" class="form-control" data-ng-model="chatWebsite.whiteLabel" data-ng-disabled="chatWebsite.defaultWhiteLabel || !license.custom" data-ng-required="!chatWebsite.defaultWhiteLabel && license.custom"/></textarea>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formAppearance.whiteLabel.$touched || forms.formAppearance.$submitted) && forms.formAppearance.whiteLabel.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END LABEL --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<div class="portlet-title tabbable-line margin-top20">\n\t\t\t\t\t\t\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_LOGO\' | translate}}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="row">\n\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6 col-sm-6">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\t\t\t\tng-model="chatWebsite.defaultLogo"\n\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-init="chatWebsite.defaultLogo = license.custom ? chatWebsite.defaultLogo : true"\n\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\tname="defaultLogo"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END STATUS --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6 col-sm-6" data-ng-if="!chatWebsite.defaultLogo && license.custom">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput fileinput-new" data-provides="fileinput">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="file" nv-file-select="" uploader="uploader"/><br/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_REMOVE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- </button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIRM\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-2">\n\t\t\t\t\t\t\t\t\t\t\t<table class="table" border="0">\n\t\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr data-ng-repeat="item in uploader.queue">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ item.file.name }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</strong>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ item.file.size/1024/1024|number:2 }} MB\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td nowrap style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span> Remove\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="uploader.queue[0] && uploader.queue[0].upload()" data-ng-disabled="uploader.queue[0].isReady || uploader.queue[0].isUploading || uploader.queue[0].isSuccess" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END APPEARANCE TAB --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- FORMS TAB --\x3e\n\t\t\t\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t\t\t\t<form name="forms.formFunctionality" data-ng-submit="forms.formFunctionality.$valid && updateItem()" novalidate>\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START DOWNLOAD TRANSCRIPT --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DOWNLOAD_TRANSCRIPT\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t</br>\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\t\t\tng-model="chatWebsite.download_transcript"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="true"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END DOWNLOAD TRANSCRIPT --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END FORMS TAB --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- STRINGS TAB --\x3e\n\t\t\t\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t\t\t\t<form name="forms.formLabel" data-ng-submit="forms.formLabel.$valid && updateItem()" novalidate>\n\n\t\t\t\t\t\t\t\t\t\t<h4 class="block" data-ng-show="statePreview.state == \'online\'">{{\'APPLICATION_ONLINE_STATE\' | translate}}</h4>\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START HEADER ONLINE --\x3e\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HEADER_ONLINE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="headerOnline" placeholder="{{\'APPLICATION_HEADER_ONLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_online"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END HEADER ONLINE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ONLINE MESSAGE--\x3e\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="onlineMessage" placeholder="{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.online_message"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END HEADER ONLINE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START USERNAME TITLE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.nameTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.nameTitle.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME_TITLE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="nameTitle" placeholder="{{\'APPLICATION_NAME_TITLE\' | translate}}" class="form-control" data-ng-model="chatWebsite.name_title"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END USERNAME TITLE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START USERNAME PLACEHOLDER --\x3e\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="usernamePlaceholder" placeholder="{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.username_placeholder"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END USERNAME PLACEHOLDER --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START EMAIL TITLE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'online\' || statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.emailTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.emailTitle.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_TITLE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="emailTitle" placeholder="{{\'APPLICATION_EMAIL_TITLE\' | translate}}" class="form-control" data-ng-model="chatWebsite.email_title"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END EMAIL TITLE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START EMAIL PLACEHOLDER --\x3e\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="emailPlaceholder" placeholder="{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.email_placeholder"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END EMAIL PLACEHOLDER --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START START CHAT BUTTON --\x3e\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="startChatButton" placeholder="{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.start_chat_button"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END START CHAT BUTTON --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<h4 class="block" data-ng-show="statePreview.state == \'rating\'">{{\'APPLICATION_RATING_STATE\' | translate}}</h4>\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START RATING MESSAGE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'rating\'" data-ng-class="{\'has-error\': (forms.formLabel.ratingMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingMessage.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RATING_MESSAGE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="ratingMessage" placeholder="{{\'APPLICATION_RATING_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.rating_message"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END RATING MESSAGE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START RATING SEND BUTTON --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'rating\'" data-ng-class="{\'has-error\': (forms.formLabel.ratingSend.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSend.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="ratingSend" placeholder="{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.rating_send"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END RATING SEND BUTTON --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START RATING SKIP BUTTON --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'rating\'" data-ng-class="{\'has-error\': (forms.formLabel.ratingSkip.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSkip.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="ratingSkip" placeholder="{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.rating_skip"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END RATING SKIP BUTTON --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<h4 class="block" data-ng-show="statePreview.state == \'offline\'">{{\'APPLICATION_OFFLINE_STATE\' | translate}}</h4>\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START HEADER OFFLINE --\x3e\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HEADER_OFFLINE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="headerOffline" placeholder="{{\'APPLICATION_HEADER_OFFLINE\' | translate}}" class="form-control" data-ng-model="chatWebsite.header_offline"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END HEADER OFFLINE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START OFFLINE MESSAGE--\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.offlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.offlineMessage.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="offlineMessage" placeholder="{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="chatWebsite.offline_message"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END OFFLINE MESSAGE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ENQUIRY MESSAGE TITLE--\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessageTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryMessageTitle.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="enquiryMessageTitle" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}" class="form-control" data-ng-model="chatWebsite.message_title"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END ENQUIRY MESSAGE TITLE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ENQUIRY MESSAGE PLACEHOLDER--\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessagePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryMessagePlaceholder.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="enquiryMessagePlaceholder" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_message_placeholder"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END ENQUIRY MESSAGE PLACEHOLDER --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ENQUIRY BUTTON --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'offline\'" data-ng-class="{\'has-error\': (forms.formLabel.enquiryButton.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryButton.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="enquiryButton" placeholder="{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_button"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END ENQUIRY BUTTON --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START AGENTS BUSY BUTTON --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-show="statePreview.state == \'online\'" data-ng-class="{\'has-error\': (forms.formLabel.agentsBusy.$touched || forms.formLabel.$submitted) && forms.formLabel.agentsBusy.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENTS_BUSY\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="agentsBusy" placeholder="{{\'APPLICATION_AGENTS_BUSY\' | translate}}" class="form-control" data-ng-model="chatWebsite.agents_busy"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END AGENTS BUSY BUTTON --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END STRINGS TAB --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- SETTINGS TAB --\x3e\n\t\t\t\t\t\t\t\t<div class="tab-pane" id="tab_1_4">\n\t\t\t\t\t\t\t\t\t<form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="chatWebsite.name" required/>\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ADDRESS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_WEB_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="url" name="address" placeholder="{{\'APPLICATION_WEB_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.address" required/>\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END ADDRESS --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START REMOTE IP --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.remote" required/>\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END REMOTE IP --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START FIDELITY --\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="chatWebsite.fidelity"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ fidelitySwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ fidelitySwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ fidelitySwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ fidelitySwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ fidelitySwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ fidelitySwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ fidelitySwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ fidelitySwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ fidelitySwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ fidelitySwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END FIDELITY --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <div class="form-group" data-ng-if="chatWebsite.fidelity" data-ng-class="{\'has-error\': (forms.formSetting.timeout.$touched || forms.formSetting.$submitted) && forms.formSetting.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="chatWebsite.timeout" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formSetting.timeout.$touched || forms.formSetting.$submitted) && forms.formSetting.timeout.$invalid && forms.formSetting.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formSetting.timeout.$touched || forms.formSetting.$submitted) && forms.formSetting.timeout.$invalid && forms.formSetting.timeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.description.$touched || forms.formSetting.$submitted) && forms.formSetting.description.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="chatWebsite.description"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END SETTINGS TAB --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- OFFLINE TAB --\x3e\n\t\t\t\t\t\t\t\t<div class="tab-pane" id="tab_1_5">\n\t\t\t\t\t\t\t\t\t<form name="forms.formOffline" data-ng-submit="forms.formOffline.$valid && updateItem()" novalidate>\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ENQUIRY ENABLE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENQUIRY_ENABLED\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t    bs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\t\t\t    ng-model="chatWebsite.enquiry_enable"\n\t\t\t\t\t\t\t\t\t\t\t    type="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t    switch-active="{{ enquirySwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-on-text="{{ enquirySwitch.onText }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-off-text="{{ enquirySwitch.offText }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-on-color="{{ enquirySwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-off-color="{{ enquirySwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-animate="{{ enquirySwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-size="{{ enquirySwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-label="{{ enquirySwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-icon="{{ enquirySwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-radio-off="{{ enquirySwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-label-width="{{ enquirySwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-handle-width="{{ enquirySwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END ENQUIRY ENABLE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ENQUIRY FORWARDING --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-if="chatWebsite.enquiry_enable">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENQUIRY_FORWARDING\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t    bs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\t\t\t    ng-model="chatWebsite.enquiry_forwarding"\n\t\t\t\t\t\t\t\t\t\t\t    type="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t    switch-active="{{ enquirySwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-on-text="{{ enquirySwitch.onText }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-off-text="{{ enquirySwitch.offText }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-on-color="{{ enquirySwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-off-color="{{ enquirySwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-animate="{{ enquirySwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-size="{{ enquirySwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-label="{{ enquirySwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-icon="{{ enquirySwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-radio-off="{{ enquirySwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-label-width="{{ enquirySwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t    switch-handle-width="{{ enquirySwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END ENQUIRY FORWARDING --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-if="!isServiceMailAccount">\n\t\t                  <h4 class="block">Warning!</h4>\n\t\t                  <p>\n\t\t                    {{ \'MESSAGE_NO_SERVICE_MAIL_ACCOUNT\' | translate }}\n\t\t                  </p>\n\t\t                  <p>\n\t\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/setting/smtp/view">SMTP</a> {{\'APPLICATION_OR\' | translate}} <a href="/channels/mail/accounts/list">{{\'APPLICATION_MAIL_ACCOUNTS\' | translate}}</a>\n\t\t                  </p>\n\t\t                </div>\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START REMOTE IP --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-if="chatWebsite.enquiry_enable && chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.forwardingAddress.$touched || forms.formOffline.$submitted) && forms.formSetting.forwardingAddress.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENQUIRY_FORWARDING_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="forwardingAddress" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="chatWebsite.enquiry_forwarding_address" required/>\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END REMOTE IP --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START HEADER SHAPE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-if="chatWebsite.enquiry_enable && chatWebsite.enquiry_forwarding" data-ng-class="{\'has-error\': (forms.formOffline.OfflineTemplateId.$touched || forms.formOffline.$submitted) && forms.formOffline.OfflineTemplateId.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="chatWebsite.OfflineTemplateId" name="OfflineTemplateId" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END HEADER SHAPE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END OFFLINE TAB --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-md-4">\n\t\t\t\t\t\t\t\x3c!-- START STATE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="chatWebsite.animation" required/> --\x3e\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="statePreview.state" name="statePreview" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="statePreview in [\'online\',\'rating\',\'offline\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="statePreview | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END STATE --\x3e\n\t\t\t\t\t\t\t<preview></preview>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/chat/website/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t<a href="/channels/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{chatWebsite.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/website.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{chatWebsite.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{chatWebsite.address}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.embedding\')}">\n\t\t\t\t\t\t\t<a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/embedding/view">\n\t\t\t\t\t\t\t<i class="fa fa-code"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_EMBEDDING\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.snippet\')}">\n\t\t\t\t\t\t\t<a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/snippet/view">\n\t\t\t\t\t\t\t<i class="icon-note"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SNIPPET\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.form\')}">\n\t\t\t\t\t\t\t<a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/forms/view">\n\t\t\t\t\t\t\t<i class="icon-list"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_FORMS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.proactive\')}">\n\t\t\t\t\t\t\t<a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/proactive/list">\n\t\t\t\t\t\t\t<i class="icon-target"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_PROACTIVE_ACTIONS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.actions\')}">\n\t\t\t\t\t\t\t<a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/actions/list">\n\t\t\t\t\t\t\t<i class="icon-directions"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_ACTIONS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.chat.websites.view.hooks\')}">\n\t\t\t\t\t\t\t<a href="/channels/chat/websites/view/{{chatWebsite.id}}/hooks">\n\t\t\t\t\t\t\t<i class="fa fa-code"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_HOOKS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.channels.chat.websites.view.dispositions\')}">\n\t\t\t\t\t\t\t<a ng-href="/channels/chat/websites/view/{{chatWebsite.id}}/dispositions">\n\t\t\t\t\t\t\t\t<i class="icon-target"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_DISPOSITIONS\' | translate }} </a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.chat.websites.view.settings\')}">\n\t\t\t\t\t\t\t<a href="/channels/chat/websites/view/{{chatWebsite.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/chat/website/wizard/wizard.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHAT\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t\t<a href="/channels/chat/websites/list">{{ \'APPLICATION_WEB_SITES\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initWizard();">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_WEB_SITE\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n          <wz-step title="{{\'APPLICATION_WEB_SITE_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n\t\t\t\t\t\t<form name="forms.formSetting" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.name.$touched || forms.formSetting.$submitted) && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$touched && !forms.formSettings.name.$valid && forms.formSetting.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.address.$touched || forms.formSetting.$submitted) && forms.formSetting.address.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_WEB_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="address" placeholder="{{\'APPLICATION_WEB_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required/>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ADDRESS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START REMOTE IP --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formSetting.remote.$touched || forms.formSetting.$submitted) && forms.formSetting.remote.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REMOTE IP --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_WEB_SITE_APPEARANCE\' | translate}}" canexit="exitValidation(forms.formAppearance.$valid)">\n\t\t\t\t\t\t<form name="forms.formAppearance" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START MAIN COLOR --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.mainColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.host.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAIN_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MAIN COLOR --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START FOCUS COLOR --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.focusColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.focusColor.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FOCUS_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END FOCUS COLOR --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START BUTTON COLOR --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.buttonColor.$touched || forms.formAppearance.$submitted) && forms.formAppearance.buttonColor.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_BUTTON_COLOR\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END BUTTON COLOR --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START HEADER SHAPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.headerShape.$touched || forms.formAppearance.$submitted) && forms.formAppearance.headerShape.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HEADER_SHAPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\x3c!-- <input colorpicker type="text" name="animationToggle" placeholder="{{\'APPLICATION_BUTTON_COLOR\' | translate}}" class="form-control" data-ng-model="item.animation" required/> --\x3e\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.header_shape" name="headerShape" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant(\'APPLICATION_\' + $select.selected.toUpperCase())}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="headerShape in [\'rounded\',\'squared\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="$translate.instant(\'APPLICATION_\' + headerShape.toUpperCase()) | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HEADER SHAPE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ANIMATION TOGGLE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAppearance.animationToggle.$touched || forms.formAppearance.$submitted) && forms.formAppearance.animationToggle.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ANIMATION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.animation" name="animationToggle" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected  ? \'On\' : \'Off\'}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="filter in [true,false] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="filter ? \'On\' : \'Off\' | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ANIMATION TOGGLE --\x3e\n\n\t\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_LABELS\' | translate}}" canexit="exitValidation(forms.formLabel.$valid)">\n\t\t\t\t\t\t<form name="forms.formLabel" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START HEADER ONLINE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.headerOnline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HEADER_ONLINE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="headerOnline" placeholder="{{\'APPLICATION_HEADER_ONLINE\' | translate}}" class="form-control" data-ng-model="item.header_online"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HEADER ONLINE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ONLINE MESSAGE--\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.onlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="onlineMessage" placeholder="{{\'APPLICATION_ONLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.online_message"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HEADER ONLINE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START USERNAME TITLE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.nameTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.nameTitle.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME_TITLE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="nameTitle" placeholder="{{\'APPLICATION_NAME_TITLE\' | translate}}" class="form-control" data-ng-model="item.name_title"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME TITLE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START USERNAME PLACEHOLDER --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.usernamePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.usernamePlaceholder.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="usernamePlaceholder" placeholder="{{\'APPLICATION_NAME_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.username_placeholder"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME PLACEHOLDER --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START EMAIL TITLE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.emailTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.emailTitle.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_TITLE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="emailTitle" placeholder="{{\'APPLICATION_EMAIL_TITLE\' | translate}}" class="form-control" data-ng-model="item.email_title"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EMAIL TITLE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START EMAIL PLACEHOLDER --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.emailPlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.emailPlaceholder.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="emailPlaceholder" placeholder="{{\'APPLICATION_EMAIL_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.email_placeholder"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EMAIL PLACEHOLDER --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START START CHAT BUTTON --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.startChatButton.$touched || forms.formLabel.$submitted) && forms.formLabel.startChatButton.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="startChatButton" placeholder="{{\'APPLICATION_START_CHAT_BUTTON\' | translate}}" class="form-control" data-ng-model="item.start_chat_button"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END START CHAT BUTTON --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RATING MESSAGE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.ratingMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingMessage.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RATING_MESSAGE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="ratingMessage" placeholder="{{\'APPLICATION_RATING_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.rating_message"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RATING MESSAGE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RATING START TEXT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.ratingSend.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSend.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="ratingSend" placeholder="{{\'APPLICATION_RATING_SEND_BUTTON\' | translate}}" class="form-control" data-ng-model="item.rating_send"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RATING START TEXT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RATING MESSAGE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.ratingSkip.$touched || forms.formLabel.$submitted) && forms.formLabel.ratingSkip.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="ratingSkip" placeholder="{{\'APPLICATION_RATING_SKIP_BUTTON\' | translate}}" class="form-control" data-ng-model="item.rating_skip"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RATING MESSAGE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START HEADER OFFLINE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.headerOffline.$touched || forms.formLabel.$submitted) && forms.formLabel.headerOnline.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HEADER_OFFLINE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="headerOffline" placeholder="{{\'APPLICATION_HEADER_OFFLINE\' | translate}}" class="form-control" data-ng-model="item.header_offline"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HEADER OFFLINE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START OFFLINE MESSAGE--\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.offlineMessage.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="offlineMessage" placeholder="{{\'APPLICATION_OFFLINE_MESSAGE\' | translate}}" class="form-control" data-ng-model="item.offline_message"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END OFFLINE MESSAGE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ENQUIRY MESSAGE TITLE--\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessageTitle.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryMessageTitle.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="enquiryMessageTitle" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_TITLE\' | translate}}" class="form-control" data-ng-model="item.message_title"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ENQUIRY MESSAGE TITLE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ENQUIRY MESSAGE PLACEHOLDER--\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryMessagePlaceholder.$touched || forms.formLabel.$submitted) && forms.formLabel.onlineMessage.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="enquiryMessagePlaceholder" placeholder="{{\'APPLICATION_ENQUIRY_MESSAGE_PLACEHOLDER\' | translate}}" class="form-control" data-ng-model="item.enquiry_message_placeholder"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ENQUIRY MESSAGE PLACEHOLDER --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ENQUIRY BUTTON --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.enquiryButton.$touched || forms.formLabel.$submitted) && forms.formLabel.enquiryButton.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="enquiryButton" placeholder="{{\'APPLICATION_ENQUIRY_BUTTON\' | translate}}" class="form-control" data-ng-model="item.enquiry_button"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ENQUIRY BUTTON --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START AGENTS BUSY BUTTON --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formLabel.agentsBusy.$touched || forms.formLabel.$submitted) && forms.formLabel.agentsBusy.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENTS_BUSY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="agentsBusy" placeholder="{{\'APPLICATION_AGENTS_BUSY\' | translate}}" class="form-control" data-ng-model="item.agents_busy"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END AGENTS BUSY BUTTON --\x3e\n\n\t\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_FORMS\' | translate}}" canexit="exitValidation(forms.formAppearance.$valid)">\n\t\t\t\t\t\t<form name="forms.formFunctionality" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START DOWNLOAD TRANSCRIPT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formFunctionality.animationToggle.$touched || forms.formFunctionality.$submitted) && forms.formFunctionality.animationToggle.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DOWNLOAD_TRANSCRIPT\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.download_transcript" name="downloadTranscript" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected ? \'On\' : \'Off\'}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="downloadTranscript in [true, false] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="downloadTranscript ? \'On\' : \'Off\' | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DOWNLOAD TRANSCRIPT --\x3e\n\n\t\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/account/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_FAX_ACCOUNT\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="initWizard();">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.$submitted || form.name.$touched) && form.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="form.name.$error.required && (form.$submitted || form.name.$touched)" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START TRUNKS --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.$submitted || form.trunk.$touched) && form.trunk.$invalid}">\n      <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <ui-select data-ng-model="item.TrunkName" name="trunk" theme="bootstrap" required>\n        <ui-select-match placeholder="{{\'APPLICATION_TRUNK\' | translate}}">{{$select.selected.name}}</ui-select-match>\n        <ui-select-choices repeat="trunk.name as trunk in trunks | filter: $select.search">\n          <div data-ng-bind="trunk.name | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <div class="note note-warning" data-ng-hide="trunks.length">\n        <h4 class="block">Warning!</h4>\n        <p>\n          {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n        </p>\n        <p>\n          {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n        </p>\n      </div>\n      <span data-ng-show="form.trunk.$error.required && (form.$submitted || form.trunk.$touched)" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- START TRUNKS --\x3e\n\n    \x3c!-- START LOCALSTATIONID --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.$submitted || form.localstationid.$touched) && form.localstationid.$invalid}">\n      <label class="control-label">{{\'APPLICATION_LOCALSTATIONID\' | translate}} <span class="required" aria-required="true">*</span></label>\n      <input type="text" name="localstationid" placeholder="{{\'APPLICATION_LOCALSTATIONID\' | translate}}" class="form-control" data-ng-model="item.localstationid" required/>\n      <span data-ng-show="form.localstationid.$error.required && (form.$submitted || form.localstationid.$touched)" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n      <span class="help-block">\n        {{\'DESCRIPTION_LOCALSTATIONID\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END LOCALSTATIONID --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/fax/account/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-fax"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t\t<a href="/channels/fax/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button type="button" class="btn green-jungle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true" aria-expanded="true">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }} <i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<ul class="dropdown-menu" role="menu">\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="/channels/fax/accounts/wizard">\n\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_STANDARD\' | translate }}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="#" data-ng-click="createItem()">\n\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_QUICK\' | translate }}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/account/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/channels/fax/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/fax/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.settings" data-ng-submit="forms.settings.$valid && updateItem()" novalidate>\n\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.FaxQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/fax/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.from.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.mail.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ATTACHMENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data6" name="attachment" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="attachment in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{attachment}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler" maxlength="160"  name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\x3c!-- <input type="checkbox" data-ng-model="application.alwaysTime"> --\x3e\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n              <div class="note note-warning" data-ng-hide="intervals.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_INTERVALS_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t</div>\n\t\t\t\t\t<button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n\t\t\t\t\t\t<form name="forms.action" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.FaxQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/fax/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ATTACHMENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data6" name="attachment" theme="bootstrap" data-ng-init="application.data6 = \'no\'" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="attachment in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t{{attachment}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.attachment.$touched || forms.settings.$submitted) && forms.settings.attachment.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler"  maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <input type="checkbox" data-ng-model="application.alwaysTime"> --\x3e\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_INTERVALS_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n      <div class="">\n        \x3c!-- <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" data-ng-pattern="/^[a-zA-Z0-9]*$/" required/> --\x3e\n        <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n        <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n        </span>\n        \x3c!-- <span data-ng-show="form.form.$touched && form.form.$error.pattern" class="help-block help-block-error">\n          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PATTERN\' | translate}}.\n        </span> --\x3e\n      </div>\n      \x3c!-- <div class="help-block">\n        {{\'MESSAGE_ALLOWED_NUMBERS_AND_LETTERS\' | translate}}\n\t\t\t</div> --\x3e\n    </div>\n    \x3c!-- END NAME --\x3e\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/fax/account/view/disposition/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions actions-md">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n\t\t\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t<div class="row" data-ng-hide="dispositions.length">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div class="note note-info">\n\t\t\t\t\t\t\t\t<h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="row" data-ng-repeat="disposition in dispositions">\n\t\t\t\t\t\t<div class="col-md-12 form-group">\n\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t<button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t\t\t\t\t\t<button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/fax/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- ACCEPT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItemFaxAccount()" novalidate>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl"  ng-required="account.acceptMethod"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- START ACTIONS--\x3e\n\t\t\t\t\t\t\t\t<div class="row" ng-repeat = "action in account.actions">\n\t\t\t\t\t\t\t\t\t<div  ng-switch="action.action">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-switch-when="pause">\n\t\t\t\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-4">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-change="resetActionData(action)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="action.enabled"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-if="action.enabled" class="form-group col-md-8">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select  name="action" data-ng-model="action.type"  theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t  \t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ACTION --\x3e\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ACCEPT TAB --\x3e\n\t\t\t\t\t\x3c!-- START REJECT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItemFaxAccount()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ACCEPT TAB --\x3e\n\t\t\t\t\t\x3c!-- START CLOSE TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.close" data-ng-submit="forms.close.$valid && updateItemFaxAccount()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CLOSE TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/fax/account/view/setting/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_ADVANCED\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateItemFaxAccount()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.name.$touched) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.name.$error.required && (forms.general.$submitted || forms.general.name.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START HEADERINFO --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.headerinfo.$touched) && forms.general.headerinfo.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HEADERINFO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="headerinfo" placeholder="{{\'APPLICATION_HEADERINFO\' | translate}}" class="form-control" data-ng-model="account.headerinfo" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.headerinfo.$error.required && (forms.general.$submitted || forms.general.headerinfo.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_HEADERINFO\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HEADERINFO --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TRUNKS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.trunk.$touched) && forms.general.trunk.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.TrunkName" name="trunk" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_TRUNK\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="trunk.name as trunk in trunks | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div data-ng-bind="trunk.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="trunks.length">\n\t                <h4 class="block">Warning!</h4>\n\t                <p>\n\t                  {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n\t                </p>\n\t                <p>\n\t                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t                </p>\n\t              </div>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.trunk.$error.required && (forms.general.$submitted || forms.general.trunk.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START TRUNKS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START LOCALSTATIONID --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.localstationid.$touched) && forms.general.localstationid.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LOCALSTATIONID\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="localstationid" placeholder="{{\'APPLICATION_LOCALSTATIONID\' | translate}}" class="form-control" data-ng-model="account.localstationid" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.localstationid.$error.required && (forms.general.$submitted || forms.general.localstationid.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_LOCALSTATIONID\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LOCALSTATIONID --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START LIST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="license.cm">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group">\n\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="list.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LIST --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START FIDELITY --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.fidelity"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END FIDELITY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.general.$submitted || forms.general.timeout.$touched) && forms.general.timeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid && forms.general.timeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t\t\x3c!-- ADVANCED TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateItemFaxAccount()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\x3c!-- START ECM --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t  <label class="control-label">{{\'APPLICATION_ECM\' | translate}}<span class="required" aria-required="true">*</span></label><br>\n\t\t\t\t\t\t\t\t\t  <input\n\t\t\t\t\t\t\t\t\t    bs-switch\n\t\t\t\t\t\t\t\t\t    ng-model="account.ecm"\n\t\t\t\t\t\t\t\t\t    type="checkbox"\n\t\t\t\t\t\t\t\t\t    switch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t    switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t    switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t    switch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t    switch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t    switch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t    switch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t    switch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t    switch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t    switch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t    switch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t    switch-handle-width="{{ handleWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tng-true-value="\'yes\'"\n\t\t    \t\t\t\t\t\t\tng-false-value="\'no\'">\n\t\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_ECM\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END ECM --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START MINRATE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.minrate.$touched) && forms.advanced.minrate.$invalid}">\n\t\t\t\t\t\t\t\t\t  <label class="control-label">{{\'APPLICATION_MINRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t  <ui-select data-ng-model="account.minrate" name="minrate" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t    <ui-select-match placeholder="{{\'APPLICATION_MINRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t    <ui-select-choices repeat="minrate in rate | filter: $select.search">\n\t\t\t\t\t\t\t\t\t      <div data-ng-bind="minrate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t    </ui-select-choices>\n\t\t\t\t\t\t\t\t\t  </ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_MINRATE\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.advanced.minrate.$error.required && (forms.advanced.$submitted || forms.advanced.minrate.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- START MINRATE --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START MAXRATE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.maxrate.$touched) && forms.advanced.maxrate.$invalid}">\n\t\t\t\t\t\t\t\t\t  <label class="control-label">{{\'APPLICATION_MAXRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t  <ui-select data-ng-model="account.maxrate" name="maxrate" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t    <ui-select-match placeholder="{{\'APPLICATION_MAXRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t    <ui-select-choices repeat="maxrate in rate | filter: $select.search">\n\t\t\t\t\t\t\t\t\t      <div data-ng-bind="maxrate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t    </ui-select-choices>\n\t\t\t\t\t\t\t\t\t  </ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_MAXRATE\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.advanced.maxrate.$error.required && (forms.advanced.$submitted || forms.advanced.maxrate.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- START MAXRATE --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START MODEM --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.modem.$touched) && forms.advanced.modem.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MODEM\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="modem" placeholder="{{\'APPLICATION_MODEM\' | translate}}" class="form-control" data-ng-model="account.modem" required/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_MODEM\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.advanced.modem.$error.required && (forms.advanced.$submitted || forms.advanced.modem.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END MODEM --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\x3c!-- START GATEWAY --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.gateway.$touched) && forms.advanced.gateway.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_GATEWAY\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="gateway" placeholder="{{\'APPLICATION_GATEWAY\' | translate}}" class="form-control" data-ng-model="account.gateway" required data-ng-pattern="settings.patternGateway"/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_GATEWAY\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.gateway.$touched || forms.advanced.$submitted) && forms.advanced.gateway.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.gateway.$touched || forms.advanced.$submitted) && forms.advanced.gateway.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_GATEWAY\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END GATEWAY --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START FAXDETECT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.faxdetect.$touched) && forms.advanced.faxdetect.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FAXDETECT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="faxdetect" placeholder="{{\'APPLICATION_FAXDETECT\' | translate}}" class="form-control" data-ng-model="account.faxdetect" required data-ng-pattern="settings.patternFaxdetect"/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_FAXDETECT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.faxdetect.$touched || forms.advanced.$submitted) && forms.advanced.faxdetect.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.faxdetect.$touched || forms.advanced.$submitted) && forms.advanced.faxdetect.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_FAXDETECT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END FAXDETECT --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START T38TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.t38timeout.$touched) && forms.advanced.t38timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_T38TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="number" name="t38timeout" placeholder="{{\'APPLICATION_T38TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.t38timeout" required min="1000"/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_T38TIMEOUT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.t38timeout.$touched || forms.advanced.$submitted) && forms.advanced.t38timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.t38timeout.$touched || forms.advanced.$submitted) && forms.advanced.t38timeout.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_T38TIMEOUT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END T38TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START TECH --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.$submitted || forms.advanced.tech.$touched) && forms.advanced.tech.$invalid}">\n\t\t\t\t\t\t\t\t\t  <label class="control-label">{{\'APPLICATION_TECHNOLOGY\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t  <ui-select data-ng-model="account.tech" name="tech" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t    <ui-select-match placeholder="{{\'APPLICATION_TECHNOLOGY\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t    <ui-select-choices repeat="tech in techs | filter: $select.search">\n\t\t\t\t\t\t\t\t\t      <div data-ng-bind="tech | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t    </ui-select-choices>\n\t\t\t\t\t\t\t\t\t  </ui-select>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.tech.$touched || forms.advanced.$submitted) && forms.advanced.tech.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- START TECH --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/fax/account/view/view.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-fax"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="/channels/fax/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right" data-ng-show="account"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="account">\n\t\t\t\t\t<a href="#">{{ account.name || account.description }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/account.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ account.name || account.description }}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{ account.phone }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.fax.accounts.view.settings\')}">\n\t\t\t\t\t\t\t<a href="/channels/fax/accounts/view/{{account.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.fax.accounts.view.hooks\')}">\n\t\t\t\t\t\t\t<a href="/channels/fax/accounts/view/{{account.id}}/hooks">\n\t\t\t\t\t\t\t<i class="fa fa-code"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_HOOKS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.fax.accounts.view.dispositions\')}">\n\t\t\t\t\t\t\t<a href="/channels/fax/accounts/view/{{account.id}}/dispositions">\n\t\t\t\t\t\t\t<i class="icon-target"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.includes(\'main.channels.fax.accounts.view.actions\')}">\n\t\t\t\t\t\t\t<a href="/channels/fax/accounts/view/{{account.id}}/actions/list">\n\t\t\t\t\t\t\t<i class="icon-directions"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_ACTIONS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/account/wizard/wizard.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-fax"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t\t<a href="/channels/fax/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n          <wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.formGeneral.$valid)">\n\t\t\t\t\t\t<form name="forms.formGeneral" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.name.$touched) && forms.formGeneral.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formGeneral.name.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.name.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START HEADERINFO --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.headerinfo.$touched) && forms.formGeneral.headerinfo.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HEADERINFO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="headerinfo" placeholder="{{\'APPLICATION_HEADERINFO\' | translate}}" class="form-control" data-ng-model="item.headerinfo" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formGeneral.headerinfo.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.headerinfo.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_HEADERINFO\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HEADERINFO --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TRUNKS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.trunk.$touched) && forms.formGeneral.trunk.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.TrunkName" name="trunk" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_TRUNK\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="trunk.name as trunk in trunks | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div data-ng-bind="trunk.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="trunks.length">\n\t                <h4 class="block">Warning!</h4>\n\t                <p>\n\t                  {{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n\t                </p>\n\t                <p>\n\t                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t                </p>\n\t              </div>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formGeneral.trunk.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.trunk.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START TRUNKS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START LOCALSTATIONID --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formGeneral.$submitted || forms.formGeneral.localstationid.$touched) && forms.formGeneral.localstationid.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LOCALSTATIONID\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="localstationid" placeholder="{{\'APPLICATION_LOCALSTATIONID\' | translate}}" class="form-control" data-ng-model="item.localstationid" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formGeneral.localstationid.$error.required && (forms.formGeneral.$submitted || forms.formGeneral.localstationid.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_LOCALSTATIONID\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LOCALSTATIONID --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_ADVANCED\' | translate}}" canexit="exitValidation(forms.formAdvanced.$valid)">\n\t\t\t\t\t\t<form name="forms.formAdvanced" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START ECM --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t  <label class="control-label">{{\'APPLICATION_ECM\' | translate}}<span class="required" aria-required="true">*</span></label><br>\n\t\t\t\t\t\t\t  <input\n\t\t\t\t\t\t\t    bs-switch\n\t\t\t\t\t\t\t    ng-model="item.ecm"\n\t\t\t\t\t\t\t    type="checkbox"\n\t\t\t\t\t\t\t    switch-active="{{ isActive }}"\n\t\t\t\t\t\t\t    switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t    switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t    switch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t    switch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t    switch-animate="{{ animate }}"\n\t\t\t\t\t\t\t    switch-size="{{ size }}"\n\t\t\t\t\t\t\t    switch-label="{{ label }}"\n\t\t\t\t\t\t\t    switch-icon="{{ icon }}"\n\t\t\t\t\t\t\t    switch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t    switch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t    switch-handle-width="{{ handleWidth }}"\n\t\t\t\t\t\t\t\t\tng-true-value="\'yes\'"\n    \t\t\t\t\t\t\tng-false-value="\'no\'">\n\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_ECM\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ECM --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MINRATE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.minrate.$touched) && forms.formAdvanced.minrate.$invalid}">\n\t\t\t\t\t\t\t  <label class="control-label">{{\'APPLICATION_MINRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t  <ui-select data-ng-model="item.minrate" name="minrate" theme="bootstrap" required>\n\t\t\t\t\t\t\t    <ui-select-match placeholder="{{\'APPLICATION_MINRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t    <ui-select-choices repeat="minrate in rate | filter: $select.search">\n\t\t\t\t\t\t\t      <div data-ng-bind="minrate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t    </ui-select-choices>\n\t\t\t\t\t\t\t  </ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_MINRATE\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formAdvanced.minrate.$error.required && (forms.formAdvanced.$submitted || forms.formAdvanced.minrate.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START MINRATE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MAXRATE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.maxrate.$touched) && forms.formAdvanced.maxrate.$invalid}">\n\t\t\t\t\t\t\t  <label class="control-label">{{\'APPLICATION_MAXRATE\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t  <ui-select data-ng-model="item.maxrate" name="maxrate" theme="bootstrap" required>\n\t\t\t\t\t\t\t    <ui-select-match placeholder="{{\'APPLICATION_MAXRATE\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t    <ui-select-choices repeat="maxrate in rate | filter: $select.search">\n\t\t\t\t\t\t\t      <div data-ng-bind="maxrate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t    </ui-select-choices>\n\t\t\t\t\t\t\t  </ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_MAXRATE\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formAdvanced.maxrate.$error.required && (forms.formAdvanced.$submitted || forms.formAdvanced.maxrate.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START MAXRATE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MODEM --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.modem.$touched) && forms.formAdvanced.modem.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MODEM\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="modem" placeholder="{{\'APPLICATION_MODEM\' | translate}}" class="form-control" data-ng-model="item.modem" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_MODEM\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formAdvanced.modem.$error.required && (forms.formAdvanced.$submitted || forms.formAdvanced.modem.$touched)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MODEM --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START GATEWAY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.gateway.$touched) && forms.formAdvanced.gateway.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_GATEWAY\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="gateway" placeholder="{{\'APPLICATION_GATEWAY\' | translate}}" class="form-control" data-ng-model="item.gateway" required data-ng-pattern="settings.patternGateway"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_GATEWAY\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formAdvanced.gateway.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.gateway.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formAdvanced.gateway.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.gateway.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_GATEWAY\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END GATEWAY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START FAXDETECT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.faxdetect.$touched) && forms.formAdvanced.faxdetect.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FAXDETECT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="faxdetect" placeholder="{{\'APPLICATION_FAXDETECT\' | translate}}" class="form-control" data-ng-model="item.faxdetect" required data-ng-pattern="settings.patternFaxdetect"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_FAXDETECT\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formAdvanced.faxdetect.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.faxdetect.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formAdvanced.faxdetect.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.faxdetect.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_FAXDETECT\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END FAXDETECT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START T38TIMEOUT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.t38timeout.$touched) && forms.formAdvanced.t38timeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_T38TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" name="t38timeout" placeholder="{{\'APPLICATION_T38TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.t38timeout" required min="1000"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_T38TIMEOUT\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formAdvanced.t38timeout.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.t38timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formAdvanced.t38timeout.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.t38timeout.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_T38TIMEOUT\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END T38TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TECH --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formAdvanced.$submitted || forms.formAdvanced.tech.$touched) && forms.formAdvanced.tech.$invalid}">\n\t\t\t\t\t\t\t  <label class="control-label">{{\'APPLICATION_TECHNOLOGY\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t  <ui-select data-ng-model="item.tech" name="tech" theme="bootstrap" required>\n\t\t\t\t\t\t\t    <ui-select-match placeholder="{{\'APPLICATION_TECHNOLOGY\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t    <ui-select-choices repeat="tech in techs | filter: $select.search">\n\t\t\t\t\t\t\t      <div data-ng-bind="tech | highlight: $select.search"></div>\n\t\t\t\t\t\t\t    </ui-select-choices>\n\t\t\t\t\t\t\t  </ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formAdvanced.tech.$touched || forms.formAdvanced.$submitted) && forms.formAdvanced.tech.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START TECH --\x3e\n\n\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t</wizard>\n\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/inbox/message/info.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body"  data-ng-init="initInfo()">\n  <div class="form-group" ng-if="data">\n    <json-formatter json="data" open="1"></json-formatter>\n  </div>\n  <div class="note note-warning" data-ng-hide="data">\n    <h4 class="block"></h4>\n    <p>\n      {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n    </p>\n  </div>\n\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/fax/inbox/message/message.directive.html",'<div class="message">\n  <div class="row">\n    <div class="col-md-6">\n      <span class="bold">From: </span>\n      [<a href="" data-ng-click="openContact(message.from)">{{message.from}}</a>]\n      <br>\n      <span class="bold">To: </span>\n      [<a href="" data-ng-click="openContact(message.to)">{{message.to}}</a>]\n    </div>\n    <div class="col-md-6">\n      <span class="pull-right">\n        <a ng-click="info(message)"><i class="icon-info font-blue"></i></a>\n      </span>\n      <span class="pull-right" data-ng-show="message.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n    </div>\n  </div>\n  <br>\n  <span class="todo-tasklist-date">\n    <span class="pull-right" data-ng-if="message.status!==\'RECEIVED\'" data-ng-switch="message.status" uib-tooltip="{{\'APPLICATION_PAGE_TRANSFERRED\' | translate}}: {{message.pagestransferred}} - {{\'APPLICATION_RETRY\' | translate}}: {{message.retry}}">\n      <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe"> {{message.status | uppercase}}\n        <i class="fa fa-warning"></i>\n      </a>\n      <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="retry(message.id)"> {{message.status | uppercase}}\n        <i class="fa fa-times"></i>\n      </a>\n      <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n    </span>\n    <span class="pull-right" data-ng-if="message.status===\'RECEIVED\'" uib-tooltip="{{\'APPLICATION_PAGE_TRANSFERRED\' | translate}}: {{message.pagestransferred}}">\n      <a href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n    </span>\n    <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n  </span>\n  <hr data-ng-if="message.FaxAttachments.length">\n  <div data-ng-repeat="faxAttachment in message.FaxAttachments">\n    <strong>{{faxAttachment.name}}</strong>\n    <a target="_self" download="{{faxAttachment.name}}" href="api/fax/attachments/{{faxAttachment.id}}">\n      <i class="icon-cloud-download"></i>\n    </a>\n  </div>\n</div>\n'),t.put("app/channels/fax/inbox/note/note.directive.html",'<div class="note">\n  <div class="row">\n    <div class="col-md-6">\n      <a type="button" name="button" data-ng-if="::(Auth.getCurrentUser().id == message.UserId)" data-ng-click="deleteNote()">\n        <i class="fa fa-trash-o" style="color: red;"></i>\n      </a>\n\n      <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n    </div>\n    <div class="col-md-6">\n      <span class="pull-right" data-ng-show="message.User">{{\'APPLICATION_ADD_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n    </div>\n  </div>\n  <hr>\n  <span class="body text-left" data-ng-bind-html="message.text" style="white-space: pre-wrap;"></span>\n</div>\n'),t.put("app/channels/fax/inbox/note/note.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_NOTES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n    <div class="form-group">\n      <textarea data-ng-model="item.text" name="text" rows="10" style="resize: none; width: 100%;"></textarea>\n    </div>\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/fax/inbox/room/room.directive.html",'\x3c!-- BEGIN TODO CONTENT --\x3e\n<div class="todo-content" data-ng-init="initForm();">\n\t<div class="portlet light">\n\t\t<div class="portlet-title">\n\t\t\t<div class="caption">\n\t\t\t\t<button data-ng-if="(!forms.compose.from.$invalid && !forms.compose.to.$invalid && uploader.queue.length) && faxRoom.status !== \'CLOSED\'" class="btn btn-sm btn-default green-meadow" data-ng-click="sendFax()">\n\t\t\t\t\t<i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n\t\t\t\t</button>\n\t\t\t\t<span data-ng-if="(!forms.compose.from.$invalid && !forms.compose.to.$invalid && uploader.queue.length) && faxRoom && faxRoom.status !== \'CLOSED\'"> | </span>\n\t\t\t\t<span data-ng-if="faxRoom" class="label label-default"> #{{faxRoom.id}} {{faxRoom.status}}</span>\n\t\t\t\t<span data-ng-if="faxRoom"> | </span>\n\t\t\t\t<span data-ng-if="faxRoom" class="caption-subject font-green-sharp bold">{{faxRoom.contact}}</span>\n\t\t\t</div>\n\t\t\t<div class="actions" data-ng-switch="faxRoom.status">\n\t\t\t\t<button class="btn btn-icon-only yellow" data-ng-if="faxRoom" data-ng-click="loadNote()" data-ng-hide="faxRoom.status == \'CLOSED\'" title="{{\'APPLICATION_NOTES\' | translate}}">\n\t\t\t\t\t<i class="fa fa-sticky-note"></i>\n\t\t\t\t</button>\n\t\t\t\t<button class="file-upload" data-ng-hide="faxRoom.status == \'CLOSED\'">\n\t\t\t\t\t<i class="fa fa-paperclip"></i> <input type="file" data-ng-if="uploader" data-ng-hide="faxRoom.status == \'CLOSED\'" nv-file-select uploader="uploader" multiple class="file-input" title="{{\'APPLICATION_ATTACHMENTS\' | translate}}">\n\t\t\t\t</button>\n\t\t\t\t\x3c!-- UPDATE SECTION START --\x3e\n\t\t\t\t<button data-ng-class="faxRoom.status == \'CLOSED\' ? \'grey-cascade\' : \'btn-success\'" class="btn btn-icon-only" data-ng-hide="faxRoom.status == \'CLOSED\' && faxRoom.disposition" data-ng-if="faxRoom" data-ng-click="closeRoom()" title="{{\'APPLICATION_STATUS\' | translate}}">\n\t\t\t\t\t<i data-ng-class="faxRoom.status == \'CLOSED\' ? \'icon-target\' : \'fa fa-upload\'"></i>\n\t\t\t\t</button>\n\t\t\t\t\x3c!-- UPDATE SECTION END --\x3e\n\t\t\t\t<button class="btn default btn-icon-only" data-ng-if="faxRoom && faxRoom.status !== \'CLOSED\'" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n\t\t\t\t\t<i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t<div class="row">\n\t\t\t\t<div data-ng-show="panelLeft" data-ng-class="panelLeft">\n\t\t\t\t\t<div class="form">\n\t\t\t\t\t\t\x3c!-- START TAGS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-if="faxRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)" data-ng-disabled="faxRoom.status == \'CLOSED\'">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n\t\t\t\t\t\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TAGS --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<hr data-ng-if="faxRoom && faxRoom.status !== \'CLOSED\'">\n\n\t\t\t\t\t\x3c!-- END TAGS --\x3e\n\n\t\t\t\t\t<div id="mail-box">\n\t\t\t\t\t\t<ul class="chats">\n\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\tdata-ng-switch="faxMessage.status"\n\t\t\t\t\t\t\tdata-ng-class="{\'in\': faxMessage.status == \'RECEIVED\', \'out\': faxMessage.status == \'SENT\' || faxMessage.status == \'SENDING\' || faxMessage.status == \'FAILED\' || faxMessage.status == \'NOTE\'}"\n\t\t\t\t\t\t\tdata-ng-repeat="faxMessage in faxRoom.FaxMessages | orderBy:\'-createdAt\'">\n\t\t\t\t\t\t\t\t<div class="avatar" data-ng-class="faxMessage.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n\t\t\t\t\t\t\t\t<ng-letter-avatar\n\t\t\t\t\t\t\t\tdata-ng-if="faxMessage.UserId"\n\t\t\t\t\t\t\t\theight="40"\n\t\t\t\t\t\t\t\twidth="40"\n\t\t\t\t\t\t\t\tfontsize="25"\n\t\t\t\t\t\t\t\tdata="{{faxMessage.User.fullname}}"\n\t\t\t\t\t\t\t\tavatarcustombgcolor="#B0B0B0"\n\t\t\t\t\t\t\t\tavatarcustomborder="border:2px solid #3399CC"\n\t\t\t\t\t\t\t\tcharCount="2"\n\t\t\t\t\t\t\t\tshape="round"></ng-letter-avatar>\n\t\t\t\t\t\t\t\t<ng-letter-avatar\n\t\t\t\t\t\t\t\tdata-ng-if="!faxMessage.UserId"\n\t\t\t\t\t\t\t\theight="40"\n\t\t\t\t\t\t\t\twidth="40"\n\t\t\t\t\t\t\t\tfontsize="25"\n\t\t\t\t\t\t\t\tdata="{{faxMessage.from}}"\n\t\t\t\t\t\t\t\tavatarcustombgcolor="#B0B0B0"\n\t\t\t\t\t\t\t\tavatarcustomborder="border:2px solid #EA4C61"\n\t\t\t\t\t\t\t\tcharCount="1"\n\t\t\t\t\t\t\t\tshape="round"></ng-letter-avatar>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<fax-note message="faxMessage" ng-switch-when="NOTE"></fax-note>\n\t\t\t\t\t\t\t\t<fax-message message="faxMessage" list-id="faxRoom.FaxAccount.ListId" ng-switch-default></fax-message>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div data-ng-class="panelRight">\n\t\t\t\t\t<div class="note note-info" data-ng-if="faxRoom && faxRoom.status == \'CLOSED\'">\n\t\t\t\t\t\t<h4 class="block"><i class="icon-info"></i> {{\'MESSAGE_FAX_ROOM_CLOSED\' | translate}}!</h4>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<strong>{{\'MESSAGE_FAX_ROOM_CLOSED_DETAILS\' | translate}}.</strong>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<hr>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{faxRoom.disposition}}</strong>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{faxRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="faxRoom.updatedAt"></span>)\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<form name="forms.compose" data-ng-submit="sendFax()" class="form-horizontal" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START HEAD --\x3e\n\t\t\t\t\t\t<div class="form">\n\n\t\t\t\t\t\t\t<v-accordion class="vAccordion--default" ng-if="faxRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t  <v-pane expanded="expanded">\n\t\t\t\t\t\t\t    <v-pane-header>\n\t\t\t\t\t\t\t      <i class="icon-people"></i> From: {{form.from}}, To: {{form.to[0].fax}}\n\t\t\t\t\t\t\t    </v-pane-header>\n\t\t\t\t\t\t\t    <v-pane-content>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START FROM --\x3e\n\t\t\t\t\t\t\t      <div class="form-group" data-ng-if="faxRoom.status !== \'CLOSED\'" data-ng-class="{\'has-error\': forms.compose.from.$invalid}">\n\t\t\t\t\t\t\t        <div class="col-md-12">\n\t\t\t\t\t\t\t          <div class="row">\n\t\t\t\t\t\t\t            <div class="col-md-1">\n\t\t\t\t\t\t\t              <label class="control-label">From:</label>\n\t\t\t\t\t\t\t            </div>\n\t\t\t\t\t\t\t            <div class="col-md-11">\n\t\t\t\t\t\t\t              <ui-select data-ng-model="form.from" data-ng-change="setList($select.selected.ListId)" theme="bootstrap" name="from" required>\n\t\t\t\t\t\t\t                <ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t                <ui-select-choices repeat="faxAccount.localstationid as faxAccount in faxAccounts | filter: $select.search">\n\t\t\t\t\t\t\t                  <div data-ng-bind-html="faxAccount.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t                  <small data-ng-bind-html="faxAccount.localstationid | highlight: $select.search"></small>\n\t\t\t\t\t\t\t                </ui-select-choices>\n\t\t\t\t\t\t\t              </ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.compose.from.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t                <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t              </span>\n\t\t\t\t\t\t\t            </div>\n\t\t\t\t\t\t\t          </div>\n\t\t\t\t\t\t\t        </div>\n\t\t\t\t\t\t\t      </div>\n\t\t\t\t\t\t\t      \x3c!-- END FROM --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START TO --\x3e\n\t\t\t\t\t\t\t      <div class="form-group" data-ng-if="faxRoom.status !== \'CLOSED\'" data-ng-class="{\'has-error\': forms.compose.to.$invalid}">\n\t\t\t\t\t\t\t        <div class="col-md-12">\n\t\t\t\t\t\t\t          <div class="row">\n\t\t\t\t\t\t\t            <div class="col-md-1">\n\t\t\t\t\t\t\t              <label class="control-label">To:</label>\n\t\t\t\t\t\t\t            </div>\n\t\t\t\t\t\t\t            <div class="col-md-11">\n\t\t\t\t\t\t\t              <tags-input name="to" ng-model="form.to" type="text" display-property="fax" max-tags="1" min-tags="1">\n\t\t\t\t\t\t\t                <auto-complete source="getContacts($query)"></auto-complete>\n\t\t\t\t\t\t\t              </tags-input>\n\t\t\t\t\t\t\t              <span data-ng-show="forms.compose.to.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t                <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_TO_LIMIT\' | translate}}.\n\t\t\t\t\t\t\t              </span>\n\t\t\t\t\t\t\t            </div>\n\t\t\t\t\t\t\t          </div>\n\t\t\t\t\t\t\t        </div>\n\t\t\t\t\t\t\t      </div>\n\t\t\t\t\t\t\t      \x3c!-- END TO --\x3e\n\n\t\t\t\t\t\t\t    </v-pane-content>\n\t\t\t\t\t\t\t  </v-pane>\n\t\t\t\t\t\t\t</v-accordion>\n\n\t\t\t\t\t\t\t\x3c!-- START ATTACH --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="uploader  && (faxRoom.status !== \'CLOSED\')">\n\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t<hr ng-if="uploader.queue.length">\n\t\t\t\t\t\t\t\t\t<table class="table">\n\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t<tr ng-repeat="item in uploader.queue">\n\t\t\t\t\t\t\t\t\t\t\t\t<td style="border-top:none"><strong>{{ item.file.name | truncate: 5: \'...\': true}}</strong></td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td style="border-top:none" ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td style="border-top:none" ng-show="uploader.isHTML5">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress" style="margin-bottom: 0;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress-bar" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td style="border-top-style:none" class="text-center">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td style="border-top-style:none" nowrap>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ATTACH --\x3e\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n\x3c!-- END TODO CONTENT --\x3e\n'),t.put("app/channels/fax/inbox/status/status.modal.html",'<div class="modal-header">\n  <button data-ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">&times;</button>\n  <h4 data-ng-if="modal.title" data-ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n  <p data-ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n  <form name="form" novalidate data-ng-init="initDisposition()">\n    <div class="form-group">\n      <ui-select data-ng-model="item.disposition" name="disposition" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n        <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n        <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n          <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n    </div>\n    <div class="note note-warning" data-ng-if="dispositions.length < 1">\n      <h4 class="block">Warning!</h4>\n      <p>\n        {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n      </p>\n    </div>\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/fax/inbox/view/account/list/list.html",'\x3c!-- BEGIN Portlet PORTLET--\x3e\n<div class="portlet light" data-ng-init="initView()">\n\t<div class="portlet-title">\n\t\t<div class="caption">\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="actions">\n\t\t\t<a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n\t\t\t\t<i class="fa fa-refresh"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n\t\t\t\t<i class="fa fa-trash"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only btn-success" data-ng-click="disposeItems();" data-ng-show="id.length">\n\t\t\t\t<i class="fa fa-upload"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n\t\t\t\t<i class="fa fa-tags"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t</a>\n\t\t</div>\n\t</div>\n\t<div class="portlet-title" data-ng-show="tags.length">\n\t\t\x3c!-- START TAGS --\x3e\n\t\t<div class="form-group">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t<ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n\t\t\t\t\t\t<ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search">\n\t\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END TAGS --\x3e\n\t</div>\n\t<div class="portlet-body">\n\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid-inbox">\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END Portlet PORTLET--\x3e\n'),t.put("app/channels/fax/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TRANSPORT --\x3e\n  <div class="form-group">\n    <form name="form" novalidate>\n      \x3c!-- START TRANSPORT --\x3e\n      <div class="form-group">\n        <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n          <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n          <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n            {{agent.fullname}}\n          </ui-select-choices>\n        </ui-select>\n        <div class="note note-warning" data-ng-hide="agents">\n          <h4 class="block">Warning!</h4>\n          <p>\n            {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n          </p>\n          <p>\n            {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n          </p>\n        </div>\n      </div>\n      \x3c!-- END TRANSPORT --\x3e\n    </form>\n  </div>\n  \x3c!-- END TRANSPORT --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/fax/inbox/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<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-spinner"></i>\n          <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n        <li>\n          <i class="fa fa-fax"></i>\n          <a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-note"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_INBOX\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row inbox">\n\t<div class="col-md-3">\n\t\t<ul class="inbox-nav margin-bottom-10">\n\t\t\t<li data-ng-class="{active: $stateParams.id == faxAccount.id}" data-ng-repeat="faxAccount in faxAccounts">\n\t\t\t\t<a href="/channels/fax/inbox/view/account/{{faxAccount.id}}/list" class="btn">\n\t\t\t\t\t<i class="icon-notebook"></i> {{faxAccount.name}}\n\t\t\t\t</a>\n\t\t\t\t<b></b>\n\t\t\t</li>\n\t\t</ul>\n    <div class="note note-warning" data-ng-hide="faxAccounts.length">\n      <h4 class="block">Warning!</h4>\n      <p>\n        {{ \'MESSAGE_NO_AVAILABLE_ACCOUNTS\' | translate }}\n      </p>\n      <p>\n        {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/fax/accounts/list">{{\'APPLICATION_ACCOUNTS\' | translate}}</a>\n      </p>\n    </div>\n\t</div>\n\n\t<div class="col-md-9" data-ng-init="initView()">\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div class="room-content">\n\t\t\t<div ui-view>\n\t\t\t\t<div class="note note-info">\n\t\t\t\t\t<h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n'),t.put("app/channels/fax/inbox/view/view.status.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ modal.title | translate }}</h3>\n</div>\n<div class="modal-body">\n  <p data-ng-if="modal.text" data-ng-bind="modal.text"></p>\n  <div data-ng-if="modal.html" data-ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n  <button data-ng-repeat="button in modal.buttons"\n  data-ng-class="button.classes"\n  data-ng-click="button.click($event)"\n  data-ng-bind="button.text | translate" class="btn"></button>\n</div>\n'),t.put("app/channels/fax/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TRANSPORT --\x3e\n  <div class="form-group">\n    <form name="form" novalidate>\n      \x3c!-- START TAGS --\x3e\n      <div class="form-group">\n        <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n          <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n          <ui-select-choices repeat="tag in tags | filter: $select.search">\n            {{tag}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n      \x3c!-- END TAGS --\x3e\n    </form>\n  </div>\n  \x3c!-- END TRANSPORT --\x3e\n</div>\n<div class="modal-footer">\n  <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n  \x3c!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> --\x3e\n</div>\n'),t.put("app/channels/fax/queue/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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" data-ng-pattern="settings.patternName" required />\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.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="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START STRATEGY --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.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 | uppercase}}</ui-select-match>\n        <ui-select-choices repeat="strategy in strategies | filter: $select.search">\n          <div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END STRATEGY --\x3e\n\n    \x3c!-- START TIMEOUT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.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 min="1"/>\n      <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TIMEOUT --\x3e\n\n    \x3c!-- START AGENTS--\x3e\n    <div class="form-body" data-ng-init="getTeams()">\n      <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n      <div class="input-group input-small mbottom20">\n        <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n        <div class="spinner-buttons input-group-btn btn-group-vertical">\n          <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n            <i class="fa fa-angle-up"></i>\n          </button>\n          <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n            <i class="fa fa-angle-down"></i>\n          </button>\n        </div>\n      </div>\n      <div class="form-group last">\n        <div class="col-md-12" id="multi-select-team">\n        </div>\n      </div>\n    </div>\n    \x3c!-- END AGENTS--\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/fax/queue/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-fax"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t\t<a href="/channels/fax/queues/lis">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t\t\t<form action="index.html" class="form-horizontal form-row-seperated">\n\t\t\t\t\t<div class="form-body">\n\t\t\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n\t\t\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-team">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END FORM--\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/fax/queue/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getQueue()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-fax"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/channels/fax/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="queue" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="queue">\n\t\t\t\t\t<a href="#">{{queue.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{queue.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.fax.queues.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/fax/queues/view/{{queue.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.fax.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/fax/queues/view/{{queue.id}}/agents">\n\t\t\t\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_AGENTS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/queue/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateFaxQueue()" novalidate>\n\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\x3c!-- START STRATEGY --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n\t\t\t\t\t\t<ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="strategy in strategies | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END STRATEGY --\x3e\n\n\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}</label>\n\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" min="1" data-ng-model="queue.timeout"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t<input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/fax/realtime/view/agent/agent.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n  <div>{{agent.ipaddr}}:{{agent.port}}</div>\n  <div>{{agent.fullcontact}}</div>\n  <div>{{agent.useragent}}</div>\n  <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n  {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/fax/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    <div class="form-group row">\n  <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n  <div class="col-md-10">\n    <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n      <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.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  </div>\n</div>\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/fax/realtime/view/application/application.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initApplications()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/fax/realtime/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-fax"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_FAX\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-energy"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t<div>\n\t\t\t<nav class="navbar navbar-default" role="navigation">\n\t\t\t\t<div class="collapse navbar-collapse">\n\t\t\t\t\t<ul class="nav navbar-nav">\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.fax.realtime.view.agents\')}">\n\t\t\t\t\t\t\t<a href="/channels/fax/realtime/view/agents">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_AGENTS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.fax.realtime.view.applications\')}">\n\t\t\t\t\t\t\t<a href="/channels/fax/realtime/view/applications">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_APPLICATIONS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href="#">\n\t\t\t\t\t\t\t\t<b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}}  </b><input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="showTimers"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="showTimers"\n\t\t\t\t\t\t\t\tswitch-active="{{ timerSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ timerSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ timerSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ timerSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ timerSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ timerSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ timerSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ timerSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ timerSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</nav>\n\t\t</div>\n\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/account/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n\t\t\t\t\t\t\t<i class="icon-reload"></i>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/channels/mail/accounts/wizard">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/account/view/action/list/list.html",'<div class="row" data-ng-init="initActons()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/channels/mail/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/mail/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.settings" ng-submit="updateItem()" novalidate>\n\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.MailQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/mail/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t</div>\n\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'replyMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\x3c!-- START REPLYMAIL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data1" name="type" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.key | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.key | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END REPLYMAIL --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler" maxlength="160"  name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t</div>\n\t\t\t\t\t<button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n\n\t\t\t\t\t\t<form name="forms.action" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.MailQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/mail/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'replyMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\t\t\x3c!-- START REPLYMAIL --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data1" name="type" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.key | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.key | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.type.$touched || forms.action.$submitted) && forms.action.type.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END REPLYMAIL --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler"  maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <input type="checkbox" data-ng-model="application.alwaysTime"> --\x3e\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n      <div class="">\n        \x3c!-- <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" data-ng-pattern="/^[a-zA-Z0-9]*$/" required/> --\x3e\n        <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n        <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n        </span>\n        \x3c!-- <span data-ng-show="form.form.$touched && form.form.$error.pattern" class="help-block help-block-error">\n          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PATTERN\' | translate}}.\n        </span> --\x3e\n      </div>\n      \x3c!-- <div class="help-block">\n        {{\'MESSAGE_ALLOWED_NUMBERS_AND_LETTERS\' | translate}}\n\t\t\t</div> --\x3e\n    </div>\n    \x3c!-- END NAME --\x3e\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/mail/account/view/disposition/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions actions-md">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n\t\t\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t<div class="row" data-ng-hide="dispositions.length">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div class="note note-info">\n\t\t\t\t\t\t\t\t<h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="row" data-ng-repeat="disposition in dispositions">\n\t\t\t\t\t\t<div class="col-md-12 form-group">\n\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t<button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t\t\t\t\t\t<button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/mail/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- ACCEPT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItemMailAccount()" novalidate>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl"  ng-required="account.acceptMethod"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row" ng-repeat = "action in account.actions">\n\t\t\t\t\t\t\t\t\t<div  ng-switch="action.action">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-switch-when="pause">\n\t\t\t\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-4">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-change="resetActionData(action)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="action.enabled"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-if="action.enabled" class="form-group col-md-8">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select  name="action" data-ng-model="action.type"  theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ACCEPT TAB --\x3e\n\t\t\t\t\t\x3c!-- START REJECT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItemMailAccount()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END REJECT TAB --\x3e\n\t\t\t\t\t\x3c!-- START CLOSE TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.close" data-ng-submit="forms.close.$valid && updateItemMailAccount()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CLOSE TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/mail/account/view/other/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_OTHER\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_SIGNATURE\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t<span us-spinner spinner-key="mail-spinner-grid" spinner-start-active="false"></span>\n\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItemMailAccount()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START WHITE LABEL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.whiteLabel.$touched || forms.info.$submitted) && forms.info.whiteLabel.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_WHITE_LABEL\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="whiteLabel" placeholder="{{\'APPLICATION_WHITE_LABEL\' | translate}}" class="form-control" data-ng-model="account.whiteLabel" data-ng-disabled="!license.custom"/></textarea>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.whiteLabel.$touched || forms.info.$submitted) && forms.info.whiteLabel.$invalid && forms.info.whiteLabel.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END WHITE LABEL --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-disabled="!license.custom"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.signature" data-ng-submit="updateItemMailAccount()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START SIGNATURE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<div ckeditor="options" ng-model="account.signature"></div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END WHITE LABEL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/mail/account/view/setting/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li data-ng-if="account.MailServerIn">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">IMAP</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">SMTP</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t<span us-spinner spinner-key="mail-spinner-grid" spinner-start-active="false"></span>\n\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItemMailAccount()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.address" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid && forms.info.address.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ADDRESS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START LIST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="license.cm">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group">\n\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="list.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LIST --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TEMPLATE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group">\n\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.TemplateId" name="template" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" data-ng-click="account.TemplateId = null" class="btn btn-default">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TEMPLATE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START FIDELITY --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group" data-ng-if="account.MailServerIn">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.fidelity"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END FIDELITY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SERVICE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SERVICE\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.service"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SERVICE --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t\t\x3c!-- IMAP TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2" data-ng-if="account.MailServerIn">\n\t\t\t\t\t\t<div class="note note-danger" data-ng-show="account.MailServerIn.state === \'DISCONNECTED\' || account.MailServerIn.state === \'ERROR\'">\n\t\t\t\t\t\t\t<p> ERROR </p>\n\t\t\t\t\t\t\t<json-formatter open="1" json="account.MailServerIn.source"></json-formatter>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="note note-success" data-ng-show="account.MailServerIn.state === \'CONNECTED\'">\n\t\t\t\t\t\t\t<p> CONNECTED </p>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="note note-info" data-ng-show="account.MailServerIn.state === \'CONNECTING\'">\n\t\t\t\t\t\t\t<p> TRYING... </p>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<form name="forms.formIn" data-ng-submit="forms.formIn.$valid && updateItemMailServerIn()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START HOST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.host.$touched || forms.formIn.$submitted) && forms.formIn.host.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.host" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formIn.host.$touched || forms.formIn.$submitted) && forms.formIn.host.$invalid && forms.formIn.host.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HOST --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.username.$touched || forms.formIn.$submitted) && forms.formIn.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formIn.username.$touched || forms.formIn.$submitted) && forms.formIn.username.$invalid && forms.formIn.username.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.password.$touched || forms.formIn.$submitted) && forms.formIn.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formIn.password.$touched || forms.formIn.$submitted) && forms.formIn.password.$invalid && forms.formIn.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PORT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.port" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid && forms.formIn.port.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formIn.port.$touched || forms.formIn.$submitted) && forms.formIn.port.$invalid && forms.formIn.port.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PORT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MAILBOX --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.mailbox"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MAILBOX --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SEARCH FILTER --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SEARCH_FILTER\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.MailServerIn.filter" name="filter" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="filter in [\'UNSEEN\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="filter | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START SEARCH FILTER --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START connTimeout --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" name="connTimeout" placeholder="{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.connTimeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END connTimeout --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START authTimeout --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTH_TIMEOUT\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" name="authTimeout" placeholder="{{\'APPLICATION_AUTH_TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.authTimeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END authTimeout --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DELETE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DELETE_MAIL_FROM_SERVER\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.MailServerIn.delete"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DELETE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SSL --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">SSL</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.MailServerIn.ssl"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SSL --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START Keepalive --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">Keepalive</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.MailServerIn.keepalive"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END Keepalive --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START POLLING --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_POLLING\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.MailServerIn.polling"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END POLLING --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START POLLING_TIMEOUT --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div data-ng-if="account.MailServerIn.polling" class="form-group" data-ng-class="{\'has-error\': (forms.formOut.pollingTimeout.$touched || forms.formOut.$submitted) && forms.formOut.pollingTimeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_POLLING_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="60" name="pollingTimeout" placeholder="{{\'APPLICATION_POLLING_TIMEOUT\' | translate}}" class="form-control" data-ng-model="account.MailServerIn.pollingTimeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.pollingTimeout.$invalid && forms.formOut.pollingTimeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.pollingTimeout.$invalid && forms.formOut.pollingTimeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END POLLING_TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END IMAP TAB --\x3e\n\n\t\t\t\t\t\x3c!-- SMTP TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\n\t\t\t\t\t\t<div class="note note-danger" data-ng-show="account.MailServerOut.state === \'DISCONNECTED\' || account.MailServerOut.state === \'ERROR\'">\n\t\t\t\t\t\t\t<p> ERROR </p>\n\t\t\t\t\t\t\t<json-formatter open="1" json="account.MailServerOut.source"></json-formatter>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="note note-success" data-ng-show="account.MailServerOut.state === \'CONNECTED\'">\n\t\t\t\t\t\t\t<p> CONNECTED </p>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="note note-info" data-ng-show="account.MailServerOut.state === \'CONNECTING\'">\n\t\t\t\t\t\t\t<p> TRYING... </p>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<form name="forms.formOut" data-ng-submit="forms.formOut.$valid && updateItemMailServerOut()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START HOST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.host.$touched || forms.formOut.$submitted) && forms.formOut.host.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.host" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formOut.host.$touched || forms.formOut.$submitted) && forms.formOut.host.$invalid && forms.formOut.host.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HOST --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.username.$touched || forms.formOut.$submitted) && forms.formOut.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formOut.username.$touched || forms.formOut.$submitted) && forms.formOut.username.$invalid && forms.formOut.username.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.password.$touched || forms.formOut.$submitted) && forms.formOut.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formOut.password.$touched || forms.formOut.$submitted) && forms.formOut.password.$invalid && forms.formOut.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PORT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.formOut.port.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.MailServerOut.port" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid && forms.formOut.port.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formOut.form.$touched || forms.formOut.$submitted) && forms.formOut.port.$invalid && forms.formOut.port.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PORT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SSL --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">SSL</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.MailServerOut.ssl"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SSL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t\t<input class="btn blue-madison" type="button" value="Test" data-ng-click="test()"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END SMTP TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/mail/account/view/view.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="/channels/mail/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right" data-ng-show="account"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="account">\n\t\t\t\t\t<a href="#">{{ account.description || account.name }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar" data-ng-init="initView()">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img ng-src="assets/images/media/account.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ account.description || account.name }}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{account.email}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.mail.accounts.view.settings\')}">\n\t\t\t\t\t\t\t<a href="/channels/mail/accounts/view/{{account.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.mail.accounts.view.hooks\')}" data-ng-if="account.MailServerIn">\n\t\t\t\t\t\t\t<a href="/channels/mail/accounts/view/{{account.id}}/hooks">\n\t\t\t\t\t\t\t<i class="fa fa-code"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_HOOKS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.mail.accounts.view.dispositions\')}" data-ng-if="account.MailServerIn">\n\t\t\t\t\t\t\t<a href="/channels/mail/accounts/view/{{account.id}}/dispositions">\n\t\t\t\t\t\t\t<i class="icon-target"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.includes(\'main.channels.mail.accounts.view.actions\')}" data-ng-if="account.MailServerIn">\n\t\t\t\t\t\t\t<a href="/channels/mail/accounts/view/{{account.id}}/actions/list">\n\t\t\t\t\t\t\t<i class="icon-directions"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_ACTIONS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.includes(\'main.channels.mail.accounts.view.other\')}" data-ng-if="account.MailServerIn">\n\t\t\t\t\t\t\t<a href="/channels/mail/accounts/view/{{account.id}}/other">\n\t\t\t\t\t\t\t<i class="icon-equalizer"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_OTHER\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div ui-view class="profile-content"></div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n\x3c!-- END PAGE CONTENT--\x3e\n</div>\n'),t.put("app/channels/mail/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN PAGE HEADER--\x3e\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="/channels/mail/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t\x3c!-- END PAGE HEADER--\x3e\n\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n\t\t\t\t\t\t<form name="forms.info" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid && forms.info.address.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ADDRESS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="IMAP" canexit="formValidation(forms.in.$valid)">\n\t\t\t\t\t\t<form name="forms.in" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START HOST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.in.host.$touched || forms.in.$submitted) && forms.in.host.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INCOMING_MAIL_SERVER\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.host" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.host.$touched || forms.in.$submitted) && forms.in.host.$invalid && forms.in.host.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HOST --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.in.username.$touched || forms.in.$submitted) && forms.in.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.username" name="username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.username.$touched || forms.in.$submitted) && forms.in.username.$invalid && forms.in.username.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.in.password.$touched || forms.in.$submitted) && forms.in.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.password.$touched || forms.in.$submitted) && forms.in.password.$invalid && forms.in.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PORT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.port" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid && forms.in.port.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.port.$touched || forms.in.$submitted) && forms.in.port.$invalid && forms.in.port.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PORT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MAILBOX --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.mailbox"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MAILBOX --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SEARCH FILTER --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SEARCH_FILTER\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.MailServerIn.filter" name="filter" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="filter in [\'UNSEEN\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div data-ng-bind="filter | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START SEARCH FILTER --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START connTimeout --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" name="connTimeout" placeholder="{{\'APPLICATION_CONNECTION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.connTimeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.connTimeout.$touched || forms.in.$submitted) && forms.in.connTimeout.$invalid && forms.in.connTimeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END connTimeout --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START authTimeout --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTH_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" name="authTimeout" placeholder="{{\'APPLICATION_AUTH_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.MailServerIn.authTimeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.in.authTimeout.$touched || forms.in.$submitted) && forms.in.authTimeout.$invalid && forms.in.authTimeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END authTimeout --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DELETE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DELETE_MAIL_FROM_SERVER\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="item.MailServerIn.delete"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DELETE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SSL --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">SSL</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="item.MailServerIn.ssl"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SSL --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START Keepalive --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">Keepalive</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="item.MailServerIn.keepalive"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END Keepalive --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="SMTP" canexit="formValidation(forms.out.$valid)">\n\t\t\t\t\t\t<form name="forms.out" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START HOST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.out.host.$touched || forms.out.$submitted) && forms.out.host.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OUTGOING_MAIL_SERVER\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.host" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.out.host.$touched || forms.out.$submitted) && forms.out.host.$invalid && forms.out.host.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END HOST --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.out.username.$touched || forms.out.$submitted) && forms.out.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.out.username.$touched || forms.out.$submitted) && forms.out.username.$invalid && forms.out.username.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.out.password.$touched || forms.out.$submitted) && forms.out.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.out.password.$touched || forms.out.$submitted) && forms.out.password.$invalid && forms.out.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PORT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.out.port.$touched || forms.out.$submitted) && forms.out.port.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.MailServerOut.port" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(out.$touched || forms.out.$submitted) && forms.out.port.$invalid && forms.out.port.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(out.$touched || forms.out.$submitted) && forms.out.port.$invalid && forms.out.port.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PORT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SSL --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">SSL</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="item.MailServerOut.ssl"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SSL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="goNext()"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/inbox/message/info.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body"  data-ng-init="initInfo()">\n  <div class="form-group" ng-if="data">\n    <json-formatter json="data" open="1"></json-formatter>\n  </div>\n  <div class="note note-warning" data-ng-hide="data">\n    <h4 class="block"></h4>\n    <p>\n      {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n    </p>\n  </div>\n\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/mail/inbox/message/message.directive.html",'<div class="message">\n  <div class="row">\n    <div class="col-md-12">\n      <span class="bold">From: </span>\n      <a href="" data-ng-click="openContact(message.from[0])">{{message.from[0]}} </a>\n      <br>\n      <span class="bold">To: </span>\n      <a href="" data-ng-click="openContact(to)" data-ng-repeat="to in message.to">{{to}}<span data-ng-if="!$last">, </span></a>\n      <br>\n      <span data-ng-if="message.cc.length" class="bold">Cc: </span>\n      <a href="" data-ng-click="openContact(cc)" data-ng-repeat="cc in message.cc">{{cc}}<span data-ng-if="!$last">, </span></a>\n      <br>\n      <span data-ng-if="message.bcc.length" class="bold">Bcc: </span>\n      <a href="" data-ng-click="openContact(bcc)" data-ng-repeat="cc in message.bcc">{{bcc}}<span data-ng-if="!$last">, </span></a>\n    </div>\n  <div class="row">\n    <div class="col-md-12">\n      <span class="pull-right" data-ng-if="message.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n      <span class="pull-right" data-ng-if="message.auto && !message.voiceSource">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>System</strong></span>\n      <span class="pull-right" data-ng-if="message.auto && message.voiceSource">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>Cally &#178;</strong>\n        <a ng-click="info(message.voiceSource)"><i class="icon-info font-blue"></i>\n        </a>\n      </span>\n    </div>\n  </div>\n  <br>\n  <span class="todo-tasklist-date">\n    <span class="pull-right" data-ng-switch="message.status" data-ng-if="message.status!==\'RECEIVED\'" uib-tooltip="{{\'APPLICATION_RETRY\' | translate}}: {{message.retry}}">\n      <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe"> {{message.status | uppercase}}\n        <i class="fa fa-warning"></i>\n      </a>\n      <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n      <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="retry(message.id)"> {{message.status | uppercase}}\n        <i class="fa fa-times"></i>\n      </a>\n    </span>\n    <span class="pull-right" data-ng-if="message.status===\'RECEIVED\'">\n      <a href="#" class="btn default btn-xs inactive-link green-stripe"> {{message.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n    </span>\n    <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n  </span>\n  <hr>\n  <div class="body text-left message-body" data-ng-bind="message.text"></div>\n  <h5 data-ng-hide="message.text" class="media-heading"><i>{{\'MESSAGE_NO_AVAILABLE_TEXT\' | translate | lowercase}}</i></h5>\n  <hr data-ng-if="message.MailAttachments.length">\n  <div data-ng-repeat="mailAttachment in message.MailAttachments">\n    <strong>{{mailAttachment.name}}</strong>\n    <span>\n      ({{mailAttachment.size | prettyBytes}})\n    </span>\n    <a target="_self" download="{{mailAttachment.name}}" href="api/mail/attachments/{{mailAttachment.id}}">\n      <i class="icon-cloud-download"></i>\n    </a>\n    <a ng-if="::(mailAttachment.type.indexOf(\'image\') > -1)" ng-click="openPreview(mailAttachment.id)">\n      <i class="icon-picture"></i>\n    </a>\n  </div>\n</div>\n'),t.put("app/channels/mail/inbox/note/note.directive.html",'<div class="note">\n  <div class="row">\n    <div class="col-md-6">\n      <a type="button" name="button" data-ng-if="::(Auth.getCurrentUser().id == message.UserId)" data-ng-click="deleteNote()">\n        <i class="fa fa-trash-o" style="color: red;"></i>\n      </a>\n\n      <i class="icon-calendar" title="{{message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="message.updatedAt"></span>\n    </div>\n    <div class="col-md-6">\n      <span class="pull-right" data-ng-show="message.User">{{\'APPLICATION_ADD_BY\' | translate}}: <strong>{{message.User.fullname}}</strong></span>\n    </div>\n  </div>\n  <hr>\n  <span class="body text-left" data-ng-bind-html="message.text" style="white-space: pre-wrap;"></span>\n</div>\n'),t.put("app/channels/mail/inbox/note/note.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_NOTES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n    <div class="form-group">\n      <textarea data-ng-model="item.text" name="text" rows="10" style="resize: none; width: 100%;"></textarea>\n    </div>\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/mail/inbox/room/room.directive.html",'\x3c!-- BEGIN TODO CONTENT --\x3e\n<div class="todo-content">\n\t<div class="portlet light">\n\t\t<div class="portlet-title">\n\t\t\t<div class="caption">\n\t\t\t\t<button data-ng-if="form.from.length && form.to.length && mailRoom.status !== \'CLOSED\' && form.html" class="btn btn-sm btn-default green-meadow" data-ng-click="sendMail()">\n\t\t\t\t\t<i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n\t\t\t\t</button>\n\t\t\t\t<span data-ng-if="mailRoom && form.from.length && form.to.length && mailRoom.status !== \'CLOSED\' && form.html"> | </span>\n\t\t\t\t<span data-ng-if="mailRoom" class="label label-default"> #{{mailRoom.id}} {{mailRoom.status}}</span>\n\t\t\t\t<span data-ng-if="mailRoom"> | </span>\n\t\t\t\t<span data-ng-if="mailRoom && mailRoom.ParentId" class="label label-warning"> Ref: <a data-ng-click="openRoom(mailRoom.ParentId)">#{{mailRoom.ParentId}}</a></span>\n\t\t\t\t<span data-ng-if="mailRoom && mailRoom.ParentId"> | </span>\n\t\t\t\t<span data-ng-if="mailRoom" class="caption-subject font-green-sharp bold uppercase dot">{{mailRoom.subject || \'No subject\'}}</span>\n\t\t\t</div>\n\t\t\t<div class="actions">\n\t\t\t\t<button class="btn btn-icon-only yellow" data-ng-if="mailRoom" data-ng-click="loadNote()" data-ng-hide="mailRoom.status == \'CLOSED\'" title="{{\'APPLICATION_NOTES\' | translate}}">\n\t\t\t\t\t<i class="fa fa-sticky-note"></i>\n\t\t\t\t</button>\n\t\t\t\t<button class="file-upload" data-ng-hide="mailRoom.status == \'CLOSED\'">\n\t\t\t\t\t<i class="fa fa-paperclip"></i> <input type="file" data-ng-if="uploader" data-ng-disabled="mailRoom.status == \'CLOSED\'" nv-file-select uploader="uploader" multiple class="file-input" title="{{\'APPLICATION_ATTACHMENTS\' | translate}}">\n\t\t\t\t</button>\n\t\t\t\t\x3c!-- UPDATE SECTION START --\x3e\n\t\t\t\t<button data-ng-class="mailRoom.status == \'CLOSED\' ? \'grey-cascade\' : \'btn-success\'" class="btn btn-icon-only" data-ng-disabled="mailRoom.status == \'CLOSED\' && mailRoom.disposition" data-ng-if="mailRoom" data-ng-click="closeRoom()" title="{{\'APPLICATION_STATUS\' | translate}}">\n\t\t\t\t\t<i data-ng-class="mailRoom.status == \'CLOSED\' ? \'icon-target\' : \'fa fa-upload\'"></i>\n\t\t\t\t</button>\n\t\t\t\t\x3c!-- UPDATE SECTION END --\x3e\n\t\t\t\t<button class="btn default btn-icon-only" data-ng-if="mailRoom && mailRoom.status !== \'CLOSED\'" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n\t\t\t\t\t<i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t<div class="row">\n\t\t\t\t<div data-ng-if="panelLeft" data-ng-class="panelLeft">\n\t\t\t\t\t<div class="form">\n\t\t\t\t\t\t\x3c!-- START TAGS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)" data-ng-disabled="mailRoom.status == \'CLOSED\'">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n\t\t\t\t\t\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TAGS --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<hr data-ng-if="mailRoom && mailRoom.status !== \'CLOSED\'">\n\n\t\t\t\t\t\x3c!-- END TAGS --\x3e\n\t\t\t\t\t<div id="mail-box">\n\t\t\t\t\t\t<ul class="chats">\n\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\tdata-ng-switch="mailMessage.status"\n\t\t\t\t\t\t\tdata-ng-class="{\'in\': mailMessage.status == \'RECEIVED\', \'out\': mailMessage.status == \'SENT\' || mailMessage.status == \'SENDING\' || mailMessage.status == \'FAILED\' || mailMessage.status == \'NOTE\'}"\n\t\t\t\t\t\t\tdata-ng-repeat="mailMessage in mailRoom.MailMessages | orderBy:\'-createdAt\'">\n\t\t\t\t\t\t\t<div class="avatar" data-ng-class="message.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n\t\t\t\t\t\t\t\t<ng-letter-avatar\n\t\t\t\t\t\t\t\tdata-ng-if="mailMessage.UserId"\n\t\t\t\t\t\t\t\theight="40"\n\t\t\t\t\t\t\t\twidth="40"\n\t\t\t\t\t\t\t\tfontsize="25"\n\t\t\t\t\t\t\t\tdata="{{mailMessage.User.fullname}}"\n\t\t\t\t\t\t\t\tavatarcustombgcolor="#B0B0B0"\n\t\t\t\t\t\t\t\tavatarcustomborder="border:2px solid #3399CC"\n\t\t\t\t\t\t\t\tcharCount="2"\n\t\t\t\t\t\t\t\tshape="round"></ng-letter-avatar>\n\t\t\t\t\t\t\t\t<ng-letter-avatar\n\t\t\t\t\t\t\t\tdata-ng-if="!mailMessage.UserId"\n\t\t\t\t\t\t\t\theight="40"\n\t\t\t\t\t\t\t\twidth="40"\n\t\t\t\t\t\t\t\tfontsize="25"\n\t\t\t\t\t\t\t\tdata="{{mailMessage.from[0]}}"\n\t\t\t\t\t\t\t\tavatarcustombgcolor="#B0B0B0"\n\t\t\t\t\t\t\t\tavatarcustomborder="border:2px solid #EA4C61"\n\t\t\t\t\t\t\t\tcharCount="1"\n\t\t\t\t\t\t\t\tshape="round"></ng-letter-avatar>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<mail-note message="mailMessage" ng-switch-when="NOTE"></mail-note>\n\t\t\t\t\t\t\t<mail-message message="mailMessage" list-id="mailRoom.MailAccount.ListId" ng-switch-default></mail-message>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div data-ng-class="panelRight">\n\t\t\t\t<div class="note note-info" data-ng-if="mailRoom && mailRoom.status == \'CLOSED\'">\n\t\t\t\t\t<h4 class="block"><i class="icon-info"></i> {{\'MESSAGE_MAIL_ROOM_CLOSED\' | translate}}!</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<strong>{{\'MESSAGE_MAIL_ROOM_CLOSED_DETAILS\' | translate}}.</strong>\n\t\t\t\t\t</p>\n\t\t\t\t\t<hr>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{mailRoom.disposition}}</strong>\n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{mailRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="mailRoom.updatedAt"></span>)\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t<form name="forms.compose" data-ng-submit="sendMail()" class="form-horizontal" novalidate>\n\t\t\t\t\t\x3c!-- START HEAD --\x3e\n\t\t\t\t\t<div class="form">\n\t\t\t\t\t\t<v-accordion class="vAccordion--default" ng-if="mailRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t<v-pane expanded="expanded">\n\t\t\t\t\t\t\t\t<v-pane-header>\n\t\t\t\t\t\t\t\t\t<i class="icon-people"></i> From: {{form.from[0]}}, To: {{form.to[0].email}} <span ng-if="form.to.length > 1">(+{{form.to.length - 1}})</span>\n\t\t\t\t\t\t\t\t</v-pane-header>\n\t\t\t\t\t\t\t\t<v-pane-content>\n\t\t\t\t\t\t\t\t\t\x3c!-- START FROM --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">From:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="form.from[0]" data-ng-change="setList($select.selected.ListId)" theme="bootstrap" name="from" required>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="mailAccount.address as mailAccount in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div data-ng-bind-html="mailAccount.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<small data-ng-bind-html="mailAccount.address | highlight: $select.search"></small>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END FROM --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- MAIL TO --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">To:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tags-input ng-model="form.to" type="email" display-property="email">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<auto-complete source="getContacts($query)"></auto-complete>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tags-input>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END TO --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START CC --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">Cc:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tags-input ng-model="form.cc" type="email" display-property="email">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<auto-complete source="getContacts($query)"></auto-complete>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tags-input>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END CC --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START BCC --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-if="mailRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">Bcc:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tags-input ng-model="form.bcc" type="email" display-property="email">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<auto-complete source="getContacts($query)"></auto-complete>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tags-input>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END BCC --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START SUBJECT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}" data-ng-if="mailRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">Subj:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="Subject..." rows="8" data-ng-model="form.subject">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-if="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END SUJBECT --\x3e\n\t\t\t\t\t\t\t\t</v-pane-content>\n\t\t\t\t\t\t\t</v-pane>\n\t\t\t\t\t\t</v-accordion>\n\n\t\t\t\t\t\t\x3c!-- START ATTACH --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-if="uploader  && (mailRoom.status !== \'CLOSED\')">\n\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t<hr ng-if="uploader.queue.length">\n\t\t\t\t\t\t\t\t<table class="table">\n\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t<tr ng-repeat="item in uploader.queue">\n\t\t\t\t\t\t\t\t\t\t\t<td style="border-top:none" rowspan="{{uploader.queue.length}}" ng-if="(!$index)">\n\t\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_ATTACHMENTS\' | translate}}:\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td style="border-top:none"><strong>{{ item.file.name }}</strong></td>\n\t\t\t\t\t\t\t\t\t\t\t<td style="border-top:none" ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n\t\t\t\t\t\t\t\t\t\t\t<td style="border-top:none" ng-show="uploader.isHTML5">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress" style="margin-bottom: 0;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress-bar" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td style="border-top-style:none" class="text-center">\n\t\t\t\t\t\t\t\t\t\t\t\t<span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td style="border-top-style:none" nowrap>\n\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END ATTACH --\x3e\n\n\t\t\t\t\t\t\x3c!-- START CANNED --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.compose.subject.$invalid && forms.compose.$submitted}" data-ng-if="mailRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-magic" style="color: gray;"></i>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t<input type="text"\n\t\t\t\t\t\t\t\t\t\tdata-ng-model="modelOptions.selectedAnswer"\n\t\t\t\t\t\t\t\t\t\tuib-typeahead="key for key in getAnswers($viewValue)"\n\t\t\t\t\t\t\t\t\t\tplaceholder="Canned answers.."\n\t\t\t\t\t\t\t\t\t\ttypeahead-loading="loadingLocations"\n\t\t\t\t\t\t\t\t\t\ttypeahead-no-results="noResults"\n\t\t\t\t\t\t\t\t\t\ttypeahead-on-select="onSelectAnswer($item)"\n\t\t\t\t\t\t\t\t\t\tclass="form-control">\n\t\t\t\t\t\t\t\t\t\t<i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n\t\t\t\t\t\t\t\t\t\t<div ng-show="noResults">\n\t\t\t\t\t\t\t\t\t\t\t<i class="glyphicon glyphicon-remove"></i> No Results Found\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-if="forms.compose.subject.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END CANNED --\x3e\n\n\t\t\t\t\t\t\x3c!-- START HTML --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.compose.text.$invalid && forms.compose.$submitted}" data-ng-if="mailRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t<div ckeditor="options" ng-model="form.html" ready="onCKReady($instance)"></div>\n\t\t\t\t\t\t\t\t<span data-ng-if="forms.compose.text.$invalid && forms.compose.$submitted" class="help-block help-block-error">\n'+"\t\t\t\t\t\t\t\t\t<strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END HTML --\x3e\n\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n\x3c!-- END TODO CONTENT --\x3e\n"),t.put("app/channels/mail/inbox/status/status.modal.html",'<div class="modal-header">\n  <button data-ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">&times;</button>\n  <h4 data-ng-if="modal.title" data-ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n  <p data-ng-if="modal.text && !closed" ng-bind="modal.text | translate"></p>\n  <form name="form" novalidate data-ng-init="initDisposition()">\n    <div class="form-group">\n      <ui-select data-ng-model="item.disposition" name="disposition" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n        <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n        <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n          <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n    </div>\n    <div class="note note-warning" data-ng-if="dispositions.length < 1">\n      <h4 class="block">Warning!</h4>\n      <p>\n        {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n      </p>\n    </div>\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/mail/inbox/view/account/list/list.html",'\x3c!-- BEGIN Portlet PORTLET--\x3e\n<div class="portlet light" data-ng-init="initView()">\n\t<div class="portlet-title">\n\t\t<div class="caption">\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="actions">\n\t\t\t<a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n\t\t\t\t<i class="fa fa-refresh"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n\t\t\t\t<i class="fa fa-trash"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only btn-success" data-ng-click="disposeItems();" data-ng-show="id.length">\n\t\t\t\t<i class="fa fa-upload"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n\t\t\t\t<i class="fa fa-tags"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t</a>\n\t\t</div>\n\t</div>\n\t<div class="portlet-title" data-ng-show="tags.length">\n\t\t\x3c!-- START TAGS --\x3e\n\t\t<div class="form-group">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t<ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n\t\t\t\t\t\t<ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search">\n\t\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END TAGS --\x3e\n\t</div>\n\t<div class="portlet-body">\n\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" class="ui-grid" ui-grid-auto-resize ui-grid-pagination ui-grid-selection>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END Portlet PORTLET--\x3e\n'),t.put("app/channels/mail/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TRANSPORT --\x3e\n  <div class="form-group">\n    <form name="form" novalidate>\n      \x3c!-- START TRANSPORT --\x3e\n      <div class="form-group">\n        <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n          <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n          <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n            {{agent.fullname}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n      \x3c!-- END TRANSPORT --\x3e\n    </form>\n  </div>\n  \x3c!-- END TRANSPORT --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/mail/inbox/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-note"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_INBOX\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row inbox">\n\t<div class="col-md-3">\n\t\t<ul class="inbox-nav margin-bottom-10">\n\t\t\t<li data-ng-class="{active: $stateParams.id == mailAccount.id}" data-ng-repeat="mailAccount in mailAccounts">\n\t\t\t\t<a href="/channels/mail/inbox/view/account/{{mailAccount.id}}/list" class="btn">\n\t\t\t\t\t<i class="icon-notebook"></i> {{mailAccount.name}}\n\t\t\t\t</a>\n\t\t\t\t<b></b>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\n\t<div class="col-md-9" data-ng-init="initView()">\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div class="room-content">\n\t\t\t<div ui-view>\n\t\t\t\t<div class="note note-info">\n\t\t\t\t\t<h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n\n</div>\n'),t.put("app/channels/mail/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TRANSPORT --\x3e\n  <div class="form-group">\n    <form name="form" novalidate>\n      \x3c!-- START TAGS --\x3e\n      <div class="form-group">\n        <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n          <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n          <ui-select-choices repeat="tag in tags | filter: $select.search">\n            {{tag}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n      \x3c!-- END TAGS --\x3e\n    </form>\n  </div>\n  \x3c!-- END TRANSPORT --\x3e\n</div>\n<div class="modal-footer">\n  <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n  \x3c!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> --\x3e\n</div>\n'),t.put("app/channels/mail/inbox/view/view.templates.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_TEMPLATES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <div class="note note-info" data-ng-show="!templates.length">\n    <h4 class="block">Info!</h4>\n    <p>\n      {{\'MESSAGE_NO_TEMPLATES_AVAILABLE\' | translate}}\n    </p>\n  </div>\n  <form name="form" data-ng-show="templates.length" novalidate>\n    <div class="form-group">\n      <ui-select data-ng-model="item.template" theme="bootstrap">\n        <ui-select-match placeholder="Select a template in the list or search his name...">{{$select.selected.name}}</ui-select-match>\n        <ui-select-choices repeat="template in templates | propsFilter: {name: $select.search}">\n          <div ng-bind-html="template.name | highlight: $select.search"></div>\n          <small data-ng-show="template.description">\n            {{\'APPLICATION_DESCRIPTION\' | translate}}: {{template.description}}\n          </small>\n        </ui-select-choices>\n      </ui-select>\n    </div>\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="templates.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/mail/queue/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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" data-ng-pattern="settings.patternName" required />\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.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="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START STRATEGY --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.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 | uppercase}}</ui-select-match>\n        <ui-select-choices repeat="strategy in strategies | 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="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END STRATEGY --\x3e\n\n    \x3c!-- START TIMEOUT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n      <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n      <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TIMEOUT --\x3e\n\n    \x3c!-- START AGENTS--\x3e\n    <div class="form-body" data-ng-init="getTeams()">\n      <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n      <div class="input-group input-small mbottom20">\n        <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n        <div class="spinner-buttons input-group-btn btn-group-vertical">\n          <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n            <i class="fa fa-angle-up"></i>\n          </button>\n          <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n            <i class="fa fa-angle-down"></i>\n          </button>\n        </div>\n      </div>\n      <div class="form-group last">\n        <div class="col-md-12" id="multi-select-team">\n        </div>\n      </div>\n    </div>\n    \x3c!-- END AGENTS--\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/mail/queue/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group" data-ng-if="Auth.isAdmin()">\n\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="note note-warning" data-ng-hide="teams.length">\n\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t<p>\n\t\t\t\t\t {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t\t\t<form action="index.html" class="form-horizontal form-row-seperated">\n\t\t\t\t\t<div class="form-body">\n\t\t\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n\t\t\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-team">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END FORM--\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/mail/queue/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getQueue()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/channels/mail/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="queue" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="queue">\n\t\t\t\t\t<a href="#">{{queue.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{queue.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t{{user.role}}\n\t\t\t\t</div> --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t<div class="profile-usermenu">\n\t\t\t\t<ul class="nav">\n\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.mail.queues.view.settings\')}">\n\t\t\t\t\t\t<a data-ng-href="/channels/mail/queues/view/{{queue.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.mail.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/mail/queues/view/{{queue.id}}/agents">\n\t\t\t\t\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_AGENTS\' | translate}} </a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END PORTLET main.channels --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t\t<div ui-view class="profile-content">\n\t\t\t</div>\n\t\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t\t</div>\n\t</div>\n\t\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/queue/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateMailQueue()" novalidate>\n\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">Agent Timeout</label>\n\t\t\t\t\t\t<input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\x3c!-- START STRATEGY --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n\t\t\t\t\t\t<ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="strategy in strategies | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END STRATEGY --\x3e\n\n\t\t\t\t\t<input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/mail/realtime/view/agent/agent.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n  <div>{{agent.ipaddr}}:{{agent.port}}</div>\n  <div>{{agent.fullcontact}}</div>\n  <div>{{agent.useragent}}</div>\n  <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n  {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/mail/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    <div class="form-group row">\n  <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n  <div class="col-md-10">\n    <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n      <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.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  </div>\n</div>\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/mail/realtime/view/application/application.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initApplications()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/realtime/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_MAIL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-energy"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t<div>\n\t\t\t<nav class="navbar navbar-default" role="navigation">\n\t\t\t\t<div class="collapse navbar-collapse">\n\t\t\t\t\t<ul class="nav navbar-nav">\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.mail.realtime.view.agents\')}">\n\t\t\t\t\t\t\t<a href="/channels/mail/realtime/view/agents">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_AGENTS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.mail.realtime.view.applications\')}">\n\t\t\t\t\t\t\t<a href="/channels/mail/realtime/view/applications">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_APPLICATIONS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href="#">\n\t\t\t\t\t\t\t\t<b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}}  </b><input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="showTimers"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="showTimers"\n\t\t\t\t\t\t\t\tswitch-active="{{ timerSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ timerSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ timerSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ timerSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ timerSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ timerSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ timerSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ timerSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ timerSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</nav>\n\t\t</div>\n\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/mail/realtime/view/view.queue.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div id="grid1" ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-tree-view class="grid">\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/account/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="/channels/openchannel/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n\t\t\t\t\t\t\t<i class="icon-reload"></i>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/channels/openchannel/accounts/wizard">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/account/view/action/list/list.html",'<div class="row" data-ng-init="initActions()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/channels/openchannel/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/openchannel/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.settings" ng-submit="updateItem()" novalidate>\n\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.OpenchannelQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/openchannel/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.from.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid && forms.settings.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.mail.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler" maxlength="160"  name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\x3c!-- <input type="checkbox" data-ng-model="application.alwaysTime"> --\x3e\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t</div>\n\t\t\t\t\t<button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/account/view/action/wizard/wizard.html",'<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n\t\t\t\t\t\t<form name="forms.action" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.OpenchannelQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/openchannel/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.from.$touched || forms.action.$submitted) && forms.action.timeout.$invalid && forms.action.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler"  maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t\t\t<fieldset ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_to" data-ng-model="application.t_to" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <input type="checkbox" data-ng-model="application.alwaysTime"> --\x3e\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}" />\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}" />\n\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/account/view/api/view/view.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_API\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t\t\x3c!-- START API --\x3e\n\t\t\t\t\t\t\t<div  class="row" >\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">Receive URL</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div   class="row" >\n\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t<code-mirror  model="receiveurl"></code-mirror>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t<a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(receiveurl);"><i class="fa fa-clipboard"></i>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END API --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/openchannel/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n      <div class="">\n        <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n        <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n        </span>\n      </div>\n    </div>\n    \x3c!-- END NAME --\x3e\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/openchannel/account/view/disposition/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions actions-md">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n\t\t\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t<div class="row" data-ng-hide="dispositions.length">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div class="note note-info">\n\t\t\t\t\t\t\t\t<h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="row" data-ng-repeat="disposition in dispositions">\n\t\t\t\t\t\t<div class="col-md-12 form-group">\n\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t<button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t\t\t\t\t\t<button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/openchannel/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SEND\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- START REPLY TAB --\x3e\n\t\t\t\t\t<div class="tab-pane  active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t<div  class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.replyMethod" name="method" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search" >\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid && forms.info.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.replyUrl"   ng-required="account.replyMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid && forms.info.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END REPLY TAB --\x3e\n\n\t\t\t\t\t\x3c!-- START ACCEPT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl"  ng-required="account.acceptMethod"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- START ACTIONS--\x3e\n\t\t\t\t\t\t\t\t<div class="row" ng-repeat = "action in account.actions">\n\t\t\t\t\t\t\t\t\t<div  ng-switch="action.action">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-switch-when="pause">\n\t\t\t\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-4">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-change="resetActionData(action)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="action.enabled"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-if="action.enabled" class="form-group col-md-8">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select  name="action" data-ng-model="action.type"  theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ACTION --\x3e\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ACCEPT TAB --\x3e\n\t\t\t\t\t\x3c!-- START REJECT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END REJECT TAB --\x3e\n\t\t\t\t\t\x3c!-- START CLOSE TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_4">\n\t\t\t\t\t\t<form name="forms.close" data-ng-submit="forms.close.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CLOSE TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/openchannel/account/view/setting/view/view.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START ID --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ID\' | translate}}<span class="required" aria-required="true">*</span>\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t<input type="text" name="id" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.id" ng-disabled="true" required/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ID--\x3e\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START LIST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="license.cm">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group">\n\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="list.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LIST --\x3e\n\t\t\t\t\t\t\t\x3c!-- START FIDELITY --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.fidelity"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END FIDELITY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CUSTOM --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div  class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REPLY\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.reply"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- START REPLY HOOK --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div  ng-if= "account.reply" class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.replyMethod" name="method" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search" >\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.method.$touched || forms.info.$submitted) && forms.info.method.$invalid && forms.info.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.replyUrl"  required/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.url.$touched || forms.info.$submitted) && forms.info.url.$invalid && forms.info.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- START REPLY HOOK --\x3e\n\t\t\t\t\t\t\t\x3c!-- END CUSTOM --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START REMOTE IP --\x3e\n\t\t\t\t\t\t\t<div  class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remote" required/>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REMOTE IP --\x3e\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/openchannel/account/view/view.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="/channels/openchannel/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right" data-ng-show="account"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="account">\n\t\t\t\t\t<a href="#">{{ account.name }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img ng-src="assets/images/media/account.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ account.name }}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{account.description}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.settings\')}">\n\t\t\t\t\t\t\t<a href="/channels/openchannel/accounts/view/{{account.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.api\')}">\n\t\t\t\t\t\t\t<a href="/channels/openchannel/accounts/view/{{account.id}}/api">\n\t\t\t\t\t\t\t<i class="fa fa-external-link"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_API\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.hooks\')}">\n\t\t\t\t\t\t\t<a href="/channels/openchannel/accounts/view/{{account.id}}/hooks">\n\t\t\t\t\t\t\t<i class="fa fa-code"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_HOOKS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.openchannel.accounts.view.dispositions\')}">\n\t\t\t\t\t\t\t<a href="/channels/openchannel/accounts/view/{{account.id}}/dispositions">\n\t\t\t\t\t\t\t<i class="icon-target"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.includes(\'main.channels.openchannel.accounts.view.actions\')}">\n\t\t\t\t\t\t\t<a href="/channels/openchannel/accounts/view/{{account.id}}/actions/list">\n\t\t\t\t\t\t\t<i class="icon-directions"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_ACTIONS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div ui-view class="profile-content"></div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n\x3c!-- END PAGE CONTENT--\x3e\n</div>\n'),t.put("app/channels/openchannel/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN PAGE HEADER--\x3e\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="/channels/openchannel/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t\x3c!-- END PAGE HEADER--\x3e\n\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t        <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n\t\t\t\t\t\t\t<form name="forms.info" novalidate>\n\t\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START REMOTE IP --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n\t\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END REMOTE IP --\x3e\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/inbox/message/info.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body"  data-ng-init="initInfo()" style=" overflow-x: auto;" >\n  <div  data-ng-if="data" >\n    <json-formatter json="data" open="1"></json-formatter>\n  </div>\n  <div class="note note-warning" data-ng-hide="data">\n    <p>\n      {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n    </p>\n  </div>\n\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/openchannel/inbox/message/message.html",'<div class="message">\n  <div class="row">\n    <div class="col-md-6">\n        \x3c!-- <span data-ng-if="Message.from" class="bold">From: {{Message.from}} </span>\n        <br>\n        <span data-ng-if="Message.to" class="bold">To: {{Message.to}} </span>\n        <br> --\x3e\n        <div class="row" ng-if="Message.from">\n          <div class="col-md-12">\n            <span data-ng-if="Message.from" class="bold">From: {{Message.from}} </span>\n          </div>\n        </div>\n        <div class="row" ng-if="Message.to">\n          <div class="col-md-12">\n            <span data-ng-if="Message.to" class="bold">To: {{Message.to}} </span>\n          </div>\n        </div>\n        <div class="row" ng-if="Message.name">\n          <div class="col-md-12">\n            <span   class="bold">Name: {{Message.name}}</span>\n          </div>\n        </div>\n        <div class="row" ng-if="Message.phone">\n          <div class="col-md-12">\n            <span  class="bold">Phone: <a href="" data-ng-click="openContact(\'phone\',Message.phone)">{{Message.phone}}</a></span>\n          </div>\n        </div>\n        <div class="row" ng-if="Message.email">\n          <div class="col-md-12">\n            <span  class="bold">Email: <a href="" data-ng-click="openContact(\'email\',Message.email)">{{Message.email}}</a></span>\n          </div>\n        </div>\n    </div>\n    <div class="col-md-6">\n      <span class="pull-right" data-ng-if="Message.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{Message.User.fullname}}</strong></span>\n    </div>\n  </div>\n  <br>\n  <span class="todo-tasklist-date">\n    <span class="pull-right" data-ng-switch="Message.status">\n      <a ng-switch-when="RECEIVED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{Message.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n      <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{Message.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n      <a ng-switch-when="DELIVERED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{Message.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n      <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe" > {{Message.status | uppercase}}\n        <i class="fa fa-warning"></i>\n      </a>\n      <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="info(Message.res_data)"> {{Message.status | uppercase}}\n        <i class="fa fa-times"></i>\n      </a>\n      <a ng-switch-default href="#" class="btn default btn-xs"> {{Message.status | uppercase}}\n      </a>\n      <br>\n    </span>\n\n    <i class="icon-calendar" title="{{Message.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="Message.updatedAt"></span>\n  </span>\n  <hr>\n  <ng-emoticons emoticons-data="Message.body"></ng-emoticons>\n  \x3c!-- <span class="body text-left" data-ng-bind-html="Message.body" style="white-space: pre-wrap;"></span> --\x3e\n  </div>\n'),t.put("app/channels/openchannel/inbox/room/room.directive.html",'\x3c!-- BEGIN TODO CONTENT --\x3e\n\n<div class="todo-content">\n\t<div class="portlet light">\n\t\t<div class="portlet-title">\n\t\t\t<div class="caption">\n\t\t\t\t<button class="btn btn-sm btn-default green-meadow" data-ng-if="Room.status !== \'CLOSED\'" data-ng-disabled="!form.body || forms.compose.from.$invalid || forms.compose.to.$invalid" data-ng-click="sendMessage()">\n\t\t\t\t\t<i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n\t\t\t\t</button>\n\t\t\t\t<span data-ng-show="Room && Room.status !== \'CLOSED\'"> | </span>\n\t\t\t\t<span data-ng-show="Room" class="label label-default">#{{Room.id}} {{Room.status}}</span>\n\t\t\t\t<span data-ng-if="Room && Room.ParentId"> | </span>\n\t\t\t\t<span data-ng-if="Room && Room.ParentId" class="label label-warning"> Ref: <a data-ng-click="openRoom(Room.ParentId,Room.contact)">#{{Room.ParentId}}</a></span>\n\t\t\t</div>\n\t\t\t<div class="actions" data-ng-switch="Room.status">\n\t\t\t\t<button class="btn btn-icon-only" data-ng-show="Room"  data-ng-class="{\'btn-success\':Room.status !== \'CLOSED\',\'grey-cascade\':Room.status === \'CLOSED\'}" data-ng-click="closeRoom(Room.id)"  data-ng-disabled="Room.status === \'CLOSED\' && Room.disposition">\n\t\t\t\t\t<i data-ng-class="{\'fa fa-upload\':Room.status !== \'CLOSED\',\'icon-target\':Room.status === \'CLOSED\'}"></i>\n\t\t\t\t</button>\n\t\t\t\t<button  class="btn default btn-icon-only" data-ng-if="Room && Room.status !== \'CLOSED\'" type="button" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n\t\t\t\t\t<i  ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t<div class="row">\n\t\t\t\t<div data-ng-show="panelLeft" data-ng-class="panelLeft">\n\t\t\t\t\t<div class="form">\n\t\t\t\t\t\t\x3c!-- START TAGS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-if="Room.status !== \'CLOSED\' || (Room.status == \'CLOSED\' && form.tags.length)">\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-disabled="Room.status == \'CLOSED\'"  multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n\t\t\t\t\t\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TAGS --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t<hr data-ng-if="Room && Room.status !== \'CLOSED\'">\n\n\t\t\t\t\t<div ng-scrollbars ng-scrollbars-config="{\n\t\t\t\t\t\tautoHideScrollbar: false,\n\t\t\t\t\t\ttheme: \'light\',\n\t\t\t\t\t\tadvanced: {\n\t\t\t\t\t\t\tupdateOnContentResize: true\n\t\t\t\t\t\t},\n\t\t\t\t\t\tsetHeight: 781,\n\t\t\t\t\t\tscrollInertia: 0\n\t\t\t\t\t}">\n\t\t\t\t\t\t<ul class="chats">\n\t\t\t\t\t\t\t<li data-ng-switch="Room.status" data-ng-class="{\'in\': Message.status == \'RECEIVED\', \'out\': Message.status == \'SENT\' || Message.status == \'SENDING\' || Message.status == \'FAILED\' || Message.status == \'NOTE\'  || Message.status == \'DELIVERED\' || Message.status == \'QUEUED\' ||  Message.status != \'RECEIVED\' }" data-ng-repeat="Message in Room.OpenchannelMessages | orderBy:\'-createdAt\'">\n\t\t\t\t\t\t\t\t\x3c!-- <img class="avatar" alt="" data-ng-src="api/users/avatar/{{getCurrentUser().userpic && smsMessage.status === \'SENT\' ? getCurrentUser().userpic : \'unknown_avatar\'}}"> --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- <note message="smsMessage" ng-switch-when="NOTE"></note> --\x3e\n\t\t\t\t\t\t\t\t<div class="avatar" data-ng-class="Message.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n\t\t\t\t\t\t\t\t\t<ng-letter-avatar\n\t\t\t\t\t\t\t\t\tdata-ng-if="Message.UserId"\n\t\t\t\t\t\t\t\t\theight="40"\n\t\t\t\t\t\t\t\t\twidth="40"\n\t\t\t\t\t\t\t\t\tfontsize="25"\n\t\t\t\t\t\t\t\t\tdata="{{Message.User.fullname}}"\n\t\t\t\t\t\t\t\t\tavatarcustombgcolor="#B0B0B0"\n\t\t\t\t\t\t\t\t\tavatarcustomborder="border:2px solid #3399CC"\n\t\t\t\t\t\t\t\t\tcharCount="2"\n\t\t\t\t\t\t\t\t\tshape="round"></ng-letter-avatar>\n\t\t\t\t\t\t\t\t\t<ng-letter-avatar\n\t\t\t\t\t\t\t\t\tdata-ng-if="!Message.UserId"\n\t\t\t\t\t\t\t\t\theight="40"\n\t\t\t\t\t\t\t\t\twidth="40"\n\t\t\t\t\t\t\t\t\tfontsize="25"\n\t\t\t\t\t\t\t\t\tdata="{{Message.from}}"\n\t\t\t\t\t\t\t\t\tavatarcustombgcolor="#B0B0B0"\n\t\t\t\t\t\t\t\t\tavatarcustomborder="border:2px solid #EA4C61"\n\t\t\t\t\t\t\t\t\tcharCount="1"\n\t\t\t\t\t\t\t\t\tshape="round"></ng-letter-avatar>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<message message="Message" list-id="Room.OpenchannelAccount.ListId"  ng-switch-default></message>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div data-ng-class="panelRight">\n\n\t\t\t\t\t<div class="note note-info" data-ng-if="Room && Room.status == \'CLOSED\'">\n\t\t\t\t\t\t<h4 class="block">Info! {{\'MESSAGE_ROOM_CLOSED\' | translate}}</h4>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t{{\'MESSAGE_ROOM_CLOSED_DETAILS\' | translate}}.\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<hr>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{Room.disposition}}</strong>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{Room.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="Room.updatedAt"></span>)\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<form  name="forms.compose" data-ng-submit="forms.compose.$valid" class="form-horizontal" novalidate>\n\t\t\t\t\t\t\x3c!-- START HEAD --\x3e\n\t\t\t\t\t\t<div class="form">\n\n\t\t\t\t\t\t\t\x3c!-- START FROM --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.compose.from.$invalid && forms.compose.$submitted}" data-ng-if="Room.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">From:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select  data-ng-disabled="Room"  theme="bootstrap" name="from" data-ng-model="form.from" required>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="Account.name as Account in Accounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div data-ng-bind-html="Account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<small data-ng-bind-html="Account.name | highlight: $select.search"></small>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.compose.from.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END FROM --\x3e\n\t\t\t\t\t\t\t\x3c!-- START TO --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.compose.to.$invalid && forms.compose.$submitted}" data-ng-if="Room.status !== \'CLOSED\'">\n\n\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">To:</label>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t\t<input type="text"   name="to" class="form-control todo-taskbody-taskdesc" placeholder="To..." rows="8"   data-ng-disabled="Room" data-ng-model="form.to" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.compose.to.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TO --\x3e\n\t\t\t\t\t\t\t\x3c!-- START CANNED --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-if="Room.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-magic" style="color: gray;"></i>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t<input  type="text"\n\t\t\t\t\t\t\t\t\t\tdata-ng-model="modelOptions.selectedAnswer"\n\t\t\t\t\t\t\t\t\t\tuib-typeahead="key for key in getAnswers($viewValue)"\n\t\t\t\t\t\t\t\t\t\tplaceholder="Canned answers.."\n\t\t\t\t\t\t\t\t\t\ttypeahead-loading="loadingLocations"\n\t\t\t\t\t\t\t\t\t\ttypeahead-no-results="noResults"\n\t\t\t\t\t\t\t\t\t\ttypeahead-on-select="onSelect($item)"\n\t\t\t\t\t\t\t\t\t\tclass="form-control">\n\t\t\t\t\t\t\t\t\t\t<i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n\t\t\t\t\t\t\t\t\t\t<div ng-show="noResults">\n\t\t\t\t\t\t\t\t\t\t\t<i class="glyphicon glyphicon-remove"></i> No Results Found\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CANNED --\x3e\n\t\t\t\t\t\t\t\x3c!-- START message --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.compose.body.$invalid && forms.compose.$submitted}" data-ng-if=" Room.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler" rows="8"  name="body" data-ng-model="form.body"></textarea>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.compose.body.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n'+"\t\t\t\t\t\t\t\t\t\t<strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- END message --\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n\x3c!-- END TODO CONTENT --\x3e\n"),t.put("app/channels/openchannel/inbox/view/account/list/list.html",'\x3c!-- BEGIN Portlet PORTLET--\x3e\n<div class="portlet light" data-ng-init="initView()">\n\t<div class="portlet-title">\n\t\t<div class="caption">\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="actions">\n\t\t\t<a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n\t\t\t\t<i class="fa fa-refresh"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n\t\t\t\t<i class="fa fa-trash"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n\t\t\t\t<i class="fa fa-tags"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t</a>\n\t\t</div>\n\t</div>\n\t<div class="portlet-title" data-ng-show="tags.length">\n\t\t\x3c!-- START TAGS --\x3e\n\t\t<div class="form-group">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t<ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n\t\t\t\t\t\t<ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search">\n\t\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END TAGS --\x3e\n\t</div>\n\t<div class="portlet-body">\n\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid-inbox">\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END Portlet PORTLET--\x3e\n'),t.put("app/channels/openchannel/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TRANSPORT --\x3e\n  <div class="form-group">\n    <form name="form" novalidate>\n      \x3c!-- START TRANSPORT --\x3e\n      <div class="form-group">\n        <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n          <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n          <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n            {{agent.fullname}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n      \x3c!-- END TRANSPORT --\x3e\n    </form>\n  </div>\n  \x3c!-- END TRANSPORT --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/openchannel/inbox/view/view.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="fa fa-spinner"></i>\n          <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n        <li>\n          <i class="icon-globe"></i>\n          <a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n        <li>\n\t\t\t\t\t<i class="icon-note"></i>\n\t\t\t\t\t<a href="/channels/openchannel/inbox/list">{{ \'APPLICATION_INBOX\' | translate }}</a>\n\t\t\t\t</li>\n      </ul>\n    </div>\n  </div>\n</div>\n\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row inbox" data-ng-init="initView()">\n\t<div class="col-md-3">\n\t\t<ul class="inbox-nav margin-bottom-10">\n\t\t\t<li data-ng-class="{active: $stateParams.id == Account.id}" data-ng-repeat="Account in openchannelAccounts">\n\t\t\t\t<a href="/channels/openchannel/inbox/view/account/{{Account.id}}/list" class="btn">\n\t\t\t\t\t<i class="icon-notebook"></i> {{Account.name}}\n\t\t\t\t</a>\n        <b></b>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\n\t<div class="col-md-9" >\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view>\n\t\t\t<div class="note note-info">\n\t\t\t\t<h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/inbox/view/view.status.modal.html",'<div class="modal-header">\n  <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">&times;</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 && !closed" ng-bind="modal.text | translate"></p>\n  <form name="form" novalidate data-ng-init="initDisposition()">\n  <div class="form-group">\n    <ui-select data-ng-model="item.disposition" name="list" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n      <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n      <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n        <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n      </ui-select-choices>\n    </ui-select>\n  </div>\n  <div class="note note-warning" data-ng-hide="dispositions.length">\n    <h4 class="block">Warning!</h4>\n    <p>\n      {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n    </p>\n  </div>\n</form>\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</div>\n'),t.put("app/channels/openchannel/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TRANSPORT --\x3e\n  <div class="form-group">\n    <form name="form" novalidate>\n      \x3c!-- START TAGS --\x3e\n      <div class="form-group">\n        <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n          <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n          <ui-select-choices repeat="tag in tags | filter: $select.search">\n            {{tag}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n      \x3c!-- END TAGS --\x3e\n    </form>\n  </div>\n  \x3c!-- END TRANSPORT --\x3e\n</div>\n<div class="modal-footer">\n  <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n  \x3c!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> --\x3e\n</div>\n'),t.put("app/channels/openchannel/queue/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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" data-ng-pattern="settings.patternName" required />\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.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="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START TIMEOUT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n      <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n      <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TIMEOUT --\x3e\n\n    \x3c!-- START STRATEGY --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.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 strategies | 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="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END STRATEGY --\x3e\n\n    \x3c!-- START AGENTS--\x3e\n    <div class="form-body" data-ng-init="getTeams()">\n      <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n      <div class="input-group input-small mbottom20">\n        <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n        <div class="spinner-buttons input-group-btn btn-group-vertical">\n          <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n            <i class="fa fa-angle-up"></i>\n          </button>\n          <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n            <i class="fa fa-angle-down"></i>\n          </button>\n        </div>\n      </div>\n      <div class="form-group last">\n        <div class="col-md-12" id="multi-select-team">\n        </div>\n      </div>\n    </div>\n    \x3c!-- END AGENTS--\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/openchannel/queue/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="note note-warning" data-ng-hide="teams.length">\n\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t<p>\n\t\t\t\t\t {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t\t\t<form action="index.html" class="form-horizontal form-row-seperated">\n\t\t\t\t\t<div class="form-body">\n\t\t\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n\t\t\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-team">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END FORM--\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/openchannel/queue/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getQueue()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/channels/openchannel/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="queue" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="queue">\n\t\t\t\t\t<a href="#">{{queue.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{queue.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t{{user.role}}\n\t\t\t\t</div> --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t<div class="profile-usermenu">\n\t\t\t\t<ul class="nav">\n\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.openchannel.queues.view.settings\')}">\n\t\t\t\t\t\t<a data-ng-href="/channels/openchannel/queues/view/{{queue.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.openchannel.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/openchannel/queues/view/{{queue.id}}/agents">\n\t\t\t\t\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_AGENTS\' | translate}} </a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END PORTLET main.channels --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t\t<div ui-view class="profile-content">\n\t\t\t</div>\n\t\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t\t</div>\n\t</div>\n\t\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/queue/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateQueue()" novalidate>\n\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">Timeout</label>\n\t\t\t\t\t\t<input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\x3c!-- START HEADER SHAPE --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n\t\t\t\t\t\t<ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="strategy in strategies | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END HEADER SHAPE --\x3e\n\t\t\t\t\t<input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/openchannel/realtime/view/agent/agent.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n  <div>{{agent.ipaddr}}:{{agent.port}}</div>\n  <div>{{agent.fullcontact}}</div>\n  <div>{{agent.useragent}}</div>\n  <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n  {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/openchannel/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    <div class="form-group row">\n  <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n  <div class="col-md-10">\n    <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n      <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.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  </div>\n</div>\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/openchannel/realtime/view/application/application.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initApplications()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/realtime/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-energy"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t<div>\n\t\t\t<nav class="navbar navbar-default" role="navigation">\n\t\t\t\t<div class="collapse navbar-collapse">\n\t\t\t\t\t<ul class="nav navbar-nav">\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.openchannel.realtime.view.agents\')}">\n\t\t\t\t\t\t\t<a href="/channels/openchannel/realtime/view/agents">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_AGENTS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.openchannel.realtime.view.applications\')}">\n\t\t\t\t\t\t\t<a href="/channels/openchannel/realtime/view/applications">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_APPLICATIONS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href="#">\n\t\t\t\t\t\t\t\t<b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}}  </b><input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="showTimers"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="showTimers"\n\t\t\t\t\t\t\t\tswitch-active="{{ timerSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ timerSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ timerSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ timerSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ timerSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ timerSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ timerSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ timerSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ timerSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</nav>\n\t\t</div>\n\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/openchannel/realtime/view/view.queue.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div id="grid1" ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-tree-view class="grid">\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/realtime/view/agent/agent.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/realtime/view/agent/agent.modal.logout.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_AGENT_LOGOUT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  {{\'MESSAGE_AGENT_LOGOUT\' | translate}} <b>{{agent}}</b> ?\n</div>\n<div class="modal-footer">\n  <button class="btn red-intense" type="button" ng-click="logout()">{{ \'APPLICATION_LOGOUT\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="$dismiss()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    <div class="form-group row">\n  <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n  <div class="col-md-10">\n    <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n      <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n      <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n        <div ng-bind-html="queue.name | highlight: $select.search"></div>\n      </ui-select-choices>\n    </ui-select>\n  </div>\n</div>\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/realtime/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-energy"></i>\n\t\t\t\t\t<a href="/channels/realtime/view/agents">{{ \'APPLICATION_OMNI_REALTIME\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t<div>\n\t\t    <nav class="navbar navbar-default" role="navigation">\n\t\t\t\t\t<div class="collapse navbar-collapse">\n\t\t\t\t\t\t<ul class="nav navbar-nav">\n\t\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.realtime.view.agents\')}">\n\t\t\t\t\t\t\t\t<a href="/channels/realtime/view/agents">\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_AGENTS\' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="#">\n\t\t\t\t\t\t\t\t\t<b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}}  </b><input\n\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\tng-model="showTimers"\n\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\tname="showTimers"\n\t\t\t\t\t\t\t\t\tswitch-active="{{ timerSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\tswitch-on-color="{{ timerSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\tswitch-off-color="{{ timerSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\tswitch-animate="{{ timerSwitch.animate }}"\n\t\t\t\t\t\t\t\t\tswitch-size="{{ timerSwitch.size }}"\n\t\t\t\t\t\t\t\t\tswitch-label="{{ timerSwitch.label }}"\n\t\t\t\t\t\t\t\t\tswitch-icon="{{ timerSwitch.icon }}"\n\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ timerSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\tswitch-label-width="{{ timerSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t    </nav>\n\t\t</div>\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/account/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="glyphicon glyphicon-comment"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="/channels/sms/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n\t\t\t\t\t\t\t<i class="icon-reload"></i>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/channels/sms/accounts/wizard">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/account/view/action/list/list.html",'<div class="row" data-ng-init="initActions()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/channels/sms/accounts/view/{{account.id}}/actions/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACTION\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/sms/account/view/action/view/view.html",'\n<div class="row" data-ng-init="initAction()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.settings" ng-submit="updateItem()" novalidate>\n\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.SmsQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/sms/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n                <h4 class="block">Warning!</h4>\n                <p>\n                  {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n                </p>\n                <p>\n                  {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n                </p>\n              </div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.agent.$touched || forms.settings.$submitted) && forms.settings.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" min="1" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.template.$touched || forms.settings.$submitted) && forms.settings.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.to.$touched || forms.settings.$submitted) && forms.settings.to.$invalid && forms.settings.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.account.$touched || forms.settings.$submitted) && forms.settings.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.text.$touched || forms.text.$submitted) && forms.settings.text.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler" maxlength="160"  name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.text.$touched || forms.settings.$submitted) && forms.settings.text.$invalid && forms.settings.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span data-ng-show="(forms.settings.intType.$touched || forms.settings.$submitted) && forms.settings.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\x3c!-- <input type="checkbox" data-ng-model="application.alwaysTime"> --\x3e\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.IntervalId.$touched || forms.settings.$submitted) && forms.settings.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t</div>\n\t\t\t\t\t<button class="btn green-haze" type="submit">{{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/account/view/action/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-directions font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTION\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.action.$valid)">\n\t\t\t\t\t\t<form name="forms.action" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': forms.action.$submitted && forms.action.app.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="app.value as app in apps | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.action.$submitted && forms.action.app.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'agent\'" lazy-render duration="1" data-ng-init="getAgents()">\n\t\t\t\t\t\t\t\t\x3c!-- START AGENT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.UserId" name="agent" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.fullname}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="agent.fullname | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="agents.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_AGENTS_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/staff/agents/list">{{\'APPLICATION_AGENTS\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.agent.$touched || forms.action.$submitted) && forms.action.agent.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END AGENT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'queue\'" lazy-render duration="1" data-ng-init="getQueues()">\n\t\t\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.SmsQueueId" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.id as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="queues.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/sms/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.queue.$touched || forms.action.$submitted) && forms.action.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.timeout.$touched || forms.action.$submitted) && forms.action.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="number" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="application.timeout" min="1" required/>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1" data-ng-init="getMailAccounts();getTemplates()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDMAIL --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendMail\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="email" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2" required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.mail.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEMPLATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data9" name="template" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="template.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.template.$touched || forms.action.$submitted) && forms.action.template.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END SENDMAIL --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1" data-ng-init="getSmsAccounts()">\n\t\t\t\t\t\t\t\t\x3c!-- START SENDSms --\x3e\n\t\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.app === \'sendSms\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TO\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input  type="text" ng-pattern="/^[\\+]?[0-9]+$/" name="to" placeholder="{{\'APPLICATION_TO\' | translate}}" class="form-control" data-ng-model="application.data2"  required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.to.$touched || forms.action.$submitted) && forms.action.to.$invalid && forms.action.to.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACCOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.data8" name="account" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.account.$touched || forms.action.$submitted) && forms.action.account.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler"  maxlength="160" name="text" data-ng-model="application.data6" required></textarea>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.text.$touched || forms.action.$submitted) && forms.action.text.$invalid && forms.action.text.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\x3c!-- END SENDSms --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_INTERVAL_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{ intType.name | translate }}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.intType.$touched || forms.action.$submitted) && forms.action.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="application.alwaysTime">\n\t\t\t\t\t\t\t\t\t\t\t<uib-timepicker name="t_from" data-ng-model="application.t_from" show-meridian="false" show-spinners="false" mousewheel="false"></uib-timepicker>\n\t\t\t\t\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="application.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.alwaysTime"\n\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <input type="checkbox" data-ng-model="application.alwaysTime"> --\x3e\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ weekDay.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_to && application.md_to!==\'always\' && monthDay>application.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match allow-clear>{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="application.md_from && application.md_from!==\'always\' && monthDay<application.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{ $select.selected.name | translate }}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ month.name | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="app-settings" ng-slide-down="application.intType === \'list\'" lazy-render duration="1" data-ng-init="getIntervals()">\n\n\t\t\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{ $select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t{{ interval.name}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.action.IntervalId.$touched || forms.action.$submitted) && forms.action.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONTINUE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" data-ng-click="next()" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/account/view/api/view/view.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_API\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- CALLBACK TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t\t\x3c!-- START CALLBACK URL --\x3e\n\t\t\t\t\t\t\t<div  class="row" >\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">Receive URL</label>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\tCopy the following url and insert it into your {{account.type}} account settings to receive SMS.\n\t\t\t\t\t\t\t\t\t\t\t<a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div   class="row" >\n\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t<code-mirror  model="receiveurl"></code-mirror>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t<a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(receiveurl);"><i class="fa fa-clipboard"></i>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div><br>\n\t\t\t\t\t\t\t\x3c!-- END CALLACK URL --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DELIVERY CALLBACK URL --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.smstype == \'classic+\'" class="row"  ng-show="!forms.info.remote.$invalid">\n\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t<label class="control-label">Delivery URL </label>\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\tCopy the following url and insert it into your {{account.type}} account settings to receive delivery report.\n \t\t\t\t\t\t\t\t\t <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div ng-if= "account.smstype == \'classic+\'"  class="row" ng-show="!forms.info.remote.$invalid">\n\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t<code-mirror class="control-label" model="deliveryurl"></code-mirror>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t<a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(deliveryurl);"><i class="fa fa-clipboard"></i>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DELIVERY CALLACK URL --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CALLBACK TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/sms/account/view/disposition/modal/add.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n      <div class="">\n        <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n        <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n        </span>\n      </div>\n    </div>\n    \x3c!-- END NAME --\x3e\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/sms/account/view/disposition/view/view.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions actions-md">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n\t\t\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t<div class="row" data-ng-hide="dispositions.length">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div class="note note-info">\n\t\t\t\t\t\t\t\t<h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="row" data-ng-repeat="disposition in dispositions">\n\t\t\t\t\t\t<div class="col-md-12 form-group">\n\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t<button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t\t\t\t\t\t<button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/sms/account/view/hooks/view/view.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_HOOKS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_ACCEPT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_REJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li >\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_CLOSE\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- ACCEPT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.accept" data-ng-submit="forms.accept.$valid && updateItemSmsAccount()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START ACCEPT URL --\x3e\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.acceptMethod" name="method" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.method.$touched || forms.accept.$submitted) && forms.accept.method.$invalid && forms.accept.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.acceptUrl"  ng-required="account.acceptMethod"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.accept.url.$touched || forms.accept.$submitted) && forms.accept.url.$invalid && forms.accept.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ACCEPT URL--\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START ACTIONS--\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START PAUSE --\x3e\n\t\t\t\t\t\t\t\t<div class="row" ng-repeat = "action in account.actions">\n\t\t\t\t\t\t\t\t\t<div  ng-switch="action.action">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-switch-when="pause">\n\t\t\t\t\t\t\t\t\t\t\t\t<div  class="form-group col-md-4">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PAUSE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-change="resetActionData(action)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="action.enabled"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-if="action.enabled" class="form-group col-md-8">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select  name="action" data-ng-model="action.type"  theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat=" pause.name as pause in pauses | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="pause.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ACTION --\x3e\n\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ACCEPT TAB --\x3e\n\t\t\t\t\t\x3c!-- START REJECT TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.reject" data-ng-submit="forms.reject.$valid && updateItemSmsAccount()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START REJECT URL --\x3e\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.rejectMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.method.$touched || forms.reject.$submitted) && forms.reject.method.$invalid && forms.reject.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.rejectUrl" ng-required="account.rejectMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.reject.url.$touched || forms.reject.$submitted) && forms.reject.url.$invalid && forms.reject.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- END REJECT URL --\x3e\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END REJECT TAB --\x3e\n\t\t\t\t\t\x3c!-- START CLOSE TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.close" data-ng-submit="forms.close.$valid && updateItemSmsAccount()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_METHOD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.closeMethod" name="method" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected.name | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in types | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.method.$touched || forms.close.$submitted) && forms.close.method.$invalid && forms.close.method.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="account.closeUrl" ng-required="account.closeMethod"/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.close.url.$touched || forms.close.$submitted) && forms.close.url.$invalid && forms.close.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CLOSE TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/sms/account/view/setting/view/view.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItemSmsAccount()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START ID --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ID\' | translate}}<span class="required" aria-required="true">*</span>\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t<input type="text" name="id" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.id" ng-disabled="true" required/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ID--\x3e\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START LIST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="license.cm">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group">\n\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="list.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LIST --\x3e\n\t\t\t\t\t\t\t\x3c!-- START FIDELITY --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="account.fidelity"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END FIDELITY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t\x3c!-- START TWILIO --\x3e\n\t\t\t\t\t\t\t\x3c!-- START PHONE --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" ng-pattern="/^[\\+]?[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PHONE  --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SID --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SID\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="sid" placeholder="{{\'APPLICATION_SID\' | translate}}" class="form-control" data-ng-model="account.sid" name="sid" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid && forms.info.sid.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SID --\x3e\n\t\t\t\t\t\t\t\x3c!-- START TOKEN --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TOKEN\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" name="token" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid && forms.info.token.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SID --\x3e\n\t\t\t\t\t\t\t\x3c!-- END TWILIO --\x3e\n\t\t\t\t\t\t\t\x3c!-- START SKEBBY --\x3e\n\t\t\t\t\t\t\t\x3c!-- START SKEBBY SMS TYPE --\x3e\n\t\t\t\t\t\t<div ng-if= " account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SMS_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="account.smstype" name="smstype" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'SMS_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="smstype in [\'basic\',\'classic\',\'classic+\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div data-ng-bind="smstype | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid && forms.info.smstype.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SKEBBY SMS TYPE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START PHONE  --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'skebby\'  " class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true"></span></label>\n\t\t\t\t\t\t\t\t<input type="text" ng-pattern="/^[0-9]+$/"  placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PHONE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" name="username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\t\t\t\t\t\t\t\x3c!-- END SKEBBY --\x3e\n\t\t\t\t\t\t\t\x3c!-- START REMOTE IP --\x3e\n\t\t\t\t\t\t\t<div  class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remote" required/>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REMOTE IP --\x3e\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/sms/account/view/view.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="glyphicon glyphicon-comment"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="/channels/sms/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right" data-ng-show="account"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="account">\n\t\t\t\t\t<a href="#">{{ account.description || account.name }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img ng-src="assets/images/media/account.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ account.description || account.name }}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{account.email}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.settings\')}">\n\t\t\t\t\t\t\t<a href="/channels/sms/accounts/view/{{account.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.api\')}">\n\t\t\t\t\t\t\t<a href="/channels/sms/accounts/view/{{account.id}}/api">\n\t\t\t\t\t\t\t<i class="fa fa-external-link"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_API\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.hooks\')}">\n\t\t\t\t\t\t\t<a href="/channels/sms/accounts/view/{{account.id}}/hooks">\n\t\t\t\t\t\t\t<i class="fa fa-code"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_HOOKS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.is(\'main.channels.sms.accounts.view.dispositions\')}">\n\t\t\t\t\t\t\t<a href="/channels/sms/accounts/view/{{account.id}}/dispositions">\n\t\t\t\t\t\t\t<i class="icon-target"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_DISPOSITIONS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li ng-class="{active: $state.includes(\'main.channels.sms.accounts.view.actions\')}">\n\t\t\t\t\t\t\t<a href="/channels/sms/accounts/view/{{account.id}}/actions/list">\n\t\t\t\t\t\t\t<i class="icon-directions"></i>\n\t\t\t\t\t\t\t{{\'APPLICATION_ACTIONS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div ui-view class="profile-content"></div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n\x3c!-- END PAGE CONTENT--\x3e\n</div>\n'),t.put("app/channels/sms/account/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItemSmsAccount()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START ID --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ID\' | translate}}<span class="required" aria-required="true">*</span>\n\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t<input type="text" name="id" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.id" ng-disabled="true" required/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ID--\x3e\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START LIST --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="license.cm">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group">\n\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.ListId" name="list" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_LIST\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="list.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" data-ng-click="account.ListId = null" class="btn btn-default">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LIST --\x3e\n\n\n\t\t\t\t\t\t\t\x3c!-- START FIDELITY --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FIDELITY\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tdata-ng-model="account.fidelity"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="auth"\n\t\t\t\t\t\t\t\tswitch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END FIDELITY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="account.fidelity" data-ng-class="{\'has-error\': (forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="account.timeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.timeout.$touched || forms.info.$submitted) && forms.info.timeout.$invalid && forms.info.timeout.$error.number" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PHONE FOR TWILLIO ACCOUNT --\x3e\n\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" ng-pattern="/^[\\+]?[0-9]+$/" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n\x3c!-- Format with a \'+\' and country code  --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- <span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n\t\t\t\t\t\t\t\t</span> --\x3e\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PHONE FOR TWILLIO ACCOUNT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SID --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SID\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="sid" placeholder="{{\'APPLICATION_SID\' | translate}}" class="form-control" data-ng-model="account.sid" name="sid" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid && forms.info.sid.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SID --\x3e\n\t\t\t\t\t\t\t\x3c!-- START TOKEN --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TOKEN\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" name="token" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid && forms.info.token.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SID --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SMS TYPE --\x3e\n\n\t\t\t\t\t\t<div ng-if= " account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SMS_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="account.smstype" name="smstype" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'SMS_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="smstype in [\'basic\',\'classic\',\'classic+\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div data-ng-bind="smstype | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid && forms.info.smstype.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TYPE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START PHONE FOR SKEBBY ACCOUNT --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'skebby\'  " class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true"></span></label>\n\t\t\t\t\t\t\t\t<input type="text" ng-pattern="/^[0-9]+$/"  placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="account.phone" name="phone" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.phone.$touched || forms.in.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PHONE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" name="username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\t\t\t\t\t\t\t\x3c!-- START REMOTE IP --\x3e\n\t\t\t\t\t\t\t<div  class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remote" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REMOTE IP --\x3e\n\t\t\t\t\t\t\t\x3c!-- START CALLBACK URL --\x3e\n\t\t\t\t\t\t\t<div  ng-show="!forms.info.remote.$invalid" class="row" >\n\t\t\t\t\t\t\t\t\x3c!-- <div class="row"> --\x3e\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">URL </label><br>\n\t\t\t\t\t\t\t\t\t\t<span ng-if= "account.type == \'twilio\' || account.type == \'skebby\'">\n\t\t\t\t\t\t\t\t\t\t\tCopy the following url and insert it into your {{account.type}} account settings to receive sms.\n\t\t\t\t\t\t\t\t\t\t\t<a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t<div  ng-show="!forms.info.remote.$invalid" class="row" >\n\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t<code-mirror  model="receiveurl"></code-mirror>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t<a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(receiveurl);"><i class="fa fa-clipboard"></i>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CALLACK URL --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DELIVERY CALLBACK URL --\x3e\n\t\t\t\t\t\t\t<div ng-if= "account.smstype == \'classic+\'" class="row"  ng-show="!forms.info.remote.$invalid">\n\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t<label class="control-label">Delivery URL </label><br>\n\t\t\t\t\t\t\t\t\t Copy the following url and insert it into your {{account.type}} account settings to receive delivery status.\n\t\t\t\t\t\t\t\t\t <a href="https://wiki.xcallymotion.com/display/XMD/SMS" target="_blank">Detail</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t<div ng-if= "account.smstype == \'classic+\'"  class="row" ng-show="!forms.info.remote.$invalid">\n\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t<code-mirror class="control-label" model="deliveryurl"></code-mirror>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t<a class="btn btn-sm green-jungle" data-ng-click="copyToClipboard(deliveryurl);"><i class="fa fa-clipboard"></i>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DELIVERY CALLACK URL --\x3e\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/sms/account/wizard/wizard.html",'\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN PAGE HEADER--\x3e\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="glyphicon glyphicon-comment"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-notebook"></i>\n\t\t\t\t\t<a href="/channels/sms/accounts/list">{{ \'APPLICATION_ACCOUNTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t\x3c!-- END PAGE HEADER--\x3e\n\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t        <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="formValidation(forms.info.$valid)">\n\t\t\t\t\t\t\t<form name="forms.info" novalidate>\n\t\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n                \x3c!-- START APPLICATION TYPE --\x3e\n\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.type.$touched || forms.info.$submitted) && forms.info.type.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n\t\t\t            <ui-select-match placeholder="{{\'APPLICATION_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t            <ui-select-choices repeat="type in [\'twilio\',\'skebby\'] | filter: $select.search">\n\t\t\t              <div data-ng-bind="type | highlight: $select.search | uppercase" ></div>\n\t\t\t            </ui-select-choices>\n\t\t\t          </ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.type.$touched || forms.info.$submitted) && forms.info.type.$invalid && forms.info.type.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n                \x3c!-- END TYPE --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START PHONE FOR TWILLIO ACCOUNT --\x3e\n\t\t\t\t\t\t\t\t<div ng-if= "item.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="text" ng-pattern="/^[\\+]?[0-9]+$/"  placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone" name="phone" required/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END PHONE FOR TWILLIO ACCOUNT --\x3e\n                \x3c!-- START SID --\x3e\n                <div ng-if= "item.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': ( forms.info.sid.$touched ||forms.info.$submitted) && forms.info.sid.$invalid}">\n                  <label class="control-label">{{\'APPLICATION_SID\' | translate}}<span class="required" aria-required="true">*</span></label>\n                  <input type="text"  placeholder="{{\'APPLICATION_SID\' | translate}}" class="form-control" data-ng-model="item.sid" name="sid" required/>\n                  <span data-ng-show="(forms.info.sid.$touched || forms.info.$submitted) && forms.info.sid.$invalid && forms.info.sid.$error.required"  class="help-block help-block-error">\n                    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                  </span>\n                </div>\n                \x3c!-- END SID --\x3e\n                \x3c!-- START TOKEN --\x3e\n                <div ng-if= "item.type == \'twilio\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid}">\n                  <label class="control-label">{{\'APPLICATION_TOKEN\' | translate}}<span class="required" aria-required="true">*</span></label>\n                  <input type="text"  placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="item.token" name="token" required/>\n                  <span data-ng-show="(forms.info.token.$touched || forms.info.$submitted) && forms.info.token.$invalid && forms.info.token.$error.required"  class="help-block help-block-error">\n                    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                  </span>\n                </div>\n                \x3c!-- END SID --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START SMS TYPE --\x3e\n\t\t\t\t\t\t\t<div ng-if= " item.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SMS_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.smstype" name="smstype" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'SMS_TYPE\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="smstype in [\'basic\',\'classic\',\'classic+\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div data-ng-bind="smstype | highlight: $select.search | uppercase" ></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.smstype.$touched || forms.info.$submitted) && forms.info.smstype.$invalid && forms.info.smstype.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TYPE --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START PHONE FOR SKEBBY ACCOUNT --\x3e\n\t\t\t\t\t\t\t<div ng-if= "item.type == \'skebby\' " class="form-group" data-ng-class="{\'has-error\': ( forms.info.phone.$touched ||forms.info.$submitted) && forms.info.phone.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true"></span></label>\n\t\t\t\t\t\t\t\t<input type="text" ng-pattern="/^[0-9]+$/"  placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone" name="phone" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_PHONE_NUMBER\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid && forms.info.phone.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END PHONE --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t\t<div ng-if= "item.type == \'skebby\'" class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" name="username" required/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required"  class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n                \x3c!-- START PASSWORD --\x3e\n                <div ng-if= "item.type == \'skebby\'" 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.$invalid && 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                \x3c!-- END PASSWORD --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START REMOTE IP --\x3e\n\t\t\t\t\t\t\t\t<div ng-if= "item.type" class="form-group" data-ng-class="{\'has-error\': (forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="url" name="remote" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remote" required/>\n\t\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.remote.$touched || forms.info.$submitted) && forms.info.remote.$invalid && forms.info.remote.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END REMOTE IP --\x3e\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/inbox/room/room.directive.html",'\x3c!-- BEGIN TODO CONTENT --\x3e\n\n<div class="todo-content">\n\t<div class="portlet light">\n\t\t<div class="portlet-title">\n\t\t\t<div class="caption">\n\t\t\t\t<button class="btn btn-sm btn-default green-meadow" data-ng-if="SmsRoom.status !== \'CLOSED\'" data-ng-disabled="!form.body || forms.compose.from.$invalid || forms.compose.to.$invalid" data-ng-click="sendSMS()">\n\t\t\t\t\t<i class="icon-paper-plane" style="color: white;"></i> {{\'APPLICATION_SEND\' | translate}}\n\t\t\t\t</button>\n\t\t\t\t<span data-ng-show="SmsRoom && SmsRoom.status !== \'CLOSED\'"> | </span>\n\t\t\t\t<span data-ng-show="SmsRoom" class="label label-default">#{{SmsRoom.id}} {{SmsRoom.status}}</span>\n\t\t\t\t<span data-ng-if="SmsRoom && SmsRoom.ParentId"> | </span>\n\t\t\t\t<span data-ng-if="SmsRoom && SmsRoom.ParentId" class="label label-warning"> Ref: <a data-ng-click="openRoom(SmsRoom.ParentId,SmsRoom.contact)">#{{SmsRoom.ParentId}}</a></span>\n\t\t\t</div>\n\t\t\t<div class="actions" data-ng-switch="SmsRoom.status">\n\t\t\t\t<button class="btn btn-icon-only" data-ng-show="SmsRoom"  data-ng-class="{\'btn-success\':SmsRoom.status !== \'CLOSED\',\'grey-cascade\':SmsRoom.status === \'CLOSED\'}" data-ng-click="closeRoom(SmsRoom.id)"  data-ng-disabled="SmsRoom.status === \'CLOSED\' && SmsRoom.disposition">\n\t\t\t\t\t<i data-ng-class="{\'fa fa-upload\':SmsRoom.status !== \'CLOSED\',\'icon-target\':SmsRoom.status === \'CLOSED\'}"></i>\n\t\t\t\t</button>\n\t\t\t\t<button  class="btn default btn-icon-only" data-ng-if="SmsRoom && SmsRoom.status !== \'CLOSED\'" type="button" data-ng-click="togglePanelLeft()" title="{{\'APPLICATION_RESIZE\' | translate}}">\n\t\t\t\t\t<i ng-class="panelRight == \'col-md-12\' ? \'icon-size-actual\' : \'icon-size-fullscreen\'"></i>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t<div class="row">\n\t\t\t\t<div data-ng-show="panelLeft" data-ng-class="panelLeft">\n\t\t\t\t\t<div class="form">\n\t\t\t\t\t\t\x3c!-- START TAGS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-if="SmsRoom.status !== \'CLOSED\' || (SmsRoom.status == \'CLOSED\' && form.tags.length)">\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-disabled="SmsRoom.status == \'CLOSED\'"  multiple data-ng-model="form.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="Tags...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search" class="">\n\t\t\t\t\t\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TAGS --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t<hr data-ng-if="SmsRoom && SmsRoom.status !== \'CLOSED\'">\n\n\t\t\t\t\t<div ng-scrollbars ng-scrollbars-config="{\n\t\t\t\t\t\tautoHideScrollbar: false,\n\t\t\t\t\t\ttheme: \'light\',\n\t\t\t\t\t\tadvanced: {\n\t\t\t\t\t\t\tupdateOnContentResize: true\n\t\t\t\t\t\t},\n\t\t\t\t\t\tsetHeight: 781,\n\t\t\t\t\t\tscrollInertia: 0\n\t\t\t\t\t}">\n\t\t\t\t\t\t<ul class="chats">\n\t\t\t\t\t\t\t<li data-ng-switch="SmsRoom.status" data-ng-class="{\'in\': smsMessage.status == \'RECEIVED\', \'out\': smsMessage.status == \'SENT\' || smsMessage.status == \'SENDING\' || smsMessage.status == \'FAILED\' || smsMessage.status == \'NOTE\'  || smsMessage.status == \'DELIVERED\' || smsMessage.status == \'QUEUED\' ||  smsMessage.status != \'RECEIVED\' }" data-ng-repeat="smsMessage in SmsRoom.SmsMessages | orderBy:\'-createdAt\'">\n\t\t\t\t\t\t\t\t<div class="avatar" data-ng-class="smsMessage.UserId ? \'pretty-avatar\' : \'pretty-avatar-v\'">\n\t\t\t\t\t\t\t\t\t<ng-letter-avatar\n\t\t\t\t\t\t\t\t\tdata-ng-if="smsMessage.UserId"\n\t\t\t\t\t\t\t\t\theight="40"\n\t\t\t\t\t\t\t\t\twidth="40"\n\t\t\t\t\t\t\t\t\tfontsize="25"\n\t\t\t\t\t\t\t\t\tdata="{{smsMessage.User.fullname}}"\n\t\t\t\t\t\t\t\t\tavatarcustombgcolor="#B0B0B0"\n\t\t\t\t\t\t\t\t\tavatarcustomborder="border:2px solid #3399CC"\n\t\t\t\t\t\t\t\t\tcharCount="2"\n\t\t\t\t\t\t\t\t\tshape="round"></ng-letter-avatar>\n\t\t\t\t\t\t\t\t\t<ng-letter-avatar\n\t\t\t\t\t\t\t\t\tdata-ng-if="!smsMessage.UserId"\n\t\t\t\t\t\t\t\t\theight="40"\n\t\t\t\t\t\t\t\t\twidth="40"\n\t\t\t\t\t\t\t\t\tfontsize="25"\n\t\t\t\t\t\t\t\t\tdata="{{smsMessage.from}}"\n\t\t\t\t\t\t\t\t\tavatarcustombgcolor="#B0B0B0"\n\t\t\t\t\t\t\t\t\tavatarcustomborder="border:2px solid #EA4C61"\n\t\t\t\t\t\t\t\t\tcharCount="1"\n\t\t\t\t\t\t\t\t\tshape="round"></ng-letter-avatar>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<sms message="smsMessage" list-id="SmsRoom.SmsAccount.ListId" accounttype=\'SmsRoom.SmsAccount.type\' ng-switch-default></sms>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div data-ng-class="panelRight">\n\t\t\t\t\t<div class="note note-info" data-ng-if="SmsRoom && SmsRoom.status == \'CLOSED\'">\n\t\t\t\t\t\t<h4 class="block">Info! {{\'MESSAGE_SMS_ROOM_CLOSED\' | translate}}</h4>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t{{\'MESSAGE_SMS_ROOM_CLOSED_DETAILS\' | translate}}.\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<hr>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}: <strong>{{SmsRoom.disposition}}</strong>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<i class="icon-calendar"></i> {{\'APPLICATION_UPDATED_AT\' | translate}}: <strong>{{SmsRoom.updatedAt | date:\'medium\'}}</strong> (<span am-time-ago="SmsRoom.updatedAt"></span>)\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<form name="forms.compose" data-ng-submit="forms.compose.$valid && sendSMS()" class="form-horizontal" novalidate>\n\t\t\t\t\t\t\x3c!-- START HEAD --\x3e\n\t\t\t\t\t\t<div class="form">\n\n\t\t\t\t\t\t\t\x3c!-- START FROM --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.compose.from.$invalid && forms.compose.$submitted}" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">From:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select  data-ng-disabled="SmsRoom"  theme="bootstrap" name="from" data-ng-model="form.from" required>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="From...">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="smsAccount.phone as smsAccount in smsAccounts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div data-ng-bind-html="smsAccount.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<small data-ng-bind-html="smsAccount.phone | highlight: $select.search"></small>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.compose.from.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END FROM --\x3e\n\t\t\t\t\t\t\t\x3c!-- START TO --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.compose.to.$invalid && forms.compose.$submitted}" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n\n\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">To:</label>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" ng-pattern="/^[\\+]?[0-9]+$/"  name="to" class="form-control todo-taskbody-taskdesc" placeholder="To..." rows="8"   data-ng-disabled="SmsRoom" data-ng-model="form.to" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.compose.to.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TO --\x3e\n\t\t\t\t\t\t\t\x3c!-- START CANNED --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-if="SmsRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-magic" style="color: gray;"></i>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t<input  type="text"\n\t\t\t\t\t\t\t\t\t\tdata-ng-model="modelOptions.selectedAnswer"\n\t\t\t\t\t\t\t\t\t\tuib-typeahead="key for key in getAnswers($viewValue)"\n\t\t\t\t\t\t\t\t\t\tplaceholder="Canned answers.."\n\t\t\t\t\t\t\t\t\t\ttypeahead-loading="loadingLocations"\n\t\t\t\t\t\t\t\t\t\ttypeahead-no-results="noResults"\n\t\t\t\t\t\t\t\t\t\ttypeahead-on-select="onSelect($item)"\n\t\t\t\t\t\t\t\t\t\tclass="form-control">\n\t\t\t\t\t\t\t\t\t\t<i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>\n\t\t\t\t\t\t\t\t\t\t<div ng-show="noResults">\n\t\t\t\t\t\t\t\t\t\t\t<i class="glyphicon glyphicon-remove"></i> No Results Found\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CANNED --\x3e\n\t\t\t\t\t\t\t\x3c!-- START message --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.compose.body.$invalid && forms.compose.$submitted}" data-ng-if="SmsRoom.status !== \'CLOSED\'">\n\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t<textarea id="text" class="form-control maxlength-handler" rows="8" maxlength="160" name="body" data-ng-model="form.body" ></textarea>\n\t\t\t\t\t\t\t\t\t<button id="btnPost" type="button" class="btn btn-success pull-right" ng-class="{\'btn-warning\': form.body.length >= 120, \'btn-danger\': form.body.length >= 141 }">{{ 160 - form.body.length }}</button>\n\t\t\t\t\t\t\t\t\t<span class="help-block"> Max 160 chars</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.compose.body.$invalid && forms.compose.$submitted " class="help-block help-block-error">\n'+"\t\t\t\t\t\t\t\t\t\t<strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- END message --\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n\x3c!-- END TODO CONTENT --\x3e\n"),t.put("app/channels/sms/inbox/sms/info.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body"  data-ng-init="initInfo()" style=" overflow-x: auto;">\n  <div class="form-group" ng-if="data">\n    <json-formatter json="data" open="1"></json-formatter>\n  </div>\n  <div class="note note-warning" data-ng-hide="data">\n    <p>\n      {{ \'MESSAGE_NO_INFO_AVAILABLE\' | translate }}\n    </p>\n  </div>\n\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/sms/inbox/sms/sms.html",'<div class="message">\n  <div class="row">\n    <div class="col-md-6">\n      <span class="bold">From: </span>\n      [<a href="" data-ng-click="openContact(smsMessage.from)">{{smsMessage.from}}</a>]\n      <br>\n      <span class="bold">To: </span>\n      [<a href="" data-ng-click="openContact(smsMessage.to)">{{smsMessage.to}}</a>]\n      <br>\n    </div>\n    <div class="col-md-6">\n      <span class="pull-right" data-ng-if="smsMessage.User">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>{{smsMessage.User.fullname}}</strong></span>\n      <span class="pull-right" data-ng-if="smsMessage.source">{{\'APPLICATION_SENT_BY\' | translate}}: <strong>Cally &#178;</strong>\n        <a ng-click="info(smsMessage.source)"><i class="icon-info font-blue"></i>\n        </a>\n    </div>\n  </div>\n\n  <br>\n  <span class="todo-tasklist-date">\n    <span class="pull-right" data-ng-switch="smsMessage.status">\n      <a ng-switch-when="RECEIVED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{smsMessage.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n      <a ng-switch-when="SENT" href="#" class="btn default btn-xs inactive-link green-stripe"> {{smsMessage.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n      <a ng-switch-when="DELIVERED" href="#" class="btn default btn-xs inactive-link green-stripe"> {{smsMessage.status | uppercase}}\n        <i class="fa fa-check"></i>\n      </a>\n      <a ng-switch-when="SENDING" href="#" class="btn default btn-xs inactive-link blue-stripe" > {{smsMessage.status | uppercase}}\n        <i class="fa fa-warning"></i>\n      </a>\n      <a ng-switch-when="FAILED" href="#" class="btn default btn-xs red-stripe" data-ng-click="info(null,smsMessage.res_data)"> {{smsMessage.status | uppercase}}\n        <i class="fa fa-times"></i>\n      </a>\n      <a ng-switch-default href="#" class="btn default btn-xs"> {{smsMessage.status | uppercase}}\n      </a>\n      <br>\n      \x3c!-- <a ng-href="https://www.twilio.com/docs/errors/{{smsMessage.errorcode}}" target="_blank" ng-if="(smsMessage.errorcode) && (accounttype==\'twilio\')">Error Code:{{smsMessage.errorcode}}</a>\n      <a ng-href="{{smsMessage.errorcode.length > 2 ? \'http://www.skebby.com/sms-api/sms-gateway/developers-docs/#receiveNotifySection\' : \'http://www.skebby.com/sms-api/sms-gateway/developers-docs/#errorCodesSection\'}}" target="_blank" ng-if="(smsMessage.errorcode != 1) && (smsMessage.errorcode) && (accounttype==\'skebby\')">Error Code:{{smsMessage.errorcode}}</a> --\x3e\n    </span>\n\n    <i class="icon-calendar" title="{{smsMessage.updatedAt | date:\'MMM d, y HH:mm:ss\'}}"></i> <span am-time-ago="smsMessage.updatedAt"></span>\n  </span>\n  <hr>\n  <span class="body text-left" data-ng-bind-html="smsMessage.body" style="white-space: pre-wrap;"></span>\n\n  </div>\n'),t.put("app/channels/sms/inbox/view/account/list/list.html",'\x3c!-- BEGIN Portlet PORTLET--\x3e\n<div class="portlet light" data-ng-init="initView()">\n\t<div class="portlet-title">\n\t\t<div class="caption">\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'NEW\'" uib-uncheckable>NEW</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'OPEN\'" uib-uncheckable>OPEN</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'PENDING\'" uib-uncheckable>PENDING</button>\n\t\t\t</div>\n\t\t\t<div class="btn-group btn-group-solid">\n\t\t\t\t<button type="button" class="btn btn-sm default" data-ng-model="query.status" uib-btn-radio="\'CLOSED\'" uib-uncheckable>CLOSED</button>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="actions">\n\t\t\t<a href="#" class="btn btn-icon-only default" data-ng-click="getPage();">\n\t\t\t\t<i class="fa fa-refresh"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only red" data-ng-click="deleteItems();" data-ng-show="id.length && isAdmin">\n\t\t\t\t<i class="fa fa-trash"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only btn-success" data-ng-click="disposeItems();" data-ng-show="id.length">\n\t\t\t\t<i class="fa fa-upload"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only blue" data-ng-click="tagItems();" data-ng-show="id.length">\n\t\t\t\t<i class="fa fa-tags"></i>\n\t\t\t</a>\n\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="openRoom(null, \'New Message\')">\n\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t</a>\n\t\t</div>\n\t</div>\n\t<div class="portlet-title" data-ng-show="tags.length">\n\t\t\x3c!-- START TAGS --\x3e\n\t\t<div class="form-group">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only">\n\t\t\t\t\t\t<i class="fa fa-tags" style="color: gray;"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t<ui-select multiple data-ng-model="query.tags" theme="bootstrap" on-select="onChanged($item, $model)" on-remove="onChanged($item, $model)">\n\t\t\t\t\t\t<ui-select-match placeholder="Search by tag...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="tag in tags | filter:$select.search">\n\t\t\t\t\t\t\t{{tag}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END TAGS --\x3e\n\t</div>\n\t<div class="portlet-body">\n\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid">\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END Portlet PORTLET--\x3e\n'),t.put("app/channels/sms/inbox/view/view.agents.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_AGENTS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TRANSPORT --\x3e\n  <div class="form-group">\n    <form name="form" novalidate>\n      \x3c!-- START TRANSPORT --\x3e\n      <div class="form-group">\n        <ui-select multiple name="agents" data-ng-model="item.agents" theme="bootstrap">\n          <ui-select-match placeholder="{{\'APPLICATION_AGENTS\' | translate}}">{{$item.fullname}}</ui-select-match>\n          <ui-select-choices repeat="agent.id as agent in agents | filter: $select.search">\n            {{agent.fullname}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n      \x3c!-- END TRANSPORT --\x3e\n    </form>\n  </div>\n  \x3c!-- END TRANSPORT --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/sms/inbox/view/view.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="fa fa-spinner"></i>\n          <a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n        <li>\n          <i class="glyphicon glyphicon-comment"></i>\n          <a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n        <li>\n\t\t\t\t\t<i class="icon-note"></i>\n\t\t\t\t\t<a href="/channels/sms/inbox/list">{{ \'APPLICATION_INBOX\' | translate }}</a>\n\t\t\t\t</li>\n      </ul>\n    </div>\n  </div>\n</div>\n\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row inbox" data-ng-init="initView()">\n\t<div class="col-md-3">\n\t\t<ul class="inbox-nav margin-bottom-10">\n\t\t\t<li data-ng-class="{active: $stateParams.id == smsAccount.id}" data-ng-repeat="smsAccount in smsAccounts">\n\t\t\t\t<a href="/channels/sms/inbox/view/account/{{smsAccount.id}}/list" class="btn">\n\t\t\t\t\t<i class="icon-notebook"></i> {{smsAccount.name}}\n\t\t\t\t</a>\n        <b></b>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\n\t<div class="col-md-9" >\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view>\n\t\t\t<div class="note note-info">\n\t\t\t\t<h4 class="block">Info! {{\'APPLICATION_NO_ACCOUNT_SELECTED\' | translate}}</h4>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/inbox/view/view.status.modal.html",'<div class="modal-header">\n  <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">&times;</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 && !closed" ng-bind="modal.text | translate"></p>\n  <form name="form" novalidate data-ng-init="initDisposition()">\n  <div class="form-group">\n    <ui-select data-ng-model="item.disposition" name="list" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n      <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n      <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n        <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n      </ui-select-choices>\n    </ui-select>\n  </div>\n  <div class="note note-warning" data-ng-hide="dispositions.length">\n    <h4 class="block">Warning!</h4>\n    <p>\n      {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n    </p>\n  </div>\n</form>\n  \x3c!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> --\x3e\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  \x3c!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> --\x3e\n</div>\n'),t.put("app/channels/sms/inbox/view/view.tags.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_TAGS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TRANSPORT --\x3e\n  <div class="form-group">\n    <form name="form" novalidate>\n      \x3c!-- START TAGS --\x3e\n      <div class="form-group">\n        <ui-select multiple data-ng-model="item.tags" theme="bootstrap">\n          <ui-select-match placeholder="{{\'APPLICATION_TAGS\' | translate}}">{{$item}}</ui-select-match>\n          <ui-select-choices repeat="tag in tags | filter: $select.search">\n            {{tag}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n      \x3c!-- END TAGS --\x3e\n    </form>\n  </div>\n  \x3c!-- END TRANSPORT --\x3e\n</div>\n<div class="modal-footer">\n  <button type="button" class="btn" data-ng-class="button.class" data-ng-click="button.click()"data-ng-repeat="button in modal.buttons">{{button.text | translate}}</button>\n  \x3c!-- <button class="btn btn-success" type="button" data-ng-click="ok()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button> --\x3e\n</div>\n'),t.put("app/channels/sms/inbox/view/view.templates.modal.html",'<div class="modal-header" data-ng-init="initModal()">\n  <h3 class="modal-title">{{ \'APPLICATION_TEMPLATES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <div class="note note-info" data-ng-show="!templates.length">\n    <h4 class="block">Info!</h4>\n    <p>\n      {{\'MESSAGE_NO_TEMPLATES_AVAILABLE\' | translate}}\n    </p>\n  </div>\n  <form name="form" data-ng-show="templates.length" novalidate>\n    <div class="form-group">\n      <ui-select data-ng-model="item.template" theme="bootstrap">\n        <ui-select-match placeholder="Select a template in the list or search his name...">{{$select.selected.name}}</ui-select-match>\n        <ui-select-choices repeat="template in templates | propsFilter: {name: $select.search}">\n          <div ng-bind-html="template.name | highlight: $select.search"></div>\n          <small data-ng-show="template.description">\n            {{\'APPLICATION_DESCRIPTION\' | translate}}: {{template.description}}\n          </small>\n        </ui-select-choices>\n      </ui-select>\n    </div>\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="templates.length">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/sms/queue/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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" data-ng-pattern="settings.patternName" required />\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$invalid && form.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="(form.name.$touched || form.$submitted) && form.name.$invalid && form.name.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START STRATEGY --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.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 strategies | 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="(form.strategy.$touched || form.$submitted) && form.strategy.$invalid && form.strategy.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END STRATEGY --\x3e\n\n    \x3c!-- START TIMEOUT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n      <label class="control-label">{{\'APPLICATION_AGENT_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="number" min="0" name="timeout" placeholder="Timeout" class="form-control" data-ng-model="item.timeout" required min="1"/>\n      <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$invalid && form.timeout.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TIMEOUT --\x3e\n\n    \x3c!-- START AGENTS--\x3e\n    <div class="form-body" data-ng-init="getTeams()">\n      <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n      <div class="input-group input-small mbottom20">\n        <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n        <div class="spinner-buttons input-group-btn btn-group-vertical">\n          <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n            <i class="fa fa-angle-up"></i>\n          </button>\n          <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n            <i class="fa fa-angle-down"></i>\n          </button>\n        </div>\n      </div>\n      <div class="form-group last">\n        <div class="col-md-12" id="multi-select-team">\n        </div>\n      </div>\n    </div>\n    \x3c!-- END AGENTS--\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/sms/queue/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="glyphicon glyphicon-comment"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="note note-warning" data-ng-hide="teams.length">\n\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t<p>\n\t\t\t\t\t {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t\t\t<form action="index.html" class="form-horizontal form-row-seperated">\n\t\t\t\t\t<div class="form-body">\n\t\t\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n\t\t\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-team">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END FORM--\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/sms/queue/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getQueue()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="glyphicon glyphicon-comment"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/channels/sms/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="queue" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="queue">\n\t\t\t\t\t<a href="#">{{queue.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{queue.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t{{user.role}}\n\t\t\t\t</div> --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t<div class="profile-usermenu">\n\t\t\t\t<ul class="nav">\n\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.sms.queues.view.settings\')}">\n\t\t\t\t\t\t<a data-ng-href="/channels/sms/queues/view/{{queue.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.sms.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/sms/queues/view/{{queue.id}}/agents">\n\t\t\t\t\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_AGENTS\' | translate}} </a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END PORTLET main.channels --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t\t<div ui-view class="profile-content">\n\t\t\t</div>\n\t\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t\t</div>\n\t</div>\n\t\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/queue/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateSmsQueue()" novalidate>\n\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="queue.name" data-ng-pattern="settings.patternName" required />\n\t\t\t\t\t\t<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\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\x3c!-- START STRATEGY --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}</label>\n\t\t\t\t\t\t<ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap">\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="strategy in strategies | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="strategy | uppercase | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END STRATEGY --\x3e\n\n\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">Timeout</label>\n\t\t\t\t\t\t<input type="number" name="timeout" placeholder="Timeout" class="form-control" min="1" data-ng-model="queue.timeout"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t<input data-ng-if="Auth.isAdmin()" class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/sms/realtime/view/agent/agent.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n  <div>{{agent.ipaddr}}:{{agent.port}}</div>\n  <div>{{agent.fullcontact}}</div>\n  <div>{{agent.useragent}}</div>\n  <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n  {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/sms/realtime/view/agent/queue.modal.add.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    <div class="form-group row">\n  <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n  <div class="col-md-10">\n    <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n      <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.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  </div>\n</div>\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/sms/realtime/view/application/application.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initApplications()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/realtime/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-directions"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="glyphicon glyphicon-comment"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SMS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-energy"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t<div>\n\t\t\t<nav class="navbar navbar-default" role="navigation">\n\t\t\t\t<div class="collapse navbar-collapse">\n\t\t\t\t\t<ul class="nav navbar-nav">\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.sms.realtime.view.agents\')}">\n\t\t\t\t\t\t\t<a href="/channels/sms/realtime/view/agents">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_AGENTS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.sms.realtime.view.applications\')}">\n\t\t\t\t\t\t\t<a href="/channels/sms/realtime/view/applications">\n\t\t\t\t\t\t\t\t{{\'APPLICATION_APPLICATIONS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<a href="#">\n\t\t\t\t\t\t\t\t<b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}}  </b><input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="showTimers"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="showTimers"\n\t\t\t\t\t\t\t\tswitch-active="{{ timerSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ timerSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ timerSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ timerSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ timerSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ timerSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ timerSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ timerSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ timerSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</nav>\n\t\t</div>\n\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/sms/realtime/view/view.queue.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div id="grid1" ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-tree-view class="grid">\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/chanspy/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_CHANSPY\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START PREFIX --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.prefix.$touched || form.$submitted) && form.prefix.$invalid}">\n      <label class="control-label">{{\'APPLICATION_PREFIX\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="prefix" placeholder="{{\'APPLICATION_PREFIX\' | translate}}" class="form-control" data-ng-model="item.prefix" required/>\n      <span data-ng-show="(form.prefix.$touched || form.$submitted) && form.prefix.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END PREFIX --\x3e\n\n    \x3c!-- START OPTIONS --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.options.$touched || form.$submitted) && form.options.$invalid}">\n      <label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <ui-select multiple data-ng-model="item.options" name="options" theme="bootstrap" required>\n        <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.value}}: {{$item.name | translate}}</ui-select-match>\n        <ui-select-choices repeat="option.value as option in options | filter: $select.search">\n          <div ng-bind-html="option.value + \': \' + (option.name | translate) | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.options.$touched || form.$submitted) && form.options.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END OPTIONS --\x3e\n\n    \x3c!-- START AUTH --\x3e\n    <div class="form-group">\n      <label class="control-label">{{\'APPLICATION_AUTH\' | translate}}</label></br>\n      <input\n      bs-switch\n      class="form-control"\n      ng-model="item.auth"\n      type="checkbox"\n      name="auth"\n      data-ng-init="item.auth = 0"\n      switch-active="{{ authSwitch.isActive }}"\n      switch-on-text="{{ authSwitch.onText }}"\n      switch-off-text="{{ authSwitch.offText }}"\n      switch-on-color="{{ authSwitch.onColor }}"\n      switch-off-color="{{ authSwitch.offColor }}"\n      switch-animate="{{ authSwitch.animate }}"\n      switch-size="{{ authSwitch.size }}"\n      switch-label="{{ authSwitch.label }}"\n      switch-icon="{{ authSwitch.icon }}"\n      switch-radio-off="{{ authSwitch.radioOff }}"\n      switch-label-width="{{ authSwitch.labelWidth }}"\n      switch-handle-width="{{ authSwitch.handleWidth }}">\n    </div>\n    \x3c!-- END AUTH --\x3e\n\n    \x3c!-- START PASSWORD --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.password.$touched || form.$submitted) && form.password.$invalid}">\n      <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span data-ng-show="item.auth" 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" data-ng-disabled="!item.auth" data-ng-required="item.auth"/>\n      <span data-ng-show="(form.password.$touched || form.$submitted) && form.password.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END PASSWORD --\x3e\n\n    \x3c!-- START RECORD --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.record.$touched || form.$submitted) && form.record.$invalid}">\n      <label class="control-label">{{\'APPLICATION_RECORDING\' | translate}}</label></br>\n      <input\n          bs-switch\n          class="form-control"\n          ng-model="item.record"\n          type="checkbox"\n          switch-active="{{ recordSwitch.isActive }}"\n          switch-on-text="{{ recordSwitch.onText }}"\n          switch-off-text="{{ recordSwitch.offText }}"\n          switch-on-color="{{ recordSwitch.onColor }}"\n          switch-off-color="{{ recordSwitch.offColor }}"\n          switch-animate="{{ recordSwitch.animate }}"\n          switch-size="{{ recordSwitch.size }}"\n          switch-label="{{ recordSwitch.label }}"\n          switch-icon="{{ recordSwitch.icon }}"\n          switch-radio-off="{{ recordSwitch.radioOff }}"\n          switch-label-width="{{ recordSwitch.labelWidth }}"\n          switch-handle-width="{{ recordSwitch.handleWidth }}">\n    </div>\n    \x3c!-- END RECORD --\x3e\n\n    \x3c!-- START RECORDINGFORMAT --\x3e\n    <div data-ng-if="item.record" class="form-group" data-ng-class="{\'has-error\': (form.recordingFormat.$touched || form.$submitted) && form.recordingFormat.$invalid}">\n      <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <ui-select data-ng-model="item.recordingFormat" name="recordingFormat" theme="bootstrap" data-ng-required="item.record">\n        <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n        <ui-select-choices repeat="format in [\'wav\',\'gsm\'] | filter: $select.search">\n          <div ng-bind-html="format | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.recordingFormat.$touched || form.$submitted) && form.recordingFormat.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END RECORDINGFORMAT --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/voice/chanspy/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-user-secret"></i>\n\t\t\t\t\t<a href="/channels/voice/chanspys/list">{{ \'APPLICATION_CHANSPY\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="fa fa-user-secret font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_CHANSPY\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CHANSPY\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/chanspy/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getChanSpy()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-user-secret"></i>\n\t\t\t\t\t<a href="/channels/voice/chanspy/list">{{ \'APPLICATION_CHANSPY\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="chanspy" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="chanspy">\n\t\t\t\t\t<a href="#">{{chanspy.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/chanspy.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{chanspy.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.chanspy.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/voice/chanspy/view/{{chanspy.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/chanspy/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CHANSPY\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateChanSpy()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="chanspy.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PREFIX --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.general.prefix.$touched || form.general.$submitted) && form.general.prefix.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PREFIX\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="prefix" placeholder="{{\'APPLICATION_PREFIX\' | translate}}" class="form-control" data-ng-model="chanspy.prefix" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.general.prefix.$touched || form.general.$submitted) && form.general.prefix.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PREFIX --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.general.options.$touched || form.general.$submitted) && form.general.options.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="chanspy.options" name="options" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.value}}: {{$item.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="option.value as option in options | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="option.value + \': \' + (option.name | translate) | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.general.options.$touched || form.general.$submitted) && form.general.options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START AUTH --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTH\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="chanspy.auth"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="auth"\n\t\t\t\t\t\t\t\tswitch-active="{{ authSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ authSwitch.onText }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ authSwitch.offText }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ authSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ authSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ authSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ authSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ authSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ authSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ authSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ authSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ authSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END AUTH --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.general.password.$touched || form.general.$submitted) && form.general.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" data-ng-show="chanspy.auth" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="chanspy.password" data-ng-disabled="!chanspy.auth" data-ng-required="chanspy.auth"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.general.password.$touched || form.general.$submitted) && form.general.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RECORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.record.$touched || forms.general.$submitted) && forms.general.record.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RECORDING\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t    bs-switch\n\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t    ng-model="chanspy.record"\n\t\t\t\t\t\t\t\t    type="checkbox"\n\t\t\t\t\t\t\t\t    switch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\t    switch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\t\t\t    switch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\t\t\t    switch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\t    switch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\t    switch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\t    switch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\t    switch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\t    switch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\t    switch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t    switch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t    switch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RECORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RECORDINGFORMAT --\x3e\n\t\t\t\t\t\t\t<div data-ng-if="chanspy.record" class="form-group" data-ng-class="{\'has-error\': (forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="chanspy.recordingFormat" name="recordingFormat" theme="bootstrap" data-ng-required="chanspy.record">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="format in [\'wav\',\'gsm\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="format | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RECORDINGFORMAT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="chanspy.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/context/list/create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_CONTEXT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/voice/context/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_CONTEXTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTEXT\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/context/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getContext()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/channels/voice/contexts/list">{{ \'APPLICATION_CONTEXTS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="context" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="context">\n\t\t\t\t\t<a href="#">{{context.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/context.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{context.name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.contexts.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/voice/contexts/view/{{context.id}}/settings">\n\t\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END PORTLET main.channels --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t\t<div ui-view class="profile-content">\n\t\t\t</div>\n\t\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t\t</div>\n\t</div>\n\t\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/context/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CONTEXT\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceContext()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="context.name" required readonly/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_CANT_EDIT_NAME\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="context.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/disposition/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-target"></i>\n\t\t\t\t\t<a href="/channels/voice/dispositions/list">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<a href="#" class="btn btn-icon-only green" data-ng-click="addDisposition();">\n\t\t\t\t\t\t<i class="fa fa-plus"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t<div class="row" data-ng-hide="dispositions.length">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div class="note note-info">\n\t\t\t\t\t\t\t\t<h4 class="block">Info! {{\'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate}}</h4>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="row" data-ng-repeat="disposition in dispositions">\n\t\t\t\t\t\t<div class="col-md-12 form-group">\n\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<input class="form-control" type="text" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" data-ng-model="disposition.name">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t<button class="btn btn-success" type="button" data-ng-click="updateDisposition(disposition.id, disposition.name);"><i class="fa fa-cloud-upload fa-fw"></i> {{\'APPLICATION_UPDATE\' | translate}}</button>\n\t\t\t\t\t\t\t\t\t<button class="btn btn-danger" type="button" data-ng-click="deleteDisposition(disposition.id);"><i class="fa fa-times fa-fw"></i> {{\'APPLICATION_DELETE\' | translate}}</button>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/disposition/list/modal/add.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_DISPOSITIONS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.form.$touched || form.$submitted) && form.form.$invalid}">\n      <div class="">\n        <input type="text" name="form" placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}" class="form-control" data-ng-model="name" required/>\n        <span data-ng-show="form.form.$touched && form.form.$error.required" class="help-block help-block-error">\n          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n        </span>\n      </div>\n    </div>\n    \x3c!-- END NAME --\x3e\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" data-ng-click="ok()" data-ng-show="form.$valid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" data-ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/voice/moh/list/create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_MOH_CLASS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START MODE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.mode.$touched || forms.$submitted) && forms.mode.$invalid}">\n      <label class="control-label">{{\'APPLICATION_MODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <ui-select data-ng-model="item.mode" theme="bootstrap" name="mode" data-ng-init="item.mode = \'files\'" required>\n        <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n        <ui-select-choices repeat="mode in [\'files\',\'custom\'] | filter: $select.search">\n          {{mode}}\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(forms.mode.$touched || forms.$submitted) && forms.mode.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END MODE --\x3e\n\n    \x3c!-- START DIRECTORY --\x3e\n    <div data-ng-if="item.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (form.directory.$touched || form.$submitted) && form.directory.$invalid}">\n      <label class="control-label">{{\'APPLICATION_DIRECTORY\' | translate}}</label>\n      <input type="text" name="directory" placeholder="{{\'APPLICATION_DIRECTORY\' | translate}}" class="form-control" data-ng-model="item.directory"/>\n    </div>\n    \x3c!-- END DIRECTORY --\x3e\n\n    \x3c!-- START APPLICATION --\x3e\n    <div data-ng-if="item.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (form.application.$touched || form.$submitted) && form.application.$invalid}">\n      <label class="control-label">{{\'APPLICATION_APPLICATION\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="application" placeholder="{{\'APPLICATION_APPLICATION\' | translate}}" class="form-control" data-ng-model="item.application"/>\n      <span data-ng-show="(form.application.$touched || form.$submitted) && form.application.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END APPLICATION --\x3e\n\n    \x3c!-- START FORMAT --\x3e\n    <div data-ng-if="item.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (form.format.$touched || form.$submitted) && form.format.$invalid}">\n      <label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}</label>\n      <input type="text" name="format" placeholder="{{\'APPLICATION_FORMAT\' | translate}}" class="form-control" data-ng-model="item.format"/>\n    </div>\n    \x3c!-- END FORMAT --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/voice/moh/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-music-tone"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_MOHS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-music-tone font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_MOHS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_MOH_CLASS\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/moh/view/view.addFiles.html",'\n<div class="row" data-ng-init="getSounds()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_MOH\' | translate }} {{ \'APPLICATION_ADD_FILES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="note note-warning" data-ng-hide="soundList.length">\n\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t {{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n            <form name="forms.general" data-ng-submit="(item.sounds.length > 0) && addMohs()" data-ng-show="soundList.length" novalidate>\n\n              \x3c!-- START SOUNDS --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0}">\n                <label class="control-label">{{\'APPLICATION_SOUNDS\' | translate}}<span class="required" aria-required="true">*</span></label>\n                <ui-select multiple data-ng-model="item.sounds" theme="bootstrap" name="sounds" required>\n                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n                  <ui-select-choices repeat="sound.id as sound in soundList | filter: $select.search">\n                    {{sound.display_name}}\n                  </ui-select-choices>\n                </ui-select>\n                <span data-ng-show="(forms.general.sounds.$touched || forms.general.$submitted) && item.sounds.length == 0" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t<input type="submit" class="btn green-haze" value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/moh/view/view.audios.html",'<div ui-view class="profile-content">\n<div class="row" data-ng-init="getAudioFiles()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AUDIOS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="audioFiles">\n\t\t\t\t\t\t<a class="btn green-jungle " href="/channels/voice/mohs/view/{{moh.id}}/add" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_ADD_FILES\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="note note-warning" data-ng-hide="audioFiles">\n\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t {{ \'MESSAGE_FOLDER_DOES_NOT_EXIST\' | translate }}\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<table class="table table-striped table-bordered table-hover" data-ng-show="audioFiles">\n\t\t\t\t\t  <thead>\n\t\t\t\t\t\t  <tr>\n\t\t\t\t\t\t    <th>{{ \'APPLICATION_NAME\' | translate }}</th>\n\t\t\t\t\t\t\t\t<th width="30%">{{ \'APPLICATION_PREVIEW\' | translate }}</th>\n\t\t\t\t\t\t\t\t<th width="10%">{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n\t\t\t\t\t\t  </tr>\n\t\t\t\t\t  </thead>\n\t\t\t\t\t  <tbody data-ng-model="audioFiles">\n\t\t\t\t\t    <tr data-ng-repeat="audiofile in audioFiles">\n\t\t\t\t\t\t\t\t<td>{{audiofile}}</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<audio controls ng-src="{{getSecureSrc(audioSources[audiofile])}}" preload="none">\n\t\t\t\t            Your browser does not support the audio tag.\n\t\t\t\t          </audio></td>\n\t\t\t\t\t      <td>\n\t\t\t\t\t        <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(audiofile,audiofile)">\n\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t        </a>\n\t\t\t\t\t      </td>\n\t\t\t\t\t    </tr>\n\t\t\t\t\t\t\t<tr data-ng-hide="audioFiles.length">\n\t\t\t\t\t\t\t\t<td colspan="3" style="text-align:center;">\n\t\t\t\t\t\t\t\t\t<i>{{ \'MESSAGE_NO_AUDIOFILES_AVAILABLE\' | translate }}</i>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t  </tbody>\n\t\t\t\t</table>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/channels/voice/moh/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getMoh()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-music-tone"></i>\n\t\t\t\t\t<a href="/channels/voice/mohs/list">{{ \'APPLICATION_MOH_CLASS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="moh" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="moh">\n\t\t\t\t\t<a href="#">{{moh.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/moh.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{moh.name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.mohs.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/voice/mohs/view/{{moh.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-if="moh.mode === \'files\'" data-ng-class="{active: $state.is(\'main.channels.voice.mohs.view.audios\') || $state.is(\'main.channels.voice.mohs.view.add\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/voice/mohs/view/{{moh.id}}/audios">\n\t\t\t\t\t\t\t<i class="icon-list"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_AUDIOS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET main.channels --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/moh/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_MOH_CLASS\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-init="getContexts();">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceMoh()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START MODE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MODE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="path" class="form-control" data-ng-model="moh.mode" disabled/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MODE --\x3e\n\n\t            \x3c!-- START PATH --\x3e\n\t            <div class="form-group" data-ng-if="moh.mode === \'files\'">\n\t              <label class="control-label">{{\'APPLICATION_PATH\' | translate}}</label>\n\t              <input type="text" name="path" class="form-control" data-ng-model="moh.directory" disabled/>\n\t            </div>\n\t            \x3c!-- END PATH --\x3e\n\n\t            \x3c!-- START SORT --\x3e\n\t            <div data-ng-if="moh.mode === \'files\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$invalid}">\n\t              <label class="control-label">{{\'APPLICATION_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t              <ui-select data-ng-model="moh.sort" theme="bootstrap" name="sort" required>\n\t                <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$translate.instant($select.selected.name)}}</ui-select-match>\n\t                <ui-select-choices repeat="sort.value as sort in sortOptions | filter: $select.search">\n\t                  {{$translate.instant(sort.name)}}\n\t                </ui-select-choices>\n\t              </ui-select>\n\t              <span data-ng-show="(forms.general.sort.$touched || forms.general.$submitted) && forms.general.sort.$error.required" class="help-block help-block-error">\n\t                <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t              </span>\n\t            </div>\n\t            \x3c!-- END SORT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DIRECTORY --\x3e\n\t\t\t\t\t\t\t<div data-ng-if="moh.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.directory.$touched || forms.general.$submitted) && forms.general.directory.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DIRECTORY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="directory" placeholder="{{\'APPLICATION_DIRECTORY\' | translate}}" class="form-control" data-ng-model="moh.directory"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DIRECTORY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START APPLICATION --\x3e\n\t\t\t\t\t\t\t<div data-ng-if="moh.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.application.$touched || forms.general.$submitted) && forms.general.application.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_APPLICATION\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="application" placeholder="{{\'APPLICATION_APPLICATION\' | translate}}" class="form-control" data-ng-model="moh.application" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.application.$touched || forms.general.$submitted) && forms.general.application.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END APPLICATION --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START FORMAT --\x3e\n\t\t\t\t\t\t\t<div data-ng-if="moh.mode === \'custom\'" class="form-group" data-ng-class="{\'has-error\': (forms.general.format.$touched || forms.general.$submitted) && forms.general.format.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="format" placeholder="{{\'APPLICATION_FORMAT\' | translate}}" class="form-control" data-ng-model="moh.format"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END FORMAT --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/queue/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_QUEUE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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" data-ng-pattern="settings.patternName" required />\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START STRATEGY --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.strategy.$touched || form.$submitted) && form.strategy.$invalid}">\n      <label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <ui-select data-ng-model="item.strategy" name="strategy" theme="bootstrap" required>\n        <ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n        <ui-select-choices repeat="strategy in [\'ringall\', \'leastrecent\', \'fewestcalls\', \'random\', \'rrmemory\', \'linear\', \'wrandom\', \'rrordered\'] | filter: $select.search">\n          <div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span class="help-block">\n        {{ \'DESCRIPTION_QUEUE_STRATEGY\' | translate }}\n      </span>\n      <span data-ng-show="(form.strategy.$touched || form.$submitted) && form.strategy.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END STRATEGY --\x3e\n\n    \x3c!-- START AGENTS--\x3e\n    <div class="form-body" data-ng-init="getTeams()">\n      <label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n      <div class="input-group input-small mbottom20">\n        <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="item.penalty" readonly>\n        <div class="spinner-buttons input-group-btn btn-group-vertical">\n          <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="item.penalty=item.penalty+1">\n            <i class="fa fa-angle-up"></i>\n          </button>\n          <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!item.penalty" data-ng-click="item.penalty=item.penalty-1">\n            <i class="fa fa-angle-down"></i>\n          </button>\n        </div>\n      </div>\n      <div class="form-group last">\n        <div class="col-md-12" id="multi-select-team">\n        </div>\n      </div>\n    </div>\n    \x3c!-- END AGENTS--\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/channels/voice/queue/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_QUEUES\' | translate }}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()" data-ng-if="Auth.isAdmin()">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_QUEUE\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/queue/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="note note-warning" data-ng-hide="teams.length">\n\t\t\t\t<h4 class="block">Warning!</h4><p>{{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}</p>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t\t\t<form action="index.html" class="form-horizontal form-row-seperated">\n\t\t\t\t\t<div class="form-body">\n\t\t\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="queue.penalty" readonly>\n\t\t\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="queue.penalty=queue.penalty+1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!queue.penalty" data-ng-click="queue.penalty=queue.penalty-1">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-team">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END FORM--\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/queue/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getQueue()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/channels/voice/queues/list">{{ \'APPLICATION_QUEUES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="queue" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="queue">\n\t\t\t\t\t<a href="#">{{queue.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/queue.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{queue.name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.queues.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/voice/queues/view/{{queue.name}}/settings"> <i class="icon-settings"></i> {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.queues.view.agents\')}" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/voice/queues/view/{{queue.name}}/agents"><i class="icon-people"></i>{{ \'APPLICATION_AGENTS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET main.channels --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/queue/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_QUEUE_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-init="getMohs();getSounds();">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && forms.announce.$valid && updateVoiceQueue()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\x3c!-- START STRATEGY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STRATEGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.strategy" name="strategy" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.toUpperCase()}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="strategy in [\'ringall\', \'leastrecent\', \'fewestcalls\', \'random\', \'rrmemory\', \'linear\', \'wrandom\', \'rrordered\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="strategy.toUpperCase() | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_STRATEGY\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.strategy.$touched || forms.general.$submitted) && forms.general.strategy.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t      \x3c!-- END STRATEGY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MOH --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOH\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.musiconhold" name="musiconhold" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="musiconhold.name as musiconhold in voiceMohs | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="musiconhold.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_VOICE_MOH\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.musiconhold.$touched || forms.general.$submitted) && forms.general.musiconhold.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MOH --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="queue.timeout" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_TIMEOUT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MAXLEN --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAXLEN\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="maxlen" placeholder="{{\'APPLICATION_MAXLEN\' | translate}}" class="form-control" data-ng-model="queue.maxlen" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_MAXLEN\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.maxlen.$touched || forms.general.$submitted) && forms.general.maxlen.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MAXLEN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RETRY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RETRY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="retry" placeholder="{{\'APPLICATION_RETRY\' | translate}}" class="form-control" data-ng-model="queue.retry" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_RETRY\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.retry.$touched || forms.general.$submitted) && forms.general.retry.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RETRY --\x3e\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\x3c!-- START WRAPUPTIME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_WRAPUPTIME\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="wrapuptime" placeholder="{{\'APPLICATION_WRAPUPTIME\' | translate}}" class="form-control" data-ng-model="queue.wrapuptime" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_WRAPUPTIME\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.wrapuptime.$touched || forms.general.$submitted) && forms.general.wrapuptime.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END WRAPUPTIME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START WEIGHT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_WEIGHT\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="weight" placeholder="{{\'APPLICATION_WEIGHT\' | translate}}" class="form-control" data-ng-model="queue.weight" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_WEIGHT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.weight.$touched || forms.general.$submitted) && forms.general.weight.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END WEIGHT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START JOINEMPTY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_JOINEMPTY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="queue.joinempty" name="joinempty" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_JOINEMPTY\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.joinempty.$touched || forms.general.$submitted) && forms.general.joinempty.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END JOINEMPTY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START LEAVEWHENEMPTY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LEAVEWHENEMPTY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="queue.leavewhenempty" name="leavewhenempty" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\',\'strict\',\'loose\',\'paused\',\'penalty\',\'inuse\',\'ringing\',\'unavailable\',\'invalid\',\'unknown\',\'wrapup\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_LEAVEWHENEMPTY\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.leavewhenempty.$touched || forms.general.$submitted) && forms.general.leavewhenempty.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LEAVEWHENEMPTY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ANNOUNCE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ANNOUNCE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.announce" name="announce" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in sounds | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_ANNOUNCE\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.announce.$touched || forms.general.$submitted) && forms.general.announce.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ANNOUNCE --\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="queue.description"></textarea>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.announce" data-ng-submit="forms.announce.$valid && forms.general.$valid && updateVoiceQueue()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\x3c!-- START PERIODIC_ANNOUNCE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="queue.periodic_announce" name="periodic_announce" theme="bootstrap" data-ng-disabled="!periodicAnnounces.length">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in periodicAnnounces | filter: $select.search track by $index">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="periodicAnnounces.length">\n\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.periodic_announce.$touched || forms.announce.$submitted) && forms.announce.periodic_announce.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PERIODIC_ANNOUNCE --\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t<p><h3>{{\'APPLICATION_SETTINGS\' | translate}}</h3></p>\n\t\t\t\t\t\t\t\x3c!-- START ANNOUNCE_FREQUENCY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="announce_frequency" placeholder="{{\'APPLICATION_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.announce_frequency" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_ANNOUNCE_FREQUENCY\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.announce_frequency.$touched || forms.announce.$submitted) && forms.announce.announce_frequency.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ANNOUNCE_FREQUENCY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MIN_ANNOUNCE_FREQUENCY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="min_announce_frequency" placeholder="{{\'APPLICATION_MIN_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.min_announce_frequency" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_MIN_ANNOUNCE_FREQUENCY\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.min_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.min_announce_frequency.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MIN_ANNOUNCE_FREQUENCY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PERIODIC_ANNOUNCE_FREQUENCY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="periodic_announce_frequency" placeholder="{{\'APPLICATION_PERIODIC_ANNOUNCE_FREQUENCY\' | translate}}" class="form-control" data-ng-model="queue.periodic_announce_frequency"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_PERIODIC_ANNOUNCE_FREQUENCY\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.periodic_announce_frequency.$touched || forms.announce.$submitted) && forms.announce.periodic_announce_frequency.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PERIODIC_ANNOUNCE_FREQUENCY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RANDOM_PERIODIC_ANNOUNCE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RANDOM_PERIODIC_ANNOUNCE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.random_periodic_announce" name="random_periodic_announce" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_RANDOM_PERIODIC_ANNOUNCE\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.random_periodic_announce.$touched || forms.announce.$submitted) && forms.announce.random_periodic_announce.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RANDOM_PERIODIC_ANNOUNCE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ANNOUNCE_HOLDTIME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ANNOUNCE_HOLDTIME\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.announce_holdtime" name="announce_holdtime" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\',\'once\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_ANNOUNCE_HOLDTIME\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.announce_holdtime.$touched || forms.announce.$submitted) && forms.announce.announce_holdtime.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ANNOUNCE_HOLDTIME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ANNOUNCE_POSITION --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.announce_position" name="announce_position" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\',\'limit\',\'more\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.announce_position.$touched || forms.announce.$submitted) && forms.announce.announce_position.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ANNOUNCE_POSITION --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ANNOUNCE_POSITION_LIMIT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="announce_position_limit" placeholder="{{\'APPLICATION_ANNOUNCE_POSITION_LIMIT\' | translate}}" class="form-control" data-ng-model="queue.announce_position_limit"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_ANNOUNCE_POSITION_LIMIT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.announce_position_limit.$touched || forms.announce.$submitted) && forms.announce.announce_position_limit.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ANNOUNCE_POSITION_LIMIT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START REPORTHOLDTIME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REPORTHOLDTIME\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.reportholdtime" name="reportholdtime" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_REPORTHOLDTIME\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.reportholdtime.$touched || forms.announce.$submitted) && forms.announce.reportholdtime.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REPORTHOLDTIME --\x3e\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t<p><h3>{{\'APPLICATION_SOUNDS\' | translate}}</h3></p>\n\t\t\t\t\t\t\t\t\x3c!-- START QUEUE_REPORTHOLD --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE_REPORTHOLD\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.queue_reporthold" name="queue_reporthold" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_REPORTHOLD\' | translate }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.queue_reporthold.$touched || forms.announce.$submitted) && forms.announce.queue_reporthold.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END QUEUE_REPORTHOLD --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START QUEUE_YOUARENEXT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE_YOUARENEXT\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.queue_youarenext" name="queue_youarenext" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_YOUARENEXT\' | translate }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.queue_youarenext.$touched || forms.announce.$submitted) && forms.announce.queue_youarenext.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END QUEUE_YOUARENEXT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START QUEUE_THEREARE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE_THEREARE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.queue_thereare" name="queue_thereare" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_THEREARE\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.queue_thereare.$touched || forms.announce.$submitted) && forms.announce.queue_thereare.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END QUEUE_THEREARE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START QUEUE_CALLSWAITING --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE_CALLSWAITING\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.queue_callswaiting" name="queue_callswaiting" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_CALLSWAITING\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.queue_callswaiting.$touched || forms.announce.$submitted) && forms.announce.queue_callswaiting.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END QUEUE_CALLSWAITING --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START QUEUE_HOLDTIME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE_HOLDTIME\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.queue_holdtime" name="queue_holdtime" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_HOLDTIME\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.queue_holdtime.$touched || forms.announce.$submitted) && forms.announce.queue_holdtime.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END QUEUE_HOLDTIME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START QUEUE_MINUTES --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE_MINUTES\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.queue_minutes" name="queue_minutes" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_MINUTES\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.queue_minutes.$touched || forms.announce.$submitted) && forms.announce.queue_minutes.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END QUEUE_MINUTES --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START QUEUE_MINUTE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE_MINUTE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.queue_minute" name="queue_minute" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_MINUTE\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.queue_minute.$touched || forms.announce.$submitted) && forms.announce.queue_minute.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END QUEUE_MINUTE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START QUEUE_SECONDS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE_SECONDS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.queue_seconds" name="queue_seconds" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_SECONDS\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.queue_seconds.$touched || forms.announce.$submitted) && forms.announce.queue_seconds.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END QUEUE_SECONDS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START QUEUE_THANKYOU --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE_THANKYOU\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.queue_thankyou" name="QUEUE_THANKYOU" theme="bootstrap" >\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="announce.path as announce in queueAnnounces | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="announce.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_THANKYOU\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.announce.queue_thankyou.$touched || forms.announce.$submitted) && forms.announce.queue_thankyou.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END QUEUE_THANKYOU --\x3e\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t\t\x3c!-- ADVANCED TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.advanced" data-ng-submit="forms.announce.$valid && forms.general.$valid && forms.advanced.$valid && updateVoiceQueue()" novalidate>\n\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\n\t\t\t\t\t\t\t\x3c!-- START AUTOPAUSE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTOPAUSE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="queue.autopause"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ recordSwitch.handleWidth }}"\n\t\t\t\t\t\t\t\tng-true-value="\'all\'"\n\t\t\t\t\t\t\t\tng-false-value="\'no\'">\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_AUTOPAUSE\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.autopause.$touched || forms.advanced.$submitted) && forms.advanced.autopause.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END AUTOPAUSE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RINGINUSE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RINGINUSE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.ringinuse" name="ringinuse" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_RINGINUSE\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.ringinuse.$touched || forms.advanced.$submitted) && forms.advanced.ringinuse.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RINGINUSE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MEMBER_DELAY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MEMBER_DELAY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="memberdelay" placeholder="{{\'APPLICATION_MEMBER_DELAY\' | translate}}" class="form-control" data-ng-model="queue.memberdelay" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_MEMBER_DELAY\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.memberdelay.$touched || forms.advanced.$submitted) && forms.advanced.memberdelay.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MEMBER_DELAY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ACW --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.acw.$touched || forms.advanced.$submitted) && forms.advanced.acw.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACW\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="queue.acw"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_ACW\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.acw.$touched || forms.advanced.$submitted) && forms.advanced.acw.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_ACW\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ACW --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SETINTERFACEVAR --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.setinterfacevar.$touched || forms.advanced.$submitted) && forms.advanced.setinterfacevar.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SETINTERFACEVAR\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="queue.setinterfacevar"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_SETINTERFACEVAR\' | translate }} <a href="https://wiki.xcallymotion.com/display/XMD/Queues+-+Voice+Channel" target="_blank">wiki</a>)\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.setinterfacevar.$touched || forms.advanced.$submitted) && forms.advanced.setinterfacevar.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_SETINTERFACEVAR\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SETINTERFACEVAR --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SETQUEUEVAR --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.setqueuevar.$touched || forms.advanced.$submitted) && forms.advanced.setqueuevar.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SETQUEUEVAR\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="queue.setqueuevar"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_SETQUEUEVAR\' | translate }} <a href="https://wiki.xcallymotion.com/display/XMD/Queues+-+Voice+Channel" target="_blank">wiki</a>)\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.setqueuevar.$touched || forms.advanced.$submitted) && forms.advanced.setqueuevar.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_SETQUEUEVAR\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SETQUEUEVAR --\x3e\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-md-6">\n\n\t\t\t\t\t\t\t\x3c!-- START TIMEOUTRESTART --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUTRESTART\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.timeoutrestart" name="timeoutrestart" theme="bootstrap">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_TIMEOUTRESTART\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.timeoutrestart.$touched || forms.advanced.$submitted) && forms.advanced.timeoutrestart.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TIMEOUTRESTART --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MONITOR_FORMAT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MONITOR_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="queue.monitor_format" name="monitor_format" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monFormat.value as monFormat in monitorFormats | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="monFormat.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_MONITOR_FORMAT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.monitor_format.$touched || forms.advanced.$submitted) && forms.advanced.monitor_format.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MONITOR_FORMAT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CONTEXT --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="context" placeholder="{{\'APPLICATION_CONTEXT\' | translate}}" class="form-control" data-ng-model="queue.context"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_QUEUE_VOICE_CONTEXT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONTEXT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ACW_TIMEOUT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.acwTimeout.$touched || forms.advanced.$submitted) && forms.advanced.acwTimeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACW_TIMEOUT\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="acwTimeout" placeholder="{{\'APPLICATION_ACW_TIMEOUT\' | translate}}" class="form-control" data-ng-model="queue.acwTimeout" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_ACW_TIMEOUT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.acwTimeout.$touched || forms.advanced.$submitted) && forms.advanced.acwTimeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ACW_TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SETQUEUEENTRYVAR --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.setqueueentryvar.$touched || forms.advanced.$submitted) && forms.advanced.setqueueentryvar.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SETQUEUEENTRYVAR\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="queue.setqueueentryvar"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_SETQUEUEENTRYVAR\' | translate }} <a href="https://wiki.xcallymotion.com/display/XMD/Queues+-+Voice+Channel" target="_blank">wiki</a>)\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.setqueueentryvar.$touched || forms.advanced.$submitted) && forms.advanced.setqueueentryvar.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_SETQUEUEENTRYVAR\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SETQUEUEENTRYVAR --\x3e\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/realtime/view/abandoned/abandoned.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAbandoned()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns  class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/realtime/view/agent/agent.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<span us-spinner spinner-key="grid-spinner" spinner-start-active="true"></span>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/realtime/view/agent/agent.modal.info.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_SIP_CLIENT_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="agent.ipaddr" class="well">\n  <div>{{agent.ipaddr}}:{{agent.port}}</div>\n  <div>{{agent.fullcontact}}</div>\n  <div>{{agent.useragent}}</div>\n  <div>{{agent.lastms}}</div>\n</div>\n<div data-ng-if="!agent.ipaddr" class="alert alert-danger" role="alert">\n  {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n\x3c!-- hidden random uiselect, needed to recompile the modal every time and show the content --\x3e\n<ui-select multiple class="hide" ng-model="item.queues" theme="bootstrap" required>\n  <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n  <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n    <div ng-bind-html="queue.name | highlight: $select.search"></div>\n  </ui-select-choices>\n</ui-select>\n\x3c!--  --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/voice/realtime/view/agent/queue.modal.add.html",'<div class="modal-header" data-ng-init="init()">\n  <h3 class="modal-title">{{ \'APPLICATION_QUEUES\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    <div class="form-group row">\n  <label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_QUEUE\' | translate}}:</label>\n  <div class="col-md-6">\n    <ui-select multiple ng-model="item.queues" theme="bootstrap" required>\n      <ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}">{{$item.name}}</ui-select-match>\n      <ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n        <div ng-bind-html="queue.name | highlight: $select.search"></div>\n      </ui-select-choices>\n    </ui-select>\n  </div>\n  <div class="col-md-2">\n    <button class="btn btn-success bts-sm" type="button" ng-click="joinQueue()" ng-disabled="form.$invalid">{{ \'APPLICATION_JOIN_QUEUE\' | translate }}</button>\n  </div>\n</div>\n<div class="form-group row">\n<label class="col-md-2 control-label" style="margin-top: 7px;">{{\'APPLICATION_PENALTY\' | translate}}</label>\n  <div class="input-group input-small mbottom20 col-md-6">\n    <input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n    <div class="spinner-buttons input-group-btn btn-group-vertical">\n      <button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n        <i class="fa fa-angle-up"></i>\n      </button>\n      <button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n        <i class="fa fa-angle-down"></i>\n      </button>\n    </div>\n  </div>\n</div>\n<div>\n  <div data-ng-if="queueTable" ui-grid="queueTable" name="queueTable" ui-grid-resize-columns  class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n    <span us-spinner spinner-key="agentqueue-spinner" spinner-start-active="true"></span>\n    <div class="watermark" ng-show="!queueTable.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n  </div>\n</div>\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/voice/realtime/view/outbound/outbound.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initDials()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize ui-grid-pagination>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/realtime/view/parameter/parameter.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initParameters()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-tree-view ui-grid-expandable-row ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/realtime/view/queue/queue.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row mbottom20"  data-ng-init="initQueues()">\n\t\t\t<ui-select ng-model="item.queue" theme="bootstrap" class="col-md-6" data-ng-change="getAgents(item.queue)" required>\n\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_QUEUE\' | translate}}" allow-clear>{{$select.selected.name}}</ui-select-match>\n\t\t\t\t<ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t</ui-select-choices>\n\t\t\t</ui-select>\n</div>\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/realtime/view/queuecalls/queuecalls.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initQueues()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns class="ui-grid" ui-grid-auto-resize ui-grid-pagination>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/realtime/view/telephone/telephone.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initTelephones()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions" ui-grid-resize-columns  class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/realtime/view/telephone/telephone.modal.info.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_INTERFACE_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n<div data-ng-if="telephone.ipaddr" class="well">\n  <div>{{telephone.ipaddr}}:{{telephone.port}}</div>\n  <div>{{telephone.fullcontact}}</div>\n  <div>{{telephone.useragent}}</div>\n  <div>{{telephone.lastms}}</div>\n</div>\n<div data-ng-if="!telephone.ipaddr" class="alert alert-danger" role="alert">\n  {{\'MESSAGE_NO_AVAILABLE_INFO\' | translate}}\n</div>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/channels/voice/realtime/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-directions"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-energy"></i>\n\t\t\t\t\t<a href="/channels/voice/realtime/view/agents">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t<div>\n\t\t    <nav class="navbar navbar-default" role="navigation">\n\t\t\t\t\t<div class="collapse navbar-collapse">\n\t\t\t\t\t\t<ul class="nav navbar-nav">\n\t\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.agents\')}">\n\t\t\t\t\t\t\t\t<a href="/channels/voice/realtime/view/agents">\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_AGENTS\' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.telephones\')}" data-ng-show="Auth.isAdmin()">\n\t\t\t\t\t\t\t\t<a href="/channels/voice/realtime/view/telephones">\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_TELEPHONES\' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.queues\')}">\n\t\t\t\t\t\t\t\t<a href="/channels/voice/realtime/view/queues">\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_QUEUES\' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.queuecalls\')}">\n\t\t\t\t\t\t\t\t<a href="/channels/voice/realtime/view/queuecalls">\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_QUEUE_CALLS\' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.parameters\')}">\n\t\t\t\t\t\t\t\t<a href="/channels/voice/realtime/view/parameters">\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_QUEUE_PARAMETERS\' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.abandoned\')}">\n\t\t\t\t\t\t\t\t<a href="/channels/voice/realtime/view/abandoned">\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_QUEUE_ABANDONED\' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.channels.voice.realtime.view.outbound\')}">\n\t\t\t\t\t\t\t\t<a href="/channels/voice/realtime/view/outbound">\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_OUTBOUND_CALLS\' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="#">\n\t\t\t\t\t\t\t\t<b>|{{\'APPLICATION_SHOW_TIMERS\' | translate}}  </b><input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="showTimers"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="showTimers"\n\t\t\t\t\t\t\t\tswitch-active="{{ timerSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ timerSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ timerSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ timerSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ timerSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ timerSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ timerSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ timerSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ timerSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ timerSwitch.handleWidth }}"><b>|</b>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t    </nav>\n\t\t</div>\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/recording/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-play"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_RECORDINGS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="fa fa-play font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_RECORDINGS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length && Auth.isAdmin()">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/route/inbound/list/create.modal.html",'<div class="modal-header" data-ng-init="getContexts()">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_ROUTE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="forms.extension" novalidate>\n\n    \x3c!-- START EXTEN --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$invalid || existRoute}">\n      <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="item.exten" data-ng-pattern="settings.patternName" required/>\n      <span data-ng-show="(forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END EXTEN --\x3e\n\n    \x3c!-- START CONTEXT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.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.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END CONTEXT --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.extension.$invalid || existRoute">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n\x3c!-- <pre>\n  {{item | json}}\n</pre> --\x3e\n'),t.put("app/channels/voice/route/inbound/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-call-in"></i>\n\t\t\t\t\t<a href="/channels/voice/routes/inbound/list">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-users font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle " href="#" data-ng-click="create()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid" ui-grid-draggable-rows>\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/route/inbound/view/view.applications.html",'<div ui-view class="profile-content">\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="selectedRows.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle " href="/channels/voice/routes/inbound/view/{{route.id}}/application" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_APPLICATION\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div data-ng-if="showGrid" ui-grid="gridOptions"  ui-grid-resize-columns class="grid" ui-grid-selection ui-grid-draggable-rows ui-grid-auto-resize>\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/channels/voice/route/inbound/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getRoute()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-reload"></i>\n\t\t\t\t\t<a href="/channels/voice/routes/inbound/list">{{ \'APPLICATION_INBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="route" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="route">\n\t\t\t\t\t<a href="#">{{route.exten}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/inboundroute.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{route.exten}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.routes.inbound.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-click="deselectAndRedirect(\'/channels/voice/routes/inbound/view/\'+route.id+\'/settings\')">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n'+"\t\t\t\t\t\t<li data-ng-class=\"{active: $state.is('main.channels.voice.routes.inbound.view.applications') || $state.is('main.channels.voice.routes.inbound.view.application') || $state.is('main.channels.voice.routes.inbound.view.applications.settings')}\">\n\t\t\t\t\t\t\t<a data-ng-click=\"deselectAndRedirect('/channels/voice/routes/inbound/view/'+route.id+'/applications')\">\n\t\t\t\t\t\t\t<i class=\"icon-list\"></i>\n\t\t\t\t\t\t\t{{ 'APPLICATION_ACTIONS' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class=\"profile-content\">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n"),t.put("app/channels/voice/route/inbound/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_INBOUND\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-init="getContexts()">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START EXTEN --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EXTEN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CONTEXT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="context.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONTEXT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/route/internal/list/create.modal.html",'<div class="modal-header" data-ng-init="getContexts()">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_ROUTE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="forms.extension" novalidate>\n\n    \x3c!-- START EXTEN --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$invalid || existRoute}">\n      <label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="item.exten" data-ng-pattern="settings.patternName" required/>\n      <span data-ng-show="(forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END EXTEN --\x3e\n\n    \x3c!-- START CONTEXT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.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.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END CONTEXT --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.extension.$invalid || existRoute">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n\x3c!-- <pre>\n  {{item | json}}\n</pre> --\x3e\n'),t.put("app/channels/voice/route/internal/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-reload"></i>\n\t\t\t\t\t<a href="/voice/routes/internal/list">{{ \'APPLICATION_INTERNAL\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-users font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_INTERNAL\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle " href="#" data-ng-click="create()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid" ui-grid-draggable-rows>\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/route/internal/view/view.applications.html",'<div ui-view class="profile-content">\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="selectedRows.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle " href="/channels/voice/routes/internal/view/{{route.id}}/application" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_APPLICATION\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div data-ng-if="showGrid" ui-grid="gridOptions"  ui-grid-resize-columns class="grid" ui-grid-selection ui-grid-draggable-rows ui-grid-auto-resize>\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/channels/voice/route/internal/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getRoute()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-reload"></i>\n\t\t\t\t\t<a href="/channels/voice/routes/internal/list">{{ \'APPLICATION_INTERNAL\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="route" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="route">\n\t\t\t\t\t<a href="#">{{route.exten}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/internalroute.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{route.exten}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.routes.internal.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-click="deselectAndRedirect(\'/channels/voice/routes/internal/view/\'+route.id+\'/settings\')">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n'+"\t\t\t\t\t\t<li data-ng-class=\"{active: $state.is('main.channels.voice.routes.internal.view.applications') || $state.is('main.channels.voice.routes.internal.view.application') || $state.is('main.channels.voice.routes.internal.view.applications.settings')}\">\n\t\t\t\t\t\t\t<a data-ng-click=\"deselectAndRedirect('/channels/voice/routes/internal/view/'+route.id+'/applications')\">\n\t\t\t\t\t\t\t<i class=\"icon-list\"></i>\n\t\t\t\t\t\t\t{{ 'APPLICATION_ACTIONS' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class=\"profile-content\">\n\t\t</div>\n\t\t\x3c!-- <pre>\n\t\t\t{{route | json}}\n\t\t</pre> --\x3e\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n"),t.put("app/channels/voice/route/internal/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_INTERNAL\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-init="getContexts()">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START EXTEN --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="exten" placeholder="{{\'APPLICATION_PHONE_NUMBER\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EXTEN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CONTEXT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="context.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONTEXT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/route/outbound/list/create.modal.html",'<div class="modal-header" data-ng-init="getContexts()">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_ROUTE\' | translate }}</h3>\n</div>\n<div class="modal-body" data-ng-init="getTags()">\n  <form name="forms.extension" novalidate>\n\n    \x3c!-- START EXTEN --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$invalid || existRoute}">\n      <label class="control-label">{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="exten" placeholder="{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}" class="form-control" data-ng-model="item.exten" data-ng-pattern="settings.patternName" required/>\n      <span data-ng-show="(forms.extension.exten.$touched || forms.extension.$submitted) && forms.extension.exten.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END EXTEN --\x3e\n\n    \x3c!-- START CONTEXT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.extension.context.$touched || forms.extension.$submitted) && forms.extension.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.extension.context.$touched || forms.extension.$submitted) && forms.extension.context.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END CONTEXT --\x3e\n\n    \x3c!-- START TAG --\x3e\n    <div class="form-group"  data-ng-class="{\'has-error\': (forms.extension.tag.$touched || forms.extension.$submitted) && forms.extension.tag.$invalid}">\n      <label class="control-label">{{ \'APPLICATION_TAG\' | translate }}<span class="required" aria-required="true">*</span></label>\n      <ui-select data-ng-model="item.tag" name="tag" theme="bootstrap" required>\n        <ui-select-match placeholder="{{ \'APPLICATION_TAG\' | translate }}" data-ng-init="item.tag = \'--\'">{{$select.selected.name}}</ui-select-match>\n        <ui-select-choices repeat="tag.name as tag in tags | filter: $select.search">\n          <div ng-bind-html="tag.name | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(forms.extension.tag.$touched || forms.extension.$submitted) && forms.extension.tag.$invalid && forms.extension.tag.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TAG --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.extension.$invalid || existRoute">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n\x3c!-- <pre>\n  {{item | json}}\n</pre> --\x3e\n'),t.put("app/channels/voice/route/outbound/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-call-out"></i>\n\t\t\t\t\t<a href="/channels/voice/routes/outbound/list">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-users font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle " href="#" data-ng-click="create()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid" ui-grid-draggable-rows>\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/route/outbound/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getRoute()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-call-out"></i>\n\t\t\t\t\t<a href="/channels/voice/routes/outbound/list">{{ \'APPLICATION_OUTBOUND\' | translate }} {{ \'APPLICATION_ROUTES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="route" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="route">\n\t\t\t\t\t<a href="#">{{route.exten}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/outboundroute.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{route.exten}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.routes.outbound.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-click="deselectAndRedirect(\'/channels/voice/routes/outbound/view/\'+route.id+\'/settings\')">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n'+"\t\t\t\t\t\t<li data-ng-class=\"{active: $state.is('main.channels.voice.routes.outbound.view.routes') || $state.is('main.channels.voice.routes.outbound.view.route') || $state.is('main.channels.voice.routes.outbound.view.routes.settings')}\">\n\t\t\t\t\t\t\t<a data-ng-click=\"deselectAndRedirect('/channels/voice/routes/outbound/view/'+route.id+'/routes')\">\n\t\t\t\t\t\t\t<i class=\"icon-list\"></i>\n\t\t\t\t\t\t\t{{ 'APPLICATION_ACTIONS' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class=\"profile-content\">\n\t\t</div>\n\t\t\x3c!-- <pre>\n\t\t\t{{route | json}}\n\t\t</pre> --\x3e\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n"),t.put("app/channels/voice/route/outbound/view/view.route.html",'<div class="row" data-ng-init="initApplication(true);getIntervals();">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_NEW_ROUTE\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t{{(main.app.name | translate) || \'Application\'}}\n\t\t\t\t</div>\n\t\t\t\t<wizard on-finish="addApplication()">\n\t        <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(forms.info.$valid)">\n\t\t\t\t\t\t\t<form name="forms.info" novalidate>\n\t\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.info.app.$touched || forms.info.$submitted) && forms.info.app.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="main.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="app in applications | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="app.name | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.app.$touched || forms.info.$submitted) && forms.info.app.$invalid && forms.info.app.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END APP --\x3e\n\t\t\t\t\t\t\t\t<div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'outboundDial\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START TRUNK --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="trunk.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_TRUNKS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TRUNK --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START CALLERID --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_CALLERID\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="callerID" pattern=\'^"[a-zA-Z0-9_.-]*" <[a-zA-Z0-9_.-]*>\' placeholder=\'"name" <number>\' class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_OUTBOUND_CALLERID\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END CALLERID --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START PREFIX --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_PREFIX\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="prefix"  placeholder="{{ \'APPLICATION_PREFIX\' | translate }}" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_OUTBOUND_PREFIX\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END PREFIX --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[4]" data-ng-init="application.appdata[4] = null">\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[5]" data-ng-init="application.appdata[5] = null">\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n\t\t\t\t\t\t\t\t\x3c!-- START CUSTOMAPP --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="application.app" data-ng-init="application.appdata[0] = null" required>\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END CUSTOMAPP --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START APPDATA --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[1] = null">\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END APPDATA --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t</wz-step>\n\t\t\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n\t\t\t\t\t\t\t\t\t<form name="forms.interval" novalidate>\n\t\t\t\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t{{$translate.instant(intType.name)}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t\t\t<div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{month.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{month.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n\t\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{interval.name | translate}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/route/outbound/view/view.routeSettings.html",'<div class="row" data-ng-init="initApplication();getApplication();getIntervals();">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_APPLICATION_SETTINGS\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="updateRoute(\'routes\')">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{(main.app.name | translate) || \'Application\'}}\n\t\t\t\t\t</div>\n\t        <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.info.$valid)">\n\t\t\t\t\t\t<form name="forms.info" novalidate>\n\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t<div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'outboundDial\'" lazy-render duration="1">\n\n\t\t\t\t\t\t\t\x3c!-- START TRUNK --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="trunk.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_TRUNKS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TRUNK --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CALLERID --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_CALLERID\' | translate }}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="callerID" pattern=\'^"[a-zA-Z0-9_.-]*" <[a-zA-Z0-9_.-]*>\' placeholder=\'"name" <number>\' class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_OUTBOUND_CALLERID\' | translate }} "name" &lt;number&gt;\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.callerID.$touched || forms.info.$submitted) && forms.info.callerID.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CALLERID --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PREFIX --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_PREFIX\' | translate }}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="prefix"  placeholder="{{ \'APPLICATION_PREFIX\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_OUTBOUND_PREFIX\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.prefix.$touched || forms.info.$submitted) && forms.info.prefix.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END PREFIX --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[4]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[5]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n\t\t\t\t\t\t\t\x3c!-- START CUSTOMAPP --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.info.customApp.$touched || forms.info.$submitted) && forms.info.customApp.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].app" required>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CUSTOMAPP --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START APPDATA --\x3e\n\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.info.appdata.$touched || forms.info.$submitted) && forms.info.appdata.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]">\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END APPDATA --\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n\t\t\t\t\t\t\t<form name="forms.interval" novalidate>\n\t\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{intType.name | translate}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t<div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="interval.alwaysTime"\n\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ alwaysSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ alwaysSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ alwaysSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ alwaysSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ alwaysSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ alwaysSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ alwaysSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ alwaysSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ alwaysSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ alwaysSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{month.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{month.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n\t\t\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t{{interval.name | translate}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="intervals.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/route/outbound/view/view.routes.html",'<div ui-view class="profile-content">\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACTIONS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="selectedRows.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle " href="/channels/voice/routes/outbound/view/{{route.id}}/route" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ROUTE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div data-ng-if="showGrid" ui-grid="gridOptions"  ui-grid-resize-columns class="grid" ui-grid-selection ui-grid-draggable-rows ui-grid-auto-resize>\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/channels/voice/route/outbound/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_OUTBOUND\' | translate}} {{ \'APPLICATION_ROUTE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-init="getContexts();getTags();">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateRoute()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START EXTEN --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="exten" placeholder="{{\'APPLICATION_DESTINATION_PATTERN\' | translate}}" class="form-control" data-ng-model="route.exten" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.exten.$touched || forms.general.$submitted) && forms.general.exten.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EXTEN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CUTDIGITS --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CUTDIGITS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" class="form-control" name="cutdigits" data-ng-model="route.cutdigits">\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CUTDIGITS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TAG --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.tag.$touched || forms.general.$submitted) && forms.general.tag.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TAG\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.tag" name="tag" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tag.name as tag in tags | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="tag.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.tag.$touched || forms.general.$submitted) && forms.general.tag.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TAG --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CONTEXT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.context" name="context" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="context.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONTEXT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RECORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.record.$touched || forms.general.$submitted) && forms.general.record.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RECORDING\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t    bs-switch\n\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t    ng-model="route.record"\n\t\t\t\t\t\t\t\t    type="checkbox"\n\t\t\t\t\t\t\t\t    switch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\t    switch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\t\t\t    switch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\t\t\t    switch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\t    switch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\t    switch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\t    switch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\t    switch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\t    switch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\t    switch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t    switch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t    switch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.record.$touched || forms.general.$submitted) && forms.general.record.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RECORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RECORDINGFORMAT --\x3e\n\t\t\t\t\t\t\t<div data-ng-if="route.record" class="form-group" data-ng-class="{\'has-error\': (forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.recordingFormat" name="recordingFormat" theme="bootstrap" data-ng-required="route.record">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="format in [\'wav\',\'gsm\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="format | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.recordingFormat.$touched || forms.general.$submitted) && forms.general.recordingFormat.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RECORDINGFORMAT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="route.description"/></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/route/view.application.html",'\n<div class="row" data-ng-init="initApplication(true); getIntervals();">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_NEW_APPLICATION\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="addApplication()">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{(main.app.name | translate) || \'Application\'}}\n\t\t\t\t\t</div>\n\t        <wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.settings.$valid)">\n\t\t\t\t\t\t\t<form name="forms.settings" novalidate>\n\n\t\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t\t\t\x3c!-- START APP --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.app.$touched || forms.settings.$submitted) && forms.settings.app.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_APPLICATION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="main.app" name="app" theme="bootstrap" required>\n\t\t\t\t\t            <ui-select-match placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t            <ui-select-choices repeat="app in $application.applications| filter: $select.search">\n\t\t\t\t\t              <div ng-bind-html="app.name | translate | highlight: $select.search"></div>\n\t\t\t\t\t            </ui-select-choices>\n\t\t\t\t\t          </ui-select>\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END APP --\x3e\n\n\t\t\t\t\t\t\t\t\t<div id="Queue" class="app-settings" ng-slide-down="main.app.value == \'Queue\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="queue" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.name as queue in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START APPLICATION_ANNOUNCE_OVERRIDE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ANNOUNCE_OVERRIDE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null" name="audiofile" theme="bootstrap" data-ng-disabled="!items2.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items2 | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items2.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END APPLICATION_ANNOUNCE_OVERRIDE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[4]" data-ng-init="application.appdata[4] = null">\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START AGI --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_AGI\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="agi" placeholder="{{ \'APPLICATION_AGI\' | translate }}" class="form-control" data-ng-model="application.appdata[5]" data-ng-init="application.appdata[6] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END AGI --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START MACRO --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MACRO\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="macro" placeholder="{{ \'APPLICATION_MACRO\' | translate }}" class="form-control" data-ng-model="application.appdata[6]" data-ng-init="application.appdata[6] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END MACRO --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START GOSUB --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_GOSUB\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="gosub" placeholder="{{ \'APPLICATION_GOSUB\' | translate }}" class="form-control" data-ng-model="application.appdata[7]" data-ng-init="application.appdata[7] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END GOSUB --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START RULE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_RULE\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="rule" placeholder="{{ \'APPLICATION_RULE\' | translate }}" class="form-control" data-ng-model="application.appdata[8]" data-ng-init="application.appdata[8] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END RULE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START POSITION --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_POSITION\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="position" placeholder="{{ \'APPLICATION_POSITION\' | translate }}" class="form-control" data-ng-model="application.appdata[9]" data-ng-init="application.appdata[9] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid && forms.settings.position.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END POSITION --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ANSWER --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-init="application.answer=true"\n\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.answer"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ alwaysSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ alwaysSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ alwaysSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ alwaysSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ alwaysSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ alwaysSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ alwaysSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ alwaysSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ alwaysSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ alwaysSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END ANSWER --\x3e\n\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="Playback" class="app-settings" ng-slide-down="main.app.value == \'Playback\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START AUDIOFILE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUDIO_FILE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="audiofile" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END AUDIOFILE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START ANSWER --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-init="application.answer=true"\n\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="application.answer"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ alwaysSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ alwaysSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ alwaysSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ alwaysSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ alwaysSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ alwaysSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ alwaysSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ alwaysSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ alwaysSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ alwaysSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END ANSWER --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && !main.app.type" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START INTERFACE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}/{{ \'APPLICATION_IDENTIFIER\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="interface" placeholder="SIP/0000" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid && forms.settings.interface.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END INTERFACE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="internalDial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'internalDial\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START INTERNAL DIAL --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="user" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="user.name as user in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="user.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END INTERNAL DIAL --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ \'APPLICATION_WARNING\' | translate }}!</strong> {{ \'MESSAGE_REQUIRED_FIELD\' | translate }}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ \'APPLICATION_WARNING\' | translate }}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'externalDial\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START TRUNK --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TRUNK\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="trunk.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_GO_TO\' | translate }} <a href="/tools/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ \'APPLICATION_WARNING\' | translate }}!</strong> {{ \'MESSAGE_REQUIRED_FIELD\' | translate }}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END TRUNK --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START PHONE --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_PHONE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null" required>\n\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid && forms.settings.phone.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END PHONE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n\t\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[4]" data-ng-init="application.appdata[4] = null">\n\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div id="RingGroup" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'RingGroup\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START ITEMS --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="items" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="initRingGroup()">\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.items.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ITEMS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-user-by-role"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.items.$touched || forms.settings.$submitted) && forms.settings.items.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END ITEMS --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n\t\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null">\n\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[3]" data-ng-init="application.appdata[3] = null">\n\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="AGI" class="app-settings" ng-slide-down="main.app.value == \'AGI\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START PROJECT --\x3e\n\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = \'agi://127.0.0.1/square\'">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null" name="project" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="project.name as project in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="project.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_PROJECTS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/square/projects/list">{{\'APPLICATION_PROJECTS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END PROJECT --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="Goto" class="app-settings" ng-slide-down="main.app.value == \'Goto\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START CONTEXT --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" name="context" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="context.name as context in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="context.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END CONTEXT --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START EXTENSION --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_EXTENSION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="extension" placeholder="" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid && forms.settings.extension.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END EXTENSION --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START PRIORITY --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_PRIORITY\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="priority" placeholder="" class="form-control" data-ng-model="application.appdata[2]" data-ng-init="application.appdata[2] = null" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END PRIORITY --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="Hangup" class="app-settings" ng-slide-down="main.app.value == \'Hangup\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START HANGUPCAUSE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HANGUP_CAUSE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" theme="bootstrap" name="hangupCause" required>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="hangupCause.value as hangupCause in $application.hangupCauses | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="hangupCause.name  | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END HANGUPCAUSE --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="Set" class="app-settings" ng-slide-down="main.app.value == \'Set\' && !main.app.type" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START VARIABLE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_VARIABLE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="variable" placeholder="" class="form-control" data-ng-model="application.variable" data-ng-init="application.appdata[0] = null" data-ng-change="updateSetAppdata()" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid && forms.settings.variable.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END VARIABLE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START VARVALUE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_VALUE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="varvalue" placeholder="" class="form-control" data-ng-model="application.value" data-ng-change="updateSetAppdata()" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid && forms.settings.varvalue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END VARVALUE --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START CUSTOMAPP --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="application.app" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid && forms.settings.customApp.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END CUSTOMAPP --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START APPDATA --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null">\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid && forms.settings.appdata.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END APPDATA --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div id="Voicemail" class="app-settings" ng-slide-down="main.app.value == \'Voicemail\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START VOICEMAIL --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MAILBOX\' | translate }}@{{ \'APPLICATION_CONTEXT\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="application.appdata[0]" data-ng-init="application.appdata[0] = null" theme="bootstrap" name="voicemail" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.mailbox}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="mailbox.mailbox+\'@\'+mailbox.context as mailbox in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="mailbox.mailbox | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_VOICEMAILS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/voicemails/list">{{\'APPLICATION_VOICEMAILS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid && forms.settings.voicemail.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END VOICEMAIL --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="application.appdata[1]" data-ng-init="application.appdata[1] = null">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t<div id="videoOn" class="app-settings" ng-slide-down="main.app.value == \'Set\' && main.app.type == \'videoOn\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START DOMAIN --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_DOMAIN\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="domain" placeholder="" class="form-control" data-ng-model="application.domain" data-ng-init="application.appdata[0] = null;application.domain = \'xrtceu1.xcally.com\';application.theme = \'YOUR-THEME\';updateVideoOnAppdata();" data-ng-change="updateVideoOnAppdata()" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid && forms.settings.domain.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END DOMAIN --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START THEME --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_THEME\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="theme" placeholder="" class="form-control" data-ng-model="application.theme" data-ng-change="updateVideoOnAppdata()" required>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid && forms.settings.theme.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END THEME --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t</wz-step>\n\t\t\t\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_INTERVAL\' | translate}}" canexit="formValidation(forms.interval.IntervalId.$valid || forms.interval.hasOwnProperty(\'t_from\') || forms.interval.intType.$modelValue === \'always\')">\n\t\t\t\t\t\t\t\t\t\t<form name="forms.interval" novalidate>\n\t\t\t\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="intType.name | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\t\t\t\t\t\t\t\t\t<div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="interval.alwaysTime"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ alwaysSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ alwaysSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ alwaysSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ alwaysSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ alwaysSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ alwaysSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ alwaysSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ alwaysSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ alwaysSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ alwaysSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{weekDay.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{month.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{month.name | translate}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- END MONTH --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n\t\t\t\t\t\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t{{interval.name | translate}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="Intervals.length">\n\t                  <h4 class="block">Warning!</h4>\n\t                  <p>\n\t                    {{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t                  </p>\n\t                  <p>\n\t                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t                  </p>\n\t                </div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/route/view.applicationSettings.html",'\n<div class="row" data-ng-init="initApplication();getIntervals();getApplication();">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_APPLICATION_SETTINGS\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="updateRoute(\'applications\')">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{(main.app.name | translate) || \'Application\'}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_APPLICATION\' | translate}}" canexit="formValidation(forms.settings.$valid)">\n\t\t\t\t\t\t<form name="forms.settings" novalidate>\n\t\t\t\t\t\t\t\x3c!-- <pre>\n\t\t\t\t\t\t\t\t{{application | json}}\n\t\t\t\t\t\t\t</pre> --\x3e\n\n\t\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\n\t\t\t\t\t\t\t<div id="Queue" class="app-settings" ng-slide-down="main.app.value == \'Queue\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="queue" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.name as queue in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_QUEUES_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/queues/list">{{\'APPLICATION_QUEUES\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.queue.$touched || forms.settings.$submitted) && forms.settings.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END QUEUE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START APPLICATION_ANNOUNCE_OVERRIDE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ANNOUNCE_OVERRIDE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[3]" name="audiofile" theme="bootstrap" data-ng-disabled="!items2.length">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items2 | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items2.length">\n\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END APPLICATION_ANNOUNCE_OVERRIDE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="{{ \'APPLICATION_TIMEOUT\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[4]">\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START AGI --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_AGI\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="agi" placeholder="{{ \'APPLICATION_AGI\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[5]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.agi.$touched || forms.settings.$submitted) && forms.settings.agi.$invalid && forms.settings.agi.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END AGI --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MACRO --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MACRO\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="macro" placeholder="{{ \'APPLICATION_MACRO\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[6]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.macro.$touched || forms.settings.$submitted) && forms.settings.macro.$invalid && forms.settings.macro.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MACRO --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START GOSUB --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_GOSUB\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="gosub" placeholder="{{ \'APPLICATION_GOSUB\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[7]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.gosub.$touched || forms.settings.$submitted) && forms.settings.gosub.$invalid && forms.settings.gosub.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END GOSUB --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START RULE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_RULE\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[^,]*" name="rule" placeholder="{{ \'APPLICATION_RULE\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[8]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.rule.$touched || forms.settings.$submitted) && forms.settings.rule.$invalid && forms.settings.rule.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END RULE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START POSITION --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_POSITION\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="position" placeholder="{{ \'APPLICATION_POSITION\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[9]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.position.$touched || forms.settings.$submitted) && forms.settings.position.$invalid && forms.settings.position.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END POSITION --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START ANSWER --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="route.Applications[selectedApp].answer"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ alwaysSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ alwaysSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ alwaysSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ alwaysSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ alwaysSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ alwaysSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ alwaysSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ alwaysSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ alwaysSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ alwaysSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ANSWER --\x3e\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="Playback" class="app-settings" ng-slide-down="main.app.value == \'Playback\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START AUDIOFILE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUDIO_FILE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="audiofile" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.display_name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="settings.soundPath+\'/\'+audio.save_name as audio in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="audio.display_name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_SOUNDS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/sounds/list">{{\'APPLICATION_SOUNDS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.audiofile.$touched || forms.settings.$submitted) && forms.settings.audiofile.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END AUDIOFILE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START ANSWER --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ANSWER\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-model="route.Applications[selectedApp].answer"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ alwaysSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ alwaysSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ alwaysSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ alwaysSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ alwaysSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ alwaysSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ alwaysSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ alwaysSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ alwaysSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ alwaysSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ANSWER --\x3e\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && !main.app.type" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START INTERFACE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}/{{ \'APPLICATION_IDENTIFIER\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="interface" placeholder="SIP/0000" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]" required>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.interface.$touched || forms.settings.$submitted) && forms.settings.interface.$invalid && forms.settings.interface.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERFACE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="internalDial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'internalDial\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START INTERNAL DIAL --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="user" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="user.name as user in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="user.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.user.$touched || forms.settings.$submitted) && forms.settings.user.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END INTERNAL DIAL --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="Dial" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'externalDial\'" lazy-render duration="1">\n\n\t\t\t\t\t\t\t\t\x3c!-- START TRUNK --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="trunk" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="trunk.name as trunk in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="trunk.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_TRUNKS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/trunks/list">{{\'APPLICATION_TRUNKS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.trunk.$touched || forms.info.$submitted) && forms.info.trunk.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TRUNK --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START PHONE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_PHONE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.phone.$touched || forms.settings.$submitted) && forms.settings.phone.$invalid && forms.settings.phone.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END PHONE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]">\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[4]">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="RingGroup" class="app-settings" ng-slide-down="main.app.value == \'Dial\' && main.app.type == \'RingGroup\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START ITEMS --\x3e\n\t\t\t\t\t\t\t\t<input type="hidden" name="items" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]" data-ng-init="initRingGroup()">\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.items.$touched || forms.settings.$submitted) && forms.settings.items.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ITEMS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-user-by-role"></div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.items.$touched || forms.settings.$submitted) && forms.settings.items.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END ITEMS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.timeout.$touched || forms.settings.$submitted) && forms.settings.timeout.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIMEOUT\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" pattern="[0-9]+" name="timeout" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]" data-ng-init="application.appdata[1] = null">\n\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OPTIONS\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="app_options" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]" data-ng-init="application.appdata[2] = null">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid && forms.settings.app_options.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[3]" data-ng-init="application.appdata[3] = null">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END URL --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="AGI" class="app-settings" ng-slide-down="main.app.value == \'AGI\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t\x3c!-- START PROJECT --\x3e\n\t\t\t\t\t\t\t\t<input type="hidden" name="url" placeholder="{{ \'APPLICATION_URL\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]" data-ng-init="route.Applications[selectedApp].appdata[0] = \'agi://127.0.0.1/square\'">\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[1]" name="project" theme="bootstrap" required data-ng-disabled="!items.length">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="project.name as project in items | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="project.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_PROJECTS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/square/projects/list">{{\'APPLICATION_PROJECTS\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.project.$touched || forms.settings.$submitted) && forms.settings.project.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END PROJECT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START URL --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_URL\' | translate }}</label>\n\t\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t<input type="text" name="url" placeholder="agi://127.0.0.1/square" class="form-control" data-ng-model="application.url" data-ng-disabled="!application.urlEnabled" data-ng-required="application.urlEnabled" rpattern="/^agi:\\/\\/(?:[0-9]{1,3}\\.){3}[0-9]{1,3}\\/square$/">\n\t\t\t\t\t\t\t\t<span class="input-group-addon">\n\t\t\t\t\t\t\t\t<input type="checkbox" data-ng-model="application.urlEnabled">\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t</span>\n\t\t\t\t\t<span data-ng-show="(forms.settings.url.$touched || forms.settings.$submitted) && forms.settings.url.$invalid && forms.settings.url.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div> --\x3e\n\t\t\t\x3c!-- END URL --\x3e\n\n\t\t</div>\n\t\t<div id="Goto" class="app-settings" ng-slide-down="main.app.value == \'Goto\'" lazy-render duration="1">\n\t\t\t\x3c!-- START CONTEXT --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$invalid}">\n\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" name="context" theme="bootstrap" required>\n\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t<ui-select-choices repeat="context.name as context in items | filter: $select.search">\n\t\t\t\t\t\t<div ng-bind-html="context.name | highlight: $select.search"></div>\n\t\t\t\t\t</ui-select-choices>\n\t\t\t\t</ui-select>\n\t\t\t\t<span data-ng-show="(forms.settings.context.$touched || forms.settings.$submitted) && forms.settings.context.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END CONTEXT --\x3e\n\n\t\t\t\x3c!-- START EXTENSION --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid}">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_EXTENSION\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<input type="text" name="extension" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]" required>\n\t\t\t\t<span data-ng-show="(forms.settings.extension.$touched || forms.settings.$submitted) && forms.settings.extension.$invalid && forms.settings.extension.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END EXTENSION --\x3e\n\n\t\t\t\x3c!-- START PRIORITY --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid}">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_PRIORITY\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<input type="text" pattern="[0-9]+" name="priority" placeholder="" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[2]" required>\n\t\t\t\t<span data-ng-show="(forms.settings.priority.$touched || forms.settings.$submitted) && forms.settings.priority.$invalid" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END PRIORITY --\x3e\n\t\t</div>\n\t\t<div id="Hangup" class="app-settings" ng-slide-down="main.app.value == \'Hangup\'" lazy-render duration="1">\n\t\t\t\x3c!-- START HANGUPCAUSE --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$invalid}">\n\t\t\t\t<label class="control-label">{{\'APPLICATION_HANGUP_CAUSE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" theme="bootstrap" name="hangupCause" required>\n\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t<ui-select-choices repeat="hangupCause.value as hangupCause in $application.hangupCauses | filter: $select.search">\n\t\t\t\t\t\t{{hangupCause.name | translate}}\n\t\t\t\t\t</ui-select-choices>\n\t\t\t\t</ui-select>\n\t\t\t\t<span data-ng-show="(forms.settings.hangupCause.$touched || forms.settings.$submitted) && forms.settings.hangupCause.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END HANGUPCAUSE --\x3e\n\t\t</div>\n\t\t<div id="Set" class="app-settings" ng-slide-down="main.app.value == \'Set\' && !main.app.type" lazy-render duration="1">\n\t\t\t\x3c!-- START VARIABLE --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid}">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_VARIABLE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<input type="text" name="variable" placeholder="" class="form-control" data-ng-model="application.variable" data-ng-change="updateSetAppdataSettings()" required>\n\t\t\t\t<span data-ng-show="(forms.settings.variable.$touched || forms.settings.$submitted) && forms.settings.variable.$invalid && forms.settings.variable.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END VARIABLE --\x3e\n\n\t\t\t\x3c!-- START VARVALUE --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid}">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_VALUE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<input type="text" name="varvalue" placeholder="" class="form-control" data-ng-model="application.value" data-ng-change="updateSetAppdataSettings()" required>\n\t\t\t\t<span data-ng-show="(forms.settings.varvalue.$touched || forms.settings.$submitted) && forms.settings.varvalue.$invalid && forms.settings.varvalue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END VARVALUE --\x3e\n\t\t</div>\n\t\t<div id="Custom" class="app-settings" ng-slide-down="main.app.type == \'custom\'" lazy-render duration="1">\n\n\t\t\t\x3c!-- START CUSTOMAPP --\x3e\n\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid}">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_CUSTOM_APP\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<input type="text" name="customApp" placeholder="{{ \'APPLICATION_CUSTOM_APP\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].app" required>\n\t\t\t\t<span data-ng-show="(forms.settings.customApp.$touched || forms.settings.$submitted) && forms.settings.customApp.$invalid && forms.settings.customApp.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END CUSTOMAPP --\x3e\n\n\t\t\t\x3c!-- START APPDATA --\x3e\n\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid}">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_ARGUMENTS\' | translate }}</label>\n\t\t\t\t<input type="text" name="appdata" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[0]">\n\t\t\t\t<span data-ng-show="(forms.settings.appdata.$touched || forms.settings.$submitted) && forms.settings.appdata.$invalid && forms.settings.appdata.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END APPDATA --\x3e\n\t\t</div>\n\t\t<div id="Voicemail" class="app-settings" ng-slide-down="main.app.value == \'Voicemail\'" lazy-render duration="1">\n\t\t\t\x3c!-- START VOICEMAIL --\x3e\n\t\t\t<div class="form-group"  data-ng-class="{\'has-error\': (forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid}">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_MAILBOX\' | translate }}@{{ \'APPLICATION_CONTEXT\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<ui-select data-ng-model="route.Applications[selectedApp].appdata[0]" theme="bootstrap" name="voicemail" required data-ng-disabled="!items.length">\n\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.mailbox}}</ui-select-match>\n\t\t\t\t\t<ui-select-choices repeat="mailbox.mailbox+\'@\'+mailbox.context as mailbox in items | filter: $select.search">\n\t\t\t\t\t\t<div ng-bind-html="mailbox.mailbox | highlight: $select.search"></div>\n\t\t\t\t\t</ui-select-choices>\n\t\t\t\t</ui-select>\n\t\t\t\t<div class="note note-warning" data-ng-hide="items.length">\n\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{{ \'MESSAGE_NO_VOICEMAILS_AVAILABLE\' | translate }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/channels/voice/voicemails/list">{{\'APPLICATION_VOICEMAILS\' | translate}}</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t<span data-ng-show="(forms.settings.voicemail.$touched || forms.settings.$submitted) && forms.settings.voicemail.$invalid && forms.settings.voicemail.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END VOICEMAIL --\x3e\n\n\t\t\t\x3c!-- START OPTIONS --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.app_options.$touched || forms.settings.$submitted) && forms.settings.app_options.$invalid}">\n\t\t\t\t<label class="control-label">{{\'APPLICATION_OPTIONS\' | translate}}</label>\n\t\t\t\t<input type="text" name="app_options" placeholder="{{ \'APPLICATION_OPTIONS\' | translate }}" class="form-control" data-ng-model="route.Applications[selectedApp].appdata[1]">\n\t\t\t</div>\n\t\t\t\x3c!-- END OPTIONS --\x3e\n\n\t\t</div>\n\n\t\t<div id="videoOn" class="app-settings" ng-slide-down="main.app.value == \'Set\' && main.app.type == \'videoOn\'" lazy-render duration="1">\n\t\t\t\x3c!-- START DOMAIN --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid}">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_DOMAIN\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<input type="text" name="domain" placeholder="" class="form-control" data-ng-model="application.domain" data-ng-change="updateVideoOnAppdataSettings()" required>\n\t\t\t\t<span data-ng-show="(forms.settings.domain.$touched || forms.settings.$submitted) && forms.settings.domain.$invalid && forms.settings.domain.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END DOMAIN --\x3e\n\n\t\t\t\x3c!-- START THEME --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid}">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_THEME\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<input type="text" name="theme" placeholder="" class="form-control" data-ng-model="application.theme" data-ng-change="updateVideoOnAppdataSettings()" required>\n\t\t\t\t<span data-ng-show="(forms.settings.theme.$touched || forms.settings.$submitted) && forms.settings.theme.$invalid && forms.settings.theme.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END THEME --\x3e\n\t\t</div>\n\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t</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\t<form name="forms.interval" novalidate>\n\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\x3c!-- START INTERVAL_TYPE --\x3e\n\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$invalid}">\n\t\t\t<label class="control-label">{{\'APPLICATION_INTERVAL_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t<ui-select data-ng-model="interval.intType" theme="bootstrap" name="intType" required>\n\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t<ui-select-choices repeat="intType.value as intType in $application.intTypes | filter: $select.search">\n\t\t\t\t\t{{intType.name | translate}}\n\t\t\t\t</ui-select-choices>\n\t\t\t</ui-select>\n\t\t\t<span data-ng-show="(forms.interval.intType.$touched || forms.interval.$submitted) && forms.interval.intType.$error.required" class="help-block help-block-error">\n\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t</span>\n\t\t</div>\n\t\t\x3c!-- END INTERVAL_TYPE --\x3e\n\t\t<div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'custom\'" lazy-render duration="1">\n\t\t\t\x3c!-- START TIME --\x3e\n\t\t\t<div class="form-group">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t<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\t\t\t\t\t<div class="input-group-addon col-md-1 interval-to pull-left">to</div>\n\t\t\t\t\t<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\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\x3c!-- END TIME --\x3e\n\n\t\t\t\x3c!-- <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="interval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label> --\x3e\n\t\t\t\x3c!-- START ALWAYS --\x3e\n\t\t\t<div class="form-group">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALWAYS\' | translate }}</label>\n\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t<label class="control-label pointer-cursor">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\tdata-ng-model="interval.alwaysTime"\n\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\tswitch-active="{{ alwaysSwitch.isActive }}"\n\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\tswitch-on-color="{{ alwaysSwitch.onColor }}"\n\t\t\t\t\t\t\tswitch-off-color="{{ alwaysSwitch.offColor }}"\n\t\t\t\t\t\t\tswitch-animate="{{ alwaysSwitch.animate }}"\n\t\t\t\t\t\t\tswitch-size="{{ alwaysSwitch.size }}"\n\t\t\t\t\t\t\tswitch-label="{{ alwaysSwitch.label }}"\n\t\t\t\t\t\t\tswitch-icon="{{ alwaysSwitch.icon }}"\n\t\t\t\t\t\t\tswitch-radio-off="{{ alwaysSwitch.radioOff }}"\n\t\t\t\t\t\t\tswitch-label-width="{{ alwaysSwitch.labelWidth }}"\n\t\t\t\t\t\t\tswitch-handle-width="{{ alwaysSwitch.handleWidth }}">\n\t\t\t\t\t</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\x3c!-- END ALWAYS --\x3e\n\n\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t<div class="form-group">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAY\' | translate }}</label>\n\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t<ui-select data-ng-model="interval.wd_from" theme="bootstrap" name="wd_from">\n\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t{{weekDay.name | translate}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t<ui-select data-ng-model="interval.wd_to" theme="bootstrap" name="wd_to">\n\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="weekDay.value as weekDay in $interval.daysOfWeek | filter: $select.search">\n\t\t\t\t\t\t\t{{weekDay.name | translate}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t<div class="form-group">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t<ui-select data-ng-model="interval.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t<ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n\t\t\t\t\t\t\t{{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t<ui-select data-ng-model="interval.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t<ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n\t\t\t\t\t\t\t{{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\x3c!-- START MONTH --\x3e\n\t\t\t<div class="form-group">\n\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTH\' | translate }}</label>\n\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t<ui-select data-ng-model="interval.m_from" theme="bootstrap" name="m_from">\n\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t{{month.name | translate}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t<ui-select data-ng-model="interval.m_to" theme="bootstrap" name="m_to">\n\t\t\t\t\t\t<ui-select-match placeholder="">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t<ui-select-choices repeat="month.value as month in $interval.months | filter: $select.search">\n\t\t\t\t\t\t\t{{month.name | translate}}\n\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t</ui-select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\x3c!-- END MONTH --\x3e\n\t\t</div>\n\n\t\t<div id="customInterval" class="app-settings" ng-slide-down="interval.intType == \'list\'" lazy-render duration="1">\n\n\t\t\t\x3c!-- START INTERVALS --\x3e\n\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$invalid}">\n\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERVALS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t<ui-select data-ng-model="interval.IntervalId" theme="bootstrap" name="IntervalId" required>\n\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t<ui-select-choices repeat="interval.id as interval in Intervals | filter: $select.search">\n\t\t\t\t\t\t{{interval.name | translate}}\n\t\t\t\t\t</ui-select-choices>\n\t\t\t\t</ui-select>\n\t\t\t\t<div class="note note-warning" data-ng-hide="Intervals.length">\n\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{{ \'MESSAGE_NO_INTERVAL_AVAILABLE\' | translate }}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{{\'APPLICATION_GO_TO\' | translate}} <a href="/tools/intervals/list">{{\'APPLICATION_INTERVALS\' | translate}}</a>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t<span data-ng-show="(forms.interval.IntervalId.$touched || forms.interval.$submitted) && forms.interval.IntervalId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t\t\x3c!-- END INTERVALS --\x3e\n\n\t\t</div>\n\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t<button class="btn green-haze" type="submit" ng-click="goNext()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t</form>\n</wz-step>\n\n<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n</wz-step>\n</wizard>\n</div>\n</div>\n\x3c!-- END Portlet PORTLET--\x3e\n</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/voicemail/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-envelope-letter"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-envelope-letter font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="/channels/voice/voicemails/wizard">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_VOICEMAIL\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/voicemail/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getVoicemail()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-envelope-letter"></i>\n\t\t\t\t\t<a href="/channels/voice/voicemails/list">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="voicemail" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="voicemail">\n\t\t\t\t\t<a href="#">{{voicemail.mailbox}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET main.channels --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/voicemail.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{voicemail.mailbox}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.voicemails.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/voice/voicemails/view/{{voicemail.uniqueid}}/settings"><i class="icon-settings"></i>{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.channels.voice.voicemails.view.messages\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/channels/voice/voicemails/view/{{voicemail.uniqueid}}/messages"><i class="icon-speech"></i>{{ \'APPLICATION_MESSAGES\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET main.channels --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/channels/voice/voicemail/view/view.messages.html",'<div class="row" data-ng-init="getMessages()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_MESSAGES\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns data-ng-if="gridOptions" ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/voicemail/view/view.settings.html",'<div class="row" data-ng-init="getContexts()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_VOICEMAIL\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateVoiceVoicemail()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START FULLNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.fullname.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="voicemail.fullname" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && forms.general.fullname.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END FULLNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.email.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="voicemail.email" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="voicemail.password" />\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CONFIRM PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.rpassword.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="voicemail.rpassword" nx-equal="voicemail.password"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && (forms.general.rpassword.$invalid || forms.general.rpassword.$invalid)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONFIRM PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MAILBOX --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.mailbox.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="voicemail.mailbox" required readonly/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && forms.general.mailbox.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MAILBOX --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CONTEXT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="voicemail.context" name="context" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="context.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CONTEXT\' | translate }}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONTEXT --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t\t\x3c!-- ADVANCED TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.advanced" data-ng-submit="forms.general.$valid && forms.advanced.$valid && updateVoiceVoicemail()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START TIMEZONE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.tz.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEZONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="mailbox" placeholder="{{\'APPLICATION_TIMEZONE\' | translate}}" class="form-control" data-ng-model="voicemail.tz" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.advanced.$submitted && forms.advanced.tz.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TIMEZONE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ATTACH --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.attach.$touched || forms.advanced.$submitted) && forms.advanced.attach.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ATTACH\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="voicemail.attach"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ switch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ switch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ switch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ switch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ switch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ switch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ switch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ switch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ switch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ switch.handleWidth }}"\n\t\t\t\t\t\t\t\tng-true-value="\'yes\'"\n\t\t\t\t\t\t\t\tng-false-value="\'no\'">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ATTACH --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ENVELOPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.envelope.$touched || forms.advanced.$submitted) && forms.advanced.envelope.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENVELOPE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="voicemail.envelope"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ switch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ switch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ switch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ switch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ switch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ switch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ switch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ switch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ switch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ switch.handleWidth }}"\n\t\t\t\t\t\t\t\tng-true-value="\'yes\'"\n\t\t\t\t\t\t\t\tng-false-value="\'no\'">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ENVELOPE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DELETE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.delete.$touched || forms.advanced.$submitted) && forms.advanced.delete.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DELETE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="voicemail.delete"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ switch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ switch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ switch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ switch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ switch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ switch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ switch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ switch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ switch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ switch.handleWidth }}"\n\t\t\t\t\t\t\t\tng-true-value="\'yes\'"\n\t\t\t\t\t\t\t\tng-false-value="\'no\'">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DELETE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START EMAIL_BODY --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_BODY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="emailbody" placeholder="{{\'APPLICATION_EMAIL_BODY\' | translate}}" class="form-control" data-ng-model="voicemail.emailbody"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EMAIL_BODY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START EMAIL_SUBJECT --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_SUBJECT\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="emailsubject" placeholder="{{\'APPLICATION_EMAIL_SUBJECT\' | translate}}" class="form-control" data-ng-model="voicemail.emailsubject"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EMAIL_SUBJECT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MAX_SECONDS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.maxsecs.$touched || forms.advanced.$submitted) && forms.advanced.maxsecs.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAX_SECONDS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="maxsecs" placeholder="{{\'APPLICATION_MAX_SECONDS\' | translate}}" class="form-control" data-ng-model="voicemail.maxsecs" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.maxsecs.$touched || forms.advanced.$submitted) && forms.advanced.maxsecs.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MAX_SECONDS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MAX_MESSAGES --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.maxmsg.$touched || forms.advanced.$submitted) && forms.advanced.maxmsg.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAX_MESSAGES\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="maxmsg" placeholder="{{\'APPLICATION_MAX_MESSAGES\' | translate}}" class="form-control" data-ng-model="voicemail.maxmsg" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.maxmsg.$touched || forms.advanced.$submitted) && forms.advanced.maxmsg.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MAX_MESSAGES --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/channels/voice/voicemail/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n  \x3c!-- BEGIN PAGE HEADER--\x3e\n\t<div class="page-bar">\n\t\t<ul class="page-breadcrumb">\n\t\t\t<li>\n\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="fa fa-spinner"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_CHANNELS\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_VOICE\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-envelope-letter"></i>\n\t\t\t\t<a href="/channels/voice/voicemails/list">{{ \'APPLICATION_VOICEMAILS\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-options"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n  \x3c!-- END PAGE HEADER--\x3e\n\n  \x3c!-- BEGIN PORTLET--\x3e\n  <div class="portlet light bordered" data-ng-init="getFirstFreeMailbox()">\n  \t<div class="portlet-title">\n  \t\t<div class="caption font-green-sharp">\n  \t\t\t<i class="icon-envelope-letter font-green-sharp"></i>\n  \t\t\t<span class="caption-subject">{{ \'APPLICATION_VOICEMAIL\' | translate }} WIZARD</a> </span>\n  \t\t</div>\n  \t</div>\n  \t<div class="portlet-body">\n  \t\t<wizard on-finish="createItem()">\n\t\t\t\t<wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(form.general.$valid)">\n\t\t\t    <form name="form.general" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START FULLNAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.fullname.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="fullname" placeholder="{{\'APPLICATION_FULLNAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n\t\t\t\t\t\t\t<span data-ng-show="form.general.$submitted && form.general.fullname.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END FULLNAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.email.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required/>\n\t\t\t\t\t\t\t<span data-ng-show="form.general.$submitted && form.general.host.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n\n\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.password.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n\t\t\t\t\t\t\t<span data-ng-show="form.general.$submitted && form.general.password.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\x3c!-- START CONFIRM PASSWORD --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.rpassword.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n\t\t\t\t\t\t\t<span data-ng-show="form.general.$submitted && (form.general.rpassword.$invalid || form.general.rpassword.$invalid)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END CONFIRM PASSWORD --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MAILBOX --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.general.$submitted && form.general.mailbox.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="mailbox" placeholder="{{\'APPLICATION_MAILBOX\' | translate}}" class="form-control" data-ng-model="item.mailbox" required readonly/>\n\t\t\t\t\t\t\t<span data-ng-show="form.general.$submitted && form.general.mailbox.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MAILBOX --\x3e\n\n\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t</wz-step>\n  \t\t</wizard>\n  \t</div>\n  </div>\n  \x3c!-- END PORTLET--\x3e\n</div>\n'),t.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    <div class="row">\n      <div class="col-md-6">\n    \x3c!-- START NAME --\x3e\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    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START VAT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.company.vat.$touched || forms.company.$submitted) && forms.company.vat.$invalid}">\n      <label class="control-label">{{\'APPLICATION_VAT\' | translate}}</label>\n      <input type="text" name="vat" placeholder="{{\'APPLICATION_VAT\' | translate}}" class="form-control" data-ng-model="item.vat"/>\n      <span data-ng-show="(forms.cmopany.vat.$touched || forms.company.$submitted) && forms.company.vat.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END VAT --\x3e\n\n    \x3c!-- START COMPANYID --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.company.companyId.$touched || forms.company.$submitted) && forms.company.companyId.$invalid}">\n      <label class="control-label">{{\'APPLICATION_COMPANY_ID\' | translate}}</label>\n      <input type="text" name="companyId" placeholder="{{\'APPLICATION_COMPANY_ID\' | translate}}" class="form-control" data-ng-model="item.companyId"/>\n      <span data-ng-show="(forms.cmopany.companyId.$touched || forms.company.$submitted) && forms.company.companyId.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END COMPANYID --\x3e\n\n    \x3c!-- START WEBSITE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.company.website.$touched || forms.company.$submitted) && forms.company.website.$invalid}">\n      <label class="control-label">{{\'APPLICATION_WEBSITE\' | translate}}</label>\n      <input type="text" name="website" placeholder="{{\'APPLICATION_WEBSITE\' | translate}}" class="form-control" data-ng-model="item.website"/>\n      <span data-ng-show="(forms.cmopany.website.$touched || forms.company.$submitted) && forms.company.website.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END WEBSITE --\x3e\n\n    \x3c!-- START EMAIL --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.company.email.$touched || forms.company.$submitted) && forms.company.email.$invalid}">\n      <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n      <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email"/>\n      <span data-ng-show="(forms.cmopany.email.$touched || forms.company.$submitted) && forms.company.email.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END EMAIL --\x3e\n\n  </div>\n  <div class="col-md-6">\n    \x3c!-- START PHONE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.company.phone.$touched || forms.company.$submitted) && forms.company.phone.$invalid}">\n      <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n      <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone"/>\n      <span data-ng-show="(forms.cmopany.phone.$touched || forms.company.$submitted) && forms.company.phone.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END PHONE --\x3e\n\n    \x3c!-- START FAX --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.company.fax.$touched || forms.company.$submitted) && forms.company.fax.$invalid}">\n      <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n      <input type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="item.fax"/>\n      <span data-ng-show="(forms.cmopany.fax.$touched || forms.company.$submitted) && forms.company.fax.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END FAX --\x3e\n\n    \x3c!-- START TYPE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.company.type.$touched || forms.company.$submitted) && forms.company.type.$invalid}">\n      <label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n      <input type="text" name="type" placeholder="{{\'APPLICATION_TYPE\' | translate}}" class="form-control" data-ng-model="item.type"/>\n      <span data-ng-show="(forms.cmopany.type.$touched || forms.company.$submitted) && forms.company.type.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TYPE --\x3e\n\n    \x3c!-- START DOMAIN --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.company.emailDomain.$touched || forms.company.$submitted) && forms.company.emailDomain.$invalid}">\n      <label class="control-label">{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}</label>\n      <input type="text" name="domain" placeholder="{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}" class="form-control" data-ng-model="item.emailDomain"/>\n      <span data-ng-show="(forms.cmopany.emailDomain.$touched || forms.company.$submitted) && forms.company.emailDomain.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END DOMAIN --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n  </div>\n</div>\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.company.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/contactmanager/company/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-users"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-briefcase"></i>\n\t\t\t\t\t<a href="/contactmanager/companies/list">{{ \'APPLICATION_COMPANIES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-briefcase font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_COMPANIES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="create()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_COMPANY\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/contactmanager/company/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getCompany()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-users"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-briefcase"></i>\n\t\t\t\t\t<a href="/contactmanager/companies/list">{{ \'APPLICATION_COMPANIES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="company" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="company">\n\t\t\t\t\t<a href="#">{{company.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/company.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{company.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.contactmanager.companies.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/contactmanager/companies/view/{{company.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/contactmanager/company/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_COMPANY\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADDRESS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_SHIPMENT_ADDRESS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateCompany()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="company.name" required/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START VAT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.vat.$touched || forms.general.$submitted) && forms.general.vat.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_VAT\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="vat" placeholder="{{\'APPLICATION_VAT\' | translate}}" class="form-control" data-ng-model="company.vat"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.cmopany.vat.$touched || forms.general.$submitted) && forms.general.vat.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END VAT --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START COMPANYID --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.companyId.$touched || forms.general.$submitted) && forms.general.companyId.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_COMPANY_ID\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="companyId" placeholder="{{\'APPLICATION_COMPANY_ID\' | translate}}" class="form-control" data-ng-model="company.companyId"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.cmopany.companyId.$touched || forms.general.$submitted) && forms.general.companyId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END COMPANYID --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START WEBSITE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.website.$touched || forms.general.$submitted) && forms.general.website.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_WEBSITE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="website" placeholder="{{\'APPLICATION_WEBSITE\' | translate}}" class="form-control" data-ng-model="company.website"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.cmopany.website.$touched || forms.general.$submitted) && forms.general.website.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END WEBSITE --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="company.email"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.cmopany.email.$touched || forms.general.$submitted) && forms.general.email.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\x3c!-- START PHONE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="company.phone"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.cmopany.phone.$touched || forms.general.$submitted) && forms.general.phone.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END PHONE --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START FAX --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="company.fax"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.cmopany.fax.$touched || forms.general.$submitted) && forms.general.fax.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END FAX --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START TYPE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="type" placeholder="{{\'APPLICATION_TYPE\' | translate}}" class="form-control" data-ng-model="company.type"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.cmopany.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END TYPE --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START DOMAIN --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.emailDomain.$touched || forms.general.$submitted) && forms.general.emailDomain.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="domain" placeholder="{{\'APPLICATION_EMAIL_DOMAIN\' | translate}}" class="form-control" data-ng-model="company.emailDomain"/>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.cmopany.emailDomain.$touched || forms.general.$submitted) && forms.general.emailDomain.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END DOMAIN --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="company.description"></textarea>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.address" data-ng-submit="forms.address.$valid && updateCompany()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START STREET --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.address.street.$touched || forms.address.$submitted) && forms.address.street.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.street"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.address.street.$touched || forms.address.$submitted) && forms.address.street.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END STREET --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START POSTALCODE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.address.postalCode.$touched || forms.address.$submitted) && forms.address.postalCode.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.postalCode"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.address.postalCode.$touched || forms.address.$submitted) && forms.address.postalCode.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END POSTALCODE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CITY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.address.city.$touched || forms.address.$submitted) && forms.address.city.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.city"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.address.city.$touched || forms.address.$submitted) && forms.address.city.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CITY --\x3e\n\t\t\t\t\t\t\t\x3c!-- START COUNTRY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.address.country.$touched || forms.address.$submitted) && forms.address.country.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.country"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.address.country.$touched || forms.address.$submitted) && forms.address.country.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END COUNTRY --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.shipmentAddress" data-ng-submit="forms.shipmentAddress.$valid && updateCompany()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START STREET --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sStreet.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sStreet.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="sStreet" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.sStreet"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.shipmentAddress.sStreet.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sStreet.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END STREET --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START POSTALCODE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sPostalCode.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sPostalCode.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="sPostalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.sPostalCode"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.shipmentAddress.sPostalCode.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sPostalCode.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END POSTALCODE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CITY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sCity.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCity.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="sCity" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.sCity"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.shipmentAddress.sCity.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCity.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CITY --\x3e\n\t\t\t\t\t\t\t\x3c!-- START COUNTRY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.shipmentAddress.sCountry.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCountry.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="sCountry" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.sCountry"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.shipmentAddress.sCountry.$touched || forms.shipmentAddress.$submitted) && forms.shipmentAddress.sCountry.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END COUNTRY --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/contactmanager/contact/list/copy.modal.html",'<div class="modal-header" data-ng-init="getLists()">\n  <h3 class="modal-title">{{ \'APPLICATION_COPY_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="forms.copy" novalidate>\n        \x3c!-- START LIST --\x3e\n        <div class="form-group" data-ng-class="{\'has-error\': forms.csv.ListId.$invalid && forms.csv.$submitted}">\n          <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n          <ui-select data-ng-model="item.ListId" theme="bootstrap" name="ListId" data-ng-disabled="disabled" data-ng-change="getCustomFields()" required>\n            <ui-select-match placeholder="{{ \'APPLICATION_LIST\' | translate }}">{{$select.selected.name}}</ui-select-match>\n            <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n              <div ng-bind-html="list.name | highlight: $select.search"></div>\n            </ui-select-choices>\n          </ui-select>\n          <span data-ng-show="forms.csv.ListId.$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        \x3c!-- END LIST --\x3e\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.copy.$invalid || !forms.copy.ListId">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/contactmanager/contact/list/import.modal.html",'<div class="modal-header" data-ng-init="getLists();getCompanies();">\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        \x3c!-- START LIST --\x3e\n        <div class="form-group" data-ng-class="{\'has-error\': forms.csv.ListId.$invalid && forms.csv.$submitted}">\n          <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n          <ui-select data-ng-model="item.ListId" theme="bootstrap" name="ListId" data-ng-disabled="disabled" data-ng-change="getCustomFields()">\n            <ui-select-match placeholder="{{ \'APPLICATION_LIST\' | translate }}">{{$select.selected.name}}</ui-select-match>\n            <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n              <div ng-bind-html="list.name | highlight: $select.search"></div>\n            </ui-select-choices>\n          </ui-select>\n          <span data-ng-show="forms.csv.ListId.$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        \x3c!-- END LIST --\x3e\n\n        \x3c!-- START FIRSTNAME --\x3e\n        <div class="form-group" data-ng-class="{\'has-error\': (forms.csv.firstName.$touched || forms.general.$submitted) && forms.csv.firstName.$invalid}">\n          <label class="control-label">{{\'APPLICATION_FIRSTNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n          <ui-select data-ng-model="item.firstName" theme="bootstrap" name="firstName" data-ng-disabled="disabled" required>\n            <ui-select-match allow-clear placeholder="{{ \'APPLICATION_FIRSTNAME\' | 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.firstName.$touched || forms.csv.$submitted) && forms.csv.firstName.$error.required" class="help-block help-block-error">\n            <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n          </span>\n        </div>\n        \x3c!-- END FIRSTNAME --\x3e\n\n        \x3c!-- START LASTNAME --\x3e\n        <div class="form-group" data-ng-class="{\'has-error\': forms.csv.lastName.$invalid && forms.csv.$submitted}">\n          <label class="control-label">{{\'APPLICATION_LASTNAME\' | translate}}</label>\n          <ui-select data-ng-model="item.lastName" theme="bootstrap" name="lastName" data-ng-disabled="disabled">\n            <ui-select-match allow-clear placeholder="{{ \'APPLICATION_LASTNAME\' | 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.lastName.$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        \x3c!-- END LASTNAME --\x3e\n\n    \x3c!-- START STREET --\x3e\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    \x3c!-- END STREET --\x3e\n\n    \x3c!-- START POSTALCODE --\x3e\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    \x3c!-- END POSTALCODE --\x3e\n\n    \x3c!-- START CITY --\x3e\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    \x3c!-- END CITY --\x3e\n\n    \x3c!-- START PHONE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': forms.csv.phone.$invalid && forms.csv.$submitted}">\n      <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n      <ui-select data-ng-model="item.phone" theme="bootstrap" name="phone" data-ng-disabled="disabled">\n        <ui-select-match allow-clear placeholder="{{ \'APPLICATION_PHONE\' | 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.phone.$invalid && forms.phone.$touched" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END PHONE --\x3e\n\n    \x3c!-- START MOBILE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': forms.csv.mobile.$invalid && forms.csv.$submitted}">\n      <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n      <ui-select data-ng-model="item.mobile" theme="bootstrap" name="mobile" data-ng-disabled="disabled">\n        <ui-select-match allow-clear placeholder="{{ \'APPLICATION_MOBILE\' | 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.mobile.$invalid && forms.mobile.$touched" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END MOBILE --\x3e\n\n  </div>\n  <div class="col-md-6">\n\n    \x3c!-- START COUNTRY --\x3e\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    \x3c!-- END COUNTRY --\x3e\n\n    \x3c!-- START DATEOFBIRTH --\x3e\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    \x3c!-- END DATEOFBIRTH --\x3e\n\n    \x3c!-- START TAGS --\x3e\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    \x3c!-- END TAGS --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n    \x3c!-- START FAX --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': forms.csv.fax.$invalid && forms.csv.$submitted}">\n      <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n      <ui-select data-ng-model="item.fax" theme="bootstrap" name="fax" data-ng-disabled="disabled">\n        <ui-select-match allow-clear placeholder="{{ \'APPLICATION_FAX\' | 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.fax.$invalid && forms.fax.$touched" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END FAX --\x3e\n\n    \x3c!-- START EMAIL --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': forms.csv.email.$invalid && forms.general.$submitted}">\n      <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n      <ui-select data-ng-model="item.email" theme="bootstrap" name="email" data-ng-disabled="disabled">\n        <ui-select-match allow-clear placeholder="{{ \'APPLICATION_EMAIL\' | 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.email.$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    \x3c!-- END EMAIL --\x3e\n\n    \x3c!-- START COMPANY --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': forms.csv.CompanyId.$invalid && forms.csv.$submitted}">\n      <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n      <ui-select data-ng-model="item.CompanyId" theme="bootstrap" name="CompanyId" data-ng-disabled="!companies.length">\n        <ui-select-match allow-clear placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n        <ui-select-choices repeat="company.id as company in companies | filter: $select.search">\n          <div ng-bind-html="company.name | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <div class="note note-warning" data-ng-hide="companies.length">\n        <h4 class="block">Warning!</h4>\n        <p>\n          {{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}\n        </p>\n      </div>\n      <span data-ng-show="forms.csv.CompanyId.$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    \x3c!-- END COMPANY --\x3e\n\n  </div>\n  </div>\n\n  \x3c!-- START CUSTOMFIELDS --\x3e\n  <div data-ng-repeat="customField in customFields">\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.csv[customField.name].$touched || forms.general.$submitted) && forms.csv[customField.name].$invalid}">\n      <label class="control-label">{{customField.alias}}<span data-ng-if="customField.required" class="required" aria-required="true">*</span></label>\n      <ui-select data-ng-model="item[customField.name]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled" data-ng-required="customField.required">\n        <ui-select-match allow-clear placeholder="{{customField.alias}}">{{$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].$touched || forms.csv.$submitted) && forms.csv[customField.name].$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n  </div>\n  \x3c!-- END CUSTOMFIELDS --\x3e\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-danger" role="progressbar" ng-style="{ \'width\': import.fail + \'%\' }"></div>\n    </div>\n  </div>\n  <div data-ng-if="failedRows">\n  <p>{{\'APPLICATION_FAILED_ROWS\' | translate}}:</p>\n  <div class="failed-contacts">{{failedRows}}</div>\n</div>\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 || 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'),t.put("app/contactmanager/contact/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-users"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-users"></i>\n\t\t\t\t\t<a href="/contactmanager/contacts/list">{{ \'APPLICATION_CONTACTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="fa fa-users font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_CONTACTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length && !Auth.isAgent()">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button data-ng-if="gridOptions.data.length" class="btn purple" ng-csv="extractAll()" lazy-load="true" filename="Contacts.csv" csv-label="true">\n\t\t\t\t\t\t\t<i class="fa fa-download"></i> {{ \'APPLICATION_EXPORT_TO_CSV\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<button class="btn green-jungle" data-ng-click="newContact({CompanyId:gridOptions.columnDefs[7].filter.term || null,ListId:gridOptions.columnDefs[6].filter.term || null});">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<span class="btn default btn-file" data-ng-if="!Auth.isAgent()">\n\t\t\t\t\t\t<span class="fileinput-new">\n\t\t\t\t\t\t<i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_CSV\' | translate}}</span>\n\t\t\t\t\t\t<input type="file" accept=".csv" nv-file-select="" uploader="uploader"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div data-ng-if="gridOptions"  ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<span us-spinner spinner-key="grid-spinner"></span>\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.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    \x3c!-- START NAME --\x3e\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.alias" 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    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START TYPE --\x3e\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    \x3c!-- END TYPE --\x3e\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    \x3c!-- START REQUIRED --\x3e\n    <div class="form-group">\n      <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n      <input\n      bs-switch\n      ng-model="item.required"\n      type="checkbox"\n      switch-active="{{ bsSwitch.isActive }}"\n      data-ng-init="item.required = false"\n      switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n      switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n      switch-on-color="{{ bsSwitch.onColor }}"\n      switch-off-color="{{ bsSwitch.offColor }}"\n      switch-animate="{{ bsSwitch.animate }}"\n      switch-size="{{ bsSwitch.size }}"\n      switch-label="{{ bsSwitch.label }}"\n      switch-icon="{{ bsSwitch.icon }}"\n      switch-radio-off="{{ bsSwitch.radioOff }}"\n      switch-label-width="{{ bsSwitch.labelWidth }}"\n      switch-handle-width="{{ bsSwitch.handleWidth }}">\n    </div>\n    \x3c!-- END REQUIRED --\x3e\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'),t.put("app/contactmanager/customfield/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-users"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-pencil"></i>\n\t\t\t\t\t<a href="/contactmanager/customfields/list">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-pencil font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="create()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CUSTOM_FIELD\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/contactmanager/customfield/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getCustomField()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-users"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-pencil"></i>\n\t\t\t\t\t<a href="/contactmanager/customfields/list">{{ \'APPLICATION_CUSTOM_FIELDS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="customField" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="customField">\n\t\t\t\t\t<a href="#">{{customField.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/customField.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{customField.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.contactmanager.customfields.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/contactmanager/customfields/view/{{customField.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/contactmanager/customfield/view/view.settings.html",'<div class="row" data-ng-init="getCustomField()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CUSTOM_FIELD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateCustomField()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="customField.alias" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t<div ng-slide-down="customField.type == \'select\'" lazy-render duration="1" class="mbottom20">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="padding-bottom" ng-repeat="choice in choices">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" ng-model="choice.value" required>\n\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n\t\t\t\t\t\t\t\t</button>\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- START REQUIRED --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="customField.required"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ bsSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ bsSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ bsSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ bsSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ bsSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ bsSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ bsSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ bsSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ bsSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ bsSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REQUIRED --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/contactmanager/list/list/create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_LIST\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="forms.list" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (forms.list.name.$touched || forms.list.$submitted) && forms.list.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.list.name.$touched || forms.list.$submitted) && forms.list.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="forms.list.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/contactmanager/list/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-users"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-list-ul"></i>\n\t\t\t\t\t<a href="/contactmanager/lists/list">{{ \'APPLICATION_LISTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="fa fa-list-ul font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_LISTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t\x3c!-- <div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteLists()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="create()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_LIST\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/contactmanager/list/view/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    \x3c!-- START NAME --\x3e\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.alias" 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    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START TYPE --\x3e\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    \x3c!-- END TYPE --\x3e\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    \x3c!-- START REQUIRED --\x3e\n    <div class="form-group">\n      <label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n      <input\n      bs-switch\n      ng-model="item.required"\n      type="checkbox"\n      switch-active="{{ bsSwitch.isActive }}"\n      data-ng-init="item.required = false"\n      switch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n      switch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n      switch-on-color="{{ bsSwitch.onColor }}"\n      switch-off-color="{{ bsSwitch.offColor }}"\n      switch-animate="{{ bsSwitch.animate }}"\n      switch-size="{{ bsSwitch.size }}"\n      switch-label="{{ bsSwitch.label }}"\n      switch-icon="{{ bsSwitch.icon }}"\n      switch-radio-off="{{ bsSwitch.radioOff }}"\n      switch-label-width="{{ bsSwitch.labelWidth }}"\n      switch-handle-width="{{ bsSwitch.handleWidth }}">\n    </div>\n    \x3c!-- END REQUIRED --\x3e\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'),t.put("app/contactmanager/list/view/view.agents.html",'<div class="row" data-ng-init="getTeams()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="note note-warning" data-ng-hide="teams.length">\n\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t<p>\n\t\t\t\t\t {{ \'MESSAGE_NO_AVAILABLE_TEAMS\' | translate }}\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t\t\t<form action="index.html" class="form-horizontal form-row-seperated">\n\t\t\t\t\t<div class="form-body">\n\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-team">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END FORM--\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/contactmanager/list/view/view.customFieldSettings.html",'<div class="row" data-ng-init="getCustomField()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CUSTOM_FIELD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateCustomField()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="customField.alias" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t<div ng-slide-down="customField.type == \'select\'" lazy-render duration="1" class="mbottom20">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHOICES\' | translate}}</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="padding-bottom" ng-repeat="choice in choices">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" ng-model="choice.value" required>\n\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" ng-click="addField()">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CHOICE\' | translate}}\n\t\t\t\t\t\t\t\t</button>\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- START REQUIRED --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REQUIRED\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="customField.required"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ bsSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ bsSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ bsSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ bsSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ bsSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ bsSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ bsSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ bsSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ bsSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ bsSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REQUIRED --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/contactmanager/list/view/view.customFields.html",'<div ui-view class="profile-content">\n<div class="row" data-ng-init="initCustomFields()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CUSTOM_FIELDS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</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\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/contactmanager/list/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getList()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-users"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CONTACT_MANAGER\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-list-ul"></i>\n\t\t\t\t\t<a href="/contactmanager/lists/list">{{ \'APPLICATION_LISTS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="list" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="list">\n\t\t\t\t\t<a href="#">{{list.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/list.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{list.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.contactmanager.lists.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/contactmanager/lists/view/{{list.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-if="!list.defaultEntry" data-ng-class="{active: $state.is(\'main.contactmanager.lists.view.agents\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/contactmanager/lists/view/{{list.id}}/agents">\n\t\t\t\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_AGENTS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.contactmanager.lists.view.customfields\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/contactmanager/lists/view/{{list.id}}/customfields">\n\t\t\t\t\t\t\t<i class="icon-pencil"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_CUSTOM_FIELDS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/contactmanager/list/view/view.settings.html",'<div class="row" data-ng-init="initVariables()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_LIST\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateList()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="list.name" data-ng-disabled="list.defaultEntry" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START VARIABLES --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.variables.$invalid && forms.general.$submitted}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TD_VARIABLES\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select multiple=\'true\' data-ng-model="list.variables" theme="bootstrap" name="variables" limit="10" ng-disabled="disabled">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_TD_VARIABLES\' | translate }}">{{$item.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="variable as variable in variables | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{variable.name}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.variables.$invalid && forms.general.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'MESSAGE_MAX_VARIABLES\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END VARIABLES --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="list.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/dashboard/chat/chat.html",'<div data-ng-switch="Auth.getRole()">\n  <div ng-switch-when="agent" data-ng-init="initAgent()">\n    <div class="row" style="padding-bottom:10px;">\n      <div class="col-md-12">\n        \x3c!-- START TABLE --\x3e\n        <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n          <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n        </div>\n        \x3c!-- END TABLE --\x3e\n      </div>\n    </div>\n  </div>\n  <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n    <fieldset>\n      <legend>\n        <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n      </legend>\n      <div class="row">\n        <div class="col-md-8">\n          <div class="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green-haze">\n                <div class="visual">\n                  <i class="fa fa-play"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_WAITING_NEW_CI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_WAITING_NEW_CI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat blue-madison">\n                <div class="visual">\n                  <i class="icon-bell"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.open || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_OPEN_CI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_OPEN_CI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class ="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green">\n                <div class="visual">\n                  <i class="icon-options"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.unmanaged || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_UNMANAGED_CI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_UNMANAGED_CI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat purple-plum">\n                <div class="visual">\n                  <i class="icon-like"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.closed || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_CLOSED_CI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_CLOSED_CI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class ="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat yellow-crusta">\n                <div class="visual">\n                  <i class="icon-dislike"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.abandon || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_ABANDONED_CI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_ABANDONED_CI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12" >\n              <div class="dashboard-stat yellow-casablanca">\n                <div class="visual">\n                  <i class="icon-calculator"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new+roomStatus.open+roomStatus.unmanaged+roomStatus.closed+roomStatus.abandon || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_TOTAL_CI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_TOTAL_CI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n        </div>\n        <div class="col-md-4">\n          <canvas class="chart chart-pie"  chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true"></canvas>\n      </div>\n    </div>\n    <legend>\n      <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n    </legend>\n    <div class="row">\n      <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n        <div class="dashboard-stat red-intense">\n          <div class="visual">\n            <i class="icon-dislike"></i>\n          </div>\n          <div class="details">\n            <div class="number">\n              {{routingStats.timeout || 0}}\n            </div>\n            <div class="desc">\n              {{\'APPLICATION_TIMEOUT_CA\' | translate}}\n            </div>\n          </div>\n          <a class="more inactive-link">\n            {{\'APPLICATION_TIMEOUT_CA_EXTENDED\' | translate}}\n          </a>\n        </div>\n      </div>\n      <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n        <div class="dashboard-stat purple">\n          <div class="visual">\n            <i class="icon-hourglass"></i>\n          </div>\n          <div class="details">\n            <div class="number">\n              {{routingStats.waiting || 0}}\n            </div>\n            <div class="desc">\n              {{\'APPLICATION_WAITING_CA\' | translate}}\n            </div>\n          </div>\n          <a class="more inactive-link">\n            {{\'APPLICATION_WAITING_CA_EXTENDED\' | translate}}\n          </a>\n        </div>\n      </div>\n    </div>\n  </fieldset>\n\n</div>\n</div>\n'),t.put("app/dashboard/dashboard.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" id="dashboardView">\n\t<div class="col-md-12" >\n\t\t<div>\n\t\t\t<nav class="navbar navbar-default" role="navigation">\n\t\t\t\t<div class="navbar-header">\n\t\t\t\t\t<button type="button" class="navbar-toggle" data-ng-init="navCollapsed = true" data-ng-click="navCollapsed = !navCollapsed">\n\t\t\t\t\t\t<span class="sr-only">Toggle navigation</span>\n\t\t\t\t\t\t<span class="icon-bar"></span>\n\t\t\t\t\t\t<span class="icon-bar"></span>\n\t\t\t\t\t\t<span class="icon-bar"></span>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\n\t\t\t\t\x3c!-- Collect the nav links, forms, and other content for toggling --\x3e\n\t\t\t\t<div class="collapse navbar-collapse" ng-class="!navCollapsed && \'in\'" >\n\t\t\t\t\t<ul class="nav navbar-nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.dashboard.voice\')}">\n\t\t\t\t\t\t\t<a href="/dashboard/voice">\n\t\t\t\t\t\t\t\t<b class=\'icon-earphones-alt\'></b>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_VOICE\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.dashboard.chat\'),\'disabled-link\':!license.chat}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[8]))">\n\t\t\t\t\t\t\t<a href="{{license.chat ? \'/dashboard/chat\' : \'#\'}}" class="disable-target">\n\t\t\t\t\t\t\t\t<b class=\'icon-bubble\'></b>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_CHAT\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.dashboard.mail\'),\'disabled-link\':!license.mail}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[9]))">\n\t\t\t\t\t\t\t<a href="{{license.mail ? \'/dashboard/mail\' : \'#\'}}" class="disable-target">\n\t\t\t\t\t\t\t\t<b class=\'icon-envelope\'></b>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_EMAIL\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.dashboard.fax\'),\'disabled-link\':!license.fax}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[10]))">\n\t\t\t\t\t\t\t<a href="{{license.fax ? \'/dashboard/fax\' : \'#\'}}" class="disable-target">\n\t\t\t\t\t\t\t\t<b class=\'fa fa-fax\'></b>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_FAX\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.dashboard.sms\'),\'disabled-link\':!license.messaging}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[11]))">\n\t\t\t\t\t\t\t<a href="{{license.messaging ? \'/dashboard/sms\' : \'#\'}}" class="disable-target">\n\t\t\t\t\t\t\t\t<b class=\'glyphicon glyphicon-comment\'></b>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_SMS\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.dashboard.openchannel\'),\'disabled-link\':!license.openchannel}" data-ng-if="::((Auth.isAdmin() || Auth.isAgent() || userModules[20]))">\n\t\t\t\t\t\t\t<a href="{{license.messaging ? \'/dashboard/openchannel\' : \'#\'}}" class="disable-target">\n\t\t\t\t\t\t\t\t<b class=\'icon-globe\'></b>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_OPEN_CHANNEL\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- /.navbar-collapse --\x3e\n\t\t\t</nav>\n\t\t</div>\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/dashboard/fax/fax.html",'<div data-ng-switch="Auth.getRole()">\n  <div ng-switch-when="agent" data-ng-init="initAgent()">\n    <div class="row" style="padding-bottom:10px;">\n      <div class="col-md-12">\n        \x3c!-- START TABLE --\x3e\n        <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n          <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n        </div>\n        \x3c!-- END TABLE --\x3e\n      </div>\n    </div>\n  </div>\n  <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n    <fieldset>\n      <legend>\n        <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n      </legend>\n      <div class="row">\n        <div class="col-md-8">\n          <div class="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green-haze">\n                <div class="visual">\n                  <i class="fa fa-play"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_NEW_FI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_NEW_FI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat blue-madison">\n                <div class="visual">\n                  <i class="icon-bell"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.open || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_OPEN_FI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_OPEN_FI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green">\n                <div class="visual">\n                  <i class="icon-options"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.pending || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_PENDING_FI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_PENDING_FI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat purple-plum">\n                <div class="visual">\n                  <i class="icon-like"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.closed || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_CLOSED_FI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_CLOSED_FI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n              <div class="dashboard-stat yellow-casablanca">\n                <div class="visual">\n                  <i class="icon-calculator"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_TOTAL_FI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_TOTAL_FI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n        </div>\n        <div class="col-md-4">\n          \x3c!-- <div class="portlet light bordered">\n            <div class="portlet-body"> --\x3e\n          <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n          </canvas>\n            \x3c!-- </div>\n          </div> --\x3e\n        </div>\n      </div>\n      <legend>\n        <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n      </legend>\n      <div class="row">\n        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n          <div class="dashboard-stat red-intense">\n            <div class="visual">\n              <i class="icon-dislike"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{routingStats.timeout || 0}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_TIMEOUT_FA\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_TIMEOUT_FA_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n          <div class="dashboard-stat purple">\n            <div class="visual">\n              <i class="icon-hourglass"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{routingStats.waiting || 0}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_WAITING_FA\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_WAITING_FA_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n    </fieldset>\n  </div>\n'),t.put("app/dashboard/mail/mail.html",'<div data-ng-switch="Auth.getRole()">\n  <div ng-switch-when="agent" data-ng-init="initAgent()">\n    <div class="row" style="padding-bottom:10px;">\n      <div class="col-md-12">\n        \x3c!-- START TABLE --\x3e\n        <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n          <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n        </div>\n        \x3c!-- END TABLE --\x3e\n      </div>\n    </div>\n\n    \x3c!-- <div class="row" style="padding-bottom:10px;">\n      <div class="col-md-12"> --\x3e\n    \x3c!-- START TABLE --\x3e\n    \x3c!-- <div ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-auto-resize class="ui-grid">\n          <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n        </div> --\x3e\n    \x3c!-- END TABLE --\x3e\n    \x3c!-- </div>\n    </div> --\x3e\n  </div>\n  <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n    <fieldset>\n      <legend>\n        <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n      </legend>\n      <div class="row">\n        <div class="col-md-8">\n          <div class="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green-haze">\n                <div class="visual">\n                  <i class="fa fa-play"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_NEW_EI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_NEW_EI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat blue-madison">\n                <div class="visual">\n                  <i class="icon-bell"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.open || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_OPEN_EI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_OPEN_EI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green">\n                <div class="visual">\n                  <i class="icon-options"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.pending || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_PENDING_EI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_PENDING_EI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat purple-plum">\n                <div class="visual">\n                  <i class="icon-like"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.closed || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_CLOSED_EI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_CLOSED_EI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n              <div class="dashboard-stat yellow-casablanca">\n                <div class="visual">\n                  <i class="icon-calculator"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_TOTAL_EI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_TOTAL_EI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n        </div>\n        <div class="col-md-4">\n          \x3c!-- <div class="portlet light bordered">\n            <div class="portlet-body"> --\x3e\n          <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n          </canvas>\n            \x3c!-- </div>\n          </div> --\x3e\n        </div>\n      </div>\n      <legend>\n        <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n      </legend>\n      <div class="row">\n        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n          <div class="dashboard-stat red-intense">\n            <div class="visual">\n              <i class="icon-dislike"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{routingStats.timeout || 0}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_TIMEOUT_EA\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_TIMEOUT_EA_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n          <div class="dashboard-stat purple">\n            <div class="visual">\n              <i class="icon-hourglass"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{routingStats.waiting || 0}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_WAITING_EA\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_WAITING_EA_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n    </fieldset>\n  </div>\n'),t.put("app/dashboard/openchannel/openchannel.html",'<div data-ng-switch="Auth.getRole()">\n  <div ng-switch-when="agent" data-ng-init="initAgent()">\n    <div class="row" style="padding-bottom:10px;">\n      <div class="col-md-12">\n        \x3c!-- START TABLE --\x3e\n        <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n          <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n        </div>\n        \x3c!-- END TABLE --\x3e\n      </div>\n    </div>\n\n    \x3c!-- <div class="row" style="padding-bottom:10px;">\n      <div class="col-md-12"> --\x3e\n    \x3c!-- START TABLE --\x3e\n    \x3c!-- <div ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-auto-resize class="ui-grid">\n          <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n        </div> --\x3e\n    \x3c!-- END TABLE --\x3e\n    \x3c!-- </div>\n    </div> --\x3e\n  </div>\n  <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n    <fieldset>\n      <legend>\n        <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n      </legend>\n      <div class="row">\n        <div class="col-md-8">\n          <div class="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green-haze">\n                <div class="visual">\n                  <i class="fa fa-play"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_NEW_OI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_NEW_OI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat blue-madison">\n                <div class="visual">\n                  <i class="icon-bell"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.open || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_OPEN_OI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_OPEN_OI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green">\n                <div class="visual">\n                  <i class="icon-options"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.pending || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_PENDING_OI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_PENDING_OI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat purple-plum">\n                <div class="visual">\n                  <i class="icon-like"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.closed || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_CLOSED_OI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_CLOSED_OI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n              <div class="dashboard-stat yellow-casablanca">\n                <div class="visual">\n                  <i class="icon-calculator"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_TOTAL_OI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_TOTAL_OI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n        </div>\n        <div class="col-md-4">\n          \x3c!-- <div class="portlet light bordered">\n            <div class="portlet-body"> --\x3e\n          <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n          </canvas>\n            \x3c!-- </div>\n          </div> --\x3e\n        </div>\n      </div>\n      <legend>\n        <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n      </legend>\n      <div class="row">\n        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n          <div class="dashboard-stat red-intense">\n            <div class="visual">\n              <i class="icon-dislike"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{routingStats.timeout || 0}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_TIMEOUT_OA\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_TIMEOUT_OA_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n          <div class="dashboard-stat purple">\n            <div class="visual">\n              <i class="icon-hourglass"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{routingStats.waiting || 0}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_WAITING_OA\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_WAITING_OA_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n    </fieldset>\n  </div>\n'),t.put("app/dashboard/sms/sms.html",'<div data-ng-switch="Auth.getRole()">\n  <div ng-switch-when="agent" data-ng-init="initAgent()">\n    <div class="row" style="padding-bottom:10px;">\n      <div class="col-md-12">\n        \x3c!-- START TABLE --\x3e\n        <div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n          <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n        </div>\n        \x3c!-- END TABLE --\x3e\n      </div>\n    </div>\n\n    \x3c!-- <div class="row" style="padding-bottom:10px;">\n      <div class="col-md-12"> --\x3e\n    \x3c!-- START TABLE --\x3e\n    \x3c!-- <div ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-auto-resize class="ui-grid">\n          <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n        </div> --\x3e\n    \x3c!-- END TABLE --\x3e\n    \x3c!-- </div>\n    </div> --\x3e\n  </div>\n  <div ng-switch-default data-ng-init="initRoomStats();initRoutingStats();initSocketListening();">\n    <fieldset>\n      <legend>\n        <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_INTERACTION_STATS\' | translate }}</small>\n      </legend>\n      <div class="row">\n        <div class="col-md-8">\n          <div class="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green-haze">\n                <div class="visual">\n                  <i class="fa fa-play"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_NEW_SI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_NEW_SI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat blue-madison">\n                <div class="visual">\n                  <i class="icon-bell"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.open || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_OPEN_SI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_OPEN_SI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat green">\n                <div class="visual">\n                  <i class="icon-options"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.pending || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_PENDING_SI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_PENDING_SI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n              <div class="dashboard-stat purple-plum">\n                <div class="visual">\n                  <i class="icon-like"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.closed || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_DASHBOARD_CLOSED_SI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_DASHBOARD_CLOSED_SI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n          <div class="row">\n            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">\n              <div class="dashboard-stat yellow-casablanca">\n                <div class="visual">\n                  <i class="icon-calculator"></i>\n                </div>\n                <div class="details">\n                  <div class="number">\n                    {{roomStatus.new+roomStatus.open+roomStatus.pending+roomStatus.closed || 0}}\n                  </div>\n                  <div class="desc">\n                    {{\'APPLICATION_TOTAL_SI\' | translate}}\n                  </div>\n                </div>\n                <a class="more inactive-link">\n                  {{\'APPLICATION_TOTAL_SI_EXTENDED\' | translate}}\n                </a>\n              </div>\n            </div>\n          </div>\n        </div>\n        <div class="col-md-4">\n          \x3c!-- <div class="portlet light bordered">\n            <div class="portlet-body"> --\x3e\n          <canvas class="chart chart-pie" chart-data="charts.interactions.values" chart-labels="charts.interactions.labels" chart-colours="charts.interactions.colours" chart-legend="true">\n          </canvas>\n            \x3c!-- </div>\n          </div> --\x3e\n        </div>\n      </div>\n      <legend>\n        <span class="caption-subject">&nbsp;</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n      </legend>\n      <div class="row">\n        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n          <div class="dashboard-stat red-intense">\n            <div class="visual">\n              <i class="icon-dislike"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{routingStats.timeout || 0}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_TIMEOUT_SA\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_TIMEOUT_SA_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n        <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">\n          <div class="dashboard-stat purple">\n            <div class="visual">\n              <i class="icon-hourglass"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{routingStats.waiting || 0}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_WAITING_SA\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_WAITING_SA_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n    </fieldset>\n  </div>\n'),t.put("app/dashboard/voice/voice.html",'<div data-ng-switch="Auth.getRole()">\n  <div ng-switch-when="agent" data-ng-init="initAgent()">\n    <div class="portlet light">\n      <div class="portlet-body">\n        \x3c!-- START TABLE --\x3e\n        <div data-ng-if="table1" ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n          <div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n        </div>\n        \x3c!-- END TABLE --\x3e\n      </div>\n    </div>\n\n    <div class="portlet light">\n      <div class="portlet-title tabbable-line">\n        <ul class="nav nav-tabs">\n          <li class="active">\n            <a href="#" data-target="#tab_1_a" data-toggle="tab">{{\'APPLICATION_WAITING\' | translate}}</a>\n          </li>\n          <li>\n            <a href="#" data-target="#tab_1_b" data-toggle="tab">{{\'APPLICATION_ABANDONED\' | translate}}</a>\n          </li>\n        </ul>\n      </div>\n      <div class="portlet-body" data-ng-init="initView()">\n        <div class="tab-content">\n          <div class="tab-pane active" id="tab_1_a">\n            <div class="form-group">\n              <label class="control-label">{{\'APPLICATION_SHOW_TIMERS\' | translate}}</label></br>\n              <input\n              bs-switch\n              class="form-control"\n              ng-model="showTimers"\n              type="checkbox"\n              name="showTimers"\n              switch-active="{{ timerSwitch.isActive }}"\n              switch-on-text="{{\'APPLICATION_YES\' | translate}}"\n              switch-off-text="{{\'APPLICATION_NO\' | translate}}"\n              switch-on-color="{{ timerSwitch.onColor }}"\n              switch-off-color="{{ timerSwitch.offColor }}"\n              switch-animate="{{ timerSwitch.animate }}"\n              switch-size="{{ timerSwitch.size }}"\n              switch-label="{{ timerSwitch.label }}"\n              switch-icon="{{ timerSwitch.icon }}"\n              switch-radio-off="{{ timerSwitch.radioOff }}"\n              switch-label-width="{{ timerSwitch.labelWidth }}"\n              switch-handle-width="{{ timerSwitch.handleWidth }}">\n            </div>\n            \x3c!-- START TABLE --\x3e\n            <div data-ng-if="table2" ui-grid="table2" name="table2" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n              <div class="watermark" data-ng-show="!table2.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n            </div>\n            \x3c!-- END TABLE --\x3e\n          </div>\n          <div class="tab-pane" id="tab_1_b">\n            \x3c!-- START TABLE --\x3e\n            <div data-ng-if="table3" ui-grid="table3" name="table3" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize class="ui-grid">\n              <div class="watermark" data-ng-show="!table3.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n            </div>\n            \x3c!-- END TABLE --\x3e\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div ng-switch-default data-ng-init="initUser()">\n    <fieldset>\n      <legend>\n        <span class="caption-subject">{{ \'APPLICATION_INBOUND\' | translate }}</span><small class="font-grey-cascade pull-right">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n      </legend>\n\n      <div class="row">\n        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n          <div class="dashboard-stat blue">\n            <div class="visual">\n              <i class="icon-bell"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.queues.waiting || 0 }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_WAITING_QC\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_WAITING_QC_EXTENDED\' | translate}}\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 grey-gallery">\n            <div class="visual">\n              <i class="fa fa-play"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.queues.active || 0 }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_ACTIVE_QC\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_ACTIVE_QC_EXTENDED\' | translate}}\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-jungle">\n            <div class="visual">\n              <i class="icon-like"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.queues.complete || 0 }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_ANSWERED_QC\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_ANSWERED_QC_EXTENDED\' | translate}}\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 red-thunderbird">\n            <div class="visual">\n              <i class="icon-dislike"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.queues.abandon || 0 }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_ABANDONED_QC\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_ABANDONED_QC_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n\n      <div class="row">\n        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">\n          <div class="dashboard-stat yellow-gold">\n            <div class="visual">\n              <i class="icon-clock"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.queues.complete ? (voice.queues.holdtime / voice.queues.complete) : 0 | secToTime | date:\'HH:mm:ss\' }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_AVG_ANSWER_TIME_QC\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_AVG_ANSWER_TIME_QC_EXTENDED\' | translate}}\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">\n            <div class="visual">\n              <i class="icon-clock"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.queues.complete ? (voice.queues.talktime / voice.queues.complete) : 0 | secToTime | date:\'HH:mm:ss\' }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_AVG_TALK_TIME_QC\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_AVG_TALK_TIME_QC_EXTENDED\' | translate}}\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-jungle">\n            <div class="visual">\n              <i class="icon-pie-chart"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ (voice.queues.complete / (voice.queues.complete + voice.queues.abandon) * 100) || 0 | number:2}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_ANSWER_RATE_QC\' | translate}} (%)\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_ANSWER_RATE_QC_EXTENDED\' | translate}}\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 red-thunderbird">\n            <div class="visual">\n              <i class="icon-pie-chart"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ (voice.queues.abandon / (voice.queues.complete + voice.queues.abandon) * 100) || 0 | number:2}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_ABANDON_RATE_QC\' | translate}} (%)\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_ABANDON_RATE_QC_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n\n      <div class="row">\n        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n          <div class="dashboard-stat blue">\n            <div class="visual">\n              <i class="icon-info"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.queues.complete + voice.queues.abandon || 0}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_TOTAL_OFFERED_QC\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_TOTAL_OFFERED_QC_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n          <div class="dashboard-stat red-thunderbird">\n            <div class="visual">\n              <i class="icon-info"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.queues.unmanaged || 0 }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_UNMANAGED_QC\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_UNMANAGED_QC_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n    </fieldset>\n\n    <fieldset>\n      <legend>\n        <span class="caption-subject">{{ \'APPLICATION_OUTBOUND\' | translate }}</span><small class="pull-right font-grey-cascade">{{ \'APPLICATION_TODAY_STATS\' | translate }}</small>\n      </legend>\n\n      <div class="row">\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="icon-call-out"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.outbound.total || 0 }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_MANUAL_OUTBOUND_OB\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_MANUAL_OUTBOUND_OB_EXTENDED\' | translate}}\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 grey-gallery">\n            <div class="visual">\n              <i class="icon-clock"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ (voice.outbound.sumDuration || 0) | secToTime | date:\'HH:mm:ss\' }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_GLOBAL_DURATION_OB\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_GLOBAL_DURATION_OB_EXTENDED\' | translate}}\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-jungle">\n            <div class="visual">\n              <i class="icon-like"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ voice.outbound.answered || 0 }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_ANSWERED_OB\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_ANSWERED_OB_EXTENDED\' | translate}}\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 yellow-gold">\n            <div class="visual">\n              <i class="icon-pie-chart"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ (voice.outbound.avgDuration || 0) | secToTime | date:\'HH:mm:ss\' }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_AVG_DURATION_OB\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_AVG_DURATION_OB_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n\n      <div class="row">\n        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n          <div class="dashboard-stat blue">\n            <div class="visual">\n              <i class="icon-pie-chart"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{ (voice.outbound.answerRate || 0) | number:2 }}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_ANSWER_RATE_OB\' | translate}} (%)\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_ANSWER_RATE_OB_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">\n          <div class="dashboard-stat purple">\n            <div class="visual">\n              <i class="icon-pie-chart"></i>\n            </div>\n            <div class="details">\n              <div class="number">\n                {{(voice.outbound.tigerdial || 0)}}\n              </div>\n              <div class="desc">\n                {{\'APPLICATION_MOTION_DIALER_CALLS_OB\' | translate}}\n              </div>\n            </div>\n            <a class="more inactive-link">\n              {{\'APPLICATION_MOTION_DIALER_CALLS_OB_EXTENDED\' | translate}}\n            </a>\n          </div>\n        </div>\n      </div>\n\n    </fieldset>\n  </div>\n</div>\n'),t.put("app/desk/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-handbag"></i>\n\t\t\t\t\t<a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-handbag font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_DESK_COM\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="accounts.checked.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/desk/wizard">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<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\t\t\t\t\t<i class="icon-cloud-download"></i></a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<table st-table="displayedDeskAccounts" st-pipe="initList" class="table table-striped table-bordered table-hover">\n\t\t\t\t\t<div class="table-responsive">\n\t\t\t\t\t  <thead>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th colspan="7">\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\t\t<ui-select class="input-xsmall" ng-model="conf.accountsByPage" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="accountByPage in accountsByPage | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="accountByPage.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-medium pull-right">\n\t\t\t\t\t\t\t\t\t\t\t\t<input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-search"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t  <tr>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t    <th st-sort="name">{{ \'APPLICATION_NAME\' | translate }}</th>\n\t\t\t\t\t\t    <th st-sort="username">{{ \'APPLICATION_EMAIL\' | translate }}</th>\n\t\t\t\t\t\t\t\t<th st-sort="remoteUri">{{ \'APPLICATION_REMOTE_ADDRESS\' | translate }}</th>\n\t\t\t\t\t\t\t\t<th>{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n\t\t\t\t\t\t\t\t<th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n\t\t\t\t\t\t  </tr>\n\t\t\t\t\t  </thead>\n\t\t\t\t\t  <tbody>\n\t\t\t\t\t    <tr data-ng-repeat="account in displayedDeskAccounts" class="animate-repeat">\n\t\t\t\t\t\t\t\t<td style="text-align: center; vertical-align: middle"><input type="checkbox" checklist-model="accounts.checked" checklist-value="account.id"></td>\n\t\t\t\t\t      <td>{{account.name}}</td>\n\t\t\t\t\t      <td>{{account.username}}</td>\n\t\t\t\t\t\t\t\t<td>{{account.remoteUri}}</td>\n\t\t\t\t\t\t\t\t<td>{{account.description}}</td>\n\t\t\t\t\t      <td>\n\t\t\t\t\t        <a class="btn default btn-xs blue-stripe" data-ng-href="/desk/view/{{account.id}}/account">\n\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_EDIT\' | translate }}\n\t\t\t\t\t        </a>\n\t\t\t\t\t\t\t\t\t<a class="btn default btn-xs green-stripe" data-ng-click="checkAccount(account.id)">\n\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_CHECK\' | translate }}\n\t\t\t\t\t        </a>\n\t\t\t\t\t        <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(account.name,account.id)">\n\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t        </a>\n\t\t\t\t\t      </td>\n\t\t\t\t\t    </tr>\n\t\t\t\t\t\t\t<tr data-ng-hide="displayedDeskAccounts.length">\n\t\t\t\t\t\t\t\t<td colspan="7" style="text-align:center;">\n\t\t\t\t\t\t\t\t\t<i>No account available</i>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t  </tbody>\n\t\t\t\t\t  <tfoot>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td/>\n\t\t\t\t\t\t    <td>\n\t\t\t\t\t\t\t\t\t<div class="input-icon right">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-search"></i>\n\t\t\t\t\t\t\t\t\t\t<input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t    </td>\n\t\t\t\t\t\t    <td>\n\t\t\t\t\t\t\t\t\t<div class="input-icon right">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-search"></i>\n\t\t\t\t\t\t\t\t\t\t<input st-search="email" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_EMAIL\' | translate | lowercase}}" class="form-control" type="search"/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t    </td>\n\t\t\t\t\t\t    <td>\n\t\t\t\t\t\t\t\t\t<div class="input-icon right">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-search"></i>\n\t\t\t\t\t\t\t\t\t\t<input st-search="remoteUri" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_REMOTE_ADDRESS\' | translate | lowercase}}" class="form-control" type="search"/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t    </td>\n\t\t\t\t\t\t    <td/>\n\t\t\t\t\t\t\t\t<td/>\n\t\t\t\t\t\t  </tr>\n\t\t\t\t\t    <tr>\n\t\t\t\t\t      <td colspan="7" class="text-center">\n\t\t\t\t\t\t\t\t\t<div class="pagination" st-pagination st-items-by-page="conf.accountsByPage.value" st-displayed-pages="7"></div>\n\t\t\t\t\t      </td>\n\t\t\t\t\t    </tr>\n\t\t\t\t\t  </tfoot>\n\t\t\t\t\t</div>\n\t\t\t\t</table>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/desk/view/view.account.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n              \x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START AUTH TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.authType" name="authType" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type in [\'basic\', \'oauth\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START AUTH TYPE --\x3e\n\n              \x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CONSUMER KEY --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONSUMER_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="consumerKey" placeholder="{{\'APPLICATION_CONSUMER_KEY\' | translate}}" class="form-control" data-ng-model="account.consumerKey" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.consumerKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONSUMER KEY --\x3e\n\n              \x3c!-- START CONSUMER SECRET --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONSUMER_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="consumerSecret" placeholder="{{\'APPLICATION_CONSUMER_SECRET\' | translate}}" class="form-control" data-ng-model="account.consumerSecret" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.consumerSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONSUMER SECRET --\x3e\n\n              \x3c!-- START TOKEN --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="account.token" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TOKEN --\x3e\n\n              \x3c!-- START TOKEN SECRET--\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TOKEN_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="tokenSecret" placeholder="{{\'APPLICATION_TOKEN_SECRET\' | translate}}" class="form-control" data-ng-model="account.tokenSecret" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.tokenSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TOKEN SECRET--\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/desk/view/view.configuration.html",'<div class="row" data-ng-init="initConfiguration()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_CONFIGURATION\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createConfiguration()">\n\t        <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="formValidation(formsConfiguration.info.$valid)">\n\t\t\t\t\t\t\t<form name="formsConfiguration.info" novalidate>\n\t\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': formsConfiguration.info.$submitted && formsConfiguration.info.name.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="configuration.name" required/>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="formsConfiguration.info.name.$invalid && formsConfiguration.info.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="configuration.description"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/desk/view/view.configurationSettings.html",'<div class="row" data-ng-init="getConfiguration();getVariables();getFields();">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- SUBJECT TAB --\x3e\n\t\t\t\t\t<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\t\t\t\t\t\t\x3c!-- <div ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t                  <ui-select-choices repeat="item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n\t                </div>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END SUBJECT TAB --\x3e\n          \x3c!-- DESCRIPTION TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_2">\n\t\t\t\t\t\t<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\t\t\t\t\t\t\x3c!-- <div ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t\t\t\t\t\t\t<div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n\t\t\t\t\t\t\t\t\x3c!-- <pre>\n\t\t\t\t\t\t\t\t\t{{descriptionItem|json}}\n\t\t\t\t\t\t\t\t</pre> --\x3e\n\t              <div class="col-md-2">\n\t                <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n\t                  <ui-select-choices repeat="item in descFieldType | filter: $select.search">\n\t                    <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\'">\n\t\t\t\t\t\t\t\t\t<ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t                  <ui-select-choices repeat="item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'string\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t              <div class="col-md-3" data-ng-if="descriptionItem.type==\'key_value\' && descriptionItem.keyType==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION TAB --\x3e\n          \x3c!-- FIELDS TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_3">\n\t\t\t\t\t\t<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\t\t\t\t\t\t\x3c!-- <div ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.id as item in accountFields | filter: $select.search">\n\t                    <div ng-bind-html="item.label | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n\t\t                    <div ng-bind-html="item | highlight: $select.search"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected | ucfirst}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item in fieldType | filter: $select.search">\n\t\t                    <div ng-bind-html="item | highlight: $select.search | ucfirst"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END FIELDS TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/desk/view/view.configurations.html",'<div ui-view class="profile-content">\n\t<div class="row" data-ng-init="getConfigurations()">\n\t\t<div class="col-md-12">\n\t\t\t<div class="portlet light">\n\t\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t\t<a class="btn green-jungle " href="/desk/view/{{account.id}}/configuration" data-toggle="dropdown">\n\t\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\t<table class="table table-striped table-bordered table-hover">\n\t\t\t\t\t\t  <thead>\n\t\t\t\t\t\t\t  <tr>\n\t\t\t\t\t\t\t    <th>{{\'APPLICATION_NAME\' | translate}}</th>\n\t\t\t\t\t\t\t\t\t<th>{{\'APPLICATION_DESCRIPTION\' | translate}}</th>\n\t\t\t\t\t\t\t\t\t<th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n\t\t\t\t\t\t\t  </tr>\n\t\t\t\t\t\t  </thead>\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t    <tr data-ng-repeat="configuration in configurations">\n\t\t\t\t\t\t\t\t\t<td>{{configuration.name}}</td>\n\t\t\t\t\t\t\t\t\t<td>{{configuration.description}}</td>\n\t\t\t\t\t\t      <td>\n\t\t\t\t\t\t\t\t\t\t<a class="btn default btn-xs blue-stripe" data-ng-href="/desk/view/{{account.id}}/configurations/settings/{{configuration.id}}">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}}\n\t\t\t\t\t\t        </a>\n\t\t\t\t\t\t        <a class="btn default btn-xs red-stripe" data-ng-click="deleteConfiguration(configuration.name,configuration.id)">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t        </a>\n\t\t\t\t\t\t      </td>\n\t\t\t\t\t\t    </tr>\n\t\t\t\t\t\t\t\t<tr data-ng-hide="configurations.length">\n\t\t\t\t\t\t\t\t\t<td colspan="5" style="text-align:center;">\n\t\t\t\t\t\t\t\t\t\t<i>No configuration available</i>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t  </tbody>\n\t\t\t\t\t</table>\n\t\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/desk/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n          <i class="icon-handbag"></i>\n          <a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{account.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/desk.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{account.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{account.remoteUri}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.desk.view.account\')}">\n\t\t\t\t\t\t\t<a ng-href="/desk/view/{{account.id}}/account">\n\t\t\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.desk.view.configurations\') || $state.is(\'main.desk.view.configuration\')}">\n\t\t\t\t\t\t\t<a ng-href="/desk/view/{{account.id}}/configurations">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/desk/wizard/wizard.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-handbag"></i>\n\t\t\t\t\t\t<a href="/desk/list">{{ \'APPLICATION_DESK_COM\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n          <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n\t\t\t\t\t\t<form name="forms.formSetting" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/desk/accounts/validate/username"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/desk/accounts/validate/remoteUri"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START AUTH TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.authType" name="authType" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type in [\'basic\', \'oauth\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START AUTH TYPE --\x3e\n\n              \x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}" ng-slide-down="item.authType == \'basic\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n              \x3c!-- START CONSUMER KEY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerKey.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONSUMER_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="consumerKey" placeholder="{{\'APPLICATION_CONSUMER_KEY\' | translate}}" class="form-control" data-ng-model="item.consumerKey" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.consumerKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONSUMER KEY --\x3e\n\n              \x3c!-- START CONSUMER SECRET --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.consumerSecret.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONSUMER_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="consumerSecret" placeholder="{{\'APPLICATION_CONSUMER_SECRET\' | translate}}" class="form-control" data-ng-model="item.consumerSecret" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.consumerSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONSUMER SECRET --\x3e\n\n              \x3c!-- START TOKEN --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.token.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="item.token" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TOKEN --\x3e\n\n              \x3c!-- START TOKEN SECRET--\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.tokenSecret.$invalid}" ng-slide-down="item.authType == \'oauth\'" lazy-render duration="1">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TOKEN_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="tokenSecret" placeholder="{{\'APPLICATION_TOKEN_SECRET\' | translate}}" class="form-control" data-ng-model="item.tokenSecret" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.tokenSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TOKEN SECRET--\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t</wizard>\n\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/freshdesk/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-handbag"></i>\n\t\t\t\t\t<a href="/freshdesk/list">{{ \'APPLICATION_FRESHDESK\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-handbag font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_FRESHDESK\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/freshdesk/wizard">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/freshdesk/view/configuration/list/create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.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="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START CHANNEL --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\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.name}}</ui-select-match>\n        <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n          <div data-ng-bind="channel.name | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- START CHANNEL --\x3e\n\n    \x3c!-- START VOICE SUBTYPE --\x3e\n    <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$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}}">{{$select.selected}}</ui-select-match>\n        <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n          <div data-ng-bind="type | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- START CHANNEL --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/freshdesk/view/configuration/list/list.html",'<div ui-view class="profile-content">\n\t<div class="row">\n\t\t<div class="col-md-12">\n\t\t\t<div class="portlet light" data-ng-init="initView()">\n\t\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()">\n\t\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/freshdesk/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();getTags();">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_TAGS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- SUBJECT TAB --\x3e\n\t\t\t\t\t<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="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END SUBJECT TAB --\x3e\n          \x3c!-- DESCRIPTION TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_2">\n\t\t\t\t\t\t<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="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t\t\t\t\t\t\t<div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n\t              <div class="col-md-2">\n\t                <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n\t\t\t\t\t\t\t\t\t<ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION TAB --\x3e\n          \x3c!-- FIELDS TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_3">\n\t\t\t\t\t\t<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="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n\t                    <div ng-bind-html="item.label | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n\t\t                    <div ng-bind-html="item | highlight: $select.search"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t\t                    <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END FIELDS TAB --\x3e\n\t\t\t\t\t\x3c!-- TAG TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_4">\n\t\t\t\t\t\t<div class="row">\n              <div class="col-md-12">\n                <span class="caption-subject">Select tags that you want add in the ticket:</span>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t<form name="forms.tags" data-ng-submit="updateTags()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- TAG --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="selectedTags.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tag.id as tag in tags | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{tag.name}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TAG --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TAG TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/freshdesk/view/view.account.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n              \x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START API KEY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.apiKey.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_API_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="apiKey" placeholder="{{\'APPLICATION_API_KEY\' | translate}}" class="form-control" data-ng-model="account.apiKey" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END API KEY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SERVER URL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_SERVER_URL\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SERVER URL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/freshdesk/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n          <i class="icon-handbag"></i>\n          <a href="/freshdesk/list">{{ \'APPLICATION_FRESHDESK\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{account.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/freshdesk.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{account.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{account.remoteUri}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.freshdesk.view.account\')}">\n\t\t\t\t\t\t\t<a ng-href="/freshdesk/view/{{account.id}}/account">\n\t\t\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.freshdesk.view.configurations\') || $state.is(\'main.freshdesk.view.configuration\')}">\n\t\t\t\t\t\t\t<a ng-href="/freshdesk/view/{{account.id}}/configurations/list">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/freshdesk/wizard/wizard.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-handbag"></i>\n\t\t\t\t\t\t<a href="/freshdesk/list">{{ \'APPLICATION_FRESHDESK\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n          <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n\t\t\t\t\t\t<form name="forms.formSetting" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/freshdesk/accounts/validate/username"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/freshdesk/accounts/validate/remoteUri"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</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\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n              \x3c!-- START API KEY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.apiKey.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_API_KEY\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="apiKey" placeholder="{{\'APPLICATION_API_KEY\' | translate}}" class="form-control" data-ng-model="item.apiKey" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END API KEY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SERVER URL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_SERVER_URL\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SERVER URL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t</wizard>\n\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/iframe/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-chrome"></i>\n\t\t\t\t\t<a href="#" data-ng-if="!Auth.isAgent()">{{ \'APPLICATION_IFRAME\' | translate }}</a>\n\t\t\t\t\t<a href="#" data-ng-if="Auth.isAgent()">{{ iframe.title || iframe.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar" data-ng-if="!Auth.isAgent()">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/iframe.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{iframe.title}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{ \'APPLICATION_IFRAME\' | translate }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div class="profile-content" data-ng-if="!Auth.isAgent()">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t<div class="portlet light">\n\t\t\t\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_IFRAME\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t\t\t\t<form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="iframe.title" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URL\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="iframe.remoteUri" required />\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\n\t\t<div class="row" data-ng-if="Auth.isAgent()">\n\t\t\t<div class="col-md-12">\n\t\t\t\t<iframe ng-if="url" style="height: 600px" src="{{url}}" />\n\t\t\t</div>\n\t\t</div>\n\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/integration/list/list.html",'\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-game-controller"></i>\n\t\t\t\t\t<a href="/integrations/list">{{ \'APPLICATION_INTEGRATIONS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initList()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-eye font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_INTEGRATIONS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t  <span class="btn green-jungle btn-file">\n            <span> <i class="icon-plus"></i> New App </span>\n            <input type="file" accept=".zip" nv-file-select="" uploader="uploader"/>\n          </span>\n          <a class="btn btn-icon-only btn-default" href="#" ng-csv="displayedIntegrations" filename="integrations.csv">\n\t\t\t\t\t<i class="icon-cloud-download"></i></a>\n\t\t\t\t\t<a class="btn btn-icon-only btn-default fullscreen" href="#"></a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<table st-table="displayedIntegrations" st-safe-src="integrations" class="table table-striped table-bordered table-hover">\n\t\t\t\t\t<div class="table-responsive">\n\t\t\t\t\t  <thead>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th colspan="6">\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\t\t<select class="form-control input-small select2me" data-ng-model="integrationsByPage">\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="10">10</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="25">25</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="50">50</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="{{integrations.length}}">{{ \'APPLICATION_ALL\' | translate }}</option>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\t\t<div class="input-group input-medium pull-right">\n\t\t\t\t\t\t\t\t\t\t\t\t<input st-search placeholder="{{ \'APPLICATION_SEARCH\' | translate }}" class="form-control" type="search" />\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-search"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t  <tr>\n\t\t\t\t\t\t\t\t<th st-sort="id" width="5%" st-sort-default="reverse">{{ \'APPLICATION_ID\' | translate }}</th>\n\t\t\t\t\t\t    <th st-sort="fullname">{{ \'APPLICATION_NAME\' | translate }}</th>\n\t\t\t\t\t\t\t\t<th st-sort="name">{{ \'APPLICATION_FILENAME\' | translate }}</th>\n\t\t\t\t\t\t\t\t<th st-sort="name">{{ \'APPLICATION_VERSION\' | translate }}</th>\n\t\t\t\t\t\t    <th st-sort="name">{{ \'APPLICATION_DESCRIPTION\' | translate }}</th>\n\t\t\t\t\t\t    <th>{{ \'APPLICATION_ACTIONS\' | translate }}</th>\n\t\t\t\t\t\t  </tr>\n\t\t\t\t\t  </thead>\n\t\t\t\t\t  <tbody>\n\t\t\t\t\t    <tr data-ng-repeat="integration in displayedIntegrations">\n\t\t\t\t\t\t\t\t<td>{{integration.id}}</td>\n\t\t\t\t\t\t\t\t<td>{{integration.name}}</td>\n\t\t\t\t\t\t\t\t<td>{{integration.filename}}</td>\n\t\t\t\t\t\t\t\t<td>{{integration.version}}</td>\n\t\t\t\t\t      <td>{{integration.description}}</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<span class="btn default btn-xs blue-stripe btn-file">\n\t\t\t\t            <span> {{ \'APPLICATION_UPDATE\' | translate }} </span>\n\t\t\t\t            <input type="file" accept=".zip" nv-file-select="" uploader="uploader"/>\n\t\t\t\t          </span>\n\t\t\t\t\t        <a class="btn default btn-xs red-stripe" data-ng-click="deleteItem(integration.name, integration.id)">\n\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t        </a>\n\t\t\t\t\t      </td>\n\t\t\t\t\t    </tr>\n\t\t\t\t\t\t\t<tr data-ng-hide="integrations.length">\n\t\t\t\t\t\t\t\t<td colspan="6" style="text-align:center;">\n\t\t\t\t\t\t\t\t\t<i>No integrations available</i>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t  </tbody>\n\t\t\t\t\t  <tfoot>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class="input-icon right">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-search"></i>\n\t\t\t\t\t\t\t\t\t\t<input st-search="id" class="form-control" type="search"/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t    </td>\n\t\t\t\t\t\t    <td>\n\t\t\t\t\t\t\t\t\t<div class="input-icon right">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-search"></i>\n\t\t\t\t\t\t\t\t\t\t<input st-search="name" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_NAME\' | translate | lowercase}}" class="form-control" type="search"/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t    </td>\n\t\t\t\t\t\t    <td>\n\t\t\t\t\t\t\t\t\t<div class="input-icon right">\n\t\t\t\t\t\t\t\t\t\t<i class="fa fa-search"></i>\n\t\t\t\t\t\t\t\t\t\t<input st-search="filename" placeholder="{{ \'APPLICATION_SEARCH\' | translate }} {{ \'APPLICATION_BY\' | translate | lowercase }} {{ \'APPLICATION_FILENAME\' | translate | lowercase}}" class="form-control" type="search"/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t    </td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t    </td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t    </td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t    </td>\n\t\t\t\t\t\t  </tr>\n\t\t\t\t\t    <tr>\n\t\t\t\t\t      <td colspan="6" class="text-center">\n\t\t\t\t\t        <div st-pagination class="pagination" st-items-by-page="integrationsByPage" st-displayed-pages="7"></div>\n\t\t\t\t\t      </td>\n\t\t\t\t\t    </tr>\n\t\t\t\t\t  </tfoot>\n\t\t\t\t</div>\n\t\t\t\t</table>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/jscripty/project/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_PROJECT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/jscripty/project/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n        <li>\n          <i class="fa fa-slack"></i>\n          <a href="/jscripty/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n        </li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_PROJECTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions" ng-show="!Auth.isAgent()">\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();">\n\t\t\t\t\t\t\t<i class="icon-reload"></i>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROJECT\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\n\t\t\t\t\t\x3c!-- <div class="table-responsive"> --\x3e\n\n\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/jscripty/project/report/report.detail.html",'<div class="portlet light bordered" data-ng-init="getProjectDetail();initView()">\n<div class="portlet-title">\n<div class="caption font-green-sharp">\n<i class="fa fa-list font-green-sharp"></i>\n<span class="caption-subject">{{ \'APPLICATION_SUMMARY\' | translate }}</a> </span>\n</div>\n<div class="actions">\n <div class="btn-group">\n <button class="btn btn-icon-only btn-primary"  data-ng-click="pdf(\'header\',projectDetail)">\n\t <i class="fa fa-download"></i>\n </button>\n \x3c!-- <button class="btn btn-icon-only btn-default"  data-ng-click="accordion.expandAll()">\n\t <i class="fa fa-folder-open-o"></i>\n </button>\n <button class="btn btn-icon-only btn-default"  data-ng-click="accordion.collapseAll()">\n\t <i class="fa fa-folder"></i>\n </button> --\x3e\n </div>\n</div>\n</div>\n<div id=\'detail\' class="portlet-body">\n\t<div class="alert alert-success text-center" ng-show="!projectDetail.length">\n\t\t\t<h4>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</h4>\n\t</div>\n\t<div class="row" ng-show="projectDetail.length">\n\t\t<div class="col-md-10 col-md-offset-1">\n\t\t\t<div id="header" class="panel panel-info">\n\t\t\t\t<div  class="panel-heading">\n\t\t\t\t\t<strong>Project Name:\t </strong>{{project.name}}<br>\n\t\t\t\t\t<strong>Project Id:\t </strong>{{project.id}}<br>\n\t\t\t\t\t<strong>Completed:\t </strong>{{projectStats.completed}}<br>\n\t\t\t\t\t<strong>Incomplete:\t </strong>{{projectStats.incomplete}}<br>\n\t\t\t\t\t<strong>% Completed:\t </strong>{{projectStats.completed * 100 /(projectStats.completed + projectStats.incomplete) | number:2}}<br>\n\t\t\t\t</div>\n\t\t\t</div><br>\n\t\t\t<v-accordion class="vAccordion--default" multiple control="accordion">\n\t\t\t\t<v-pane id="{{question.question_id }}" ng-repeat="question in projectDetail" expanded="true">\n\t\t\t\t\t<v-pane-header>\n\t\t\t\t\tQuestion Id: \t{{question.question_id}}\n\t\t\t\t</v-pane-header>\n\t\t\t\t<v-pane-content>\n\t\t\t\t\t\t<div ng-class=" {{question.graphData.length > 0}} ? \'col-md-8\' : \'col-md-12\'">\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-10 col-md-offset-1 ">\n\t\t\t\t\t\t\t\t\t<h4><strong>{{question.question_label}}</strong> : {{question.question_text}}</h4>\n\t\t\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t\t\t<table ng-if="question.choices.length" class="table  table-hover"  style="table-layout: fixed; width: 100%">\n\t\t\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<th>Response</th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th> #Response </th>\n\t\t\t\t\t\t\t\t\t\t\t\t<th> % </th>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t<tr ng-if="!choice.other_option" ng-repeat="choice in question.choices ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td  style="word-wrap: break-word">{{choice.value}}</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{choice.count}}</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{choice.percentage | number:2}}</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="row" ng-if="question.question_other_label">\n\t\t\t\t\t\t\x3c!-- <div class="row" ng-if="choice.other_option" ng-repeat="choice in question.choices "> --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="col-md-10 col-md-offset-1 ">\n\t\t\t\t\t\t\t\t<strong>{{choice.value}}</strong> <span class="badge">{{choice.count}}</span><br>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- accordions can be nested :) --\x3e\n\t\t\t\t\t\t\t<v-accordion >\n\t\t\t\t\t\t\t\t<v-pane >\n\t\t\t\t\t\t\t\t\t\x3c!-- ng-repeat="subpane in pane.subpanes" ng-disabled="subpane.isDisabled" --\x3e\n\t\t\t\t\t\t\t\t\t<v-pane-header>\n\t\t\t\t\t\t\t\t\t\t<strong>{{question.question_other_label}}</strong><br>\n\t\t\t\t\t\t\t\t\t</v-pane-header>\n\t\t\t\t\t\t\t\t\t<v-pane-content>\n\t\t\t\t\t\t\t\t\t\t<table ng-if="question.choices.length" class="table  table-hover"  style="table-layout: fixed; width: 100%">\n\t\t\t\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Response</th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<th> #Response </th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <th> % </th> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\n\t\t\t\t\t\t\t\t\t\t\t\t<tr ng-if="choice.other_option" ng-repeat="choice in question.choices ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td  style="word-wrap: break-word">{{choice.value}}</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{choice.count}}</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <td>{{choice.percentage | number:2}}</td> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t</v-pane-content>\n\t\t\t\t\t\t\t\t</v-pane>\n\t\t\t\t\t\t\t</v-accordion>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-md-10 col-md-offset-1 ">\n\t\t\t\t\t\t\t<h4>\t<strong>Total Respondents: {{question.total}}</strong></h4><br>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=" col-md-4 pull-right " ng-if="question.graphType == \'bar\' && question.graphData">\n\t\t\t\t\t\t<canvas  class="chart chart-bar"  chart-data="question.graphData" chart-labels="question.graphLabels" chart-legend="true">\n\t\t\t\t\t\t</canvas>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-md-4 pull-right " ng-if="question.graphType == \'pie\'  && question.graphData">\n\t\t\t\t\t\t<canvas  class="chart chart-pie"  chart-data="question.graphData" chart-labels="question.graphLabels" chart-legend="true">\n\t\t\t\t\t\t</canvas>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</v-pane-content>\n\t\t\t\t</v-pane>\n\t\t\t</v-accordion>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/jscripty/project/report/report.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-edit"></i>\n\t\t\t\t\t\t<a href="/jscripty/projects/list">{{ \'APPLICATION_JSCRIPTY\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-slack"></i>\n\t\t\t\t\t\t<a href="/jscripty/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n            <i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-book-open"></i>\n\t\t\t\t\t\t<a href="">{{ \'APPLICATION_REPORTS\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t\t\t\t<div class="col-md-12">\n\n\t\t\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n  \t\t\t\t\t<div class="profile-sidebar">\n\t              <div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="profile-image">\n\t\t\t\t\t\t\t\t\t\t\t\t<img src="assets/images/media/report.png" class="img-responsive" >\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{project.name}}[{{project.id}}]\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="profile-usertitle-job">\n\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.sessions\')|| $state.is(\'main.jscripty.projects.report.sessionDetail\')}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a data-ng-href=\'/jscripty/projects/report/{{projectId}}/sessions\'>\n\t\t\t\t\t\t                      \t<i class="icon-settings"></i>\n\t\t\t\t\t\t                        Sessions</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t                <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.summary\') || $state.is( \'main.jscripty.projects.report.questionDetail\')}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a data-ng-href=\'/jscripty/projects/report/{{projectId}}/summary\'>\n\t\t\t\t\t\t          \t\t\t\t\t<i class="fa fa-bar-chart"></i>\n\t\t\t\t\t\t                      Questions</a>\n\t\t\t\t\t\t                </li>\n\t\t\t\t\t\t                <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.detail\')}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a data-ng-href=\'/jscripty/projects/report/{{projectId}}/detail\'>\n\t\t\t\t\t\t    \t\t\t\t\t\t\t\t<i class="fa fa-list"></i>\n\t\t\t\t\t\t                      Summary</a>\n\t\t\t\t\t\t                </li>\n\t\t\t\t\t\t                <li data-ng-class="{active: $state.is(\'main.jscripty.projects.report.inputs\')}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a data-ng-href=\'/jscripty/projects/report/{{projectId}}/inputs\'>\n\t\t\t\t\t\t    \t\t\t\t\t\t\t\t<i class="fa fa-edit"></i>\n\t\t\t\t\t\t                      Inputs</a>\n\t\t\t\t\t\t                </li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END MENU --\x3e\n\n\t          \t</div>\n\n          \t</div>\n\n              <div class="profile-content margin-top-20">\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="dashboard-stat2">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="display">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="number">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class="font-green-sharp">{{projectStats.started}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<small>Started</small>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="icon">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon-pie-chart"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress-info">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style="width: 100%;" class="progress-bar progress-bar-success green-sharp">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="status">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="dashboard-stat2">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="display">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="number">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class="font-red-haze">{{projectStats.incomplete}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<small>Incomplete</small>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="icon">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon-chart"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress-info">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style="width: 100%;" class="progress-bar progress-bar-success red-haze">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="status">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="dashboard-stat2">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="display">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="number">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class="font-blue-sharp">{{projectStats.completed}}</h3>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<small>Completed</small>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="icon">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon-like"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress-info">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="progress">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style="width: 100%;" class="progress-bar progress-bar-success blue-sharp">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="status">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t                <div class="row">\n\t                  <div ui-view class="col-md-12">\n\t                  </div>\n\t                  </div>\n              </div>\n      \t</div>\n\t</div>\n'),t.put("app/jscripty/project/report/report.inputs.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t\t<div class="portlet light bordered" data-ng-init="getQuestionInputs()">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-edit font-green-sharp"></i>\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_INPUTS\' | translate }}</a> </span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="tools">\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <a href="" class="fullscreen" data-original-title="" title="">\n\t\t\t\t\t\t\t\t\t\t\t</a> --\x3e\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body" >\n\t\t\t\t\t\t\t\t\t\t<div ui-grid="gridOptions" ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t</div>\n\t</div>\n</div>\n'),t.put("app/jscripty/project/report/report.question.detail.html",'<div class="row" data-ng-init="getDetail()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="fa fa-list font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_DETAIL\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" >\n\t\t\t\t<div class="alert alert-success text-center" ng-show="!questionDetail">\n\t\t\t\t\t\t<h4>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</h4>\n\t\t\t\t</div>\n\t\t\t\t<div class="row  margin-top-20" ng-show="questionDetail">\n\t\t\t\t\t<div class="col-md-10 col-md-offset-1">\n\t\t\t\t\t\t<div class="panel panel-info" >\n\t\t\t\t\t\t\t<div class="panel-heading">\n\t\t\t\t\t\t\t\t<h3 class="panel-title">\n\n\t\t\t\t\t\t\t\t\t<i class="fa-chart "></i>Question Id: \t{{questionDetail.question_id}}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="panel-body">\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<h4><strong>{{questionDetail.question_label}}</strong></h4>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-10 col-md-offset-1 ">\n\t\t\t\t\t\t\t\t\t\t<strong><h4>{{questionDetail.question_text}}</h4></strong><br>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-10 col-md-offset-1 ">\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <div class="alert alert-success text-center" ng-show="!questionDetail.choices.length">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h4>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<table ng-if="questionDetail.choices.length" class="table  table-hover" style="table-layout: fixed; width: 100%">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th style="width=5%"> Value  </th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th style="width=5%"> Count </th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th ng-if="question.graphType != \'PolarArea\'" style="width=5%"> % </th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr ng-if="!choice.other_option" ng-repeat="choice in questionDetail.choices ">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style="word-wrap: break-word">{{choice.value}}</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{choice.count}}</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td ng-if="question.graphType != \'PolarArea\'">{{choice.percentage | number:2}}</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="row" ng-if="choice.other_option" ng-repeat="choice in questionDetail.choices ">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-6 col-md-offset-3 ">\n\t\t\t\t\t\t\t\t\t\t\t<strong><a href="">{{choice.value}}</a> </strong> <span class="badge">{{choice.count}}</span><br>\n\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-10 col-md-offset-1 ">\n\t\t\t\t\t\t\t\t\t\t<h4>\t<strong>Total: {{questionDetail.total}}</strong></h4><br>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-6 pull-right ">\n\t\t\t\t\t\t\t\t\t\t<canvas id="base" class="chart-base" chart-type="questionDetail.graphType"\n\t\t\t\t\t\t\t\t\t\tchart-data="questionDetail.graphData" chart-labels="questionDetail.graphLabels" chart-legend="true">\n\t\t\t\t\t\t\t\t\t\t</canvas>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <button class="btn btn-success btn-sm pull-right" ng-click="toggle(questionDetail)">{{questionDetail.graphType}}</button> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t</div>\n\n\t\t\t\t</div>\n\n\t\t\t</div>\n\t\t</div>\n\n\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n</div>\n'),t.put("app/jscripty/project/report/report.session.detail.html",'\n\n<div class="row" data-ng-init="getSessionDetails()">\n\t\t\t<div class="col-md-12">\n\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t<i class="fa fa-list font-green-sharp"></i>\n\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_DETAIL\' | translate }}</a> </span>\n\t\t\t\t\t\t</div>\n            <div class="actions">\n             <div class="btn-group">\n               <button class="btn btn-icon-only btn-primary"  data-ng-click="pdf(\'header\',sessionQuestions)">\n                 <i class="fa fa-download"></i>\n               </button>\n               \x3c!-- <button class="btn btn-icon-only btn-default"  data-ng-click="accordion.expandAll()">\n                 <i class="fa fa-plus-square-o"></i>\n               </button>\n               <button class="btn btn-icon-only btn-default"  data-ng-click="accordion.collapseAll()">\n                 <i class="icon-collapse-alt"></i>\n               </button> --\x3e\n             </div>\n           </div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="portlet-body"  style="height: auto;">\n\t\t\t\t\t\t<div class="row  margin-top-20">\n\t\t\t\t\t\t\t<div class="col-md-10 col-md-offset-1">\n\t\t\t\t\t\t\t\t<div id = "header" class="panel panel-info">\n\t\t\t\t\t\t\t\t\t<div class="panel-heading">\n\t\t\t\t\t\t\t\t\t\t<strong>Project Name:\t </strong>{{project.name}}<br>\n\t\t\t\t\t\t\t\t\t\t<strong>Project Id:\t </strong>{{project.id}}<br>\n\t\t\t\t\t\t\t\t\t\t<strong>Session Id:\t </strong>{{session.session_id}}<br>\n\t\t\t\t\t\t\t\t\t\t<strong>Status:\t </strong>{{session.status}}<br>\n\t\t\t\t\t\t\t\t\t\t<strong>Started At:\t </strong>{{session.createdAt}}<br>\n\t\t\t\t\t\t\t\t\t\t<strong>Closed At:\t </strong>{{session.completedAt}}<br>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n                <v-accordion class="vAccordion--default" multiple control="accordion">\n                  <v-pane id="{{question.question_id }}" ng-repeat=" question in sessionQuestions | orderBy:\'index\'"" expanded="true">\n                    <v-pane-header>\n                      Question Id: \t{{question.question_id}}\n                    </v-pane-header>\n                    <v-pane-content>\n                        <h4><strong>{{question.question_label}}</strong> : {{question.question_text}}</h4>\n                        <div ng-if="question.question_type == \'question\'">\n                        <h4><strong>Answer:\t </strong>{{question.question_answer}}</h4>\n                      </div>\n                      <div ng-if="question.question_other_label">\n                        <h4>\n                       <strong>{{question.question_other_label}}: </strong>\n                         {{question.question_other_answer || \'No Value\'}}\n                       </h4>\n                      </div>\n                      <table class="table  table-hover" ng-if="question.ReportJscriptyInputs.length">\n                        <thead>\n                          <tr>\n                            <th > Label </th>\n                            <th >Answer </th>\n                          </tr>\n                        </thead>\n                        <tbody>\n                          <tr ng-repeat="input in question.ReportJscriptyInputs |orderBy:\'id\'">\n                                  <td>{{input.input_label}}</td>\n                                  <td>{{input.input_value || \'No Value\'}}</td>\n                          </tr>\n                        </tbody>\n                      </table>\n                    </v-pane-content>\n                  </v-pane>\n                </v-accordion>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t        </div>\n\t\t\t\t</div>\n\t\t</div>\n</div>\n'),t.put("app/jscripty/project/report/report.sessions.html",'\n\t<div class="row" >\n\t\t<div class="col-md-12">\n\t\t\t<div class="portlet light bordered" data-ng-init="getProjectSessions()">\n\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t\t\t\t<i class="icon-settings font-green-sharp"></i>\n\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_SESSIONS\' | translate }}</a> </span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t\t\t\t\t\t<a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();initView()">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon-reload"></i>\n\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="portlet-body" >\n\t\t\t\t\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t</div>\n'),t.put("app/jscripty/project/report/report.summary.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light bordered" data-ng-init="getQuestionSummary()">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t\t\t<i class="fa fa-bar-chart font-green-sharp"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_QUESTIONS\' | translate }}</a> </span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <a class="btn btn-default" href="#" data-ng-click="gridOptions.getPage();initView()">\n\t\t\t\t\t\t\t\t\t\t\t<i class="icon-reload"></i>\n\t\t\t\t\t\t\t\t\t\t</a> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body" >\n\t\t\t\t\t\t\t\t\t\t<div ui-grid="gridOptions" ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t</div>\n</div>\n'),t.put("app/jscripty/project/view/view.html",'<div class="row" data-ng-init="getProject()">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-edit"></i>\n\t\t\t\t\t\t<a href="/jscripty/projects/list">{{ \'APPLICATION_JSCRIPTY\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-slack"></i>\n\t\t\t\t\t\t<a href="/jscripty/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n            <i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a ng-href="/jscripty/projects/view/{{jscriptyProject.id}}">{{jscriptyProject.name}}</a>\n          </li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n  <div class="col-md-12">\n\t\t<div id="geEditor" class="geEditor"></div>\n  </div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n<script>\n\n\n<\/script>\n'),t.put("app/landing/landing.html",'\x3c!-- BEGIN LOGO --\x3e\n<div class="logo">\n  <a href="index.html">\n    <img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n  </a>\n</div>\n\x3c!-- END LOGO --\x3e\n\n\x3c!-- BEGIN LANDING --\x3e\n<div data-ng-init="initLanding()">\n  <div data-ng-show="message" class="col-md-12 page-500" style="padding-bottom: 50px;">\n    <div class="number">\n      Oops!\n    </div>\n    <div class=" details" style="color: white;">\n      <h3>{{message | translate}}.</h3>\n      <p>\n        Please contact your administrator.<br><br>\n      </p>\n    </div>\n  </div>\n</div>\n\x3c!-- END LANDING --\x3e\n\n<div class="copyright">\n  xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} &copy; Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n'),t.put("app/login/login.html",'\x3c!-- BEGIN LOGO --\x3e\n<div class="logo" data-ng-init="getInfo()">\n\t<a>\n\t\t<img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n\t</a>\n</div>\n\x3c!-- END LOGO --\x3e\n\x3c!-- BEGIN LOGIN --\x3e\n<div class="content">\n\t\x3c!-- BEGIN LOGIN FORM --\x3e\n\t<form class="login-form" name="loginForm" data-ng-if="!forgotPassword" data-ng-submit="login(loginForm)" novalidate>\n\t\t<h3 class="form-title">Sign In</h3>\n\t\t<div class="alert alert-success" data-ng-show="recovered">\n\t\t\t<button class="close" data-close="alert"></button>\n\t\t\t<span>{{\'MESSAGE_ACCOUNT_RECOVERED\' | translate}}</span>\n\t\t</div>\n\t\t<div class="alert alert-danger" data-ng-class="{\'display-hide\': !loginForm.$submitted || !errorLogin}">\n\t\t\t<button class="close" data-close="alert"></button>\n\t\t\t<span>{{ errorLog ? errorLog : (\'MESSAGE_INSERT_USER_OR_PASS\' | translate)}}</span>\n\t\t</div>\n\t\t<div class="form-group" data-ng-class="{\'has-error\': loginForm.$submitted && loginForm.name.$invalid}">\n\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n\t\t\t<div class="input-icon">\n\t\t\t\t<i class="fa fa-user"></i>\n\t\t\t\t<input ng-enter="login(loginForm)" class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" name="name" ng-model="userLogin.name" required/>\n\t\t\t</div>\n\t\t\t<span data-ng-show="loginForm.$submitted && loginForm.name.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n\t\t</div>\n\t\t<div class="form-group" data-ng-class="{\'has-error\': loginForm.$submitted && loginForm.password.$invalid}">\n\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}</label>\n\t\t\t<div class="input-icon">\n\t\t\t\t<i class="fa fa-lock"></i>\n\t\t\t\t<input ng-enter="login(loginForm)" class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" name="password" ng-model="userLogin.password" required/>\n\t\t\t</div>\n\t\t\t<span data-ng-show="loginForm.$submitted && loginForm.password.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n\t\t\t<span class="help-block"><a href="#" data-ng-click="toggleForgotPassword(true)" class="forget-password">{{\'APPLICATION_FORGOT_PASSWORD\' | translate}}?</a></span>\n\t\t</div>\n\t\t<div class="form-actions">\n\t\t\t<button type="submit" class="btn btn-success uppercase">{{\'APPLICATION_LOGIN\' | translate}}</button>\n\t\t\t<label class="rememberme check">\n\t\t\t\t<input type="checkbox" data-ng-model="userLogin.remember"> {{\'APPLICATION_REMEMBER_ME\' | translate}}\n\t\t\t</label>\n\t\t\t\x3c!-- <label class="rememberme check">\n\t\t\t<input type="checkbox" name="remember" value="1"/>Remember </label> --\x3e\n\t\t\t\x3c!-- <a href="javascript:;" id="forget-password" class="forget-password">Forgot Password?</a> --\x3e\n\t\t</div>\n\t</form>\n\t<form name="forgetForm" data-ng-if="forgotPassword" data-ng-submit="forgetForm.$valid && recover()" novalidate>\n\t\t<h3>{{\'APPLICATION_FORGOT_PASSWORD\' | translate}}?</h3>\n\t\t<p>\n\t\t\t{{\'APPLICATION_INSERT_EMAIL_TO_RESET\' | translate}}\n\t\t</p>\n\t\t<div class="alert alert-success" data-ng-show="showRecoverMessage">\n\t\t\t<button class="close" data-close="alert"></button>\n\t\t\t<span>{{\'MESSAGE_CHECK_YOUR_EMAIL_RECOVER\' | translate}}</span>\n\t\t</div>\n\t\t<div class="form-group" data-ng-class="{\'has-error\': forgetForm.$submitted && forgetForm.email.$invalid}">\n\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n\t\t\t<div class="input-icon">\n\t\t\t\t<i class="fa fa-envelope"></i>\n\t\t\t\t<input class="form-control form-control-solid placeholder-no-fix" type="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" name="email" ng-model="userLogin.email" required/>\n\t\t\t</div>\n\t\t\t<span data-ng-show="forgetForm.$submitted && forgetForm.email.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n\t\t</div>\n\t\t<div class="form-actions">\n\t\t\t<button type="button" id="back-btn" data-ng-click="toggleForgotPassword(false)" class="btn btn-default">{{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t<button type="submit" class="btn btn-success uppercase pull-right">{{\'APPLICATION_SUBMIT\' | translate}}</button>\n\t\t</div>\n\t</form>\n\t\t<div class="login-options">\n\t\t\t<h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n\t\t\t<ul class="social-icons">\n\t\t\t\t<li>\n\t\t      <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xcallymotion" target="_blank"></a>\n\t\t    </li>\n\t\t    <li>\n\t\t      <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xcallymotion" target="_blank"></a>\n\t\t    </li>\n\t\t    <li>\n\t\t      <a class="social-icon-color googleplus" data-original-title="Google Plus" href="https://plus.google.com/+Xcally" target="_blank"></a>\n\t\t    </li>\n\t\t    <li>\n\t\t      <a class="social-icon-color linkedin" data-original-title="Linkedin" href="https://www.linkedin.com/company/xcally" target="_blank"></a>\n\t\t    </li>\n\t\t\t</ul>\n\t\t</div>\n</div>\n<div class="copyright">\n\txCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} &copy; Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n\x3c!-- END LOGIN --\x3e\n'),t.put("app/main/about.modal.html",'<div class="center-text">\n<div class="modal-header no-border">\n<button type="button" ng-click="$dismiss()" class="close">&times;</button>\n  \x3c!-- <h3 class="modal-title center-text">{{ \'APPLICATION_ABOUT\' | translate }}</h3> --\x3e\n</div>\n<div class="modal-body" style="padding-top:0px;">\n  <div  class="mbottom20" data-ng-init="getInfo()">\n\t<a>\n\t\t<img ng-src="api/settings/logo/about" alt="logo" class="custom-login-logo about-logo" onError="this.onerror=null"/>\n\t</a>\n</div>\n<div class="mbottom20">\n  <b class="sounds-title-icon">xCALLY Motion</b><br>\n  <small>v. {{info.version}}</small><br><br>\n  <small>2016 - {{year + 1}} &copy; Powered by Xenialab</small><br>\n  <small><a href="https://www.xcallymotion.com">www.xcallymotion.com</a></small><br>\n  <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="settings.footerWhiteLabel"></ng-bind-html>\n</div>\n<div class="mbottom20">\n  <span><b>{{\'APPLICATION_USEFUL_LINKS\' | translate}}</b></span><br>\n  <small><a href="https://wiki.xcallymotion.com/display/XMD/Welcome" target="_blank">Wiki</a></small><br>\n  <small><a href="http://www.xcally.com/bar/phonebar/Setup.msi" target="_blank">Phonebar Download</a></small><br>\n  <small><a href="http://www.xcally.com/support/eula-xcally-license-en.pdf" target="_blank">EULA</a></small><br>\n</div>\n  <div class="login-options" style=\'margin-bottom:0px;\'>\n  <h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n  <ul class="social-icons">\n    <li>\n      <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xcallymotion" target="_blank"></a>\n    </li>\n    <li>\n      <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xcallymotion" target="_blank"></a>\n    </li>\n    <li>\n      <a class="social-icon-color googleplus" data-original-title="Google Plus" href="https://plus.google.com/+Xcally" target="_blank"></a>\n    </li>\n    <li>\n      <a class="social-icon-color linkedin" data-original-title="Linkedin" href="https://www.linkedin.com/company/xcally" target="_blank"></a>\n    </li>\n  </ul>\n</div>\n<div class="login-options" style=\'margin-bottom:0px;\'>\n<h4>{{\'APPLICATION_CONTACT_US\' | translate}}:</h4>\n<div class="float-right" style="margin-top:10px;margin-bottom:10px;">\n  <a href="mailto:support@xcally.com">support@xcally.com</a></small>\n</div>\n</div>\n</div>\n</div>\n\x3c!-- <div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div> --\x3e\n'),t.put("app/main/audioFileDownload.play.modal.html",'\x3c!-- <div class="modal-header">\n  <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">&times;</button>\n  <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div> --\x3e\n<div class="modal-body" style="text-align:center;">\n  <audio controls autoplay ng-src="{{audio}}" preload="none" controlsList="nodownload">\n    Your browser does not support the audio tag.</audio>\n</div>\n\x3c!-- <div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div> --\x3e\n'),t.put("app/main/chooseContact.modal.html",'<div class="modal-header" data-ng-init="getContacts()">\n  <h3 class="modal-title">{{ \'APPLICATION_CHOOSE_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <table st-table="rowCollection" class="table table-striped">\n  \t<tbody>\n      <tr>\n        <th>{{\'APPLICATION_NAME\' | translate}}</th>\n        <th>{{\'APPLICATION_LIST\' | translate}}</th>\n        <th></th>\n      </tr>\n  \t<tr ng-repeat="contact in contacts">\n  \t\t<td>{{contact.firstName}} {{contact.lastName || \'\'}}</td>\n  \t\t<td>{{contact.List.name}}</td>\n  \t\t<td>\n        <button class="btn default btn-xs green-stripe" data-ng-click="open(contact)">\n          {{ \'APPLICATION_OPEN\' | translate}}\n        </button>\n      </td>\n  \t</tr>\n    <tr data-ng-hide="contacts.length">\n      <td colspan="3" style="text-align:center;">\n        <i>{{ \'MESSAGE_NO_CONTACTS_AVAILABLE\' | translate }}</i>\n      </td>\n    </tr>\n  \t</tbody>\n  </table>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="open()"><i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/main/closeEditedTab.modal.html",'<div class="modal-header" data-ng-init="getContacts()">\n  <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <p>{{\'MESSAGE_CLOSE_EDITED_TAB\' | translate}}</p>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/main/closeEditedTab.modal.jscripty.html",' <div class="modal-header" data-ng-init="init()">\n  <h3  class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n  \x3c!-- <h3   ng-if="projectStatus == \'incomplete\'" class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3> --\x3e\n\n</div>\n<div   class="modal-body">\n\x3c!-- <div  ng-if="projectStatus == \'incomplete\'" class="modal-body"> --\x3e\n  <p>{{\'MESSAGE_CLOSE_INCOMPLETE\' | translate}}</p>\n</div>\n\n\n<div class="modal-footer">\n  <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/main/cm.disposition.modal.html",'<div class="modal-header">\n  <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">&times;</button>\n  <h4 ng-if="modal.title" ng-bind="modal.title | translate" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate data-ng-init="initDisposition()">\n  <div class="form-group">\n    <ui-select data-ng-model="item.agentDisposition" name="agentDisposition" theme="bootstrap" data-ng-disabled="!dispositions.length" required>\n      <ui-select-match placeholder="{{\'APPLICATION_DISPOSITION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n      <ui-select-choices repeat="disposition.name as disposition in dispositions | filter: $select.search">\n        <div ng-bind-html="disposition.name | highlight: $select.search"></div>\n      </ui-select-choices>\n    </ui-select>\n  </div>\n  <div class="note note-warning" data-ng-hide="dispositions.length">\n    <h4 class="block">Warning!</h4>\n    <p>\n      {{ \'MESSAGE_NO_DISPOSITIONS_AVAILABLE\' | translate }}\n    </p>\n  </div>\n</form>\n  \x3c!-- <div ng-if="modal.html" ng-bind-html="modal.html"></div> --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn btn-danger" type="button" ng-click="ok()"  data-ng-disabled="!item.agentDisposition">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n  \x3c!-- <button ng-repeat="button in modal.buttons" ng-class="button.classes" ng-click="button.click($event)" ng-bind="button.text" class="btn"></button> --\x3e\n</div>\n'),t.put("app/main/company.info.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_COMPANY_INFO\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <div class="row">\n  \t<div class="col-md-12">\n  \t\t<div class="portlet light">\n  \t\t\t<div class="portlet-title tabbable-line">\n  \t\t\t\t<ul class="nav nav-tabs">\n  \t\t\t\t\t<li class="active">\n  \t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n  \t\t\t\t\t</li>\n  \t\t\t\t\t<li>\n  \t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADDRESS\' | translate}}</a>\n  \t\t\t\t\t</li>\n  \t\t\t\t\t<li>\n  \t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_SHIPMENT_ADDRESS\' | translate}}</a>\n  \t\t\t\t\t</li>\n  \t\t\t\t</ul>\n  \t\t\t</div>\n\n  \t\t\t<div class="portlet-body">\n  \t\t\t\t<div class="tab-content">\n  \t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n  \t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n  \t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateCompany()" novalidate>\n  \t\t\t\t\t\t\t<div class="row">\n  \t\t\t\t\t\t\t\t<div class="col-md-6">\n  \t\t\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n  \t\t\t\t\t\t\t\t\t<div class="form-group">\n  \t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}</label>\n  \t\t\t\t\t\t\t\t\t\t<input readonly type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="company.name" required/>\n  \t\t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n  \t\t\t\t\t\t\t\t\t\x3c!-- START VAT --\x3e\n  \t\t\t\t\t\t\t\t\t<div class="form-group">\n  \t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_VAT\' | translate}}</label>\n  \t\t\t\t\t\t\t\t\t\t<input readonly type="text" name="vat" placeholder="{{\'APPLICATION_VAT\' | translate}}" class="form-control" data-ng-model="company.vat"/>\n  \t\t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t\t\x3c!-- END VAT --\x3e\n\n  \t\t\t\t\t\t\t\t\t\x3c!-- START COMPANYID --\x3e\n  \t\t\t\t\t\t\t\t\t<div class="form-group">\n  \t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_COMPANY_ID\' | translate}}</label>\n  \t\t\t\t\t\t\t\t\t\t<input readonly type="text" name="companyId" placeholder="{{\'APPLICATION_COMPANY_ID\' | translate}}" class="form-control" data-ng-model="company.companyId"/>\n  \t\t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t\t\x3c!-- END COMPANYID --\x3e\n\n  \t\t\t\t\t\t\t\t\t\x3c!-- START WEBSITE --\x3e\n  \t\t\t\t\t\t\t\t\t<div class="form-group">\n  \t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_WEBSITE\' | translate}}</label>\n  \t\t\t\t\t\t\t\t\t\t<input readonly type="text" name="website" placeholder="{{\'APPLICATION_WEBSITE\' | translate}}" class="form-control" data-ng-model="company.website"/>\n  \t\t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t\t\x3c!-- END WEBSITE --\x3e\n\n  \t\t\t\t\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n  \t\t\t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n  \t\t\t\t\t\t\t\t\t\t<input readonly type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="company.email"/>\n  \t\t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n  \t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t<div class="col-md-6">\n  \t\t\t\t\t\t\t\t\t\x3c!-- START PHONE --\x3e\n  \t\t\t\t\t\t\t\t\t<div class="form-group">\n  \t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n  \t\t\t\t\t\t\t\t\t\t<input readonly type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="company.phone"/>\n  \t\t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t\t\x3c!-- END PHONE --\x3e\n\n  \t\t\t\t\t\t\t\t\t\x3c!-- START FAX --\x3e\n  \t\t\t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n  \t\t\t\t\t\t\t\t\t\t<input readonly type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="company.fax"/>\n  \t\t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t\t\x3c!-- END FAX --\x3e\n\n  \t\t\t\t\t\t\t\t\t\x3c!-- START TYPE --\x3e\n  \t\t\t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}</label>\n  \t\t\t\t\t\t\t\t\t\t<input readonly type="text" name="type" placeholder="{{\'APPLICATION_TYPE\' | translate}}" class="form-control" data-ng-model="company.type"/>\n  \t\t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t\t\x3c!-- END TYPE --\x3e\n\n  \t\t\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n  \t\t\t\t\t\t\t\t\t<div class="form-group">\n  \t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n  \t\t\t\t\t\t\t\t\t\t<textarea readonly type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="company.description"></textarea>\n  \t\t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n  \t\t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t</form>\n  \t\t\t\t\t</div>\n  \t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n  \t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n  \t\t\t\t\t\t<form name="forms.address" novalidate>\n  \t\t\t\t\t\t\t\x3c!-- START STREET --\x3e\n  \t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n  \t\t\t\t\t\t\t\t<input readonly type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.street"/>\n  \t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\x3c!-- END STREET --\x3e\n\n  \t\t\t\t\t\t\t\x3c!-- START POSTALCODE --\x3e\n  \t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n  \t\t\t\t\t\t\t\t<input readonly type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.postalCode"/>\n  \t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\x3c!-- END POSTALCODE --\x3e\n\n  \t\t\t\t\t\t\t\x3c!-- START CITY --\x3e\n  \t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n  \t\t\t\t\t\t\t\t<input readonly type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.city"/>\n  \t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\x3c!-- END CITY --\x3e\n  \t\t\t\t\t\t\t\x3c!-- START COUNTRY --\x3e\n  \t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n  \t\t\t\t\t\t\t\t<input readonly type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.country"/>\n  \t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\x3c!-- END COUNTRY --\x3e\n  \t\t\t\t\t\t</form>\n  \t\t\t\t\t</div>\n  \t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n  \t\t\t\t\t\t<form name="forms.shipmentAddress" novalidate>\n  \t\t\t\t\t\t\t\x3c!-- START STREET --\x3e\n  \t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n  \t\t\t\t\t\t\t\t<input readonly type="text" name="sStreet" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="company.sStreet"/>\n  \t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\x3c!-- END STREET --\x3e\n\n  \t\t\t\t\t\t\t\x3c!-- START POSTALCODE --\x3e\n  \t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n  \t\t\t\t\t\t\t\t<input readonly type="text" name="sPostalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="company.sPostalCode"/>\n  \t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\x3c!-- END POSTALCODE --\x3e\n\n  \t\t\t\t\t\t\t\x3c!-- START CITY --\x3e\n  \t\t\t\t\t\t\t<div class="form-group" >\n  \t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n  \t\t\t\t\t\t\t\t<input readonly type="text" name="sCity" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="company.sCity"/>\n  \t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\x3c!-- END CITY --\x3e\n  \t\t\t\t\t\t\t\x3c!-- START COUNTRY --\x3e\n  \t\t\t\t\t\t\t<div class="form-group">\n  \t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n  \t\t\t\t\t\t\t\t<input readonly type="text" name="sCountry" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="company.sCountry"/>\n  \t\t\t\t\t\t\t</div>\n  \t\t\t\t\t\t\t\x3c!-- END COUNTRY --\x3e\n  \t\t\t\t\t\t</form>\n  \t\t\t\t\t</div>\n  \t\t\t\t</div>\n  \t\t\t</div>\n  \t\t</div>\n  \t</div>\n  </div>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="close()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/main/customDateFilter.modal.html",'<div class="modal-body">\n  <uib-datepicker ng-model="dateTime.filterDate"\n      class="well well-sm">\n  </uib-datepicker>\n  <uib-timepicker data-ng-if="hasTime" ng-model="dateTime.time" show-meridian="false"></uib-timepicker>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="setFilterDate(dateTime.filterDate)">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancelDateFilter()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/main/customDateFilterHeader.html",'<input class="ui-grid-filter-input date-time-filter-buttons pointer-cursor" style="width:90%;padding:inherit;" data-ng-click="openDatePicker(colFilter)" placeholder="{{ colFilter.name }}" readonly value="{{colFilter.term | date:\'dd-MM-yyyy\'}}">\n<span role="button" class="ui-grid-filter-button-select cancel-custom-date-range-filter-button ng-scope" data-ng-click="removeFilter(colFilter, $index)" data-ng-if="!colFilter.disableCancelFilterButton" data-ng-disabled="colFilter.term === undefined || colFilter.term === null || colFilter.term === \'\'" data-ng-show="colFilter.term !== undefined && colFilter.term != null" tabindex="0" aria-hidden="false" aria-disabled="false" style="right:22px;">\n  <i class="ui-grid-icon-cancel cancel-custom-date-range-filter" ui-grid-one-bind-aria-label="aria.removeFilter" aria-label="Remove Filter">&nbsp;</i>\n</span>\n'),t.put("app/main/customTagsFilter.modal.html",'<div class="modal-body" data-ng-init="initModal()">\n  \x3c!-- START TAGS --\x3e\n<div class="form-group">\n  <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n  <ui-select multiple=\'true\' data-ng-model="item.myTags" theme="bootstrap">\n    <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n    <ui-select-choices repeat="tag in tags | filter: $select.search">\n      {{tag}}\n    </ui-select-choices>\n  </ui-select>\n</div>\n\x3c!-- END TAGS --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="setFilterTags()">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancelTagsFilter()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/main/customTagsFilterHeader.html",'<input class="ui-grid-filter-input pointer-cursor" style="width:90%;padding:inherit;" data-ng-click="openTags(colFilter)" placeholder="{{ colFilter.name }}" readonly value="{{colFilter.term}}">\n<span role="button" class="ui-grid-filter-button-select cancel-custom-date-range-filter-button ng-scope" data-ng-click="removeFilter(colFilter, $index)" data-ng-if="!colFilter.disableCancelFilterButton" data-ng-disabled="colFilter.term === undefined || colFilter.term === null || colFilter.term === \'\'" data-ng-show="colFilter.term !== undefined && colFilter.term != null" tabindex="0" aria-hidden="false" aria-disabled="false" style="right:5px;">\n  <i class="ui-grid-icon-cancel cancel-custom-date-range-filter" ui-grid-one-bind-aria-label="aria.removeFilter" aria-label="Remove Filter">&nbsp;</i>\n</span>\n'),t.put("app/main/keepMeLogged.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <p>{{\'MESSAGE_SOMEONE_LOGGED_YOU_OUT\' | translate}}</p>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_YES\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_NO\' | translate }}</button>\n</div>\n'),t.put("app/main/main.html",'\x3c!-- BEGIN HEADER --\x3e\n<div data-ng-include="\'components/header/header.html\'" data-ng-controller="HeaderController" class="page-header navbar navbar-fixed-top">\n</div>\n\x3c!-- END HEADER --\x3e\n\n<div class="clearfix">\n</div>\n\x3c!-- BEGIN CONTAINER --\x3e\n<div class="page-container">\n\n  \x3c!-- BEGIN SIDEBAR --\x3e\n  <div data-ng-include="\'components/sidebar/sidebar.html\'" data-ng-controller="SidebarController" class="page-sidebar-wrapper">\n  </div>\n  \x3c!-- END SIDEBAR --\x3e\n\n  \x3c!-- BEGIN CONTENT --\x3e\n  <div class="page-content-wrapper">\n    <div class="page-content" data-ng-class="{\'demo\': !license.expiration}">\n\n      \x3c!-- BEGIN PAGE CONTENT --\x3e\n      <uib-tabset>\n        <uib-tab select="addWorkspace()" active="mainTab.active">\n          <uib-tab-heading>\n            Motion <i class="icon-rocket"></i>\n          </uib-tab-heading>\n          <div class="hide" data-ng-if="!Auth.isAgent() && activeTour.main" ng-joy-ride="activeTour.main" config="tourConfig.main" on-finish="onTourFinish()" on-skip="onTourSkip()"></div>\n          <div ui-view class=""></div>\n        </uib-tab>\n        <uib-tab class="motion-{{workspace.type}}-uib-tab" data-ng-repeat="workspace in workspaces" active="workspace.active" data-ng-switch="workspace.type" select="select(workspace)" deselect="deselect(workspace)">\n          <uib-tab-heading data-ng-mouseup="$event.which === 2 && closeTab($index)">\n            <i data-ng-if="workspace.class" class="prova" data-ng-class="workspace.class"></i> {{workspace.name | truncate: 25: \'...\': true}} <span class="badge badge-danger" data-ng-if="workspace.unread">{{workspace.unread}}</span> <i class="icon-close pointer-cursor" data-ng-click="closeTab($index)"></i>\n          </uib-tab-heading>\n          <div class="" data-ng-switch="workspace.type">\n            <new-contact data-ng-switch-when="newContact" workspace="workspace" index="$index" on-submit="createContact(index,item,data)"></new-contact>\n            <contact data-ng-switch-when="contact" workspace="workspace" index="$index" on-submit="updateContact(index,item)"></contact>\n            <jscripty data-ng-switch-when="jscripty" workspace="workspace" index="$index" on-submit="closeJscriptyTab(index)"></jscripty>\n            \x3c!-- <jscripty data-ng-switch-when="jscripty" workspace="workspace" index="$index" on-submit="closeTab(index,item)"></jscripty> --\x3e\n            <chat-room data-ng-switch-when="chatRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></chat-room>\n            <fax-room data-ng-switch-when="faxRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></fax-room>\n            <mail-room data-ng-switch-when="mailRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></mail-room>\n            <sms-room data-ng-switch-when="smsRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></sms-room>\n            <openchannel-room data-ng-switch-when="openchannelRoom" workspace="workspace" index="$index" on-submit="closeTab(index)"></openchannel-room>\n            <tiger-dial-disposal data-ng-switch-when="tdDisposal" workspace="workspace" index="$index"></tiger-dial-disposal>\n            <web-popup data-ng-switch-when="webPopup" workspace="workspace" index="$index"></web-popup>\n          </div>\n        </uib-tab>\n      </uib-tabset>\n      \x3c!-- END PAGE CONTENT  --\x3e\n\n    </div>\n  </div>\n  \x3c!-- END CONTENT --\x3e\n\n</div>\n\x3c!-- END CONTAINER --\x3e\n\n\x3c!-- BEGIN FOOTER --\x3e\n<div data-ng-include="\'components/footer/footer.html\'" data-ng-controller="FooterController" class="page-footer">\n</div>\n\x3c!-- END FOOTER --\x3e\n\n\x3c!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) --\x3e\n\x3c!-- BEGIN CORE PLUGINS --\x3e\n\x3c!--[if lt IE 9]>\n<script src="../../assets/global/plugins/respond.min.js"><\/script>\n<script src="../../assets/global/plugins/excanvas.min.js"><\/script>\n<![endif]--\x3e\n\n\x3c!-- END JAVASCRIPTS --\x3e\n'),t.put("app/main/mergeContact.choose.modal.html",'<div class="modal-header" data-ng-init="initView()">\n  <h3 class="modal-title">{{ \'APPLICATION_CHOOSE_CONTACT_TO_MERGE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START TABLE --\x3e\n<div data-ng-if="gridOptions" ui-grid="gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-draggable-rows class="ui-grid">\n  <div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n</div>\n\x3c!-- END TABLE --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/main/mergeContact.merge.modal.html",'<div class="modal-header" data-ng-init="initView()">\n  <h3 class="modal-title">{{ \'APPLICATION_MERGE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n      <form name="forms.general" data-ng-submit="submit({index:index,item:contact})" novalidate>\n          \x3c!-- BEGIN PORTLET --\x3e\n          <div class="portlet light ">\n                <div class="portlet-body row">\n                    <div class="col-md-4">\n                      \x3c!-- START FIRSTNAME --\x3e\n                      <div class="form-group" data-ng-class="{\'has-error\': (forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$invalid}">\n                        <label class="control-label">{{\'APPLICATION_FIRSTNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n                        <input data-ng-if="fields.firstName.length <= 1" type="text" name="firstName" placeholder="{{\'APPLICATION_FIRSTNAME\' | translate}}" class="form-control" data-ng-model="contact.firstName" required/>\n                        <ui-select data-ng-if="fields.firstName.length > 1" data-ng-model="contact.firstName" theme="bootstrap" name="firstName" required>\n                          <ui-select-match placeholder="{{ \'APPLICATION_FIRSTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n                          <ui-select-choices repeat="field in fields.firstName | filter: $select.search track by $index">\n                            <div ng-bind-html="field | highlight: $select.search"></div>\n                          </ui-select-choices>\n                        </ui-select>\n                        <span data-ng-show="(forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$error.required" class="help-block help-block-error">\n                          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                        </span>\n                      </div>\n                      \x3c!-- END FIRSTNAME --\x3e\n\n                      \x3c!-- START LASTNAME --\x3e\n                      <div class="form-group" data-ng-class="{\'has-error\': (forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$invalid}">\n                        <label class="control-label">{{\'APPLICATION_LASTNAME\' | translate}}</label>\n                        <input data-ng-if="fields.lastName.length <= 1" type="text" name="lastName" placeholder="{{\'APPLICATION_LASTNAME\' | translate}}" class="form-control" data-ng-model="contact.lastName"/>\n                        <ui-select data-ng-if="fields.lastName.length > 1" data-ng-model="contact.lastName" theme="bootstrap" name="lastName">\n                          <ui-select-match placeholder="{{ \'APPLICATION_LASTNAME\' | translate }}">{{$select.selected}}</ui-select-match>\n                          <ui-select-choices repeat="field in fields.lastName | filter: $select.search track by $index">\n                            <div ng-bind-html="field | highlight: $select.search"></div>\n                          </ui-select-choices>\n                        </ui-select>\n                        <span data-ng-show="(forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$error.required" class="help-block help-block-error">\n                          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                        </span>\n                      </div>\n                      \x3c!-- END LASTNAME --\x3e\n\n                      \x3c!-- START COMPANY --\x3e\n                      <div class="form-group" data-ng-class="{\'has-error\': forms.general.CompanyId.$invalid && forms.general.$submitted}">\n                        <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n                          <ui-select data-ng-model="contact.CompanyId" theme="bootstrap" name="CompanyId" ng-disabled="!companies.length">\n                            <ui-select-match placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n                            <ui-select-choices repeat="company.id as company in companies | filter: $select.search" null-option="scope.noCompany">\n                              <div ng-bind-html="company.name | highlight: $select.search"></div>\n                            </ui-select-choices>\n                          </ui-select>\n                        <div class="note note-warning" data-ng-hide="companies.length">\n                          <h4 class="block">Warning!</h4>\n                          <p>\n                            {{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}\n                          </p>\n                          <p>\n                            {{\'APPLICATION_GO_TO\' | translate}} <a href="/contactmanager/companies/list">{{\'APPLICATION_COMPANIES\' | translate}}</a>\n                          </p>\n                        </div>\n                        <span data-ng-show="forms.general.CompanyId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n                          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                        </span>\n                      </div>\n                      \x3c!-- END COMPANY --\x3e\n                    </div>\n                    <div class="col-md-4">\n                      \x3c!-- START PHONE --\x3e\n                      <div class="form-group" data-ng-class="{\'has-error\': (forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$invalid}">\n                        <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n                        <input data-ng-if="fields.phone.length <= 1" type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="contact.phone"/>\n                        <ui-select data-ng-if="fields.phone.length > 1" data-ng-model="contact.phone" theme="bootstrap" name="phone">\n                          <ui-select-match placeholder="{{ \'APPLICATION_PHONE\' | translate }}">{{$select.selected}}</ui-select-match>\n                          <ui-select-choices repeat="field in fields.phone | filter: $select.search track by $index">\n                            <div ng-bind-html="field | highlight: $select.search"></div>\n                          </ui-select-choices>\n                        </ui-select>\n                      <span data-ng-show="(forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$error.required" class="help-block help-block-error">\n                        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                      </span>\n                    </div>\n                    \x3c!-- END PHONE --\x3e\n                    \x3c!-- START MOBILE --\x3e\n                    <div class="form-group" data-ng-class="{\'has-error\': (forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$invalid}">\n                      <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n                      <input data-ng-if="fields.mobile.length <= 1" type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="contact.mobile"/>\n                      <ui-select data-ng-if="fields.mobile.length > 1" data-ng-model="contact.mobile" theme="bootstrap" name="mobile">\n                        <ui-select-match placeholder="{{ \'APPLICATION_MOBILE\' | translate }}">{{$select.selected}}</ui-select-match>\n                        <ui-select-choices repeat="field in fields.mobile | filter: $select.search track by $index">\n                          <div ng-bind-html="field | highlight: $select.search"></div>\n                        </ui-select-choices>\n                      </ui-select>\n                    <span data-ng-show="(forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$error.required" class="help-block help-block-error">\n                      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                    </span>\n                  </div>\n                  \x3c!-- END MOBILE --\x3e\n                  \x3c!-- START EMAIL --\x3e\n                  <div class="form-group" data-ng-class="{\'has-error\': (forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$invalid}">\n                    <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n                    <input data-ng-if="fields.email.length <= 1" type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="contact.email"/>\n                      <ui-select data-ng-if="fields.email.length > 1" data-ng-model="contact.email" theme="bootstrap" name="email">\n                        <ui-select-match placeholder="{{ \'APPLICATION_EMAIL\' | translate }}">{{$select.selected}}</ui-select-match>\n                        <ui-select-choices repeat="field in fields.email | filter: $select.search track by $index">\n                          <div ng-bind-html="field | highlight: $select.search"></div>\n                        </ui-select-choices>\n                      </ui-select>\n                    <span data-ng-show="(forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$error.required" class="help-block help-block-error">\n                      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                    </span>\n                  </div>\n                  \x3c!-- END EMAIL --\x3e\n                </div>\n                <div class="col-md-4">\n                  \x3c!-- START FAX --\x3e\n                  <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$invalid}">\n                    <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n                    <input data-ng-if="fields.fax.length <= 1" type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="contact.fax"/>\n                      <ui-select data-ng-if="fields.fax.length > 1" data-ng-model="contact.fax" theme="bootstrap" name="fax">\n                        <ui-select-match placeholder="{{ \'APPLICATION_FAX\' | translate }}">{{$select.selected}}</ui-select-match>\n                        <ui-select-choices repeat="field in fields.fax | filter: $select.search track by $index">\n                          <div ng-bind-html="field | highlight: $select.search"></div>\n                        </ui-select-choices>\n                      </ui-select>\n                    <span data-ng-show="(forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$error.required" class="help-block help-block-error">\n                      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                    </span>\n                  </div>\n                  \x3c!-- END FAX --\x3e\n                  \x3c!-- START TAGS --\x3e\n                  <div class="form-group" data-ng-class="{\'has-error\': forms.general.tags.$invalid && forms.general.$submitted}">\n                    <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n                    <ui-select multiple=\'true\' data-ng-model="contact.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n                      <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n                      <ui-select-choices repeat="tag in tags | filter: $select.search">\n                        <div ng-bind-html="tag | highlight: $select.search"></div>\n                      </ui-select-choices>\n                    </ui-select>\n                    <span data-ng-show="forms.general.tags.$invalid && forms.general.$submitted" class="help-block help-block-error">\n                      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                    </span>\n                  </div>\n                  \x3c!-- END TAGS --\x3e\n                  \x3c!-- START LIST --\x3e\n                  <div class="form-group" data-ng-if="contact.id">\n                    <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n                    <input type="text" name="list" placeholder="{{\'APPLICATION_LIST\' | translate}}" class="form-control" data-ng data-ng-model="contact.List.name" disabled/>\n                  </div>\n                  \x3c!-- END LIST --\x3e\n                </div>\n              </div>\n            </div>\n            <div class="portlet light upborder">\n                <div class="portlet-body row">\n                <div class="col-md-4">\n                  \x3c!-- START STREET --\x3e\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 data-ng-if="fields.street.length <= 1" type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="contact.street"/>\n                        <ui-select data-ng-if="fields.street.length > 1" data-ng-model="contact.street" theme="bootstrap" name="street">\n                          <ui-select-match placeholder="{{ \'APPLICATION_STREET\' | translate }}">{{$select.selected}}</ui-select-match>\n                          <ui-select-choices repeat="field in fields.street | filter: $select.search track by $index">\n                            <div ng-bind-html="field | highlight: $select.search"></div>\n                          </ui-select-choices>\n                        </ui-select>\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                  \x3c!-- END STREET --\x3e\n\n                  \x3c!-- START POSTALCODE --\x3e\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 data-ng-if="fields.postalCode.length <= 1" type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="contact.postalCode"/>\n                        <ui-select data-ng-if="fields.postalCode.length > 1" data-ng-model="contact.postalCode" theme="bootstrap" name="postalCode">\n                          <ui-select-match placeholder="{{ \'APPLICATION_POSTALCODE\' | translate }}">{{$select.selected}}</ui-select-match>\n                          <ui-select-choices repeat="field in fields.postalCode | filter: $select.search track by $index">\n                            <div ng-bind-html="field | highlight: $select.search"></div>\n                          </ui-select-choices>\n                        </ui-select>\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                  \x3c!-- END POSTALCODE --\x3e\n\n                  \x3c!-- START CITY --\x3e\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 data-ng-if="fields.city.length <= 1" type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="contact.city"/>\n                        <ui-select data-ng-if="fields.city.length > 1" data-ng-model="contact.city" theme="bootstrap" name="city">\n                          <ui-select-match placeholder="{{ \'APPLICATION_CITY\' | translate }}">{{$select.selected}}</ui-select-match>\n                          <ui-select-choices repeat="field in fields.city | filter: $select.search track by $index">\n                            <div ng-bind-html="field | highlight: $select.search"></div>\n                          </ui-select-choices>\n                        </ui-select>\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                  \x3c!-- END CITY --\x3e\n                </div>\n                <div class="col-md-4">\n                  \x3c!-- START COUNTRY --\x3e\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 data-ng-if="fields.country.length <= 1" type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="contact.country"/>\n                        <ui-select data-ng-if="fields.country.length > 1" data-ng-model="contact.country" theme="bootstrap" name="country">\n                          <ui-select-match placeholder="{{ \'APPLICATION_COUNTRY\' | translate }}">{{$select.selected}}</ui-select-match>\n                          <ui-select-choices repeat="field in fields.country | filter: $select.search track by $index">\n                            <div ng-bind-html="field | highlight: $select.search"></div>\n                          </ui-select-choices>\n                        </ui-select>\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                  \x3c!-- END COUNTRY --\x3e\n\n                  \x3c!-- START DATEOFBIRTH --\x3e\n                  <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$invalid}">\n                    <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n                    <input data-ng-if="fields.dateOfBirth.length <= 1" type="date" name="dateOfBirth" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control" data-ng-model="contact.dateOfBirth"/>\n                    <ui-select data-ng-if="fields.dateOfBirth.length > 1" data-ng-model="contact.dateOfBirth" theme="bootstrap" name="dateOfBirth">\n                      <ui-select-match placeholder="{{ \'APPLICATION_DATEOFBIRTH\' | translate }}">{{$select.selected}}</ui-select-match>\n                      <ui-select-choices repeat="field in fields.dateOfBirth | filter: $select.search track by $index">\n                        <div ng-bind-html="field | highlight: $select.search"></div>\n                      </ui-select-choices>\n                    </ui-select>\n                      <span data-ng-show="(forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$error.required" class="help-block help-block-error">\n                      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                    </span>\n                  </div>\n                  \x3c!-- END DATEOFBIRTH --\x3e\n\n                  \x3c!-- START DESCRIPTION --\x3e\n                  <div class="form-group">\n                    <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n                    <textarea  style="resize: vertical;" data-ng-if="fields.description.length <= 1" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="contact.description"/></textarea>\n                        <ui-select data-ng-if="fields.description.length > 1" data-ng-model="contact.description" theme="bootstrap" name="description">\n                          <ui-select-match placeholder="{{ \'APPLICATION_DESCRIPTION\' | translate }}">{{$select.selected}}</ui-select-match>\n                          <ui-select-choices repeat="field in fields.description | filter: $select.search track by $index">\n                            <div ng-bind-html="field | highlight: $select.search"></div>\n                          </ui-select-choices>\n                        </ui-select>\n                  </div>\n                  \x3c!-- END DESCRIPTION --\x3e\n                </div>\n                <div class="col-md-4">\n                  \x3c!-- START URL --\x3e\n                  <div class="form-group" data-ng-class="{\'has-error\': (forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$invalid}">\n                    <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n                    <input data-ng-if="fields.url.length <= 1" type="text" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="contact.url"/>\n                    <ui-select data-ng-if="fields.url.length > 1" data-ng-model="contact.url" theme="bootstrap" name="url">\n                      <ui-select-match placeholder="{{ \'APPLICATION_URL\' | translate }}">{{$select.selected}}</ui-select-match>\n                      <ui-select-choices repeat="field in fields.url | filter: $select.search track by $index">\n                        <div ng-bind-html="field | highlight: $select.search"></div>\n                      </ui-select-choices>\n                    </ui-select>\n                    <span data-ng-show="(forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$error.required" class="help-block help-block-error">\n                      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                    </span>\n                  </div>\n                  \x3c!-- END URL --\x3e\n                </div>\n              </div>\n            </div>\n          <div class="portlet light upborder" data-ng-if="customFields.length">\n            <div class="portlet-body">\n              <div class="row">\n              <div class="col-md-4" data-ng-repeat="customField in customFields">\n                <div data-ng-if="customField.type==\'text\'" class="form-group" data-ng-class="{\'has-error\': (forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$invalid}">\n                  <label class="control-label">{{customField.alias}}</label>\n                  <input data-ng-if="fields[customField.name].length <= 1" type="text" name="{{customField.name}}" placeholder="{{customField.alias}}" class="form-control" data-ng-model="contact[customField.name]"/>\n                  <ui-select data-ng-if="fields[customField.name].length > 1" data-ng-model="contact[customField.name]" theme="bootstrap" name="{{customField.name}}">\n                    <ui-select-match placeholder="{{customField.name}}">{{$select.selected}}</ui-select-match>\n                    <ui-select-choices repeat="field in fields[customField.name] | filter: $select.search track by $index">\n                      <div ng-bind-html="field | highlight: $select.search"></div>\n                    </ui-select-choices>\n                  </ui-select>\n                  <span data-ng-show="(forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$error.required" class="help-block help-block-error">\n                    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                  </span>\n                </div>\n                <div data-ng-if="customField.type==\'select\'" class="form-group" data-ng-class="{\'has-error\': forms.general[customField.name].$invalid && forms.general.$submitted}">\n                  <label class="control-label">{{customField.alias}}</label>\n                  <ui-select data-ng-model="contact[customField.name]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled">\n                    <ui-select-match allow-clear placeholder="{{customField.alias}}">{{$select.selected.value}}</ui-select-match>\n                    <ui-select-choices repeat="choice.value as choice in customField.values | filter: $select.search">\n                      <div ng-bind-html="choice.value | highlight: $select.search"></div>\n                    </ui-select-choices>\n                  </ui-select>\n                  <span data-ng-show="forms.general[customField.name].$invalid && forms.general.$submitted" class="help-block help-block-error">\n                    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                  </span>\n                </div>\n              </div>\n            </div>\n            </div>\n          </div>\n          \x3c!-- END PORTLET --\x3e\n        </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="merge()" ng-disabled="forms.general.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/main/template/actionBuilder/template.actionBuilderIntegration.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" data-ng-change="changeIntegration()" required>\n    <ui-select-match placeholder="{{ \'APPLICATION_INTEGRATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="integration.state as integration in integrations | filter: $select.search">\n      <div ng-bind-html="integration.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{\'APPLICATION_INTEGRATION\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data1 && accounts && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" data-ng-change="changeAccount();" required>\n    <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="account.id as account in accounts | filter: $select.search">\n      <div ng-bind-html="account.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{\'APPLICATION_ACCOUNT\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data2 && configurations && randomName" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data3" name="data3{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{\'APPLICATION_CONFIGURATION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="config.id as config in configurations | filter: $select.search">\n      <div ng-bind-html="config.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{\'APPLICATION_CONFIGURATION\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("app/main/template/actionBuilder/template.actionBuilderJscripty.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match>{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="project.id as project in projects | filter: $select.search">\n      <div ng-bind-html="project.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("app/main/template/actionBuilder/template.actionBuilderMotionBar.html",'\x3c!-- data1: 0 POPUP, 1 URL, 2 WINAPP --\x3e\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required data-ng-change="changeMode();">\n    <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="motionAction.value as motionAction in motionActions | filter: $select.search">\n      <div ng-bind-html="motionAction.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{ \'APPLICATION_TYPE\' | translate }}\n  </span>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n\x3c!-- data1:0 data2:Template --\x3e\n<div data-ng-if="randomName && element.data1==0" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{ \'APPLICATION_TEMPLATE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n      <div ng-bind-html="template.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{ \'APPLICATION_TEMPLATE\' | translate }}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n\x3c!-- data1:1 data2:URL --\x3e\n<div data-ng-if="randomName && element.data1==1" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_URL\' | translate }}"/>\n  <span class="help-block">\n    {{ \'APPLICATION_URL\' | translate }}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n\x3c!-- data1:2 data2:Application data3:Arguments --\x3e\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}"/>\n  <span class="help-block">\n    {{ \'APPLICATION_APPLICATION\' | translate }}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6">\n  <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}"/>\n  <span class="help-block">\n    {{ \'APPLICATION_ARGUMENTS\' | translate }}\n  </span>\n</div>\n'),t.put("app/main/template/actionBuilder/template.actionBuilderStatus.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n    <ui-select-choices repeat="status.value as status in states | filter: $select.search">\n      <div ng-bind-html="status.name | translate | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("app/main/template/actionBuilder/template.actionBuilderTemplate.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match>{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n      <div ng-bind-html="template.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required/>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="col-md-6">\n  <input type="text" ng-model="element.data3" class="form-control"/>\n</div>\n'),t.put("app/main/template/actionBuilder/template.actionBuilderUrlForward.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n      <div ng-bind-html="type.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{\'APPLICATION_TYPE\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="form-group col-md-12" data-ng-if="element.data1 && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="url" ng-model="element.data2" placeholder="{{ \'APPLICATION_URL\' | translate }}" name="data2{{randomName}}" class="form-control" required/>\n  <span class="help-block">\n    {{\'APPLICATION_URL\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("app/main/template/template.conditionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.field" name="field{{randomName}}" theme="bootstrap" data-ng-change="checkCondition(element.field)" required>\n    <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n    <ui-select-choices repeat="condition.value as condition in service.services[serviceindex].conditions | filter: $select.search">\n      <div ng-bind-html="condition.name | translate | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div data-ng-if="randomName && element.field" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.operator" name="operator{{randomName}}" theme="bootstrap" required>\n    <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n    <ui-select-choices repeat="operator.value as operator in _.find(service.services[serviceindex].conditions,{value:element.field}).operators | filter: $select.search">\n      <div ng-bind-html="operator.name | translate | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="col-md-4" data-ng-if="elementType === \'input\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n  <input type="text" ng-model="element.value" class="form-control" name="value{{randomName}}" required/>\n  <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n    </span>\n</div>\n<div class="form-group col-md-4" data-ng-if="elementType === \'select\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.value" name="value{{randomName}}" theme="bootstrap" required>\n    <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n    <ui-select-choices repeat="value.value as value in values| filter: $select.search">\n      <div ng-bind-html="value.name | translate | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("app/main/template/template.contactTab.html",'<div class="row margin-top-20 contact-tab-container">\n  <div class="col-md-12 contact-tab">\n    <form name="forms.general" data-ng-submit="submit({index:index,item:contact,data:workspace.data})" novalidate>\n    \x3c!-- BEGIN PROFILE CONTENT --\x3e\n    <div class="profile-content">\n      <ul class="nav nav-tabs">\n  <li class="active">\n    <a href="#tab_1_1{{contact.id || \'\'}}" data-toggle="tab">{{\'APPLICATION_DETAIL\' | translate}}</a>\n  </li>\n  <li data-ng-if="contact.id">\n    <a href="#tab_1_2{{contact.id || \'\'}}" data-toggle="tab">{{\'APPLICATION_CUSTOMER_JOURNEY\' | translate}}</a>\n  </li>\n</ul>\n<div class="tab-content">\n  <div class="tab-pane fade active in" id="tab_1_1{{contact.id || \'\'}}">\n    \x3c!--end add-portfolio--\x3e\n    <div class="row portfolio-block" data-ng-if="workspace.data && workspace.data.uniqueid && workspace.data.agentcalledAt">\n      <div class="col-md-3">\n        <div class="portfolio-text">\n          <img src="assets/images/media/CmCall.png" alt=""/>\n          <div class="portfolio-text-info">\n            <h4>{{\'MESSAGE_INBOUND_CALL_FROM\' | translate}} - {{workspace.data.calleridnum}}</h4>\n            <p>\n              {{\'MESSAGE_CALL_UNIQUEID\' | translate}} : {{workspace.data.uniqueid}}\n            </p>\n          </div>\n        </div>\n      </div>\n      <div class="col-md-2 portfolio-stat">\n        <div>{{\'APPLICATION_QUEUE\' | translate}} </div>\n        <p>  {{workspace.data.queue}} </p>\n      </div>\n      <div class="col-md-3 portfolio-stat">\n        <div>{{\'APPLICATION_AGENT\' | translate}} </div>\n        <p>  {{workspace.data.membername}} </p>\n      </div>\n      <div class="col-md-2 portfolio-stat">\n        <div>{{\'APPLICATION_DATE\' | translate}} </div>\n        <p>  {{workspace.data.agentcalledAt | date:\'dd/MM/yyyy HH:mm:ss\'}} </p>\n      </div>\n      <div class="col-md-2 portfolio-stat">\n        <button class="btn" data-ng-class="{\'grey-cascade\':contact.disposed || !enableDisposal,\'green-haze\':enableDisposal && !contact.disposed}" type="button" data-ng-click="dispose()" data-ng-disabled="contact.disposed || !enableDisposal">\n          <i class="icon-target"></i> {{\'APPLICATION_DISPOSITION\' | translate}}\n        </button>\n      </div>\n    </div>\n            \x3c!--end row--\x3e\n          \x3c!-- BEGIN PORTLET --\x3e\n          <div class="portlet light ">\n            <div class="portlet-title">\n              <div class="caption caption-md">\n                <i class="icon-bar-chart theme-font hide"></i>\n                <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_DETAIL\' | translate}}</span>\n              </div>\n              <div class="actions">\n                <div class="btn-group btn-group-devided" data-toggle="buttons">\n                  <button type="submit" data-ng-if="contact.id" title="{{\'APPLICATION_COPY\' | translate}}" class="btn btn-circle green btn-sm" data-ng-click="copy(contact.id)"><i class="fa fa-files-o"></i></button>\n                  <button type="submit" data-ng-if="contact.ListId" class="btn btn-circle purple btn-sm" title="{{\'APPLICATION_MERGE\' | translate}}" data-ng-click="merge(contact)"><i class="icon-link"></i></button>\n                  <label class="btn btn-transparent grey-salsa btn-circle btn-sm active" data-ng-click="detail.tab=\'main\'">\n                  <input type="radio" class="toggle">{{\'APPLICATION_MAIN\' | translate}}</label>\n                  <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-click="detail.tab=\'other\'">\n                  <input type="radio" class="toggle">{{\'APPLICATION_OTHER\' | translate}}</label>\n                </div>\n              </div>\n            </div>\n            <div class="portlet-body">\n              <div data-ng-class="{\'hidden\':detail.tab != \'main\'}" class="portlet-body contact-portlet row">\n                <div class="col-md-4">\n              \x3c!-- START FIRSTNAME --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$invalid}">\n                <label class="control-label">{{\'APPLICATION_FIRSTNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n                <input type="text" name="firstName" placeholder="{{\'APPLICATION_FIRSTNAME\' | translate}}" class="form-control" data-ng-model="contact.firstName" required/>\n                <span data-ng-show="(forms.general.firstName.$touched || forms.general.$submitted) && forms.general.firstName.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END FIRSTNAME --\x3e\n\n              \x3c!-- START LASTNAME --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$invalid}">\n                <label class="control-label">{{\'APPLICATION_LASTNAME\' | translate}}</label>\n                <input type="text" name="lastName" placeholder="{{\'APPLICATION_LASTNAME\' | translate}}" class="form-control" data-ng-model="contact.lastName"/>\n                <span data-ng-show="(forms.general.lastName.$touched || forms.general.$submitted) && forms.general.lastName.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END LASTNAME --\x3e\n\n              \x3c!-- START COMPANY --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': forms.general.CompanyId.$invalid && forms.general.$submitted}">\n                <label class="control-label">{{\'APPLICATION_COMPANY\' | translate}}</label>\n                <div class="input-group">\n                  <ui-select data-ng-model="contact.CompanyId" theme="bootstrap" name="CompanyId" ng-disabled="!companies.length" required>\n                    <ui-select-match placeholder="{{ \'APPLICATION_COMPANY\' | translate }}">{{$select.selected.name}}</ui-select-match>\n                    <ui-select-choices repeat="company.id as company in companies | filter: $select.search" null-option="scope.noCompany">\n                      <div ng-bind-html="company.name | highlight: $select.search"></div>\n                    </ui-select-choices>\n                  </ui-select>\n                  <span class="input-group-btn">\n                    <button type="button" data-ng-click="companyInfo(contact.CompanyId)" class="btn btn-default" data-ng-disabled="!contact.CompanyId">\n                      <span class="icon-info" data-ng-class="{\'font-blue\':contact.CompanyId}"></span>\n                    </button>\n                  </span>\n                </div>\n                <div class="note note-warning" data-ng-hide="companies.length">\n                  <h4 class="block">Warning!</h4>\n                  <p>\n                    {{ \'MESSAGE_NO_COMPANIES_AVAILABLE\' | translate }}\n                  </p>\n                  <p data-ng-if="!Auth.isAgent()">\n                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/contactmanager/companies/list">{{\'APPLICATION_COMPANIES\' | translate}}</a>\n                  </p>\n                </div>\n                <span data-ng-show="forms.general.CompanyId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END COMPANY --\x3e\n            </div>\n            <div class="col-md-4">\n              \x3c!-- START PHONE --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$invalid}">\n                <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n                <div class="input-group">\n                  <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="contact.phone"/>\n                  <span class="input-group-btn" uib-dropdown>\n                    <button data-ng-if="Auth.isAgent()" type="button" uib-dropdown-toggle class="btn btn-default" data-ng-disabled="!contact.phone || !agent.phoneBarRemoteControl" >\n                      <span class="icon-earphones-alt" data-ng-class="{\'font-blue\':contact.phone && agent.phoneBarRemoteControl}" uib-tooltip="{{!agent.phoneBarRemoteControl ? (\'APPLICATION_ENABLE_REMOTE_PHONEBAR\' | translate) : (\'APPLICATION_MOTION_BAR_CONTROLS\' | translate)}}" ></span>\n                    </button>\n                    <ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="single-button">\n                      <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.phone,\'call\')"><i class="icon-phone"></i> {{\'APPLICATION_CALL\' | translate}}</a></li>\n                      <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.phone,\'transfer\')"><i class="glyphicon glyphicon-random"></i> {{\'APPLICATION_TRANSFER\' | translate}}</a></li>\n                    </ul>\n                    <button type="button" data-ng-click="openRoom(null,\'smsRoom\',{to:contact.phone})" class="btn btn-default" data-ng-disabled="!contact.phone || !license.messaging">\n                      <span class="glyphicon glyphicon-comment" data-ng-class="{\'font-blue\':contact.phone && license.messaging}"></span>\n                    </button>\n                  </span>\n                </div>\n                <span data-ng-show="(forms.general.phone.$touched || forms.general.$submitted) && forms.general.phone.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END PHONE --\x3e\n              \x3c!-- START MOBILE --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$invalid}">\n                <label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n                <div class="input-group">\n                  <input type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="contact.mobile"/>\n                  <span class="input-group-btn" uib-dropdown>\n                    <button data-ng-if="Auth.isAgent()" type="button" uib-dropdown-toggle class="btn btn-default" data-ng-disabled="!contact.mobile || !agent.phoneBarRemoteControl" >\n                      <span class="icon-earphones-alt" data-ng-class="{\'font-blue\':contact.mobile && agent.phoneBarRemoteControl}" uib-tooltip="{{!agent.phoneBarRemoteControl ? (\'APPLICATION_ENABLE_REMOTE_PHONEBAR\' | translate) : (\'APPLICATION_MOTION_BAR_CONTROLS\' | translate)}}" ></span>\n                    </button>\n                    <ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="single-button">\n                      <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.mobile,\'call\')"><i class="icon-phone"></i> {{\'APPLICATION_CALL\' | translate}}</a></li>\n                      <li role="menuitem"><a href="#" data-ng-click="callPhoneBar(contact.mobile,\'transfer\')"><i class="glyphicon glyphicon-random"></i> {{\'APPLICATION_TRANSFER\' | translate}}</a></li>\n                    </ul>\n                    <button type="button" data-ng-click="openRoom(null,\'smsRoom\',{to:contact.mobile})" class="btn btn-default" data-ng-disabled="!contact.mobile || !license.messaging">\n                      <span class="glyphicon glyphicon-comment" data-ng-class="{\'font-blue\':contact.mobile && license.messaging}"></span>\n                    </button>\n                  </span>\n                </div>\n                <span data-ng-show="(forms.general.mobile.$touched || forms.general.$submitted) && forms.general.mobile.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END MOBILE --\x3e\n              \x3c!-- START EMAIL --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$invalid}">\n                <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}</label>\n                <div class="input-group">\n                  <input type="text" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="contact.email"/>\n                  <span class="input-group-btn">\n                    <button type="button" data-ng-click="openRoom(null,\'mailRoom\',{to:contact.email})" class="btn btn-default" data-ng-disabled="!contact.email || !license.mail">\n                      <span class="icon-envelope" data-ng-class="{\'font-blue\':contact.email && license.mail}"></span>\n                    </button>\n                  </span>\n                </div>\n                <span data-ng-show="(forms.general.email.$touched || forms.general.$submitted) && forms.general.email.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END EMAIL --\x3e\n            </div>\n            <div class="col-md-4">\n              \x3c!-- START FAX --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$invalid}">\n                <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label>\n                <div class="input-group">\n                  <input type="text" name="fax" placeholder="{{\'APPLICATION_FAX\' | translate}}" class="form-control" data-ng-model="contact.fax"/>\n                  <span class="input-group-btn">\n                    <button type="button" data-ng-click="openRoom(null,\'faxRoom\',{to:contact.fax})" class="btn btn-default" data-ng-disabled="!contact.fax || !license.fax">\n                      <span class="fa fa-fax" data-ng-class="{\'font-blue\':contact.fax && license.fax}"></span>\n                    </button>\n                  </span>\n                </div>\n                <span data-ng-show="(forms.general.fax.$touched || forms.general.$submitted) && forms.general.fax.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END FAX --\x3e\n              \x3c!-- START TAGS --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': forms.general.tags.$invalid && forms.general.$submitted}">\n                <label class="control-label">{{\'APPLICATION_TAGS\' | translate}}</label>\n                <ui-select multiple=\'true\' data-ng-model="contact.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n                  <ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item}}</ui-select-match>\n                  <ui-select-choices repeat="tag in tags | filter: $select.search">\n                    {{tag}}\n                  </ui-select-choices>\n                </ui-select>\n                <span data-ng-show="forms.general.tags.$invalid && forms.general.$submitted" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END TAGS --\x3e\n              \x3c!-- START LIST --\x3e\n              <div class="form-group" data-ng-if="contact.id">\n                <label class="control-label">{{\'APPLICATION_LIST\' | translate}}</label>\n                <input type="text" name="list" placeholder="{{\'APPLICATION_LIST\' | translate}}" class="form-control" data-ng-model="contact.List.name" disabled/>\n              </div>\n              \x3c!-- END LIST --\x3e\n              \x3c!-- START LIST --\x3e\n              <div data-ng-if="!contact.id" class="form-group" data-ng-class="{\'has-error\': forms.general.ListId.$invalid && forms.general.$submitted}">\n                <label class="control-label">{{\'APPLICATION_LIST\' | translate}}<span class="required" aria-required="true">*</span></label>\n                <ui-select data-ng-model="contact.ListId" theme="bootstrap" name="ListId" data-ng-change="getCustomFields()" required>\n                  <ui-select-match placeholder="{{ \'APPLICATION_LIST\' | translate }}">{{$select.selected.name}}</ui-select-match>\n                  <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n                    <div ng-bind-html="list.name | highlight: $select.search"></div>\n                  </ui-select-choices>\n                </ui-select>\n                <div class="note note-warning" data-ng-hide="lists.length">\n                  <h4 class="block">Warning!</h4>\n                  <p>\n                    {{ \'MESSAGE_NO_LISTS_AVAILABLE\' | translate }}\n                  </p>\n                  <p data-ng-if="!Auth.isAgent()">\n                    {{\'APPLICATION_GO_TO\' | translate}} <a href="/contactmanager/lists/list">{{\'APPLICATION_LISTS\' | translate}}</a>\n                  </p>\n                </div>\n                <span data-ng-show="forms.general.ListId.$invalid && forms.general.$submitted" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END LIST --\x3e\n            </div>\n            </div>\n            <div data-ng-class="{\'hidden\':detail.tab != \'other\'}" class="portlet-body contact-portlet row">\n              <div class="col-md-4">\n              \x3c!-- START STREET --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$invalid}">\n                <label class="control-label">{{\'APPLICATION_STREET\' | translate}}</label>\n                <input type="text" name="street" placeholder="{{\'APPLICATION_STREET\' | translate}}" class="form-control" data-ng-model="contact.street"/>\n                <span data-ng-show="(forms.general.street.$touched || forms.general.$submitted) && forms.general.street.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END STREET --\x3e\n\n              \x3c!-- START POSTALCODE --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$invalid}">\n                <label class="control-label">{{\'APPLICATION_POSTALCODE\' | translate}}</label>\n                <input type="text" name="postalCode" placeholder="{{\'APPLICATION_POSTALCODE\' | translate}}" class="form-control" data-ng-model="contact.postalCode"/>\n                <span data-ng-show="(forms.general.postalCode.$touched || forms.general.$submitted) && forms.general.postalCode.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END POSTALCODE --\x3e\n\n              \x3c!-- START CITY --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$invalid}">\n                <label class="control-label">{{\'APPLICATION_CITY\' | translate}}</label>\n                <input type="text" name="city" placeholder="{{\'APPLICATION_CITY\' | translate}}" class="form-control" data-ng-model="contact.city"/>\n                <span data-ng-show="(forms.general.city.$touched || forms.general.$submitted) && forms.general.city.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END CITY --\x3e\n            </div>\n            <div class="col-md-4">\n              \x3c!-- START COUNTRY --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$invalid}">\n                <label class="control-label">{{\'APPLICATION_COUNTRY\' | translate}}</label>\n                <input type="text" name="country" placeholder="{{\'APPLICATION_COUNTRY\' | translate}}" class="form-control" data-ng-model="contact.country"/>\n                <span data-ng-show="(forms.general.country.$touched || forms.general.$submitted) && forms.general.country.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END COUNTRY --\x3e\n\n              \x3c!-- START DATEOFBIRTH --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$invalid}">\n                <label class="control-label">{{\'APPLICATION_DATEOFBIRTH\' | translate}}</label>\n                <input name="dateOfBirth" type="date" placeholder="{{\'APPLICATION_DATEOFBIRTH\' | translate}}" class="form-control date-picker" data-ng-model="contact.dateOfBirth"/>\n                <span data-ng-show="(forms.general.dateOfBirth.$touched || forms.general.$submitted) && forms.general.dateOfBirth.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END DATEOFBIRTH --\x3e\n\n              \x3c!-- START DESCRIPTION --\x3e\n              <div class="form-group">\n                <label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n                <textarea style="resize: vertical;" type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="contact.description"></textarea>\n              </div>\n              \x3c!-- END DESCRIPTION --\x3e\n            </div>\n            <div class="col-md-4">\n              \x3c!-- START URL --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$invalid}">\n                <label class="control-label">{{\'APPLICATION_URL\' | translate}}</label>\n                <input type="text" name="url" placeholder="{{\'APPLICATION_URL\' | translate}}" class="form-control" data-ng-model="contact.url"/>\n                <span data-ng-show="(forms.general.url.$touched || forms.general.$submitted) && forms.general.url.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END URL --\x3e\n\n              \x3c!-- START CREATED_BY --\x3e\n              <div class="form-group" data-ng-if="contact.id">\n                <label class="control-label">{{\'APPLICATION_CREATED_BY\' | translate}}</label>\n                <input type="text" name="createdBy" placeholder="{{\'APPLICATION_CREATED_BY\' | translate}}" class="form-control" data-ng-model="contact.User.name" disabled/>\n              </div>\n              \x3c!-- END CREATED_BY --\x3e\n            </div>\n            </div>\n            </div>\n            <button type="submit" class="btn btn-circle green-haze btn-sm" data-ng-disabled="forms.general.$invalid">{{contact.id ? \'APPLICATION_UPDATE\' : \'APPLICATION_SAVE\' | translate}}</button>\n          </div>\n          \x3c!-- END PORTLET --\x3e\n          \x3c!-- BEGIN PORTLET --\x3e\n          <div class="portlet light" data-ng-if="customFields.length">\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_FIELDS\' | translate}}</span>\n              </div>\n            </div>\n            <div class="portlet-body">\n              <div class="row">\n              <div class="col-md-4" data-ng-repeat="customField in customFields track by $index">\n                <div data-ng-if="customField.type==\'text\'" class="form-group" data-ng-class="{\'has-error\': (forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$invalid}">\n                  <label class="control-label">{{customField.alias}}<span data-ng-if="customField.required" class="required" aria-required="true">*</span></label>\n                  <input type="text" name="{{customField.name}}" placeholder="{{customField.alias}}" class="form-control" data-ng-model="contact[customField.name]" data-ng-required="customField.required"/>\n                  <span data-ng-show="(forms.general[customField.name].$touched || forms.general.$submitted) && forms.general[customField.name].$error.required" class="help-block help-block-error">\n                    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                  </span>\n                </div>\n                <div data-ng-if="customField.type==\'select\'" class="form-group" data-ng-class="{\'has-error\': forms.general[customField.name].$invalid && forms.general.$submitted}">\n                  <label class="control-label">{{customField.alias}}<span data-ng-if="customField.required" class="required" aria-required="true">*</span></label>\n                  <ui-select data-ng-model="contact[customField.name]" theme="bootstrap" name="{{customField.name}}" data-ng-disabled="disabled" data-ng-required="customField.required">\n                    <ui-select-match allow-clear placeholder="{{customField.alias}}">{{$select.selected.value}}</ui-select-match>\n                    <ui-select-choices repeat="choice.value as choice in customField.values | filter: $select.search">\n                      <div ng-bind-html="choice.value | highlight: $select.search"></div>\n                    </ui-select-choices>\n                  </ui-select>\n                  <span data-ng-show="forms.general[customField.name].$invalid && forms.general.$submitted" class="help-block help-block-error">\n                    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                  </span>\n                </div>\n              </div>\n            </div>\n              <button type="submit" class="btn btn-circle green-haze btn-sm" data-ng-disabled="forms.general.$invalid">{{contact.id ? \'APPLICATION_UPDATE\' : \'APPLICATION_SAVE\' | translate}}</button>\n            </div>\n        </div>\n        \x3c!-- END PORTLET --\x3e\n      </div>\n      <div class="tab-pane fade" id="tab_1_2{{contact.id || \'\'}}">\n          \x3c!-- BEGIN PORTLET --\x3e\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_CUSTOMER_JOURNEY\' | translate}}</span>\n              </div>\n              <ul class="nav nav-tabs">\n                <li class="active">\n                  <a href="#" data-target="#tab_2_1{{contact.id || \'\'}}" data-toggle="tab">{{ \'APPLICATION_DAILY\' | translate}}</a>\n                </li>\n                <li>\n                  <a href="#" data-target="#tab_2_2{{contact.id || \'\'}}" data-toggle="tab">{{ \'APPLICATION_HISTORY\' | translate}}</a>\n                </li>\n              </ul>\n            </div>\n            <div class="portlet-body">\n              \x3c!--BEGIN TABS--\x3e\n              <div class="tab-content">\n                <div class="tab-pane active" id="tab_2_1{{contact.id || \'\'}}">\n                  <div class="contact-portlet">\n                    <div class="actions">\n                      <div class="btn-group btn-group-devided" data-toggle="buttons">\n                        <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'phone\'}" data-ng-click="updateLog(\'daily\',\'phone\',\'general\',\'inbound\')">\n                        <input type="radio" class="toggle">{{\'APPLICATION_PHONES\' | translate}}</label>\n                        <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'email\'}" data-ng-click="updateLog(\'daily\',\'email\',\'general\',\'room\')">\n                        <input type="radio" class="toggle">{{\'APPLICATION_EMAILS\' | translate}}</label>\n                        <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'chat\'}" data-ng-click="updateLog(\'daily\',\'chat\',\'general\',\'room\')">\n                        <input type="radio" class="toggle">{{\'APPLICATION_CHAT\' | translate}}</label>\n                        <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'fax\'}" data-ng-click="updateLog(\'daily\',\'fax\',\'general\',\'room\')">\n                        <input type="radio" class="toggle">{{\'APPLICATION_FAX\' | translate}}</label>\n                        <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.show === \'sms\'}" data-ng-click="updateLog(\'daily\',\'sms\',\'general\',\'room\')">\n                        <input type="radio" class="toggle">{{\'APPLICATION_SMS\' | translate}}</label>\n                      </div><span data-ng-if="log.daily.show==\'phone\'"> |</span>\n                      <div class="btn-group btn-group-devided" data-toggle="buttons" data-ng-if="log.daily.show==\'phone\'">\n                        <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.type === \'inbound\'}" data-ng-click="updateLog(\'daily\',false,false,\'inbound\')">\n                        <input type="radio" class="toggle">{{\'APPLICATION_INBOUND\' | translate}}</label>\n                        <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.type === \'outbound\'}" data-ng-click="updateLog(\'daily\',false,\'general\',\'outbound\')">\n                        <input type="radio" class="toggle">{{\'APPLICATION_OUTBOUND\' | translate}}</label>\n                      </div><span data-ng-if="log.daily.show==\'phone\'"> |</span>\n                      <div class="btn-group btn-group-devided" data-toggle="buttons" data-ng-if="log.daily.show==\'phone\'">\n                        <label class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.detail === \'general\'}" data-ng-click="updateLog(\'daily\',false,\'general\',false)">\n                        <input type="radio" class="toggle">{{\'APPLICATION_GENERAL\' | translate}}</label>\n                        <label data-ng-if="log.daily.type===\'inbound\'" class="btn btn-transparent grey-salsa btn-circle btn-sm" data-ng-class="{\'active\':log.daily.detail === \'queue\'}" data-ng-click="updateLog(\'daily\',false,\'queue\',\'inbound\')">\n                        <input type="radio" class="toggle">{{\'APPLICATION_QUEUES\' | translate}}</label>\n                      </div>\n                    </div>\n                    <div data-ng-if="gridOptionsdaily" name="gridOptionsdaily"  ui-grid="gridOptionsdaily"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n                      <div class="watermark" ng-show="!gridOptionsdaily.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n                    </div>\n                  </div>\n              </div>\n                <div class="tab-pane" id="tab_2_2{{contact.id || \'\'}}">\n                  <div class="contact-portlet">\n                    <div class="actions">\n                      <div class="btn-group btn-group-devided" data-toggle="buttons">\n'+"                        <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'phone'}\" data-ng-click=\"updateLog('history','phone','general','inbound')\">\n                        <input type=\"radio\" class=\"toggle\">{{'APPLICATION_PHONES' | translate}}</label>\n                        <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'email'}\" data-ng-click=\"updateLog('history','email','general','room')\">\n                        <input type=\"radio\" class=\"toggle\">{{'APPLICATION_EMAILS' | translate}}</label>\n                        <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'chat'}\" data-ng-click=\"updateLog('history','chat','general','room')\">\n                        <input type=\"radio\" class=\"toggle\">{{'APPLICATION_CHAT' | translate}}</label>\n                        <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'fax'}\" data-ng-click=\"updateLog('history','fax','general','room')\">\n                        <input type=\"radio\" class=\"toggle\">{{'APPLICATION_FAX' | translate}}</label>\n                        <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.show === 'sms'}\" data-ng-click=\"updateLog('history','sms','general','room')\">\n                        <input type=\"radio\" class=\"toggle\">{{'APPLICATION_SMS' | translate}}</label>\n                      </div><span data-ng-if=\"log.history.show=='phone'\"> |</span>\n                      <div class=\"btn-group btn-group-devided\" data-toggle=\"buttons\" data-ng-if=\"log.history.show=='phone'\">\n                        <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.type === 'inbound'}\" data-ng-click=\"updateLog('history',false,false,'inbound')\">\n                        <input type=\"radio\" class=\"toggle\">{{'APPLICATION_INBOUND' | translate}}</label>\n                        <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.type === 'outbound'}\" data-ng-click=\"updateLog('history',false,'general','outbound')\">\n                        <input type=\"radio\" class=\"toggle\">{{'APPLICATION_OUTBOUND' | translate}}</label>\n                      </div><span data-ng-if=\"log.history.show=='phone'\"> |</span>\n                      <div class=\"btn-group btn-group-devided\" data-toggle=\"buttons\" data-ng-if=\"log.history.show=='phone'\">\n                        <label class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.detail === 'general'}\" data-ng-click=\"updateLog('history',false,'general',false)\">\n                        <input type=\"radio\" class=\"toggle\">{{'APPLICATION_GENERAL' | translate}}</label>\n                        <label data-ng-if=\"log.history.type==='inbound'\" class=\"btn btn-transparent grey-salsa btn-circle btn-sm\" data-ng-class=\"{'active':log.history.detail === 'queue'}\" data-ng-click=\"updateLog('history',false,'queue','inbound')\">\n                        <input type=\"radio\" class=\"toggle\">{{'APPLICATION_QUEUES' | translate}}</label>\n                      </div>\n                    </div>\n                    <div data-ng-if=\"gridOptionshistory\" name=\"gridOptionshistory\" ui-grid=\"gridOptionshistory\"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class=\"ui-grid\">\n                      <div class=\"watermark\" ng-show=\"!gridOptionshistory.data.length\">{{'MESSAGE_NO_RESULTS_AVAILABLE' | translate}}</div>\n                    </div>\n                  </div>\n                </div>\n              </div>\n              \x3c!--END TABS--\x3e\n            </div>\n          </div>\n          \x3c!-- END PORTLET --\x3e\n        </div>\n    \x3c!-- END PROFILE CONTENT --\x3e\n  </form>\n</div>\n  </div>\n</div>\n"),t.put("app/main/template/template.jscriptyTab.html",'<div class="portlet light bordered">\n    \x3c!-- BEGIN PORTLET BODY --\x3e\n    <div class="portlet-body">\n          <div class="row">\n              \x3c!-- BEGIN SIDEBAR --\x3e\n                <div  class="profile-sidebar" style="width: 250px;">\n                  \x3c!-- PORTLET MAIN --\x3e\n              \t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n              \t\t\t\t<div class="profile-usermenu">\n              \t\t\t\t\t<ul class="nav">\n              \t\t\t\t\t\t<li  ng-repeat= \'question in questions track by $index\' ng-class="{active: $index == count}">\n              \t\t\t\t\t\t\t<a  ng-click="setCurrentQuestion($index)" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-check"></i> <label ng-if="attribute.nodeName == \'label\'" ng-repeat=\'attribute in question.value.attributes track by $index\'>{{attribute.value}}</label>\n                            </a>\n              \t\t\t\t\t\t</li>\n              \t\t\t\t\t</ul>\n              \t\t\t\t</div>\n              \t\t\t\t\x3c!-- END SIDEBAR MENU --\x3e\n                    \x3c!-- END PORTLET MAIN --\x3e\n                </div>\n                  \x3c!-- END SIDEBAR --\x3e\n                  <div   class="profile-content">\n                        <div class="portlet light bordered">\n                          <div class="portlet-title">\n                            <div class="caption font-green-sharp">\n                              <i class="fa fa-edit font-green-sharp"></i>\n                              <span ng-if="attribute.nodeName ==\'label\'" ng-repeat=\'attribute in currentQuestion.value.attributes\' class="caption-subject">{{attribute.value}} </span>\n                            </div>\n\n                          </div>\n  \t\t\t\t\t\t\t\t\t\t    <div class="portlet-body form ">\n                            <div class="row">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-10 col-md-offset-1 ">\n                                  <form >\n                                    <div class="form-body" style="height: 400px; overflow-y: auto;overflow-x:hidden">\n\n                                       \x3c!-- Question  --\x3e\n                                       <div class="form-group" style="word-wrap: break-word;" >\n                                          <h3 ng-if="attribute.nodeName ==\'question\' || attribute.nodeName ==\'text\'" ng-repeat=\'attribute in currentQuestion.value.attributes\'>{{attribute.value}}</h3>\n                                        </div>\n                                        \x3c!-- Buttons  --\x3e\n\n                                        <div  ng-if ="(edge.source.id == currentQuestion.id) && edge.value" ng-repeat=\'edge in currentQuestion.edges track by $index\' class="row">\n                                          <div  class="col-md-8 col-md-offset-2">\n                                            <input    checked="checked"   type="radio"  ng-model="currentQuestion.button" ng-value="edge" >\n                                              <label  ng-show="(edge.source.id == currentQuestion.id) && edge.value">{{edge.value}}</label><br><br>\n                                          </div>\n                                        </div>\n                                               \x3c!-- Question Other Option  --\x3e\n\n                                         <div class="form-group" ng-if= "attribute.nodeName ==\'other\' && attribute.value " ng-repeat=\'attribute in currentQuestion.value.attributes track by $index\'>\n                                            <br>\n                                           <div class="col-md-2">\n                                             <label class="control-label">{{attribute.value}}</label>\n                                           </div>\n                                              <div class="col-md-8">\n                                                <textarea  style="overflow:auto" ng-model="currentQuestion.otheranswer" placeholder="Enter text" rows="8" cols="40" ></textarea>\n                                              </div>\n              \t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n                                              \x3c!--  Inputs --\x3e\n                                          <div class="row margin-top-10"  ng-repeat=\'question in currentQuestion.children track by $index\'>\n                                              <div class="col-md-10 col-md-offset-1">\n                                                <div  ng-repeat=\'attribute in question.value.attributes track by $index\'>\n                                                    <div  ng-switch="attribute.nodeName">\n                                                        <div ng-class="col-md-2" ng-switch-when="label">\n                                                          <label class="control-label" style=" display:block;word-break:break-all;" >{{attribute.value}}</label>\n                                                        </div>\n                                                        <div ng-class="attribute.value != \'checkbox\' ? \'col-md-10 pull-right\': \'col-md-2\'" ng-switch-when="type" ng-switch="attribute.value">\n                                                            <input class="form-control" ng-switch-when="text" type="text" ng-model="question.answer" />\n                                                            <input  class="form-control" ng-switch-when="number" type="number" ng-model="question.answer" />\n                                                            <input  class=" pull-right"  ng-switch-when="checkbox" type="checkbox" ng-model="question.answer" />\n                                                            \x3c!-- ng-true-value="\'Selected\'" ng-false-value="\'Not Selected\'" --\x3e\n                                                            <textarea  class="form-control" ng-switch-when="textarea" ng-model="question.answer" rows="8" cols="40"></textarea>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                              </div>\n                                          </div>\n                                          </div>\n                                          \x3c!-- actions --\x3e\n                                          <div class="form-actions">\n                                            <div  ng-switch="attribute.nodeName" class="btn-set pull-left">\n                                              <button class="btn red-haze "  ng-click="end()">\n                                                <span  class="fa fa-times" > Close</span>\n                                              </button>\n                                              \x3c!-- <button class="btn red-haze "  ng-click="end()">\n                                                <span ng-if="attribute.nodeName ==\'end\'" ng-repeat=\'attribute in currentQuestion.value.attributes\' class="fa fa-times" > Finish</span>\n                                              </button> --\x3e\n                                              <button class="btn blue-haze"  ng-show="count" ng-click="back()"><span class="glyphicon glyphicon-chevron-left"></span>Back</button>\n                                            </div>\n                                            <div class="btn-set pull-right">\n                                              <button  ng-show=" currentQuestion.button" class="btn blue-hoki"   ng-click="next(currentQuestion.button.target, currentQuestion.button.value)">Next<span class="glyphicon glyphicon-chevron-right" ></span></button>\n                                              <button ng-repeat=\'edge in currentQuestion.edges track by $index\' ng-show="(edge.source.id == currentQuestion.id) && !edge.value" class="btn blue-hoki"   ng-click="next(edge.target)">Next<span class="glyphicon glyphicon-chevron-right" ></span></button>\n                                            </div>\n                                          </div>\n                                      </form>\n                                  </div>\n                                </div>\n                            </div>\n                        </div>\n                 </div>\n        </div>\n  </div>\n  \x3c!-- END PORTLET BODY --\x3e\n</div>\n'),t.put("app/main/template/template.notification.html",'<div class="ui-notification alert alert-block" ng-class="class" style="width: 350px; margin-top: 50px;">\n  <h4 ng-show="title" class="alert-heading"><i class="{{icon}}"></i> {{title}}</h4>\n  <hr>\n  <p ng-bind-html="message"></p>\n  <br>\n  <p>\n    <a class="btn btn-success close-notification" href="#" ng-click="nAccept()"><i class="glyphicon glyphicon-ok"></i> {{acceptBtn}} </a>\n    <a class="btn btn-danger close-notification" href="#" ng-click="nReject()"><i class="glyphicon glyphicon-remove"></i> {{rejectBtn}} </a>\n  </p>\n</div>\n'),t.put("app/main/template/template.reportBuilderView.html",'<div class="alert alert-warning alert-group">\n        <div class="form-inline" data-ng-class="{\'has-error\': forms.report.$submitted && !group.rules.length}">\n            <select ng-options="o.name as o.name for o in operators" ng-model="group.operator" class="form-control input-sm"></select>\n            <button style="margin-left: 5px" type="button" ng-click="addCondition()" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-plus-sign"></span> {{\'APPLICATION_ADD_CONDITION\' | translate}}</button>\n            <button style="margin-left: 5px" type="button" ng-click="addGroup()" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-plus-sign"></span> {{\'APPLICATION_ADD_GROUP\' | translate}}</button>\n            <button style="margin-left: 5px" type="button" ng-click="removeGroup()" class="btn btn-sm btn-danger"><span class="glyphicon glyphicon-minus-sign"></span> {{\'APPLICATION_REMOVE_GROUP\' | translate}}</button>\n        </div>\n        <div class="group-conditions">\n            <div ng-repeat="rule in group.rules | orderBy:\'index\'" class="condition">\n                <div ng-switch="rule.hasOwnProperty(\'group\')">\n                    <div ng-switch-when="true">\n                        <report-builder group="rule.group" fields="fields" forms="forms"></report-builder>\n                    </div>\n                    <div ng-switch-default="ng-switch-default">\n                        <div class="row">\n                          <div class="col-md-2" data-ng-class="{\'has-error\': forms.report.$submitted && !rule.field}">\n                          <ui-select data-ng-model="rule.field" theme="bootstrap" dynamic-name="randomName()" required>\n                            <ui-select-match placeholder="" ><span ng-bind-html="$select.selected.name"></span></ui-select-match>\n                            <ui-select-choices repeat="field.value as field in fields | filter: $select.search">\n                              <div ng-bind-html="field.name | highlight: $select.search"></div>\n                            </ui-select-choices>\n                          </ui-select>\n                          <span data-ng-show="forms.report.$submitted && !rule.field" class="help-block help-block-error">\n                            <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                          </span>\n                        </div>\n                        <div class="col-md-1">\n                          <ui-select data-ng-model="rule.condition" theme="bootstrap" dynamic-name="randomName()" data-ng-change="inputIsRequired(rule)" data-ng-init="inputIsRequired(rule)">\n                            <ui-select-match placeholder="">{{$select.selected.name}}</ui-select-match>\n                            <ui-select-choices repeat="condition.name as condition in conditions | filter: $select.search">\n                              <div ng-bind-html="condition.name | highlight: $select.search"></div>\n                            </ui-select-choices>\n                          </ui-select>\n                        </div>\n                          <div class="col-md-2" data-ng-class="{\'has-error\': forms.report.$submitted && !rule.value}" data-ng-if="rule.required">\n                            <input type="text" ng-model="rule.value" class="form-control" dynamic-name="randomName()" data-ng-required="requiredInput"/>\n                            <span data-ng-show="forms.report.$submitted && !rule.value" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n                          </div>\n                            <button style="margin-left: 5px" ng-click="removeCondition($index)" class="btn btn-sm btn-danger" type="button"><span class="glyphicon glyphicon-minus-sign"></span></button>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n'),t.put("app/main/template/template.tigerDialDisposal.html",'<div class="row margin-top-20 contact-tab-container">\n  <div class="portlet light bordered">\n    <div class="row portfolio-block" data-ng-if="workspace.spooler.destcalleridnum && workspace.spooler.queue && workspace.spooler.agentconnectAt">\n      <div class="col-md-2">\n        <div class="portfolio-text">\n          <img src="assets/images/media/outboundroute.png" class="td-disposal-logo" alt=""/>\n        </div>\n      </div>\n      <div class="col-md-3 portfolio-stat">\n        <div>{{\'APPLICATION_CALLED_NUMBER\' | translate}} </div>\n        <p>  {{workspace.spooler.destcalleridnum}} </p>\n      </div>\n      <div class="col-md-3 portfolio-stat">\n        <div>{{\'APPLICATION_QUEUE\' | translate}} </div>\n        <p>  {{workspace.spooler.queue}} </p>\n      </div>\n      <div class="col-md-3 portfolio-stat">\n        <div>{{\'APPLICATION_DATE\' | translate}} </div>\n        <p>  {{workspace.spooler.agentconnectAt | date:\'dd/MM/yyyy HH:mm:ss\'}} </p>\n      </div>\n</div>\n    <div class="portlet-title">\n      <div class="caption font-blue-hoki">\n        <span class="caption-subject">{{ workspace.spooler.calleridname }} {{ \'APPLICATION_MOTION_DIALER\' | translate }} {{ \'APPLICATION_DISPOSITION\' | translate }} </span>\n      </div>\n    </div>\n    <div class="portlet-body">\n      <div class="padding-bottom row">\n        <div class="col-md-12" data-ng-form="tdForm">\n          \x3c!-- START RETRIEVE --\x3e\n          <div class="form-group" data-ng-class="{\'has-error\': (tdForm.retrieve.$touched || tdForm.$submitted) && tdForm.retrieve.$invalid}">\n            <label class="control-label">{{ \'APPLICATION_STATUS\' | translate }}<span class="required" aria-required="true">*</span></label>\n            <select name="retrieve" class="form-control" data-ng-model="entitySpooler.retrieve" required>\n              <option value="CLOSED">CLOSE</option>\n              <option value="OPEN">OPEN</option>\n              <option value="BLACK_LIST">BLACKLIST</option>\n              <option value="PLANNED">PLANNING</option>\n              <option value="PLANNED_PEER">PLANNING AGENT</option>\n            </select>\n            <span data-ng-show="(tdForm.retrieve.$touched || tdForm.$submitted) && tdForm.retrieve.$error.required" class="help-block help-block-error">\n              <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n            </span>\n          </div>\n          \x3c!-- END RETRIEVE --\x3e\n          \x3c!-- START PLANNING DATE --\x3e\n          <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (tdForm.date.$touched || tdForm.$submitted) && tdForm.date.$invalid}">\n            <label class="control-label">PLANNING DATE<span class="required" aria-required="true">*</span></label>\n            <uib-datepicker name="date" ng-model="entitySpooler.planningtime" required data-ng-init="entitySpooler.planningtime = moment();"></uib-datepicker>\n            <span data-ng-show="(tdForm.date.$touched || tdForm.$submitted) && tdForm.date.$error.required" class="help-block help-block-error">\n              <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n            </span>\n          </div>\n          \x3c!-- END PLANNING DATE --\x3e\n          \x3c!-- START PLANNING TIME --\x3e\n          <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (tdForm.time.$touched || tdForm.$submitted) && tdForm.time.$invalid}">\n            <label class="control-label">PLANNING TIME<span class="required" aria-required="true">*</span></label>\n            <uib-timepicker name="time" ng-model="entitySpooler.planningtime" required show-meridian="false" show-seconds="false"></uib-timepicker>\n            <span data-ng-show="(tdForm.time.$touched || tdForm.$submitted) && tdForm.time.$error.required" class="help-block help-block-error">\n              <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n            </span>\n          </div>\n          \x3c!-- END PLANNING TIME --\x3e\n          \x3c!-- START PLANNING PEER --\x3e\n          <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (tdForm.agent.$touched || tdForm.$submitted) && tdForm.agent.$invalid}">\n            <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n            <input name="agent" class="form-control" data-ng-model="entitySpooler.planningpeer" readonly required>\n            <span data-ng-show="(tdForm.agent.$touched || tdForm.$submitted) && tdForm.agent.$error.required" class="help-block help-block-error">\n              <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n            </span>\n          </div>\n          \x3c!-- END PLANNING PEER --\x3e\n          <button type="button" class="btn btn-circle green-haze btn-sm" data-ng-disabled="!tdForm.$valid" data-ng-click="save()">{{\'APPLICATION_SAVE\' | translate}}</button>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n'),t.put("app/main/template/template.webPopup.html",'<div class="alert" ng-class="class">\n  <h3 data-ng-show="workspace.data.subject" class="alert-heading"><i class="{{icon}}"></i>{{workspace.data.subject}}</h3>\n  <hr data-ng-show="workspace.data.subject">\n  <div ng-bind-html="html"></div>\n</div>\n'),t.put("app/market/market.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-handbag"></i>\n\t\t\t\t\t\t<a href="/market">Market Place</a>\n          </li>\n        </ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n  <div class="col-md-12">\n    \x3c!-- Our Integration --\x3e\n    <div class="headline">\n      <h3>Our Integrations</h3>\n    </div>\n    <div class="row thumbnails" data-ng-repeat="group in groupedIntegration">\n      <div class="col-md-3" data-ng-repeat="integration in group">\n        <div class="our-integrations">\n          <h3> {{integration.name}} <small> {{integration.author}}</small></h3>\n          <img data-ng-src="{{integration.logo}}" alt="{{integration.name}}" class="img-responsive"/>\n          <div class="integration-info" data-ng-if="!integration.downloading">\n            <p>\n              {{integration.description}}\n            </p>\n            <div class="pull-right">\n\t            <a data-ng-disabled="isProgressing" data-ng-if="!integration.active" data-ng-click="installIntegration(integration)" href="#" class="btn btn-xs green-meadow">Install <i class="fa fa-download"></i></a>\n\t\t\t\t\t\t\t<a data-ng-disabled="isProgressing" data-ng-if="integration.active" data-ng-click="uninstallIntegration(integration)" href="#" class="btn btn-xs red-sunglo">Uninstall <i class="fa fa-trash"></i></a>\n\t            <a href="{{integration.link}}" class="btn btn-xs grey-cascade" target="_blank">More <i class="fa fa-link"></i></a>\n            </div>\n          </div>\n\t\t\t\t\t<div class="integration-info" data-ng-if="integration.downloading">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<uib-progressbar class="progress-striped active" value="percentage" type="success"><i style="color:black;">{{status}}</i></uib-progressbar>\n\t\t\t\t\t\t</div>\n          </div>\n        </div>\n      </div>\n\t\t</div>\n    \x3c!--/thumbnails--\x3e\n    \x3c!-- //End Meer Our Team --\x3e\n  </div>\n</div>\n'),t.put("app/motiondialer/blacklist/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START PHONE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.phone.$touched || form.$submitted) && form.phone.$invalid}">\n      <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone" required/>\n      <span data-ng-show="(form.phone.$touched || form.$submitted) && form.phone.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END PHONE --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/motiondialer/blacklist/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-control-forward"></i>\n\t\t\t\t\t<a href="#">Motion Dialer</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n        <li>\n          <i class="icon-doc"></i>\n          <a href="#">{{ \'APPLICATION_BLACKLIST\' | translate }}</a>\n        </li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-doc font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_BLACKLIST\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONTACT\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<span class="btn default btn-file">\n\t\t\t\t\t\t\t<span class="fileinput-new"><i class="icon-cloud-upload"></i> {{\'APPLICATION_IMPORT_FROM_CSV\' | translate}}</span>\n\t\t\t\t\t\t\t<input type="file" nv-file-select="" uploader="uploader"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/motiondialer/blacklist/list/list.import.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_IMPORT_FROM_CSV\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START PHONE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.phone.$touched || form.$submitted) && form.phone.$invalid}">\n      <label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n      <ui-select data-ng-model="item.phone" theme="bootstrap" name="phone" data-ng-disabled="disabled" required>\n        <ui-select-match allow-clear placeholder="{{ \'APPLICATION_PHONE\' | 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    </div>\n    \x3c!-- END PHONE --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\n    <div class="form-group">\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    </div>\n    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n  \x3c!-- START PROGRESS --\x3e\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-danger" role="progressbar" ng-style="{ \'width\': import.fail + \'%\' }"></div>\n    </div>\n    <div class="has-error" data-ng-if="noPhone.length">\n      <span class="help-block help-block-error">\n        {{\'APPLICATION_CONTACTS_WITHOUT_PHONE\' | translate}}: {{noPhone}}\n      </span>\n    </div>\n    <div class="has-error" data-ng-if="duplicates.length">\n      <span class="help-block help-block-error">\n        {{\'APPLICATION_DUPLICATED_CONTACTS\' | translate}}: {{duplicates}}\n      </span>\n    </div>\n  </div>\n  \x3c!-- END PROGRESS --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="start()" ng-disabled="form.$invalid || !form.phone || 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'),t.put("app/motiondialer/info/view/view.about.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ABOUT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n        <form class="form-horizontal form-row-seperated">\n          <div class="form-body">\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Specification</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="{{properties.SpecificationTitle}} ({{properties.SpecificationVersion}}) - {{properties.SpecificationVendor}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Implementation</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="{{properties.ImplementationTitle}} ({{properties.ImplementationVersion}}) - {{properties.ImplementationVendor}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Start Time</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" data-ng-model="properties.StartTime" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Uptime</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" data-ng-model="properties.Uptime" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Operating System</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="{{properties.OsName}} {{properties.OsVersion}} {{properties.OsArch}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Processors</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" data-ng-model="properties.Processors" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">System Start Time</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" data-ng-model="properties.SystemStartTime" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">System Uptime</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" data-ng-model="properties.SystemUptime" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">File System</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="Usable: {{properties.FileSystem.Usable | number:2}} Free: {{properties.FileSystem.Free | number:2}} Total: {{properties.FileSystem.Total | number:2}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n          </div>\n        </form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/motiondialer/info/view/view.details.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_DETAILS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n        <form class="form-horizontal form-row-seperated">\n          <div class="form-body">\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Java Specification Name</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" data-ng-model="properties.JavaSpecificationName" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Java Home</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" data-ng-model="properties.JavaHome" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">JavaVm</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="{{properties.JavaVmName}} ({{properties.JavaVmVersion}} {{properties.JavaVmInfo}}) - {{properties.JavaVmVendor}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Java</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="Java ({{properties.JavaVersion}} {{properties.JavaClassVersion}}) - {{properties.JavaVendor}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Java Runtime</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="{{properties.JavaRuntimeName}} ({{JavaRuntimeVersion}})" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Java Rmi Server Hostname</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="{{properties.JavaRmiServerHostname}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">User</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="{{properties.UserName}} {{properties.UserLanguage}}-{{properties.UserCountry}} {{properties.UserTimezone}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">User Home</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="{{properties.UserHome}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n            \x3c!-- START --\x3e\n            <div class="form-group">\n              <label class="control-label col-md-3">Hostname</label>\n              <div class="col-md-9">\n                <input type="text" class="form-control" value="{{properties.Hostname}}" disabled/>\n                <span class="help-block">\n                </span>\n              </div>\n            </div>\n            \x3c!-- END --\x3e\n          </div>\n        </form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/motiondialer/info/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getProperties()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-control-forward"></i>\n\t\t\t\t\t<a href="#">Motion Dialer</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-info"></i>\n\t\t\t\t\t<a href="/motiondialer/info/view/properties">{{ \'APPLICATION_INFO\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="variable" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/template.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ \'APPLICATION_INFO\' | translate }}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.motiondialer.info.view.about\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/motiondialer/info/view/about">\n\t\t\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_ABOUT\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.motiondialer.info.view.details\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/motiondialer/info/view/details">\n\t\t\t\t\t\t\t<i class="icon-support"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_DETAILS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.motiondialer.info.view.logs\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/motiondialer/info/view/logs">\n\t\t\t\t\t\t\t<i class="icon-list"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_LOGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/motiondialer/info/view/view.logs.html",'<div class="row" data-ng-init="initLogs()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_LOGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<button class="btn btn-default float-right" href="#" data-ng-click="initLogs()" data-ng-disabled="loading">\n\t\t\t\t\t\t<i class="icon-refresh"></i>\n\t\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="table1" name="table1" ui-grid-resize-columns ui-grid-pagination ui-grid-auto-resize ui-grid-exporter class="ui-grid">\n\t\t\t\t\t<div class="watermark" data-ng-show="!table1.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t\t<span us-spinner spinner-key="logs-spinner" spinner-start-active="true"></span>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/motiondialer/process/list/list.create.queue.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_PROCESS\' | translate }} {{\'APPLICATION_QUEUE\' | translate}}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" ng-init="initModal()" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n    \x3c!-- START LIST --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.list.$touched || form.$submitted) && form.list.$invalid}">\n      <label class="control-label">{{\'APPLICATION_LIST\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <select name="list" class="form-control" data-ng-model="item.list" ng-options="list.name for list in lists" required>\n      </select>\n      <span data-ng-show="(form.list.$touched || form.$submitted) && form.list.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END LIST --\x3e\n    \x3c!-- START QUEUE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.queue.$touched || form.$submitted) && form.queue.$invalid}">\n      <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <select name="queue" class="form-control" data-ng-model="item.queue" ng-options="queue.name for queue in queues" required>\n      </select>\n      <span data-ng-show="(form.queue.$touched || form.$submitted) && form.queue.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END QUEUE --\x3e\n    \x3c!-- START TIMEOUT QUEUE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.timeout.$touched || form.$submitted) && form.timeout.$invalid}">\n      <label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="number" min="1" name="timeout" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}}" class="form-control" data-ng-model="item.timeout" required/>\n      <span data-ng-show="(form.timeout.$touched || form.$submitted) && form.timeout.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n      <span data-ng-show="form.timeout.$error.max || form.timeout.$error.min" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END MAX RETRIES --\x3e\n    \x3c!-- START TRUNK --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.device.$touched || form.$submitted) && form.device.$invalid}">\n      <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <select name="device" class="form-control" data-ng-model="item.device" ng-options="trunk.name for trunk in trunks" required>\n        <option value="fake">{{\'APPLICATION_SELECT\' | translate}} {{\'APPLICATION_TRUNK\' | translate}}</option>\n      </select>\n      <span data-ng-show="(form.queue.$touched || form.$submitted) && form.queue.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TRUNK --\x3e\n    \x3c!-- START FETCH SORT --\x3e\n    <div class="form-group">\n      <label class="control-label">{{\'APPLICATION_FETCH_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <select name="fetch_sort" class="form-control" data-ng-model="item.fetch_sort" ng-options="fetch_sort for fetch_sort in [\'ASC\', \'DESC\']" required>\n      </select>\n      <span class="help-block">{{\'DESCRIPTION_TD_FETCH_SORT\' | translate}}</span>\n    </div>\n    \x3c!-- END  FETCH SORT--\x3e\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/motiondialer/process/list/list.create.square.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_PROCESS\' | translate }} {{ \'APPLICATION_CALLYSQUARE\' | translate | trusted}}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" ng-init="initModal()" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n    \x3c!-- START LIST --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.list.$touched || form.$submitted) && form.list.$invalid}">\n      <label class="control-label">{{\'APPLICATION_LIST\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <select name="list" class="form-control" data-ng-model="item.list" ng-options="list.name for list in lists" required>\n      </select>\n      <span data-ng-show="(form.list.$touched || form.$submitted) && form.list.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END LIST --\x3e\n    \x3c!-- START PROJECT --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.project.$touched || form.$submitted) && form.project.$invalid}">\n      <label class="control-label">{{\'APPLICATION_PROJECT\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <select name="project" class="form-control" data-ng-model="item.project" ng-options="project.name for project in projects" required>\n      </select>\n      <span data-ng-show="(form.project.$touched || form.$submitted) && form.project.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END PROJECT --\x3e\n    \x3c!-- START TRUNK --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.device.$touched || form.$submitted) && form.device.$invalid}">\n      <label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <select name="device" class="form-control" data-ng-model="item.device" ng-options="trunk.name for trunk in trunks" required>\n        <option value="fake">{{\'APPLICATION_SELECT\' | translate}} {{\'APPLICATION_TRUNK\' | translate}}</option>\n      </select>\n      <span data-ng-show="(form.device.$touched || form.$submitted) && form.device.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END TRUNK --\x3e\n    \x3c!-- START FETCH SORT --\x3e\n    <div class="form-group">\n      <label class="control-label">{{\'APPLICATION_FETCH_SORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <select name="fetch_sort" class="form-control" data-ng-model="item.fetch_sort" ng-options="fetch_sort for fetch_sort in [\'ASC\', \'DESC\']" required>\n      </select>\n      <span class="help-block">{{\'DESCRIPTION_TD_FETCH_SORT\' | translate}}</span>\n    </div>\n    \x3c!-- END  FETCH SORT--\x3e\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/motiondialer/process/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-control-forward"></i>\n\t\t\t\t\t<a href="#">Motion Dialer</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n        <li>\n          <i class="icon-settings"></i>\n          <a href="#">{{ \'APPLICATION_PROCESSES\' | translate }}</a>\n        </li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_PROCESSES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle dropdown-toggle" data-toggle="dropdown" data-close-others="true">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROCESS\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<ul class="dropdown-menu pull-right">\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="#" ng-click="createProcessQueue()">{{ \'APPLICATION_QUEUE\' | translate }}</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="#" ng-click="createProcessSquare()">{{ \'APPLICATION_CALLYSQUARE\' | translate | trusted}}</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/motiondialer/process/view/view.create.interval.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_INTERVAL\' | translate }} </h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n    \x3c!-- START TIME --\x3e\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="splittedInterval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="splittedInterval.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="splittedInterval.alwaysTime"><uib-timepicker  name="t_to" data-ng-model="splittedInterval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n        <label class="control-label pointer-cursor"><input type="checkbox" data-ng-model="splittedInterval.alwaysTime">{{\'APPLICATION_ALWAYS\' | translate}}</label>\n      </div>\n    </div>\n    \x3c!-- END TIME --\x3e\n\n    \x3c!-- START WEEKDAY --\x3e\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="splittedInterval.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="splittedInterval.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    \x3c!-- END WEEKDAY --\x3e\n\n    \x3c!-- START MONTHDAY --\x3e\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="splittedInterval.md_from" theme="bootstrap" name="md_from">\n          <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n          <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n            {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n          </ui-select-choices>\n        </ui-select>\n        <span class="input-group-addon">to</span>\n        <ui-select data-ng-model="splittedInterval.md_to" theme="bootstrap" name="md_to">\n          <ui-select-match>{{$select.selected === \'always\' ? \'APPLICATION_ALWAYS\' : $select.selected | translate}}</ui-select-match>\n          <ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search">\n            {{monthDay === \'always\' ? \'APPLICATION_ALWAYS\' : monthDay | translate}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n    </div>\n    \x3c!-- END MONTHDAY --\x3e\n\n    \x3c!-- START MONTH --\x3e\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="splittedInterval.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.monthsNumber | 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="splittedInterval.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.monthsNumber | filter: $select.search">\n            {{month.name | translate}}\n          </ui-select-choices>\n        </ui-select>\n      </div>\n    </div>\n    \x3c!-- END MONTH --\x3e\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/motiondialer/process/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getProcess()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-control-forward"></i>\n\t\t\t\t\t<a href="#">Motion Dialer</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t<a href="/motiondialer/processes/list">{{ \'APPLICATION_PROCESSES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="process.name" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="process.name">\n\t\t\t\t\t<a href="#">{{process.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/account.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{process.name}} ({{ (process.status === \'RUN\') ? \'RUNNING...\' : \'STOPPED\' }})\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t<a href="#" data-ng-click="goToContacts(process.list.id_source)">{{ \'APPLICATION_LIST\' | translate}} {{process.list ? process.list.name : \'#\'+process.id_list}} ({{process.fetch_sort}})</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n        <div class="profile-userbuttons">\n\t\t\t\t\t<button data-ng-show="process.status" type="button" class="btn btn-circle btn-sm" data-ng-class="{\'green-meadow\': process.status == \'STOP\', \'red-sunglo\': process.status == \'RUN\'}" data-ng-click="runOrStop()">{{ (process.status === \'RUN\') ? \'STOP\' : \'RUN\' }}</button>\n        </div>\n\t\t\t\t<div class="profile-userbuttons">\n\t\t\t\t\t<button style="cursor:default" data-ng-show="process.runtime" type="button" class="btn btn-circle btn-sm" data-ng-class="{\'green-meadow\': process.runtime.completed, \'yellow-crusta\': !process.runtime.completed}">{{process.runtime.completed ? \'Complete\' : \'Incomplete\'}}</button>\n\t\t\t\t\t<button style="cursor:default" class="btn btn-circle btn-sm" data-ng-class="{\'green-meadow\': !process.runtime.outOfTime, \'red-sunglo\': process.runtime.outOfTime}"><i data-ng-class="{\'icon-clock\': !process.runtime.outOfTime, \'icon-close\': process.runtime.outOfTime}"></i> {{process.runtime.outOfTime ? \'Out of time\' : \'On time\'}}</button>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n            <li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.overview\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/motiondialer/processes/view/{{process.id}}/overview">\n\t\t\t\t\t\t\t<i class="icon-home"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_OVERVIEW\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/motiondialer/processes/view/{{process.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.intervals\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/motiondialer/processes/view/{{process.id}}/intervals">\n\t\t\t\t\t\t\t<i class="icon-clock"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_INTERVALS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.motiondialer.processes.view.spooler\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/motiondialer/processes/view/{{process.id}}/spooler">\n\t\t\t\t\t\t\t<i class="icon-options-vertical"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SPOOLER\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/motiondialer/process/view/view.intervals.html",'<div class="row" data-ng-init="initIntervals()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-clock  theme-font"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROCESS\' | translate}} {{ \'APPLICATION_INTERVALS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_allow" data-toggle="tab">{{ \'APPLICATION_ALLOW\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_disallow" data-toggle="tab">{{ \'APPLICATION_DISALLOW\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- ALLOW TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_allow">\n\t\t\t\t\t\t<button class="btn green-jungle margin-bottom-10" ng-click="createInterval(true)">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_INTERVAL\' | translate }} ({{ \'APPLICATION_ALLOW\' | translate }})\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<table class="table table-bordered table-hover">\n\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t<tr role="row" class="heading">\n\t\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t\t {{ \'APPLICATION_VALUE\' | translate}}\n\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t\t {{ \'APPLICATION_ACTIONS\' | translate}}\n\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr ng-repeat="interval in process.intervals track by $index">\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t{{interval}}\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<button href="javascript:;" data-ng-click="editInterval(true, interval, $index)" class="btn blue-hoki btn-sm"> {{ \'APPLICATION_EDIT\' | translate}} </button>\n\t\t\t\t\t\t\t\t\t<button data-ng-if="$index > 0" data-ng-click="deleteInterval(interval, $index, true)" class="btn red-sunglo btn-sm"> {{ \'APPLICATION_DELETE\' | translate}} </button>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr ng-show="!process.intervals.length"><td colspan=2>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</td></tr>\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ALLOW TAB --\x3e\n\t\t\t\t\t\x3c!-- DISALLOW TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_disallow">\n\t\t\t\t\t\t<button class="btn green-jungle margin-bottom-10" ng-click="createInterval(false)">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_INTERVAL\' | translate }} ({{ \'APPLICATION_DISALLOW\' | translate }})\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<table class="table table-bordered table-hover">\n\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t<tr role="row" class="heading">\n\t\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t\t {{ \'APPLICATION_VALUE\' | translate}}\n\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t\t {{ \'APPLICATION_ACTIONS\' | translate}}\n\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr ng-repeat="interval in process.not_intervals track by $index">\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t{{interval}}\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<button href="javascript:;" data-ng-click="editInterval(false, interval)" class="btn blue-hoki btn-sm"> {{ \'APPLICATION_EDIT\' | translate}} </button>\n\t\t\t\t\t\t\t\t\t<button href="javascript:;" data-ng-click="deleteInterval($index, interval, false)" class="btn red-sunglo btn-sm"> {{ \'APPLICATION_DELETE\' | translate}} </button>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr ng-show="!process.not_intervals.length"><td colspan=2>{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</td></tr>\n\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DISALLOW TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/motiondialer/process/view/view.overview.html",'<div class="row" data-ng-init="getSummary()">\n  <div class="col-md-12">\n    \x3c!-- BEGIN PORTLET --\x3e\n    <div class="portlet light">\n      <div class="portlet-title tabbable-line">\n        <div class="caption caption-md">\n          <i class="icon-bar-chart theme-font hide"></i>\n          <span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_OVERVIEW\' | translate}}</span>\n        </div>\n        <ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_summary" data-toggle="tab">{{ \'APPLICATION_SUMMARY\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li ng-show="process.runtime">\n\t\t\t\t\t\t<a href="#" data-target="#tab_advanced" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n      </div>\n      <div class="portlet-body">\n        <div class="tab-content">\n\t\t\t\t\t\x3c!-- START SUMMARY TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_summary">\n            \x3c!-- BEGIN UI-GRID SPINNER --\x3e\n    \t\t\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n    \t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n            <div class="row number-stats margin-bottom-30">\n              <div class="col-md-6 col-sm-6 col-xs-6">\n                <div class="stat-left">\n                  <div class="stat-number">\n                    <div class="title">\n                       {{\'APPLICATION_TOTAL\' | translate}}\n                    </div>\n                    <div class="number">\n                       {{total}}\n                    </div>\n                  </div>\n                </div>\n              </div>\n              <div class="col-md-6 col-sm-6 col-xs-6">\n                <div class="stat-right">\n                  <div class="stat-number">\n                    <div class="title">\n                       {{\'APPLICATION_FRESH\' | translate}}\n                    </div>\n                    <div class="number">\n                       {{process.runtime.fresh || 0}}\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n            <div class="table-scrollable table-scrollable-borderless">\n              <table class="table table-hover table-light">\n              <thead>\n              <tr class="uppercase">\n                <th>\n                   {{\'APPLICATION_STATUS\' | translate}}\n                </th>\n                <th>\n                   {{\'APPLICATION_VALUE\' | translate}}\n                </th>\n                <th>\n                   {{\'APPLICATION_RATE\' | translate}}\n                </th>\n                <th>\n                   {{\'APPLICATION_DESCRIPTION\' | translate}}\n                </th>\n              </tr>\n              </thead>\n              <tr ng-repeat="sum in summary">\n                <td>\n                  <a href="#" class="primary-link">{{\'APPLICATION_TD_\' + sum[0] | translate}}</a>\n                </td>\n                <td>\n                   {{sum[1]}}\n                </td>\n                <td>\n                  <span class="bold theme-font">{{ total ? ((sum[1]/total)*100).toFixed(2) : 0 }}%</span>\n                </td>\n                <td>\n                   {{\'DESCRIPTION_TD_\' + sum[0] | translate}}\n                </td>\n              </tr>\n              </table>\n            </div>\n          </div>\n          \x3c!-- END SUMMARY TAB --\x3e\n          \x3c!-- START SUMMARY TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_advanced" ng-show="process.runtime">\n            <div class="row number-stats margin-bottom-30">\n              <div class="col-md-6 col-sm-6 col-xs-6">\n                <div class="stat-left">\n                  <div class="stat-number">\n                    <div class="title">\n                       {{\'APPLICATION_SUCCESS\' | translate}}\n                    </div>\n                    <div class="number">\n                       {{process.runtime.success || 0}}\n                    </div>\n                  </div>\n                </div>\n              </div>\n              <div class="col-md-6 col-sm-6 col-xs-6">\n                <div class="stat-right">\n                  <div class="stat-number">\n                    <div class="title">\n                       {{\'APPLICATION_FAILED\' | translate}}\n                    </div>\n                    <div class="number">\n                       {{process.runtime.failed || 0}}\n                    </div>\n                  </div>\n                </div>\n              </div>\n            </div>\n            <div class="table-scrollable table-scrollable-borderless">\n              <table class="table table-hover table-light">\n              <thead>\n              <tr class="uppercase">\n                <th>\n                   {{\'APPLICATION_STATUS\' | translate}}\n                </th>\n                <th>\n                   {{\'APPLICATION_VALUE\' | translate}}\n                </th>\n                <th>\n                   {{\'APPLICATION_DESCRIPTION\' | translate}}\n                </th>\n              </tr>\n              </thead>\n              <tr ng-repeat="(key, value) in process.runtime">\n                <td>\n                  <a href="#" class="primary-link">{{\'APPLICATION_\' + key.toUpperCase() | translate}}</a>\n                </td>\n                <td ng-switch on="key">\n                   <span ng-switch-when="avgDial">{{value | number:2}}</span>\n                   <span ng-switch-when="avgDuration">{{value | number:2}}</span>\n                   <span ng-switch-when="avgProgress">{{value | number:2}}</span>\n                   <span ng-switch-when="completed">{{((value)? \'APPLICATION_YES\' : \'APPLICATION_NO\') | translate}}</span>\n                   <span ng-switch-when="outOfTime">{{((value)? \'APPLICATION_YES\' : \'APPLICATION_NO\') | translate}}</span>\n                   <span ng-switch-default>{{value}}</span>\n                </td>\n                <td>\n                   {{\'DESCRIPTION_TD_\' + key.toUpperCase() | translate}}\n                </td>\n              </tr>\n              </table>\n            </div>\n          </div>\n          \x3c!-- END SUMMARY TAB --\x3e\n        </div>\n      </div>\n    </div>\n    \x3c!-- END PORTLET --\x3e\n  </div>\n</div>\n'),t.put("app/motiondialer/process/view/view.run.process.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_STATUS\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <p>\n    Do you want to {{ status }} the process?\n  </p>\n</div>\n<div class="modal-footer">\n  <button class="btn default green-meadow" type="button" ng-click="yes()">{{ \'APPLICATION_YES\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="no()">{{ \'APPLICATION_NO\' | translate }}</button>\n</div>\n'),t.put("app/motiondialer/process/view/view.settings.html",'<div class="row" data-ng-init="initSettings()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROCESS\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_general" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_channel" data-toggle="tab">{{ \'APPLICATION_CHANNEL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_advanced" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_status" data-toggle="tab">{{ \'APPLICATION_STATUS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_general">\n\t\t\t\t\t\t<form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="process.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START QUEUE --\x3e\n\t\t\t\t\t    <div data-ng-show="process.queue != \'none\'" class="form-group" data-ng-class="{\'has-error\': (form.queue.$touched || form.$submitted) && form.queue.$invalid}">\n\t\t\t\t\t      <label class="control-label">{{\'APPLICATION_QUEUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="process.queue" name="queue" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="queue.name as queue in queues | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="queue.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t      <span data-ng-show="(form.queue.$touched || form.$submitted) && form.queue.$error.required" class="help-block help-block-error">\n\t\t\t\t\t        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t      </span>\n\t\t\t\t\t    </div>\n\t\t\t\t\t    \x3c!-- END QUEUE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START MAX RETRIES --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.max_retries.$touched || form.$submitted) && form.max_retries.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAX_RETRIES\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" max="100" name="max_retries" placeholder="{{\'APPLICATION_MAX_RETRIES\' | translate}}" class="form-control" data-ng-model="process.max_retries" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_MAX_RETRIES\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.max_retries.$touched || form.$submitted) && form.max_retries.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.max_retries.$error.max || form.max_retries.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MAX RETRIES --\x3e\n\t\t\t\t\t\t\t\x3c!-- START RETRY TIME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.retry_time.$touched || form.$submitted) && form.retry_time.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RETRY_TIME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="retry_time" placeholder="{{\'APPLICATION_RETRY_TIME\' | translate}}" class="form-control" data-ng-model="process.retry_time" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_RETRY_TIME\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.retry_time.$touched || form.$submitted) && form.retry_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.retry_time.$error.max || form.retry_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RETRY TIME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START RETRY TIME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.wait_time.$touched || form.$submitted) && form.wait_time.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_WAIT_TIME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1000" name="wait_time" placeholder="{{\'APPLICATION_WAIT_TIME\' | translate}}" class="form-control" data-ng-model="process.wait_time" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_WAIT_TIME\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.wait_time.$touched || form.$submitted) && form.wait_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.wait_time.$error.max || form.wait_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END WAIT TIME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START AUTO CLOSED --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTO_CLOSED\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="process.auto_closed"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-animate="false">\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_AUTO_CLOSED\' | translate}}</span>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END AUTO CLOSED --\x3e\n\t\t\t\t\t\t\t\x3c!--\tSTART WEIGHT --\x3e\n\t\t\t\t\t\t\t\x3c!-- END WEIGHT --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTODIAL_LEVEL\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<slider ng-model="process.weight" min="0" step="1" max="50"></slider>\n\t\t\t\t\t\t\t\t<label>{{\'APPLICATION_VALUE\' | translate}}: {{process.weight}}</label>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_WEIGHT\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START DISPOSAL --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TD_DISPOSAL\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="process.disposal"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-animate="false">\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_DISPOSAL\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DISPOSAL --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="process.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t\t\x3c!-- CHANNEL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_channel">\n\t\t\t\t\t\t<form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START CONTEXT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.context.$touched || form.$submitted) && form.context.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="context" placeholder="{{\'APPLICATION_CONTEXT\' | translate}}" class="form-control" data-ng-model="process.context" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_CONTEXT\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.context.$touched || form.$submitted) && form.context.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONTEXT --\x3e\n\t\t\t\t\t\t\t\x3c!-- START EXTENSION --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.extension.$touched || form.$submitted) && form.extension.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EXTENSION\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="extension" placeholder="{{\'APPLICATION_EXTENSION\' | translate}}" class="form-control" data-ng-model="process.extension" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_EXTENSION\' | translate}}</span><a href="/channels/voice/routes/internal/list">Link {{\'APPLICATION_INTERNAL\' | translate}}</a>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.extension.$touched || form.$submitted) && form.extension.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EXTENSION --\x3e\n\t\t\t\t\t\t\t\x3c!-- START PRIORITY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.priority.$touched || form.$submitted) && form.priority.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PRIORITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="priority" placeholder="{{\'APPLICATION_PRIORITY\' | translate}}" class="form-control" data-ng-model="process.priority" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_PRIORITY\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.priority.$touched || form.$submitted) && form.priority.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.priority.$error.max || form.priority.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PRIORITY --\x3e\n\t\t\t\t\t\t\t\x3c!-- START PREFIX --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PREFIX\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="prefix_code" placeholder="{{\'APPLICATION_PREFIX\' | translate}}" class="form-control" data-ng-model="process.prefix_code"/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_PREFIX\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PREFIX --\x3e\n\t\t\t\t\t\t\t\x3c!-- START TECHNOLOGY --\x3e\n\t\t\t\t\t    <div class="form-group">\n\t\t\t\t\t      <label class="control-label">{{\'APPLICATION_TECHNOLOGY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t      <select name="tech" class="form-control" data-ng-model="process.tech" ng-options="tech for tech in techs" required>\n\t\t\t\t\t      </select>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_TECHNOLOGY\' | translate}}</span>\n\t\t\t\t\t    </div>\n\t\t\t\t\t    \x3c!-- END TECHNOLOGY --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DEVICE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.device.$touched || form.$submitted) && form.device.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TRUNK\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="device" placeholder="{{\'APPLICATION_TRUNK\' | translate}}" class="form-control" data-ng-model="process.device" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_TRUNK\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.device.$touched || form.$submitted) && form.device.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DEVICE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START CALLERID --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.callerid.$touched || form.$submitted) && form.callerid.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CALLERID\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="callerid" placeholder="{{\'APPLICATION_CALLERID\' | translate}}" class="form-control" data-ng-model="process.callerid" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_CALLERID\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.callerid.$touched || form.$submitted) && form.callerid.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CALLERID --\x3e\n\t\t\t\t\t\t\t\x3c!-- START CODEC --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="process.codecs" name="codecs" theme="bootstrap" data-ng-disabled="disabled">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="codec in codecs">\n\t\t\t\t\t\t\t\t\t\t{{codec}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CODEC --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DIAL FORMAT --\x3e\n\t\t\t\t\t    <div class="form-group">\n\t\t\t\t\t      <label class="control-label">{{\'APPLICATION_DIAL_FORMAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t      <select name="dial_format" class="form-control" data-ng-model="process.dial_format" ng-options="dial_format for dial_format in dialFormats" required>\n\t\t\t\t\t      </select>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_DIAL_FORMAT\' | translate}}</span>\n\t\t\t\t\t    </div>\n\t\t\t\t\t    \x3c!-- END DIAL FORMAT --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANNEL TAB --\x3e\n\t\t\t\t\t\x3c!-- ADVANCED TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_advanced">\n\t\t\t\t\t\t<form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START CHECK DUPLICATE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHECK_DUPLICATE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<select name="check_duplicate" class="form-control" data-ng-model="process.check_duplicate" ng-options="check_duplicate for check_duplicate in checkDuplicates" required>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_CHECK_DUPLICATE\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CHECK DUPLICATE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START CHECK BLACKLIST --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHECK_BLACKLIST\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="process.check_blacklist"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-animate="false">\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_CHECK_BLACKLIST\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CHECK BLACKLIST --\x3e\n\t\t\t\t\t\t\t\x3c!-- START CHECK PHONE LENGHT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.check_phone_length.$touched || form.$submitted) && form.check_phone_length.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHECK_PHONE_LENGHT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="check_phone_length" placeholder="{{\'APPLICATION_CHECK_PHONE_LENGHT\' | translate}}" class="form-control" data-ng-model="process.check_phone_length" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_CHECK_PHONE_LENGHT\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.check_phone_length.$touched || form.$submitted) && form.check_phone_length.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.check_phone_length.$error.max || form.check_phone_length.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CHECK PHONE LENGHT --\x3e\n\t\t\t\t\t\t\t\x3c!-- START TIME SLICE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.time_slice.$touched || form.$submitted) && form.time_slice.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIME_SLICE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="time_slice" placeholder="{{\'APPLICATION_TIME_SLICE\' | translate}}" class="form-control" data-ng-model="process.time_slice" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_TIME_SLICE\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.time_slice.$touched || form.$submitted) && form.time_slice.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.time_slice.$error.max || form.time_slice.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TIME SLICE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START MISSED --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHECK_MISSED\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="process.missed"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-animate="false">\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_CHECK_MISSED\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MISSED --\x3e\n\t\t\t\t\t\t\t\x3c!-- START CHANNEL LIMIT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.channel_limit.$touched || form.$submitted) && form.channel_limit.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHANNEL_LIMIT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="channel_limit" placeholder="{{\'APPLICATION_CHANNEL_LIMIT\' | translate}}" class="form-control" data-ng-model="process.channel_limit" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_CHANNEL_LIMIT\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.channel_limit.$touched || form.$submitted) && form.channel_limit.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.channel_limit.$error.max || form.channel_limit.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END  CHANNEL LIMIT --\x3e\n\t\t\t\t\t\t\t\x3c!-- START CONTEXT FOR OTHER CALLS --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT_FOR_OTHER_CALLS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="context_for_other_calls" placeholder="{{\'APPLICATION_CONTEXT_FOR_OTHER_CALLS\' | translate}}" class="form-control" data-ng-model="process.context_for_other_calls"/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_CONTEXT_FOR_OTHER_CALLS\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CONTEXT FOR OTHER CALLS --\x3e\n\t\t\t\t\t\t\t\x3c!-- START EXTENSION FOR OTHER CALLS--\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EXTENSION_FOR_OTHER_CALLS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="extension_for_other_calls" placeholder="{{\'APPLICATION_EXTENSION_FOR_OTHER_CALLS\' | translate}}" class="form-control" data-ng-model="process.extension_for_other_calls"/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_EXTENSION_FOR_OTHER_CALLS\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EXTENSION FOR OTHER CALLS--\x3e\n\t\t\t\t\t\t\t\x3c!-- START PRIORITY FOR OTHER CALLS--\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.priority_for_other_calls.$touched || form.$submitted) && form.priority_for_other_calls.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PRIORITY_FOR_OTHER_CALLS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="priority_for_other_calls" placeholder="{{\'APPLICATION_PRIORITY_FOR_OTHER_CALLS\' | translate}}" class="form-control" data-ng-model="process.priority_for_other_calls"/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_PRIORITY_FOR_OTHER_CALLS\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.priority_for_other_calls.$error.max || form.priority_for_other_calls.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PRIORITY FOR OTHER CALLS --\x3e\n\t\t\t\t\t\t\t\x3c!-- START TIMEZONE --\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EXTENDED_TIME_INTERVAL\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="timezone" placeholder="08:30-20:30" class="form-control" data-ng-model="process.timezone"/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_EXTENDED_TIME_INTERVAL\' | translate}}</span>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END TIMEZONE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START AUTO TIMEZONE MANAGEMENT --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTO_TIMEZONE_MANAGEMENT\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tdata-ng-model="process.auto_timezone_management"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-animate="false">\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_AUTO_TIMEZONE_MANAGEMENT\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END AUTO TIMEZONE MANAGEMENT --\x3e\n\t\t\t\t\t\t\t\x3c!-- START IGNORE STRINGS--\x3e\n\t\t\t\t\t\t\t\x3c!-- COMMENTED: BECAUSE IGNORE_STRINGS IS AN ARRAY NOT A STRING--\x3e\n\t\t\t\t\t\t\t\x3c!-- <div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_IGNORE_STRINGS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="ignore_strings" placeholder="{{\'APPLICATION_IGNORE_STRINGS\' | translate}}" class="form-control" data-ng-model="process.ignore_strings"/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_IGNORE_STRINGS\' | translate}}</span>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END IGNORE STRINGS--\x3e\n\t\t\t\t\t\t\t\x3c!-- START MIN OPERATOR --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.min_operator.$touched || form.$submitted) && form.min_operator.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MIN_OPERATOR\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="min_operator" placeholder="{{\'APPLICATION_MIN_OPERATOR\' | translate}}" class="form-control" data-ng-model="process.min_operator" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_MIN_OPERATOR\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.min_operator.$touched || form.$submitted) && form.min_operator.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.min_operator.$error.max || form.min_operator.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MIN OPERATOR --\x3e\n\t\t\t\t\t\t\t\x3c!-- START ALERT MAX CALLS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.alert_max_calls.$touched || form.$submitted) && form.alert_max_calls.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ALERT_MAX_CALLS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="alert_max_calls" placeholder="{{\'APPLICATION_ALERT_MAX_CALLS\' | translate}}" class="form-control" data-ng-model="process.alert_max_calls" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_ALERT_MAX_CALLS\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.alert_max_calls.$touched || form.$submitted) && form.alert_max_calls.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.alert_max_calls.$error.max || form.alert_max_calls.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ALERT MAX CALLS --\x3e\n\t\t\t\t\t\t\t\x3c!-- START ALERT TIME SLICE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.alert_time_slice.$touched || form.$submitted) && form.alert_time_slice.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ALERT_TIME_SLICE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="alert_time_slice" placeholder="{{\'APPLICATION_ALERT_TIME_SLICE\' | translate}}" class="form-control" data-ng-model="process.alert_time_slice" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_ALERT_TIME_SLICE\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.alert_time_slice.$touched || form.$submitted) && form.alert_time_slice.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.alert_time_slice.$error.max || form.alert_time_slice.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ALERT TIME SLICE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DROP MAX COUNT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.drop_max_count.$touched || form.$submitted) && form.drop_max_count.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DROP_MAX_COUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" name="drop_max_count" placeholder="{{\'APPLICATION_DROP_MAX_COUNT\' | translate}}" class="form-control" data-ng-model="process.drop_max_count" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_DROP_MAX_COUNT\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.drop_max_count.$touched || form.$submitted) && form.drop_max_count.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.drop_max_count.$error.max || form.drop_max_count.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DROP MAX COUNT --\x3e\n\t\t\t\t\t\t\t\x3c!-- START SUCCESS CALL SIZE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.success_call_size.$touched || form.$submitted) && form.success_call_size.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SUCCESS_CALL_SIZE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="success_call_size" placeholder="{{\'APPLICATION_SUCCESS_CALL_SIZE\' | translate}}" class="form-control" data-ng-model="process.success_call_size" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_SUCCESS_CALL_SIZE\' | translate}}</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(form.success_call_size.$touched || form.$submitted) && form.success_call_size.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.success_call_size.$error.max || form.success_call_size.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SUCCESS CALL SIZE --\x3e\n\t\t\t\t\t\t\t\x3c!-- START IGNORE STRINGS--\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIME_EXPIRED\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="expiredtime" placeholder="yyyy-MM-dd HH:mm:ss" class="form-control" data-ng-model="process.expiredtime"/>\n\t\t\t\t\t\t\t\t<span class="help-block">{{\'DESCRIPTION_TD_TIME_EXPIRED\' | translate}}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END IGNORE STRINGS--\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ANDVANCED TAB --\x3e\n\t\t\t\t\t\x3c!-- START STATUS TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_status">\n\t\t\t\t\t\t<form name="form" data-ng-submit="form.$valid && updateProcess()" novalidate>\n\t\t\t\t\t\t\t<table class="table table-bordered table-hover">\n\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t<tr role="row" class="heading">\n\t\t\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t\t\t {{ \'APPLICATION_VALUE\' | translate}}\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t\t\t {{ \'APPLICATION_MAX_RETRIES\' | translate}}\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t\t\t {{ \'APPLICATION_RETRY_TIME\' | translate}} [min]\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t\t\t\t {{ \'APPLICATION_DESCRIPTION\' | translate}}\n\t\t\t\t\t\t\t\t\t</th>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_AMD\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="amd_max_retries"class="form-control" data-ng-model="process.amd_max_retries" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.amd_max_retries.$touched || form.$submitted) && form.amd_max_retries.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.amd_max_retries.$error.max || form.amd_max_retries.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="amd_retry_time" class="form-control" data-ng-model="process.amd_retry_time" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.amd_retry_time.$touched || form.$submitted) && form.amd_retry_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.amd_retry_time.$error.max || form.amd_retry_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TD_STATUS_AMD\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_BUSY\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="busy_max_retries"class="form-control" data-ng-model="process.busy_max_retries" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.busy_max_retries.$touched || form.$submitted) && form.busy_max_retries.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.busy_max_retries.$error.max || form.busy_max_retries.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="busy_retry_time"class="form-control" data-ng-model="process.busy_retry_time" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.busy_retry_time.$touched || form.$submitted) && form.busy_retry_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.busy_retry_time.$error.max || form.busy_retry_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TD_STATUS_BUSY\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_CONGESTION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="congestion_max_retries"class="form-control" data-ng-model="process.congestion_max_retries" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.congestion_max_retries.$touched || form.$submitted) && form.congestion_max_retries.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.congestion_max_retries.$error.max || form.congestion_max_retries.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="congestion_retry_time"class="form-control" data-ng-model="process.congestion_retry_time" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.congestion_retry_time.$touched || form.$submitted) && form.congestion_retry_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.congestion_retry_time.$error.max || form.congestion_retry_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TD_STATUS_CONGESTION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_DROP\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="drop_max_retries"class="form-control" data-ng-model="process.drop_max_retries" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.drop_max_retries.$touched || form.$submitted) && form.drop_max_retries.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.drop_max_retries.$error.max || form.drop_max_retries.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="drop_retry_time"class="form-control" data-ng-model="process.drop_retry_time" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.drop_retry_time.$touched || form.$submitted) && form.drop_retry_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.drop_retry_time.$error.max || form.drop_retry_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TD_STATUS_DROP\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_FAILED\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="failed_max_retries"class="form-control" data-ng-model="process.failed_max_retries" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.failed_max_retries.$touched || form.$submitted) && form.failed_max_retries.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.failed_max_retries.$error.max || form.failed_max_retries.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="failed_retry_time"class="form-control" data-ng-model="process.failed_retry_time" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.failed_retry_time.$touched || form.$submitted) && form.failed_retry_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.failed_retry_time.$error.max || form.failed_retry_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TD_STATUS_FAILED\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_NOANSWER\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="noanswer_max_retries"class="form-control" data-ng-model="process.noanswer_max_retries" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.noanswer_max_retries.$touched || form.$submitted) && form.noanswer_max_retries.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.noanswer_max_retries.$error.max || form.noanswer_max_retries.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="noanswer_retry_time"class="form-control" data-ng-model="process.noanswer_retry_time" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.noanswer_retry_time.$touched || form.$submitted) && form.noanswer_retry_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.noanswer_retry_time.$error.max || form.noanswer_retry_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TD_STATUS_NOANSWER\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_NOSUCHEXTENSION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="nosuchextension_max_retries"class="form-control" data-ng-model="process.nosuchextension_max_retries" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.nosuchextension_max_retries.$touched || form.$submitted) && form.nosuchextension_max_retries.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.nosuchextension_max_retries.$error.max || form.nosuchextension_max_retries.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="nosuchextension_retry_time"class="form-control" data-ng-model="process.nosuchextension_retry_time" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.nosuchextension_retry_time.$touched || form.$submitted) && form.nosuchextension_retry_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.nosuchextension_retry_time.$error.max || form.nosuchextension_retry_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TD_STATUS_NOSUCHEXTENSION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_RINGTIMEOUT\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="ringtimeout_max_retries"class="form-control" data-ng-model="process.ringtimeout_max_retries" data-ng-init="!process.ringtimeout_max_retries && (process.ringtimeout_max_retries = 0)" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.ringtimeout_max_retries.$touched || form.$submitted) && form.ringtimeout_max_retries.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.ringtimeout_max_retries.$error.max || form.ringtimeout_max_retries.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="ringtimeout_retry_time" class="form-control" data-ng-model="process.ringtimeout_retry_time" data-ng-init="!process.ringtimeout_retry_time && (process.ringtimeout_retry_time = 0)" required/>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(form.ringtimeout_retry_time.$touched || form.$submitted) && form.ringtimeout_retry_time.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.ringtimeout_retry_time.$error.max || form.ringtimeout_retry_time.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TD_STATUS_RINGTIMEOUT\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END STATUS TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/motiondialer/process/view/view.spooler.edit.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_EDIT\' | translate }} {{ \'APPLICATION_CONTACT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  \x3c!-- START RETRIEVE --\x3e\n  <div class="form-group" data-ng-class="{\'has-error\': (form.retrieve.$touched || form.$submitted) && form.retrieve.$invalid}" ng-init="initModal()">\n    <label class="control-label">{{ \'APPLICATION_STATUS\' | translate }}<span class="required" aria-required="true">*</span></label>\n    <select name="retrieve" class="form-control" data-ng-model="entitySpooler.retrieve" required>\n      <option value="CLOSED">CLOSE</option>\n      <option value="OPEN">OPEN</option>\n      <option value="BLACK_LIST">BLACKLIST</option>\n      <option value="PLANNED">PLANNING</option>\n      <option value="PLANNED_PEER">PLANNING AGENT</option>\n    </select>\n    <span data-ng-show="(form.retrieve.$touched || form.$submitted) && form.retrieve.$error.required" class="help-block help-block-error">\n      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n    </span>\n  </div>\n  \x3c!-- END RETRIEVE --\x3e\n  \x3c!-- START PLANNING DATE --\x3e\n  <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (form.date.$touched || form.$submitted) && form.date.$invalid}">\n    <label class="control-label">PLANNING DATE<span class="required" aria-required="true">*</span></label>\n    <uib-datepicker name="date" ng-model="entitySpooler.planningtime" required init-date="initDate"></uib-datepicker>\n    <span data-ng-show="(form.date.$touched || form.$submitted) && form.date.$error.required" class="help-block help-block-error">\n      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n    </span>\n  </div>\n  \x3c!-- END PLANNING DATE --\x3e\n  \x3c!-- START PLANNING TIME --\x3e\n  <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED\' || entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (form.time.$touched || form.$submitted) && form.time.$invalid}">\n    <label class="control-label">PLANNING TIME<span class="required" aria-required="true">*</span></label>\n    <uib-timepicker name="time" ng-model="entitySpooler.planningtime" required show-meridian="false" show-seconds="false"></uib-timepicker>\n    <span data-ng-show="(form.time.$touched || form.$submitted) && form.time.$error.required" class="help-block help-block-error">\n      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n    </span>\n  </div>\n  \x3c!-- END PLANNING TIME --\x3e\n  \x3c!-- START PLANNING PEER --\x3e\n  <div class="form-group" data-ng-if="entitySpooler.retrieve == \'PLANNED_PEER\'" data-ng-class="{\'has-error\': (form.agent.$touched || form.$submitted) && form.agent.$invalid}">\n    <label class="control-label">{{\'APPLICATION_AGENT\' | translate}}<span class="required" aria-required="true">*</span></label>\n    <select name="agent" class="form-control" data-ng-model="entitySpooler.planningpeer" ng-options="agent for agent in agents" required>\n    </select>\n    <span data-ng-show="(form.agent.$touched || form.$submitted) && form.agent.$error.required" class="help-block help-block-error">\n      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n    </span>\n  </div>\n  \x3c!-- END PLANNING PEER --\x3e\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/motiondialer/process/view/view.spooler.history.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_HISTORY\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <json-formatter json="historySpooler" open="2"></json-formatter>\n</div>\n<div class="modal-footer">\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CLOSE\' | translate }}</button>\n</div>\n'),t.put("app/motiondialer/process/view/view.spooler.html",'<div class="row" data-ng-init="getSpooler()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_SPOOLER\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<a class="btn btn-default" href="#" data-ng-click="getSpooler()">\n\t\t\t\t\t\t<i class="icon-refresh"></i>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="true"></span>\n\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/reset/reset.html",'\x3c!-- BEGIN LOGO --\x3e\n<div class="logo" data-ng-init="getInfo()">\n\t<a href="index.html">\n\t\t<img ng-src="api/settings/logo/login" alt="logo" class="custom-login-logo" onError="this.onerror=null"/>\n\t</a>\n</div>\n\x3c!-- END LOGO --\x3e\n\x3c!-- BEGIN RESET --\x3e\n<div class="content">\n\t\x3c!-- BEGIN RESET FORM --\x3e\n\t<form name="resetForm" data-ng-submit="resetForm.$valid && reset()" novalidate>\n\t\t<h3>{{\'APPLICATION_RESET_PASSWORD\' | translate}}</h3>\n\t\t<p>\n\t\t\t{{\'APPLICATION_INSERT_NEW_PASSWORD_RESET\' | translate}}\n\t\t</p>\n\t\t<div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.password.$invalid}">\n\t\t\t<label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}</label>\n\t\t\t<div class="input-icon">\n\t\t\t\t<i class="icon-key"></i>\n\t\t\t\t<input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" name="password" ng-model="userReset.password"  data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n\t\t\t</div>\n\t\t\t<span class="help-block">\n\t\t\t\t{{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n\t\t\t</span>\n\t\t\t<span data-ng-show="resetForm.$submitted && resetForm.password.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n\t\t\t<span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.password.$error.pattern" class="help-block help-block-error">\n\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t</span>\n\t\t</div>\n\t\t<div class="form-group" data-ng-class="{\'has-error\': resetForm.$submitted && resetForm.rePassword.$invalid}">\n\t\t\t<label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}</label>\n\t\t\t<div class="input-icon">\n\t\t\t\t<i class="icon-key"></i>\n\t\t\t\t<input class="form-control form-control-solid placeholder-no-fix" type="password" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" name="rePassword" ng-model="userReset.rePassword" nx-equal="userReset.password" required/>\n\t\t\t</div>\n\t\t\t<span data-ng-show="resetForm.$submitted && resetForm.rePassword.$invalid" class="help-block">{{\'MESSAGE_REQUIRED_FIELD\' | translate}}</span>\n\t\t\t<span data-ng-show="(resetForm.password.$touched || resetForm.$submitted) && resetForm.$error.nxEqual" class="help-block help-block-error">\n\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n\t\t\t</span>\n\t\t</div>\n\t\t<div class="form-actions">\n\t\t\t<button type="submit" class="btn btn-success uppercase">{{\'APPLICATION_SUBMIT\' | translate}}</button>\n\t\t</div>\n\t</form>\n\t\x3c!-- END RESET FORM--\x3e\n\t\t<div class="login-options">\n\t\t\t<h4>{{\'APPLICATION_FOLLOW_US\' | translate}}</h4>\n\t\t\t<ul class="social-icons">\n\t\t\t\t<li>\n\t\t\t\t\t<a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/xenialab"></a>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/xenialab"></a>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a class="social-icon-color googleplus" data-original-title="Goole Plus" href="#"></a>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a class="social-icon-color linkedin" data-original-title="Linkedin" href="#"></a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n</div>\n<div class="copyright">\n\txCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} &copy; Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n</div>\n\x3c!-- END RESET --\x3e\n'),t.put("app/salesforce/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-cloud"></i>\n\t\t\t\t\t<a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="fa fa-cloud font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_SALESFORCE\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/salesforce/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/salesforce/view/configuration/list/create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.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="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START CHANNEL --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\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.name}}</ui-select-match>\n        <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n          <div data-ng-bind="channel.name | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- START CHANNEL --\x3e\n\n    \x3c!-- START VOICE SUBTYPE --\x3e\n    <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$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}}">{{$select.selected}}</ui-select-match>\n        <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n          <div data-ng-bind="type | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- START CHANNEL --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/salesforce/view/configuration/list/list.html",'<div ui-view class="profile-content">\n\t<div class="row">\n\t\t<div class="col-md-12">\n\t\t\t<div class="portlet light" data-ng-init="initView()">\n\t\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()">\n\t\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/salesforce/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- SUBJECT TAB --\x3e\n\t\t\t\t\t<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="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END SUBJECT TAB --\x3e\n          \x3c!-- DESCRIPTION TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_2">\n\t\t\t\t\t\t<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="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t\t\t\t\t\t\t<div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n\t              <div class="col-md-2">\n\t                <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n\t\t\t\t\t\t\t\t\t<ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION TAB --\x3e\n          \x3c!-- FIELDS TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_3">\n\t\t\t\t\t\t<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="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n\t                    <div ng-bind-html="item.label | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n\t\t                    <div ng-bind-html="item.label | highlight: $select.search"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t\t                    <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END FIELDS TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/salesforce/view/view.account.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n              \x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n              \x3c!-- START CLIENT ID --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="account.clientId" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CLIENT ID --\x3e\n\n              \x3c!-- START CLIENT SECRET --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="account.clientSecret" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CLIENT SECRET --\x3e\n\n              \x3c!-- START SECURITY TOKEN --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="account.securityToken" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SECURITY TOKEN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SERVER URL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_SERVER_URL\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SERVER URL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/salesforce/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n          <i class="fa fa-cloud"></i>\n          <a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{account.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/salesforce.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{account.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{account.remoteUri}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.salesforce.view.account\')}">\n\t\t\t\t\t\t\t<a ng-href="/salesforce/view/{{account.id}}/account">\n\t\t\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.salesforce.view.configurations\') || $state.is(\'main.salesforce.view.configuration\')}">\n\t\t\t\t\t\t\t<a ng-href="/salesforce/view/{{account.id}}/configurations/list">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/salesforce/wizard/wizard.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="fa fa-cloud"></i>\n\t\t\t\t\t\t<a href="/salesforce/list">{{ \'APPLICATION_SALESFORCE\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n          <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n\t\t\t\t\t\t<form name="forms.formSetting" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required ng-remote-validate="/api/salesforce/accounts/validate/username"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n              \x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n              \x3c!-- START CLIENT ID --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientId.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CLIENT_ID\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="clientId" placeholder="{{\'APPLICATION_CLIENT_ID\' | translate}}" class="form-control" data-ng-model="item.clientId" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.clientId.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CLIENT ID --\x3e\n\n              \x3c!-- START CLIENT SECRET --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.clientSecret.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CLIENT_SECRET\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="clientSecret" placeholder="{{\'APPLICATION_CLIENT_SECRET\' | translate}}" class="form-control" data-ng-model="item.clientSecret" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.clientSecret.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CLIENT SECRET --\x3e\n\n              \x3c!-- START SECURITY TOKEN --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.securityToken.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SECURITY_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="securityToken" placeholder="{{\'APPLICATION_SECURITY_TOKEN\' | translate}}" class="form-control" data-ng-model="item.securityToken" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.securityToken.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SECURITY TOKEN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SERVER URL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_SERVER_URL\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SERVER URL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t</wizard>\n\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/customization/view/general/general.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_GENERAL_CUSTOMIZATION\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_LOGO\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_FOOTER_WHITE_LABEL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- CHANGE LOGO TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<div class="col-md-6 col-sm-6" >\n\t\t\t\t\t\t\t<div class="portlet light bordered" style="min-height:411px;">\n\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t\t\t\t<i class="icon-pie-chart font-green-sharp"></i>\n\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_MAIN\' | translate }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t<form action="#" role="form" class="row">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START STATUS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6 col-sm-6">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\t\t\tng-model="settings.defaultLogo"\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-init="settings.defaultLogo = license.custom ? settings.defaultLogo : true"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tname="defaultLogo"\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-change="update()"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END STATUS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6 col-sm-6" data-ng-if="!settings.defaultLogo && license.custom">\n\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput fileinput-new" data-provides="fileinput">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput-new thumbnail">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput-preview fileinput-exists thumbnail">\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="file" nv-file-select="" uploader="uploader"/><br/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_REMOVE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIRM\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t<div data-ng-show="uploader2.isHTML5" >\n\t\t\t\t\t\t\t\t\t\t<div data-ng-repeat="item in uploader.queue" nowrap style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ item.file.name }}</strong> {{ item.file.size/1024/1024|number:2 }} MB\n\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span> Remove\n\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-md-6 col-sm-6">\n\t\t\t\t\t\t\t<div class="portlet light bordered"  style="min-height:411px;">\n\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t\t\t\t<i class="icon-pie-chart font-green-sharp"></i>\n\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_LOGIN\' | translate }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t<form action="#" role="form" class="row">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START STATUS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6 col-sm-6">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\t\t\tng-model="settings.defaultLoginLogo"\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-init="settings.defaultLoginLogo = license.custom ? settings.defaultLoginLogo : true"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tname="defaultLoginLogo"\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-change="update()"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END STATUS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6 col-sm-6" data-ng-if="!settings.defaultLoginLogo && license.custom">\n\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput fileinput-new" data-provides="fileinput">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput-new thumbnail">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput-preview fileinput-exists thumbnail">\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="btn default btn-file" data-ng-show="!uploader2.queue[0]">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="file" nv-file-select="" uploader="uploader2"/><br/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn default" data-ng-show="uploader2.queue[0]" data-dismiss="fileinput" ng-click="uploader2.queue[0].remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_REMOVE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn green-haze" data-ng-show="uploader2.queue[0]" data-ng-click="uploader2.queue[0].upload()" ng-disabled="uploader2.queue[0].isReady || uploader2.queue[0].isUploading || uploader2.queue[0].isSuccess">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIRM\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t<div data-ng-show="uploader2.isHTML5" >\n\t\t\t\t\t\t\t\t\t\t<div data-ng-repeat="item in uploader.queue" nowrap style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ item.file.name }}</strong> {{ item.file.size/1024/1024|number:2 }} MB\n\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span> Remove\n\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANGE LOGO TAB --\x3e\n\t\t\t\t\t\x3c!-- CHANGE FOOTER WHITE LABEL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.footerWhiteLabel" data-ng-submit="forms.footerWhiteLabel.$valid && update()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START DEFAULT --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="settings.defaultFooterWhiteLabel"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="defaultFooterWhiteLabel"\n\t\t\t\t\t\t\t\tdata-ng-change="update()"\n\t\t\t\t\t\t\t\tdata-ng-init="settings.defaultFooterWhiteLabel = license.custom ? settings.defaultFooterWhiteLabel : true"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DEFAULT --\x3e\n\t\t\t\t\t\t\t\x3c!-- START LABEL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.footerWhiteLabel.footerWhiteLabel.$touched || forms.footerWhiteLabel.$submitted) && forms.footerWhiteLabel.footerWhiteLabel.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FOOTER_WHITE_LABEL\' | translate}}<span data-ng-if="!settings.defaultFooterWhiteLabel" class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<textarea name="footer" placeholder="{{\'APPLICATION_FOOTER_WHITE_LABEL\' | translate}}" class="form-control" data-ng-model="settings.footerWhiteLabel" data-ng-disabled="settings.defaultFooterWhiteLabel || !license.custom" data-ng-required="!settings.defaultFooterWhiteLabel && license.custom"/></textarea>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.footerWhiteLabel.footerWhiteLabel.$touched || forms.footerWhiteLabel.$submitted) && forms.footerWhiteLabel.footerWhiteLabel.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LABEL --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-disabled="!license.custom"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANGE FOOTER WHITE LABEL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/setting/customization/view/motionbar/motionbar.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_MOTION_BAR_CUSTOMIZATION\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_LOGO\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- CHANGE LOGO TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<div class="col-md-12 col-sm-12" >\n\t\t\t\t\t\t\t<div class="portlet light bordered" style="min-height:411px;">\n\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t\t\t\t<i class="icon-pie-chart font-green-sharp"></i>\n\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_MAIN\' | translate }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t<form action="#" role="form" class="row">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- START STATUS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6 col-sm-6">\n\t\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DEFAULT\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\t\t\tng-model="settings.defaultMotionBarLogo"\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-init="settings.defaultMotionBarLogo = license.preferred ? settings.defaultMotionBarLogo : true"\n\t\t\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\t\t\tname="defaultMotionBarLogo"\n\t\t\t\t\t\t\t\t\t\t\tdata-ng-change="update()"\n\t\t\t\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- END STATUS --\x3e\n\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6 col-sm-6" data-ng-if="!settings.defaultMotionBarLogo && license.preferred">\n\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput fileinput-new" data-provides="fileinput">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput-new thumbnail">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="fileinput-preview fileinput-exists thumbnail">\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="file" nv-file-select="" uploader="uploader"/><br/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_REMOVE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIRM\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n\t\t\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t<div data-ng-show="uploader.isHTML5" >\n\t\t\t\t\t\t\t\t\t\t<div data-ng-repeat="item in uploader.queue" nowrap style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ item.file.name }}</strong> {{ item.file.size/1024/1024|number:2 }} MB\n\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span> Remove\n\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANGE LOGO TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/setting/customization/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n        <li>\n          <i class="icon-globe"></i>\n          <a href="#">{{ \'APPLICATION_CUSTOMIZATION\' | translate }}</a>\n        </li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/customize.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ \'APPLICATION_CUSTOMIZATION\' | translate }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.setting.customization.view.general\')}">\n\t\t\t\t\t\t\t<a ng-href="/setting/customization/view/general">\n\t\t\t\t\t\t\t<i class="icon-picture"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_GENERAL\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-if="license.preferred" data-ng-class="{active: $state.is(\'main.setting.customization.view.motionbar\')}">\n\t\t\t\t\t\t\t<a ng-href="/setting/customization/view/motionbar">\n\t\t\t\t\t\t\t<i class="icon-screen-desktop"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_MOTION_BAR\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/general/view/main/main.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_GENERAL_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.main" data-ng-submit="forms.main.$valid && update()" novalidate>\n\t\t\t\t\t\x3c!-- START MIN INTERNAL --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.main.min_internal.$touched || forms.main.$submitted) && forms.main.min_internal.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MIN_INTERNAL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" min="1" name="min_internal" placeholder="{{\'APPLICATION_MIN_INTERNAL\' | translate}}" class="form-control" data-ng-model="settings.min_internal" required/>\n\t\t\t\t\t\t<span data-ng-show="(forms.main.min_internal.$touched || forms.main.$submitted) && forms.main.min_internal.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END MIN INTERNAL --\x3e\n\n\t\t\t\t\t\x3c!-- START MIN MAILBOX  --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.main.min_mailbox.$touched || forms.main.$submitted) && forms.main.min_mailbox.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MIN_MAILBOX\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" min="1" name="min_mailbox" placeholder="{{\'APPLICATION_MIN_MAILBOX\' | translate}}" class="form-control" data-ng-model="settings.min_mailbox" required/>\n\t\t\t\t\t\t<span data-ng-show="(forms.main.min_mailbox.$touched || forms.main.$submitted) && forms.main.min_mailbox.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END MIN MAILBOX --\x3e\n\n\t\t\t\t\t\x3c!-- START MAIL ROUTING  --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.main.mailRoutingCapacity.$touched || forms.main.$submitted) && forms.main.mailRoutingCapacity.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAIL_ROUTING_BUFFER_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" min="1" max="50" name="mailRoutingCapacity" placeholder="{{\'APPLICATION_MAIL_ROUTING_BUFFER_CAPACITY\' | translate}}" class="form-control" data-ng-model="settings.mailRoutingCapacity" required/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{\'APPLICATION_MAIL_ROUTING_BUFFER_CAPACITY_DESC\' | translate}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.main.mailRoutingCapacity.$touched || forms.main.$submitted) && forms.main.mailRoutingCapacity.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END MAIL ROUTING --\x3e\n\n\t\t\t\t\t\x3c!-- START CHAT ROUTING  --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.main.chatRoutingCapacity.$touched || forms.main.$submitted) && forms.main.chatRoutingCapacity.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHAT_ROUTING_BUFFER_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" min="1" max="50" name="chatRoutingCapacity" placeholder="{{\'APPLICATION_CHAT_ROUTING_BUFFER_CAPACITY\' | translate}}" class="form-control" data-ng-model="settings.chatRoutingCapacity" required/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{\'APPLICATION_CHAT_ROUTING_BUFFER_CAPACITY_DESC\' | translate}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.main.chatRoutingCapacity.$touched || forms.main.$submitted) && forms.main.chatRoutingCapacity.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHAT ROUTING --\x3e\n\n\t\t\t\t\t\x3c!-- START AGI PORT --\x3e\n\t\t\t\t\t\x3c!-- NOTE: CUSTOM AGI PORT DEPRECATED --\x3e\n\t\t\t\t\t\x3c!-- <div class="form-group" data-ng-class="{\'has-error\': (forms.main.agi_port.$touched || forms.main.$submitted) && forms.main.agi_port.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AGI_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" min="1" name="agi_port" placeholder="{{\'APPLICATION_AGI_PORT\' | translate}}" class="form-control" data-ng-model="settings.agi_port" required/>\n\t\t\t\t\t\t<span data-ng-show="(forms.main.agi_port.$touched || forms.main.$submitted) && forms.main.agi_port.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\x3c!-- END AGI PORT --\x3e\n\n\t\t\t\t\t\x3c!-- START SECURE PASSWORD --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">\n\t\t\t\t\t\t\t{{\'APPLICATION_SECURE_PASSWORD\' | translate}}\n\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\tdata-ng-model="settings.securePassword"\n\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END SECURE PASSWORD --\x3e\n\n\t\t\t\t\t\x3c!-- START AUTO LOGOUT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">\n\t\t\t\t\t\t\t{{\'APPLICATION_AGENT_AUTO_LOGOUT\' | translate}}\n\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\tdata-ng-model="settings.logoutOnWindowClose"\n\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END AUTO LOGOUT --\x3e\n\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/setting/general/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n        <li>\n          <i class="icon-globe"></i>\n          <a href="#">{{ \'APPLICATION_GENERAL\' | translate }}</a>\n        </li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/customize.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ \'APPLICATION_GENERAL\' | translate }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.setting.general.view.main\')}">\n\t\t\t\t\t\t\t<a ng-href="/setting/general/view/main">\n\t\t\t\t\t\t\t<i class="icon-picture"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_MAIN\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/license/view/update.modal.html",'<div class="modal-header" data-ng-init="getLicense()">\n  <h3 class="modal-title">{{ \'APPLICATION_UPDATE_LICENSE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START LICENSE --\x3e\n    <div class="form-group">\n      <label class="control-label">{{\'APPLICATION_LICENSE\' | translate}}</label>\n      <textarea type="text" style="min-height:95px;" name="description" placeholder="{{\'APPLICATION_LICENSE\' | translate}}" class="form-control" data-ng-model="item.license"></textarea>\n    </div>\n    \x3c!-- END LICENSE --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="update()" ng-disabled="form.$invalid">{{ \'APPLICATION_UPDATE\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/setting/license/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n  <div class="col-md-12">\n    <div class="page-bar">\n      <ul class="page-breadcrumb">\n        <li>\n          <i class="icon-rocket"></i>\n          <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n        <li>\n          <i class="icon-settings"></i>\n          <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n        <li>\n          <i class="icon-info"></i>\n          <a href="#">{{ \'APPLICATION_LICENSE\' | translate }}</a>\n        </li>\n      </ul>\n    </div>\n\n    \x3c!-- BEGIN PROFILE CONTENT --\x3e\n    <div class="profile-content">\n      <div class="row" data-ng-if="item.expirationTime > -1 && !item.demo">\n        <div class="col-md-12">\n          <div class="note note-warning">\n            <h4 class="block"><strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_YOUR_LICENSE_WILL_EXPIRE\' | translate}} <strong>{{license.expirationTime}}</strong> {{\'MESSAGE_DAYS\' | translate}}.</h4>\n            <p data-ng-if="item.token !== item.token2">\n              {{\'MESSAGE_SEND_EMAIL_TO\' | translate}} <a href="mailto:license@xcally.com?subject=New%20token%20detected&body=Hi xCALLY, my new token is: {{license.token2}}. Old token: {{license.token}}">license@xcally.com</a>.\n            </p>\n            <p data-ng-if="item.token !== item.token2">\n              {{\'APPLICATION_NEW\' | translate | uppercase}} Token: <strong>{{license.token2}}</strong>\n            </p>\n          </div>\n        </div>\n      </div>\n      <div class="row">\n        <div class="col-md-6">\n          <div class="pricing hover-effect">\n            <div class="pricing-head">\n              <h3 data-ng-switch="license.months">\n              <div ng-switch-when="1">{{\'APPLICATION_MONTH_TO_MONTH\' | translate}}</div>\n              <div ng-switch-when="12">{{\'APPLICATION_YEARLY\' | translate}}</div>\n              <div ng-switch-when="36">{{\'APPLICATION_PERPETUAL\' | translate}}</div>\n              <div ng-switch-default>{{\'APPLICATION_UNKNOWN\' | translate}}</div>\n              <div class="h5" data-ng-if="item.token === item.token2">{{license.token || \'unknown\'}} </div><div class="h5" data-ng-if="item.token !== item.token2"><div><b>{{\'APPLICATION_OLD_UID\' | translate}}:</b> {{license.token || \'unknown\'}}</div><div><b>{{\'APPLICATION_NEW_UID\' | translate}}:</b> {{license.token2 || \'unknown\'}}</div> </div>\n              </h3>\n              <h4><i>{{license.expiration ? (license.expiration | date:\'medium\') : \'DEMO\'}}</i>\n                <span data-ng-show="license.expiration">Expiration Date </span>\n              </h4>\n            </div>\n            <ul class="pricing-content list-unstyled">\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-eye"></i> {{\'APPLICATION_USERS\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  {{(license.users || license.users >= 0) ? license.users : \'unknown\'}}\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-people"></i> {{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}}):\n                </div>\n                <div class="col-md-3 text-center">\n                  {{(license.agents || license.agents >= 0)  ? license.agents : \'unknown\'}}\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-phone"></i> {{\'APPLICATION_TELEPHONES\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  {{(license.telephones || license.telephones >= 0) ? license.telephones : \'unknown\'}}\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-bubble"></i> {{\'APPLICATION_CHAT\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.chat ? \'label-success\' : \'label-danger\'">{{license.chat ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-envelope"></i> {{\'APPLICATION_MAIL\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.mail ? \'label-success\' : \'label-danger\'">{{license.mail ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="fa fa-fax"></i> {{\'APPLICATION_FAX\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.fax ? \'label-success\' : \'label-danger\'">{{license.fax ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="glyphicon glyphicon-comment"></i> {{\'APPLICATION_SMS\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.messaging ? \'label-success\' : \'label-danger\'">{{license.messaging ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-globe"></i> {{\'APPLICATION_OPEN_CHANNEL\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.openchannel ? \'label-success\' : \'label-danger\'">{{license.openchannel ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-notebook"></i> {{\'APPLICATION_CONTACT_MANAGER\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.cm ? \'label-success\' : \'label-danger\'">{{license.cm ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-control-forward"></i> {{\'APPLICATION_MOTION_DIALER\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.dialer ? \'label-success\' : \'label-danger\'">{{license.dialer ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="fa fa-edit"></i> {{\'APPLICATION_JSCRIPTY\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.jscripty ? \'label-success\' : \'label-danger\'">{{license.jscripty ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-equalizer"></i> {{\'APPLICATION_CUSTOMIZATION\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.custom ? \'label-success\' : \'label-danger\'">{{license.custom ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n              <li class="row">\n                <div class="col-md-9">\n                  <i class="icon-cloud-download"></i> {{\'APPLICATION_UPDATE\' | translate}}:\n                </div>\n                <div class="col-md-3 text-center">\n                  <span class="label label-sm" data-ng-class="license.update ? \'label-success\' : \'label-danger\'">{{license.update ? \'APPLICATION_ENABLED\' : \'APPLICATION_DISABLED\' | translate}}</span>\n                </div>\n              </li>\n            </ul>\n            <div class="pricing-footer">\n              <p>\n                {{license.description}}\n              </p>\n              <a href="https://www.xcallymotion.com/prices" target="_blank" class="btn yellow-crusta">\n                {{\'APPLICATION_PRICES\' | translate}} <i class="m-icon-swapright m-icon-white"></i>\n              </a>\n              <a href="#" class="btn purple-plum" data-ng-click="updateLicense()">\n                {{\'APPLICATION_UPDATE\' | translate}} <i class="icon-refresh m-icon-white"></i>\n              </a>\n            </div>\n          </div>\n        </div>\n        <div class="col-md-6">\n          <div class="portlet light bordered">\n            <div class="portlet-title">\n              <div class="caption font-green-sharp">\n                <i class="icon-info font-green-sharp"></i>\n                <span class="caption-subject">{{ \'APPLICATION_LICENSE_REQUEST\' | translate }}</a> </span>\n              </div>\n            </div>\n            <div class="portlet-body">\n              <form name="form" novalidate data-ng-submit="submitRequest()">\n\n                \x3c!-- START USERS --\x3e\n                <div class="form-group" data-ng-class="{\'has-error\': (form.users.$touched || form.$submitted) && form.users.$invalid}">\n                  <label class="control-label">{{\'APPLICATION_USERS\' | translate}}</label>\n                  <div class="input-icon">\n                    <i class="icon-eye"></i>\n                    <input type="number" name="users" placeholder="{{\'APPLICATION_USERS\' | translate}}" class="form-control" data-ng-model="item.users" min="0" required>\n                  </div>\n                  <span data-ng-show="(form.users.$touched || forms.$submitted) && form.users.$error.required" class="help-block help-block-error">\n                    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                  </span>\n                </div>\n                \x3c!-- END USERS --\x3e\n\n                \x3c!-- START AGENTS --\x3e\n                <div class="form-group" data-ng-class="{\'has-error\': (form.agents.$touched || form.$submitted) && form.agents.$invalid}">\n                  <label class="control-label">{{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}})</label>\n                  <div class="input-icon">\n                    <i class="icon-people"></i>\n                    <input type="number" name="agents" placeholder="{{\'APPLICATION_AGENTS\' | translate}} ({{\'APPLICATION_CONCURRENTS\' | translate}})" class="form-control" data-ng-model="item.agents" min="0" required>\n                  </div>\n                  <span data-ng-show="(form.users.$touched || forms.$submitted) && form.users.$error.required" class="help-block help-block-error">\n                    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                  </span>\n                </div>\n                \x3c!-- END AGENTS --\x3e\n\n                \x3c!-- START TELEPHONES --\x3e\n                <div class="form-group" data-ng-class="{\'has-error\': (form.telephones.$touched || form.$submitted) && form.telephones.$invalid}">\n                  <label class="control-label">{{\'APPLICATION_TELEPHONES\' | translate}}</label>\n                  <div class="input-icon">\n                    <i class="icon-phone"></i>\n                    <input type="number" name="telephones" placeholder="{{\'APPLICATION_TELEPHONES\' | translate}}" class="form-control" data-ng-model="item.telephones" min="0" required>\n                  </div>\n                  <span data-ng-show="(form.telephones.$touched || forms.$submitted) && form.telephones.$error.required" class="help-block help-block-error">\n                    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                  </span>\n                </div>\n                \x3c!-- END TELEPHONES --\x3e\n                <div class="row">\n                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_CHAT\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.chat"\n                    type="checkbox"\n                    name="chat"\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                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_MAIL\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.mail"\n                    type="checkbox"\n                    name="mail"\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                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_FAX\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.fax"\n                    type="checkbox"\n                    name="fax"\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                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_SMS\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.messaging"\n                    type="checkbox"\n                    name="messaging"\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                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_OPEN_CHANNEL\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.openchannel"\n                    type="checkbox"\n                    name="openchannel"\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                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_CONTACT_MANAGER\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.cm"\n                    type="checkbox"\n                    name="cm"\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                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_MOTION_DIALER\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.dialer"\n                    type="checkbox"\n                    name="dialer"\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                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_JSCRIPTY\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.jscripty"\n                    type="checkbox"\n                    name="jscripty"\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                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_CUSTOMIZATION\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.custom"\n                    type="checkbox"\n                    name="custom"\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                  <div class="form-group col-md-4 col-xs-6">\n                    <label class="control-label">{{\'APPLICATION_UPDATE\' | translate}}</label></br>\n                    <input\n                    bs-switch\n                    class="form-control"\n                    ng-model="item.update"\n                    type="checkbox"\n                    name="update"\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                </div>\n\n                <input class="btn green-haze" type="submit" value="{{\'APPLICATION_SUBMIT\' | translate}} {{\'APPLICATION_REQUEST\' | translate}}"/>\n              </form>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n    \x3c!-- END PROFILE CONTENT --\x3e\n  </div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/network/view/externip/externip.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{title}}</h3>\n</div>\n<div class="modal-body" data-ng-init="initModal()">\n  <form name="form" novalidate>\n\n    \x3c!-- START ADDRESS --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.address.$touched || form.$submitted) && form.address.$invalid}">\n      <label class="control-label">{{\'APPLICATION_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.value" required data-ng-pattern="/^(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}$/"/>\n      <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n      <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END ADDRESS --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/setting/network/view/externip/externip.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-globe font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_EXTERNIP\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_EXTERNIP\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/network/view/localnet/localnet.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{title}}</h3>\n</div>\n<div class="modal-body" data-ng-init="initModal()">\n  <form name="form" novalidate>\n\n    \x3c!-- START ADDRESS --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.address.$touched || form.$submitted) && form.address.$invalid}">\n      <label class="control-label">{{\'APPLICATION_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.address" required data-ng-pattern="/^(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}$/"/>\n      <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n      <span data-ng-show="(form.address.$touched || form.$submitted) && form.address.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END ADDRESS --\x3e\n\n    \x3c!-- START MASK --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.mask.$touched || form.$submitted) && form.mask.$invalid}">\n      <label class="control-label">{{\'APPLICATION_MASK\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="mask" placeholder="{{\'APPLICATION_MASK\' | translate}}" class="form-control" data-ng-model="item.mask" required data-ng-pattern="/^(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}$/"/>\n      <span data-ng-show="(form.mask.$touched || form.$submitted) && form.mask.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n      <span data-ng-show="(form.mask.$touched || form.$submitted) && form.mask.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END MASK --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/setting/network/view/localnet/localnet.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-desktop font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_LOCALNET\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_LOCALNET\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/network/view/stunaddr/stunaddr.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-desktop font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_STUNADDR\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="form" data-ng-submit="form.$valid && update()" novalidate>\n\n\t\t\t\t\x3c!-- START ADDRESS --\x3e\n\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.address.$touched || form.$submitted) && form.address.$invalid}">\n\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ADDRESS\' | translate}}</label>\n\t\t\t\t\t<input type="text" name="stunaddr" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.stunaddr"/>\n\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t{{\'DESCRIPTION_STUNADDR\' | translate}}\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END ADDRESS --\x3e\n\n\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/network/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n        <li>\n          <i class="icon-globe"></i>\n          <a href="#">{{ \'APPLICATION_NETWORK\' | translate }}</a>\n        </li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/business.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ \'APPLICATION_NETWORK\' | translate }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.setting.network.view.localnet\')}">\n\t\t\t\t\t\t\t<a ng-href="/setting/network/view/localnet">\n\t\t\t\t\t\t\t<i class="icon-screen-desktop"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_LOCALNET\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.setting.network.view.externip\')}">\n\t\t\t\t\t\t\t<a ng-href="/setting/network/view/externip">\n\t\t\t\t\t\t\t<i class="icon-globe"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_EXTERNIP\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.setting.network.view.stunaddr\')}">\n\t\t\t\t\t\t\t<a ng-href="/setting/network/view/stunaddr">\n\t\t\t\t\t\t\t<i class="icon-fire"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_STUNADDR\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/smtp/view/view.html",'<div class="row" data-ng-init="initView();">\n\t<div class="col-md-12">\n\n\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n\t\t\t<div class="portlet light">\n\t\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\n\t\t\t\t\t\t<div class="note note-danger" data-ng-show="item.account.MailServerOut.state === \'DISCONNECTED\' || item.account.MailServerOut.state === \'ERROR\'">\n\t\t\t\t\t\t\t<p> ERROR </p>\n\t\t\t\t\t\t\t<json-formatter open="1" json="item.account.MailServerOut.source"></json-formatter>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="note note-success" data-ng-show="item.account.MailServerOut.state === \'CONNECTED\'">\n\t\t\t\t\t\t\t<p> CONNECTED </p>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div class="note note-info" data-ng-show="item.account.MailServerOut.state === \'CONNECTING\'">\n\t\t\t\t\t\t\t<p> TRYING... </p>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.account.name" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START ADDRESS --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="address" placeholder="{{\'APPLICATION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.account.address" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.address.$touched || forms.info.$submitted) && forms.info.address.$invalid && forms.info.address.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END ADDRESS --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.account.description"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\x3c!-- START SERVICE --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SERVICE\' | translate}}</label><br>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\tdata-ng-model="item.account.service"\n\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\tswitch-active="{{ isActive }}"\n\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t\t\t\tswitch-on-color="{{ onColor }}"\n\t\t\t\t\t\t\tswitch-off-color="{{ offColor }}"\n\t\t\t\t\t\t\tswitch-animate="{{ animate }}"\n\t\t\t\t\t\t\tswitch-size="{{ size }}"\n\t\t\t\t\t\t\tswitch-label="{{ label }}"\n\t\t\t\t\t\t\tswitch-icon="{{ icon }}"\n\t\t\t\t\t\t\tswitch-radio-off="{{ radioOff }}"\n\t\t\t\t\t\t\tswitch-label-width="{{ labelWidth }}"\n\t\t\t\t\t\t\tswitch-handle-width="{{ handleWidth }}">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END SERVICE --\x3e\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet light">\n\t\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">SMTP</span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\x3c!-- SMTP TAB --\x3e\n\t\t\t\t\t\x3c!-- START HOST --\x3e\n\t\t\t\t  <div class="form-group" data-ng-class="{\'has-error\': (forms.info.host.$touched || forms.info.$submitted) && forms.info.host.$invalid}">\n\t\t\t\t    <label class="control-label">{{\'APPLICATION_HOST\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t    <input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.host" required/>\n\t\t\t\t    <span data-ng-show="(forms.info.host.$touched || forms.info.$submitted) && forms.info.host.$invalid && forms.info.host.$error.required" class="help-block help-block-error">\n\t\t\t\t      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t    </span>\n\t\t\t\t  </div>\n\t\t\t\t  \x3c!-- END HOST --\x3e\n\n\t\t\t\t  \x3c!-- START USERNAME --\x3e\n\t\t\t\t  <div class="form-group" data-ng-class="{\'has-error\': (forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid}">\n\t\t\t\t    <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t    <input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.username" required/>\n\t\t\t\t    <span data-ng-show="(forms.info.username.$touched || forms.info.$submitted) && forms.info.username.$invalid && forms.info.username.$error.required" class="help-block help-block-error">\n\t\t\t\t      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t    </span>\n\t\t\t\t  </div>\n\t\t\t\t  \x3c!-- END USERNAME --\x3e\n\n\t\t\t\t  \x3c!-- START PASSWORD --\x3e\n\t\t\t\t  <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n\t\t\t\t    <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t    <input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.password" required/>\n\t\t\t\t    <span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid && forms.info.password.$error.required" class="help-block help-block-error">\n\t\t\t\t      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t    </span>\n\t\t\t\t  </div>\n\t\t\t\t  \x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t  \x3c!-- START PORT --\x3e\n\t\t\t\t  <div class="form-group" data-ng-class="{\'has-error\': (forms.info.port.$touched || forms.info.$submitted) && forms.info.port.$invalid}">\n\t\t\t\t    <label class="control-label">{{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t    <input type="number" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="item.account.MailServerOut.port" required/>\n\t\t\t\t    <span data-ng-show="(forms.info.form.$touched || forms.info.$submitted) && forms.info.port.$invalid && forms.info.port.$error.required" class="help-block help-block-error">\n\t\t\t\t      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t    </span>\n\t\t\t\t    <span data-ng-show="(forms.info.form.$touched || forms.info.$submitted) && forms.info.port.$invalid && forms.info.port.$error.number" class="help-block help-block-error">\n\t\t\t\t      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_NUMERIC_FIELD\' | translate}}.\n\t\t\t\t    </span>\n\t\t\t\t  </div>\n\t\t\t\t  \x3c!-- END PORT --\x3e\n\n\t\t\t\t  \x3c!-- START SSL --\x3e\n\t\t\t\t  <div class="form-group">\n\t\t\t\t    <label class="control-label">SSL</label><br>\n\t\t\t\t    <input\n\t\t\t\t    bs-switch\n\t\t\t\t    data-ng-model="item.account.MailServerOut.ssl"\n\t\t\t\t    type="checkbox"\n\t\t\t\t    switch-active="{{ isActive }}"\n\t\t\t\t    switch-on-text="{{ \'APPLICATION_ENABLED\' | translate }}"\n\t\t\t\t    switch-off-text="{{ \'APPLICATION_DISABLED\' | translate }}"\n\t\t\t\t    switch-on-color="{{ onColor }}"\n\t\t\t\t    switch-off-color="{{ offColor }}"\n\t\t\t\t    switch-animate="{{ animate }}"\n\t\t\t\t    switch-size="{{ size }}"\n\t\t\t\t    switch-label="{{ label }}"\n\t\t\t\t    switch-icon="{{ icon }}"\n\t\t\t\t    switch-radio-off="{{ radioOff }}"\n\t\t\t\t    switch-label-width="{{ labelWidth }}"\n\t\t\t\t    switch-handle-width="{{ handleWidth }}">\n\t\t\t\t  </div>\n\t\t\t\t  \x3c!-- END SSL --\x3e\n\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t  <input class="btn blue-madison" type="button" value="Test" data-ng-click="test()" data-ng-if="item.account.id"/>\n\t\t\t\t\t<input class="btn red" type="button" value="{{\'APPLICATION_DELETE\' | translate}}" data-ng-if="item.account.id" data-ng-click="delete(\'Service SMTP\',item.account.id);"/>\n\n\t\t\t\t\t\x3c!-- END SMTP TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\n\t</div>\n</div>\n'),t.put("app/setting/system/view/console/console.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()" data-ng-click="cmdFocus()">\n\t<div class="portlet light">\n\t\t<div class="portlet-title tabbable-line">\n\t\t\t<div class="caption caption-md">\n\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ASTERISK_CONSOLE\' | translate}}\n\t\t\t\t\t<button class="btn btn-default" href="#" data-ng-click="output = \'\';cmdFocus();">\n\t\t\t\t\t\t<i class="icon-ban"></i>\n\t\t\t\t\t</button></span>\n\t\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t\t\t<span us-spinner spinner-key="console-spinner" spinner-start-active="true"></span>\n\t\t\t\t\t<div class="well" style="height:400px;overflow-y:scroll;" schroll-bottom="output" data-ng-bind-html="output"></div>\n\t\t\t\t\t<form name="forms.console" data-ng-submit="forms.console.$valid && sendCmd() && !busy" novalidate>\n\t\t\t\t\t\x3c!-- START COMMAND --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<input type="text" name="command" id="command" placeholder="{{\'APPLICATION_INSERT_COMMAND\' | translate}}" class="form-control" data-ng-model="item.command" data-ng-disabled="busy" autocomplete="off" data-ng-keyup="keyUp($event)"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t{{ \'DESCRIPTION_ENTER_TO_COMMAND\' | translate }}\n\t\t\t\t\t</span>\n\t\t\t\t\t<button type="submit" class="hide"></button>\n\t\t\t\t\t\x3c!-- END COMMAND --\x3e\n\t\t\t\t</form>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/setting/system/view/general/general.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="row ">\n\t\t\t\t<div class="col-md-6 col-sm-6">\n\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t\t<i class="icon-pie-chart font-green-sharp"></i>\n\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_MEMORY\' | translate }} (<b>{{ \'APPLICATION_TOTAL\' | translate }}</b>: {{system.memory.Total}} MB)</a> </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t<a class="btn btn-default" href="#" data-ng-click="initView()" data-ng-disabled="loading">\n\t\t\t\t\t\t\t\t\t<i class="icon-refresh"></i>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t\t\t\t<span us-spinner spinner-key="memory-spinner" spinner-start-active="true"></span>\n\t\t\t\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t\t\t\t<canvas  class="chart chart-pie"  chart-data="system.memory.values" chart-labels="system.memory.labels" chart-legend="true">\n\t\t\t\t\t\t\t</canvas>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-6 col-sm-6">\n\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t\t\t<i class="icon-pie-chart font-green-sharp"></i>\n\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_DISK\' | translate }} (<b>{{ \'APPLICATION_TOTAL\' | translate }}</b>: {{system.mount.size}} GB)</a> </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t<div class="portlet-input input-inline input-medium">\n\t\t\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="system.mount" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_DISK\' | translate}}">{{$select.selected.mount}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="disk in system.disks | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="disk.mount | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t\t\t\t<button class="btn btn-default" href="#" data-ng-click="initView()" data-ng-disabled="loading">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon-refresh"></i>\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t\t\t\t<span us-spinner spinner-key="disk-spinner" spinner-start-active="true"></span>\n\t\t\t\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t\t\t\t<canvas  class="chart chart-pie"  chart-data="system.mount.values" chart-labels="system.mount.labels" chart-legend="true">\n\t\t\t\t\t\t\t</canvas>\n\t\t\t\t\t\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet light bordered">\n\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t\t<i class="icon-pie-chart font-green-sharp"></i>\n\t\t\t\t\t\t<span class="caption-subject">CPU (<b>{{ \'APPLICATION_NUMBER_OF_CORES\' | translate }}</b>: {{system.cpu.cores.length}}, <b>MOTION</b>: {{system.cpu.motion}} % )</a> </span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t<a class="btn btn-default" href="#" data-ng-click="initView()" data-ng-disabled="loading">\n\t\t\t\t\t\t\t<i class="icon-refresh"></i>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t<div class="col-md-2 col-sm-4" data-ng-repeat="cpu in system.cpu.cores">\n\t\t\t\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t\t\t\t<span us-spinner spinner-key="cpu-spinner" spinner-start-active="false"></span>\n\t\t\t\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t\t\t\t<canvas  class="chart chart-doughnut"  chart-data="cpu.values" chart-labels="cpu.labels" chart-colours="cpu.colours" chart-legend="true">\n\t\t\t\t\t\t\t</canvas>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/setting/system/view/logs/logs.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getLog()">\n\t<div class="portlet light">\n\t\t<div class="portlet-title tabbable-line">\n\t\t\t<div class="caption caption-md">\n\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_LOGS\' | translate}}\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="portlet-input input-inline input-medium">\n\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t<ui-select data-ng-model="item.filename" theme="bootstrap" on-select="getLog()" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_FILENAME\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices position=\'down\' repeat="logfile in logfiles | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="logfile | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span class="input-group-btn">\n\t\t\t\t\t\t\t\t<button class="btn btn-default" href="#" data-ng-click="getLog()" data-ng-disabled="loading">\n\t\t\t\t\t\t\t\t\t<i class="icon-refresh"></i>\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t\t\t<pre class="log-pre" schroll-bottom="log">\n\t\t\t\t\t\t\x3c!-- BEGIN LOGS SPINNER --\x3e\n\t\t\t\t\t\t<span us-spinner spinner-key="logs-spinner" spinner-start-active="true"></span>\n\t\t\t\t\t\t\x3c!-- END LOGS SPINNER --\x3e\n\t\t\t\t\t\t{{log}}\n\t\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/setting/system/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n        <li>\n          <i class="icon-pie-chart"></i>\n          <a href="#">{{ \'APPLICATION_SYSTEM\' | translate }}</a>\n        </li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/customize.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ \'APPLICATION_SYSTEM\' | translate }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.setting.system.view.general\')}">\n\t\t\t\t\t\t\t<a ng-href="/setting/system/view/general">\n\t\t\t\t\t\t\t\t<i class="icon-pie-chart"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_GENERAL\' | translate }} </a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.setting.system.view.logs\')}">\n\t\t\t\t\t\t\t\t<a ng-href="/setting/system/view/logs">\n\t\t\t\t\t\t\t\t\t<i class="icon-list"></i>\n\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_LOGS\' | translate }} </a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.setting.system.view.console\')}">\n\t\t\t\t\t\t\t\t<a ng-href="/setting/system/view/console">\n\t\t\t\t\t\t\t\t\t<i class="icon-chemistry"></i>\n\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_ASTERISK_CONSOLE\' | translate }} </a>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/update/list/landing.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n  <div class="col-md-12">\n    <div class="page-bar">\n      <ul class="page-breadcrumb">\n        <li>\n          <i class="icon-rocket"></i>\n          <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n        <li>\n          <i class="icon-settings"></i>\n          <a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n          <i class="fa fa-angle-right"></i>\n        </li>\n        <li>\n          <i class="icon-cloud-download"></i>\n          <a href="#">{{ \'APPLICATION_UPDATES\' | translate }}</a>\n        </li>\n      </ul>\n    </div>\n    \x3c!-- BEGIN PAGE CONTENT--\x3e\n    <div class="row" data-ng-init="initCounter()">\n      <div class="col-md-12 page-500">\n        <div class="number">\n          <timer interval="1000" countdown="360">{{countdown}}</timer>\n        </div>\n        <div class="details">\n          <h3>Wait! xCALLY Motion update in progess...</h3>\n          <p>\n            We are updating it!<br/>\n            xCALLY Motion Team<br/><br/>\n          </p>\n        </div>\n      </div>\n    </div>\n    \x3c!-- END PAGE CONTENT--\x3e\n  </div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/update/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SETTINGS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-cloud-download"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_UPDATES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t\x3c!-- <div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-cloud-download font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_UPDATES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<a class="btn btn-default" href="#" data-ng-click="pull()">\n\t\t\t\t\t\t<i class="icon-cloud-download"></i> {{ \'APPLICATION_UPDATE\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body" data-ng-init="initView()"> --\x3e\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\x3c!-- <div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div> --\x3e\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t\t\x3c!-- </div> --\x3e\n\t\t<div class="row">\n\t\t\t<div class="col-md-12">\n\t\t\t\t\x3c!-- BEGIN INLINE NOTIFICATIONS PORTLET--\x3e\n\t\t\t\t<div class="portlet">\n\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t<div class="caption">\n\t\t\t\t\t\t\t<i class="icon-cloud-download font-green-sharp"></i>{{ \'APPLICATION_UPDATE\' | translate }}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t<button class="btn btn-default" href="#" data-ng-click="pull()">\n\t\t\t\t\t\t\t\t<i class="icon-cloud-download"></i> {{ \'APPLICATION_UPDATE\' | translate }}\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="portlet-body" data-ng-init="initView()">\n\t\t\t\t\t\t<div class="row margin-bottom-40">\n\t\t\t\t\t\t\t\x3c!-- Pricing --\x3e\n\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t<div class="pricing hover-effect current-version">\n\t\t\t\t\t\t\t\t\t<div class="pricing-head">\n\t\t\t\t\t\t\t\t\t\t<h3>{{ \'APPLICATION_CURRENT_VERSION\' | translate }} <span>\n\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_LAST_PERFORMED_UPDATE\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t\t\t\t<h4>v. {{currentVersion.version}}</h4>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<ul class="pricing-content list-unstyled">\n\t\t\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t\t\t<i class="icon-clock"></i><b> {{\'APPLICATION_RELEASED_AT\' | translate}}:</b> {{currentVersion.createdAt}}\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t\t\t<i class="icon-list"></i> <a target="_blank" href="https://wiki.xcallymotion.com/display/XMD/Motion+GUI#MotionGUI-Version{{currentVersion.version}}">{{\'APPLICATION_CHANGELOG\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t<div class="pricing-footer">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t<div class="pricing hover-effect" data-ng-class="{\'disabled-update\':currentVersion.version==latestVersion.version}">\n\t\t\t\t\t\t\t\t\t<div class="pricing-head">\n\t\t\t\t\t\t\t\t\t\t<h3>{{ \'APPLICATION_LATEST_VERSION\' | translate }} <span>\n\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_LAST_SOFTWARE_UPDATE_AVAILABLE\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t\t\t\t<h4>v. {{latestVersion.version}}</h4>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<ul class="pricing-content list-unstyled">\n\t\t\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t\t\t<i class="icon-clock"></i><b> {{\'APPLICATION_RELEASED_AT\' | translate}}:</b> {{latestVersion.createdAt}}\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t\t\t<i class="icon-list"></i> <a target="_blank" href="https://wiki.xcallymotion.com/display/XMD/Motion+GUI#MotionGUI-Version{{latestVersion.version}}">{{\'APPLICATION_CHANGELOG\' | translate}}</a>\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t<div class="pricing-footer">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!--//End Pricing --\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END INLINE NOTIFICATIONS PORTLET--\x3e\n\t\t\t</div>\n\t\t</div>\n\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/setting/update/list/list.pull.html",'<div class="modal-header">\n  <button data-ng-if="modal.dismissable" type="button" data-ng-click="$dismiss()" class="close">&times;</button>\n  <h4 ng-if="modal.title" ng-bind="modal.title" class="modal-title"></h4>\n</div>\n<div class="modal-body">\n  <p data-ng-if="modal.text" data-ng-bind="modal.text"></p>\n  <div data-ng-if="modal.html" data-ng-bind-html="modal.html"></div>\n</div>\n<div class="modal-footer">\n  <button data-ng-repeat="button in modal.buttons" data-ng-class="button.classes" data-ng-click="button.click($event)" data-ng-bind="button.text" class="btn"></button>\n</div>\n'),t.put("app/square/odbc/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_ODBC\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DSN --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.dsn.$touched || form.$submitted) && form.dsn.$invalid}">\n      <label class="control-label">{{\'APPLICATION_ODBC\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="dsn" placeholder="DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion" class="form-control" data-ng-model="item.dsn" required/>\n      <p class="help-block">Es. DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion</p>\n      <span data-ng-show="(form.dsn.$touched || form.$submitted) && form.dsn.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END DSN --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/square/odbc/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-superscript"></i>\n\t\t\t\t\t<a>Cally &#178;</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ODBCS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ODBC\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/square/odbc/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getOdbc()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-superscript"></i>\n\t\t\t\t\t<a>Cally &#178;</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/square/odbc/list">{{ \'APPLICATION_ODBCS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="odbc" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="odbc">\n\t\t\t\t\t<a href="#">{{odbc.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/odbc.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{odbc.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.square.odbc.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/square/odbc/view/{{odbc.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/square/odbc/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ODBC\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateOdbc()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t        <label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t        <input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="odbc.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t      </div>\n\t\t\t\t      \x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DSN --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ODBC\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="dsn" placeholder="{{\'APPLICATION_DSN\' | translate}}" class="form-control" data-ng-model="odbc.dsn" required/>\n\t\t\t\t\t\t\t\t<p class="help-block">Es. DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion</p>\n\t\t\t\t\t      <span data-ng-show="(forms.odbc.dsn.$touched || forms.odbc.$submitted) && forms.odbc.dsn.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DSN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="odbc.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/square/project/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_PROJECT\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/square/project/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-superscript"></i>\n\t\t\t\t\t<a>Cally &#178;</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n        <li>\n          <i class="fa fa-slack"></i>\n          <a href="#">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n        </li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_PROJECTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_PROJECT\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/square/project/view/projectNotes.modal.html",'<div class="yellow-notes">\n<div class="modal-header">\n  <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">&times;</button>\n  <h4 class="modal-title">{{\'APPLICATION_NOTES\' | translate}}</h4>\n</div>\n<div class="modal-body" style="text-align:center;">\n<textarea name="name" class="notes-textarea" placeholder="{{\'MESSAGE_INSERT_YOUR_TEXT_HERE\' | translate}}" data-ng-model="notes.value"></textarea>\n</div>\n<div class="modal-footer" >\n  <button class="btn green-haze" type="button" ng-click="close()">{{ \'APPLICATION_SAVE\' | translate }}</button>\n</div>\n</div>\n'),t.put("app/square/project/view/view.html",'<div class="row" data-ng-init="getProject()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar" style="margin-bottom: 0px;">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-superscript"></i>\n\t\t\t\t\t<a>Cally &#178;</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-slack"></i>\n\t\t\t\t\t<a href="/square/projects/list">{{ \'APPLICATION_PROJECTS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a ng-href="/square/projects/view/{{squareProject.id}}">{{squareProject.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t<h4 class="text-success bold"> {{squareProject.name}} <button class="btn btn-xs yellow-saffron" type="button" data-ng-click="editNotes()"><i class="icon-note"></i> {{\'APPLICATION_NOTES\' | translate}}</button></h4> <p class="text-muted"> {{squareProject.description}} </p>\n\n\t\t<div id="geEditor" class="geEditor"></div>\n\t</div>\n</div>\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\n\t</div>\n</div>\n\n\x3c!-- END PAGE CONTENT--\x3e\n<script><\/script>\n'),t.put("app/square/realtime/view/general/general.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="init()">\n\t<div class="col-md-12">\n\t\t\x3c!-- START TABLE --\x3e\n\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns  class="ui-grid" ui-grid-pagination ui-grid-auto-resize>\n\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t</div>\n\t\t\x3c!-- END TABLE --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/square/realtime/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-superscript"></i>\n\t\t\t\t\t<a href="#">Cally &#178;</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-energy"></i>\n\t\t\t\t\t<a href="/square/realtime/view/general">{{ \'APPLICATION_REALTIME\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t<div>\n\t\t    <nav class="navbar navbar-default" role="navigation">\n\t\t\t\t\t<div class="collapse navbar-collapse">\n\t\t\t\t\t\t<ul class="nav navbar-nav">\n\t\t\t\t\t\t\t<li data-ng-class="{\'active\': $state.is(\'main.square.realtime.view.general\')}">\n\t\t\t\t\t\t\t\t<a href="/square/realtime/view/general">\n\t\t\t\t\t\t\t\t\t{{\'APPLICATION_GENERAL\' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t    </nav>\n\t\t</div>\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/square/recording/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-superscript"></i>\n\t\t\t\t\t<a href="#">Cally &#178;</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-microphone"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_RECORDINGS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="fa fa-play font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_RECORDINGS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/agent/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-people font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_AGENTS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group" data-ng-show="Auth.getCurrentUser().role === \'admin\'">\n\t\t\t\t\t\t<button type="button" class="btn green-jungle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true" aria-expanded="true">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_AGENT\' | translate }} <i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<ul class="dropdown-menu" role="menu">\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="/staff/agents/wizard">\n\t\t\t\t\t\t\t\t\tStandard\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<a href="/staff/agents/bulk">\n\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_BULK\' | translate }}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/agent/view/view.account.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li data-ng-class="{\'active\': Auth.isAdmin() || userModules[4]}" data-ng-show="Auth.isAdmin() || userModules[4]">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li data-ng-show="Auth.isAdmin() || userModules[4]">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li data-ng-show="Auth.isAdmin() || userModules[4] || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- PERSONAL INFO TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" data-ng-class="{\'active\': Auth.isAdmin() || userModules[4]}" data-ng-show="Auth.isAdmin() || userModules[4]" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="agent.fullname" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="agent.name" disabled/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="agent.email" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PHONE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="agent.phone"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PHONE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MOBILE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.mobile.$touched || forms.info.$submitted) && forms.info.mobile.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="agent.mobile"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MOBILE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="agent.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START LOGIN IN PAUSE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_LOGIN_IN_PAUSE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="agent.loginInPause"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="auth"\n\t\t\t\t\t\t\t\tswitch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END LOGIN IN PAUSE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START WEB BAR --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SHOW_WEB_BAR\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="agent.showWebBar"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="auth"\n\t\t\t\t\t\t\t\tswitch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END WEB BAR --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END PERSONAL INFO TAB --\x3e\n\t\t\t\t\t\x3c!-- CHANGE AVATAR TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" data-ng-show="Auth.isAdmin() || userModules[4]" id="tab_1_2">\n\t\t\t\t\t\t<form action="#" role="form">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<div class="fileinput fileinput-new" data-provides="fileinput">\n\t\t\t\t\t\t\t\t\t<div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n\t\t\t\t\t\t\t\t\t\t<img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t<span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n\t\t\t\t\t\t\t\t\t\t\t<span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t\t<input type="file" nv-file-select="" uploader="uploader" /><br/>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_REMOVE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIRM\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t</br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-md-2">\n\t\t\t\t\t\t\t\t<table class="table" border="0">\n\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t<tr data-ng-repeat="item in uploader.queue">\n\t\t\t\t\t\t\t\t\t\t\t<td style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ item.file.name }}\n\t\t\t\t\t\t\t\t\t\t\t\t</strong>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ item.file.size/1024/1024|number:2 }} MB\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td nowrap style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span> Remove\n\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANGE AVATAR TAB --\x3e\n\t\t\t\t\t\x3c!-- CHANGE PASSWORD TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" data-ng-show="Auth.isAdmin() || userModules[4] || agent.id === Auth.getCurrentUser().id" data-ng-class="{\'active\': !Auth.isAdmin() && agent.id === Auth.getCurrentUser().id}" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START CURRENT PWD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="!(Auth.isAdmin() || userModules[4])" data-ng-class="{\'has-error\': (forms.changePwd.current_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.current_pwd.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.currentPwd" required/>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CURRENT PWD --\x3e\n\t\t\t\t\t\t\t\x3c!-- START NEW PWD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="agent.newPwd" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.info.$submitted) && forms.changePwd.current_pwd.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NEW PWD --\x3e\n\t\t\t\t\t\t\t\x3c!-- START RE-NEW PWD --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RE-NEW PWD --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANGE PASSWORD TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/staff/agent/view/view.chat.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_CHAT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START CHAT TAB --\x3e\n\t\t\t\t<form name="form" data-ng-submit="patchItem()" novalidate>\n\t\t\t\t\t\x3c!-- START CAPACITY --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" name="chatCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.chatCapacity" min="0" required/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CAPACITY --\x3e\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END CHAT TAB --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/staff/agent/view/view.fax.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_FAX\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START CHAT TAB --\x3e\n\t\t\t\t<form name="form" data-ng-submit="patchItem()" novalidate>\n\t\t\t\t\t\x3c!-- START CAPACITY --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" name="faxCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.faxCapacity" min="0" required/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CAPACITY --\x3e\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END CHAT TAB --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/staff/agent/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t\t<a href="/staff/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{agent.fullname}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-userpic">\n\t\t\t\t\t<img ng-src="api/users/avatar/{{agent.userpic ? agent.userpic : \'unknown_avatar\'}}" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\n\t\t\t\t\x3c!-- START SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{agent.fullname}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{agent.role}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.agents.view.account\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/agents/view/{{agent.id}}/account">\n\t\t\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.staff.agents.view.queues\')}" data-ng-show="Auth.isAdmin() || userModules[7]">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/agents/view/{{agent.id}}/queues/voice">\n\t\t\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_QUEUES\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.agents.view.voice\')}" data-ng-show="Auth.isAdmin() || userModules[7]">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/agents/view/{{agent.id}}/voice">\n\t\t\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_VOICE\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.agents.view.chat\'),\'disabled-link\':!license.chat}" data-ng-show="Auth.isAdmin() || userModules[8]">\n\t\t\t\t\t\t\t<a data-ng-href="{{license.chat ? \'/staff/agents/view/\'+agent.id+\'/chat\' : \'javascript:;\'}}" class="disable-target">\n\t\t\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_CHAT\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t\x3c!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.mail\'),\'disabled-link\':!license.mail}" data-ng-show="Auth.isAdmin() || userModules[9]">\n\t\t\t\t\t\t\t<a data-ng-href="{{license.mail ? \'/staff/agents/view/\'+agent.id+\'/mail\' : \'javascript:;\'}}" class="disable-target">\n\t\t\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_MAIL\' | translate}} </a>\n\t\t\t\t\t\t</li> --\x3e\n\n\t\t\t\t\t\t\x3c!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.fax\'),\'disabled-link\':!license.fax}" data-ng-show="Auth.isAdmin() || userModules[10]">\n\t\t\t\t\t\t\t<a data-ng-href="{{license.fax ? \'/staff/agents/view/\'+agent.id+\'/fax\' : \'javascript:;\'}}" class="disable-target">\n\t\t\t\t\t\t\t<i class="fa fa-fax"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_FAX\' | translate}} </a>\n\t\t\t\t\t\t</li> --\x3e\n\n\t\t\t\t\t\t\x3c!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.sms\'),\'disabled-link\':!license.messaging}" data-ng-show="Auth.isAdmin() || userModules[11]">\n\t\t\t\t\t\t\t<a data-ng-href="{{license.messaging ? \'/staff/agents/view/\'+agent.id+\'/sms\' : \'javascript:;\'}}" class="disable-target">\n\t\t\t\t\t\t\t\t<i class="\tglyphicon glyphicon-comment\t"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SMS\' | translate}} </a>\n\t\t\t\t\t\t</li> --\x3e\n\t\t\t\t\t\t\x3c!-- <li data-ng-class="{active: $state.is(\'main.staff.agents.view.openchannel\'),\'disabled-link\':!license.openchannel}" data-ng-show="Auth.isAdmin() || userModules[20]">\n\t\t\t\t\t\t\t<a data-ng-href="{{license.openchannel ? \'/staff/agents/view/\'+agent.id+\'/openchannel\' : \'javascript:;\'}}" class="disable-target">\n\t\t\t\t\t\t\t\t<i class="\ticon-globe\t"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_OPEN_CHANNEL\' | translate}} </a>\n\t\t\t\t\t\t</li> --\x3e\n\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.agents.view.motionbar\')}" data-ng-show="Auth.isAdmin()">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/agents/view/{{agent.id}}/motionbar">\n\t\t\t\t\t\t\t<i class="icon-screen-desktop"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_MOTION_BAR\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/agent/view/view.mail.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_MAIL\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START CHAT TAB --\x3e\n\t\t\t\t<form name="form" data-ng-submit="patchItem()" novalidate>\n\t\t\t\t\t\x3c!-- START CAPACITY --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" name="mailCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.mailCapacity" min="0" required/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CAPACITY --\x3e\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END CHAT TAB --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/staff/agent/view/view.motionbar.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_MOTION_BAR\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li data-ng-show="Auth.isAdmin()">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CALL_FORWARDING\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li data-ng-show="Auth.isAdmin()">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- START GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" data-ng-class="{\'active\': Auth.isAdmin()}" data-ng-show="Auth.isAdmin()" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="updateItem()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START ENABLE_SETTINGS --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENABLE_SETTINGS\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="agent.phoneBarEnableSettings"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ENABLE_SETTINGS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START AUTO_ANSWER --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTO_ANSWER\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="agent.phoneBarAutoAnswer"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END AUTO_ANSWER --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ENABLE_RECORDING --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENABLE_RECORDING\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="agent.phoneBarEnableRecording"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ENABLE_RECORDING --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SHOW_OMNI_DESKTOP --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SHOW_OMNI_DESKTOP_BUTTON\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="agent.phoneBarShowOmniDesktop"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SHOW_OMNI_DESKTOP --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START UNCONDITIONAL --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RINGINUSE\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="agent.phoneBarRingInUse"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END UNCONDITIONAL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t\t\x3c!-- START CALL FORWARDING TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" data-ng-show="Auth.isAdmin()" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.callForwarding" data-ng-submit="updateItem()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START UNCONDITIONAL --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_UNCONDITIONAL\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="agent.phoneBarUnconditional"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END UNCONDITIONAL --\x3e\n\n\n\t\t\t\t\t\t\t\x3c!-- START UNCONDITIONAL NUMBER --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="agent.phoneBarUnconditional" data-ng-class="{\'has-error\': (forms.callForwarding.phoneBarUnconditionalNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarUnconditionalNumber.$invalid}">\n\t\t\t\t\t\t\t\t<input type="text" name="phoneBarUnconditionalNumber" placeholder="{{\'APPLICATION_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.phoneBarUnconditionalNumber" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\x3c!-- {{ \'DESCRIPTION_VOICE_HOST\' | translate }} --\x3e\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.callForwarding.phoneBarUnconditionalNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarUnconditionalNumber.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END UNCONDITIONAL NUMBER --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START NO REPLY --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NO_REPLY\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="agent.phoneBarNoReply"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NO REPLY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START NO REPLY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="agent.phoneBarNoReply" data-ng-class="{\'has-error\': (forms.callForwarding.phoneBarNoReplyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarNoReplyNumber.$invalid}">\n\t\t\t\t\t\t\t\t<input type="text" name="phoneBarNoReplyNumber" placeholder="{{\'APPLICATION_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.phoneBarNoReplyNumber" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\x3c!-- {{ \'DESCRIPTION_VOICE_HOST\' | translate }} --\x3e\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.callForwarding.phoneBarNoReplyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarNoReplyNumber.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REPLY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START BUSY --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_BUSY\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="agent.phoneBarBusy"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END BUSY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START BUSY NUMBER --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="agent.phoneBarBusy" data-ng-class="{\'has-error\': (forms.callForwarding.phoneBarBusyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarBusyNumber.$invalid}">\n\t\t\t\t\t\t\t\t<input type="text" name="phoneBarBusyNumber" placeholder="{{\'APPLICATION_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.phoneBarBusyNumber" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\x3c!-- {{ \'DESCRIPTION_VOICE_HOST\' | translate }} --\x3e\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.callForwarding.phoneBarBusyNumber.$touched || forms.callForwarding.$submitted) && forms.callForwarding.phoneBarBusyNumber.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END BUSY NUMBER --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CALL FORWARDING TAB --\x3e\n\t\t\t\t\t\x3c!-- START ADVANCED TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" data-ng-show="Auth.isAdmin()" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.advanced" data-ng-submit="updateItem()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START ENABLE REMOTE CONTROL --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REMOTE_CONTROL\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tng-model="agent.phoneBarRemoteControl"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ENABLE REMOTE CONTROL --\x3e\n\n\n\t\t\t\t\t\t\t\x3c!-- START REMOTE CONTROL PORT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="agent.phoneBarRemoteControl" data-ng-class="{\'has-error\': (forms.advanced.phoneBarRemoteControlPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarRemoteControlPort.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REMOTE_CONTROL\' | translate}} {{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="phoneBarRemoteControlPort" placeholder="{{\'APPLICATION_REMOTE_CONTROL\' | translate}} {{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="agent.phoneBarRemoteControlPort" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">Default: 9888</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.phoneBarRemoteControlPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarRemoteControlPort.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.advanced.phoneBarRemoteControlPort.$error.max || form.advanced.phoneBarRemoteControlPort.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REMOTE CONTROL PORT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SIP EXPIRES --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.phoneBarExpires.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarExpires.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">SIP {{\'APPLICATION_EXPIRES\' | translate}} [sec]<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="1" name="phoneBarExpires" placeholder="SIP {{\'APPLICATION_EXPIRES\' | translate}}" class="form-control" data-ng-model="agent.phoneBarExpires" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">Default: 120</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.phoneBarExpires.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarExpires.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.advanced.phoneBarExpires.$error.max || form.advanced.phoneBarExpires.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}} (min 1).\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SIP EXPIRES --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SIP PORT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.phoneBarListenPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarListenPort.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">SIP {{\'APPLICATION_PORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="0" max="65535" name="phoneBarListenPort" placeholder="SIP {{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="agent.phoneBarListenPort" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">Default: 5060</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.phoneBarListenPort.$touched || forms.advanced.$submitted) && forms.advanced.phoneBarListenPort.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="form.advanced.phoneBarListenPort.$error.max || form.advanced.phoneBarListenPort.$error.min" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_NUMBER\' | translate}} (0-65535).\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SIP PORT --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/staff/agent/view/view.openchannel.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_OPEN_CHANNEL\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START CHAT TAB --\x3e\n\t\t\t\t<form name="form" data-ng-submit="patchItem()" novalidate>\n\t\t\t\t\t\x3c!-- START CAPACITY --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" name="openchannelCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.openchannelCapacity" min="0" required/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CAPACITY --\x3e\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END CHAT TAB --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/staff/agent/view/view.queues.chat.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initChatQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-chat">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/agent/view/view.queues.fax.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initFaxQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-fax">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/agent/view/view.queues.html","\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class=\"row\" data-ng-init=\"initView()\">\n\t<div class=\"col-md-12\">\n\t\t<div>\n\t\t    <nav class=\"navbar navbar-default\" role=\"navigation\">\n\t\t\t\t\t<div class=\"collapse navbar-collapse\">\n\t\t\t\t\t\t<ul class=\"nav navbar-nav\">\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.voice')}\">\n\t\t\t\t\t\t\t\t<a href=\"/staff/agents/view/{{agent.id}}/queues/voice\">\n\t\t\t\t\t\t\t\t\t<i class=\"icon-earphones-alt\"></i> {{'APPLICATION_VOICE' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.chat'),'disabled-link':!license.chat}\" data-ng-show=\"Auth.isAdmin() || userModules[8]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.chat ? '/staff/agents/view/'+agent.id+'/queues/chat' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"icon-bubble\"></i> {{'APPLICATION_CHAT' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.mail'),'disabled-link':!license.mail}\" data-ng-show=\"Auth.isAdmin() || userModules[9]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.mail ? '/staff/agents/view/'+agent.id+'/queues/mail' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"icon-envelope\"></i>{{'APPLICATION_MAIL' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.fax'),'disabled-link':!license.fax}\" data-ng-show=\"Auth.isAdmin() || userModules[10]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.fax ? '/staff/agents/view/'+agent.id+'/queues/fax' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"fa fa-fax\"></i> {{'APPLICATION_FAX' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.sms'),'disabled-link':!license.messaging}\" data-ng-show=\"Auth.isAdmin() || userModules[11]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.messaging ? '/staff/agents/view/'+agent.id+'/queues/sms' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"glyphicon glyphicon-comment\"></i> {{'APPLICATION_SMS' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.agents.view.queues.openchannel'),'disabled-link':!license.openchannel}\" data-ng-show=\"Auth.isAdmin() || userModules[20]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.openchannel ? '/staff/agents/view/'+agent.id+'/queues/openchannel' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"icon-globe\"></i> {{'APPLICATION_OPEN_CHANNEL' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t    </nav>\n\t\t</div>\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n"),t.put("app/staff/agent/view/view.queues.mail.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initMailQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-mail">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/agent/view/view.queues.openchannel.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initOpenchannelQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-openchannel">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/agent/view/view.queues.sms.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initSmsQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-sms">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/agent/view/view.queues.voice.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initVoiceQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<label for="penalty">{{\'APPLICATION_PENALTY\' | translate}}</label>\n\t\t\t\t<div class="input-group input-small mbottom20">\n\t\t\t\t\t<input type="number" class="spinner-input form-control" maxlength="3" data-ng-model="params.penalty" readonly>\n\t\t\t\t\t<div class="spinner-buttons input-group-btn btn-group-vertical">\n\t\t\t\t\t\t<button type="button" class="btn spinner-up btn-xs blue" data-ng-click="params.penalty=params.penalty+1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-up"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t<button type="button" class="btn spinner-down btn-xs blue" data-ng-disabled="!params.penalty" data-ng-click="params.penalty=params.penalty-1">\n\t\t\t\t\t\t\t<i class="fa fa-angle-down"></i>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-voice">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/agent/view/view.sms.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_SMS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START CHAT TAB --\x3e\n\t\t\t\t<form name="form" data-ng-submit="patchItem()" novalidate>\n\t\t\t\t\t\x3c!-- START CAPACITY --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (form.capacity.$touched || form.$submitted) && form.name.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CAPACITY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" name="smsCapacity" placeholder="{{\'APPLICATION_CAPACITY\' | translate}}" class="form-control" data-ng-model="agent.smsCapacity" min="0" required/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{\'MESSAGE_ZERO_MEANS_UNLIMITED\' | translate}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CAPACITY --\x3e\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t\t\x3c!-- END CHAT TAB --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/staff/agent/view/view.voice.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_VOICE\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.voice" data-ng-submit="updateItem()" novalidate>\n\n\t\t\t\t\t\x3c!-- START INTERNAL --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.voice.internal.$touched || forms.voice.$submitted) && forms.voice.internal.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="text" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="agent.internal" required disabled/>\n\t\t\t\t\t\t<span data-ng-show="(forms.voice.internal.$touched || forms.voice.$submitted) && forms.voice.internal.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END INTERNAL --\x3e\n\n\t\t\t\t\t\x3c!-- START TRANSPORT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n\t\t\t\t\t\t<ui-select multiple name="transport" ng-model="agent.transport" theme="bootstrap">\n\t\t\t\t\t\t\t<ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t{{transport}}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TRANSPORT --\x3e\n\n\t\t\t\t\t\x3c!-- START HOST --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="agent.host" required/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_HOST\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.voice.host.$touched || forms.voice.$submitted) && forms.voice.host.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END HOST --\x3e\n\n\t\t\t\t\t\x3c!-- START NAT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_NAT\' | translate}}</label>\n\t\t\t\t\t\t<ui-select multiple data-ng-model="agent.nat" name="nat" theme="bootstrap">\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="nat in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t{{nat}}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_NAT\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END NAT --\x3e\n\n\t\t\t\t\t\x3c!-- START TYPE --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="agent.type" name="type" theme="bootstrap" required>\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_SEARCH_FILTER\' | translate }}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="type in [\'friend\', \'user\', \'peer\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="type | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_TYPE\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.voice.type.$touched || forms.voice.$submitted) && forms.voice.type.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TYPE --\x3e\n\n\t\t\t\t\t\x3c!-- START CODEC --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n\t\t\t\t\t\t<ui-select multiple ng-model="agent.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t<ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="allow in [\'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t{{allow}}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CODEC --\x3e\n\n\t\t\t\t\t\x3c!-- START CHANSPY --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHANSPY\' | translate}}</label></br>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\tng-model="agent.chanspy"\n\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\tname="auth"\n\t\t\t\t\t\tswitch-active="{{ recordSwitch.isActive }}"\n\t\t\t\t\t\tswitch-on-text="{{ recordSwitch.onText }}"\n\t\t\t\t\t\tswitch-off-text="{{ recordSwitch.offText }}"\n\t\t\t\t\t\tswitch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}"\n\t\t\t\t\t\tswitch-animate="{{ recordSwitch.animate }}"\n\t\t\t\t\t\tswitch-size="{{ recordSwitch.size }}"\n\t\t\t\t\t\tswitch-label="{{ recordSwitch.label }}"\n\t\t\t\t\t\tswitch-icon="{{ recordSwitch.icon }}"\n\t\t\t\t\t\tswitch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}"\n\t\t\t\t\t\tswitch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANSPY --\x3e\n\n\t\t\t\t\t\x3c!-- START CALLGROUP --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CALLGROUP\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="callgroup" placeholder="{{\'APPLICATION_CALLGROUP\' | translate}}" class="form-control" data-ng-model="agent.callgroup"/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CALLGROUP\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CALLGROUP --\x3e\n\n\t\t\t\t\t\x3c!-- START PICKUPGROUP --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PICKUPGROUP\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="pickupgroup" placeholder="{{\'APPLICATION_PICKUPGROUP\' | translate}}" class="form-control" data-ng-model="agent.pickupgroup"/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_PICKUPGROUP\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END PICKUPGROUP --\x3e\n\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/staff/agent/wizard/wizard-bulk.html",'<div class="col-md-12">\n\t\x3c!-- BEGIN PAGE HEADER--\x3e\n\t<div class="page-bar">\n\t\t<ul class="page-breadcrumb">\n\t\t\t<li>\n\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t<a href="/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-options"></i>\n\t\t\t\t<a href="/agents/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\t\x3c!-- END PAGE HEADER--\x3e\n\n\t\x3c!-- BEGIN PORTLET--\x3e\n\t<div class="portlet light bordered" data-ng-init="getFirstFreeInternal(); item.amount = 2; item.startIndex = 0;">\n\t\t<div class="portlet-title">\n\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t<i class="icon-user font-green-sharp"></i>\n\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }} WIZARD</a> </span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t<wizard on-finish="createItems()">\n\t\t\t\t<wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n\t\t\t\t\t<form name="forms.info" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START AMOUNT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.amount.$touched || forms.info.$submitted) && forms.info.amount.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AMOUNT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="amount" min="2" max="{{maxAmount}}" placeholder="{{\'APPLICATION_AMOUNT\' | translate}}" class="form-control" data-ng-model="item.amount" required>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.amount.$touched || forms.info.$submitted) && forms.info.amount.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t{{\'MESSAGE_STARTING_FROM_INTERNAL\' | translate}} <b>{{item.minInternal}}</b> {{\'MESSAGE_MAX_NUM_OF_BULK_AGENTS_IS\' | translate}} <b>{{maxAmount}}</b>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END AMOUNT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START START INDEX --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.startIndex.$touched || forms.info.$submitted) && forms.info.startIndex.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_START_INDEX\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="startIndex" min="0" placeholder="{{\'APPLICATION_START_INDEX\' | translate}}" class="form-control" data-ng-model="item.startIndex" required>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.startIndex.$touched || forms.info.$submitted) && forms.info.startIndex.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END START INDEX --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MIN INTERNAL--\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.minInternal.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MIN_INTERNAL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="number" name="minInternal" min="0" placeholder="{{\'APPLICATION_MIN_INTERNAL\' | translate}}" class="form-control" data-ng-change="getAmount()" data-ng-model="item.minInternal" required>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.minInternal.$touched || forms.info.$submitted) && forms.info.minInternal.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MIN INTERNAL--\x3e\n\n\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n\n\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\x3c!-- START RE PASSWORD --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END RE PASSWORD --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n\t\t\t\t\t<form name="forms.voice" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START TRANSPORT --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n\t\t\t\t\t\t\t<ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{transport}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TRANSPORT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START CODEC --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n\t\t\t\t\t\t\t<ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="allow in [\'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{allow}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END CODEC --\x3e\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t</wz-step>\n\t\t\t</wizard>\n\t\t</div>\n\t</div>\n\t\x3c!-- END PORTLET--\x3e\n</div>\n'),t.put("app/staff/agent/wizard/wizard.html",'<div class="col-md-12">\n\t\x3c!-- BEGIN PAGE HEADER--\x3e\n\t<div class="page-bar">\n\t\t<ul class="page-breadcrumb">\n\t\t\t<li>\n\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t<a href="/staff/agents/list">{{ \'APPLICATION_AGENTS\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-options"></i>\n\t\t\t\t<a href="/agents/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\t\x3c!-- END PAGE HEADER--\x3e\n\n\t\x3c!-- BEGIN PORTLET--\x3e\n\t<div class="portlet light bordered" data-ng-init="getFirstFreeInternal();">\n\t\t<div class="portlet-title">\n\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t<i class="icon-user font-green-sharp"></i>\n\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_AGENT\' | translate }} WIZARD</a> </span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t<wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n\t\t\t\t\t<form name="forms.info" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n\n\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.phone.$touched || forms.info.$submitted) && forms.info.phone.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PHONE\' | translate}}</label>\n\t\t\t\t\t\t\t<input type="text" name="phone" placeholder="{{\'APPLICATION_PHONE\' | translate}}" class="form-control" data-ng-model="item.phone"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.mobile.$touched || forms.info.$submitted) && forms.info.mobile.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOBILE\' | translate}}</label>\n\t\t\t\t\t\t\t<input type="text" name="mobile" placeholder="{{\'APPLICATION_MOBILE\' | translate}}" class="form-control" data-ng-model="item.mobile"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t {{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\x3c!-- START RE PASSWORD --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END RE PASSWORD --\x3e\n\n\t\t\t\t\t\t\x3c!-- START INTERNAL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t<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"/>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">\n\t\t\t\t\t\t\t\t\t<input type="checkbox" data-ng-model="item.internalEnabled">\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END INTERNAL --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n\t\t\t\t\t<form name="forms.voice" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START TRANSPORT --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n\t\t\t\t\t\t\t<ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{transport}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TRANSPORT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START CODEC --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n\t\t\t\t\t\t\t<ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="allow in [\'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{allow}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END CODEC --\x3e\n\n\t\t\t\t\t\t\x3c!-- <div class="form-body" data-ng-init="initVoiceQueues()">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n\t\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-voice">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div> --\x3e\n\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t\x3c!-- <wz-step title="{{\'APPLICATION_CHAT\' | translate}}">\n\t\t\t\t\t<form name="forms.chat">\n\t\t\t\t\t\t<div class="form-body" data-ng-init="initChatQueues()">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n\t\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-chat">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step> --\x3e\n\n\t\t\t\t\x3c!-- <wz-step title="{{\'APPLICATION_MAIL\' | translate}}">\n\t\t\t\t\t<form name="forms.mail">\n\t\t\t\t\t\t<div class="form-body" data-ng-init="initMailQueues()">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n\t\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-mail">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step> --\x3e\n\n\n\t\t\t\t\x3c!-- <wz-step title="{{\'APPLICATION_SMS\' | translate}}">\n\t\t\t\t\t<form name="forms.sms">\n\t\t\t\t\t\t<div class="form-body" data-ng-init="initSmsQueues()">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n\t\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-sms">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step> --\x3e\n\n\t\t\t\t\x3c!-- <wz-step title="{{\'APPLICATION_FAX\' | translate}}">\n\t\t\t\t\t<form name="forms.fax">\n\t\t\t\t\t\t<div class="form-body" data-ng-init="initFaxQueues()">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n\t\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-fax">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step> --\x3e\n\n\t\t\t\t\x3c!-- <wz-step title="{{\'APPLICATION_OPEN_CHANNEL\' | translate}}">\n\t\t\t\t\t<form name="forms.openchannel">\n\t\t\t\t\t\t<div class="form-body" data-ng-init="initOpenchannelQueues()">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_QUEUES\' | translate}}</label>\n\t\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-queues-openchannel">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step> --\x3e\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t</wz-step>\n\t\t\t</wizard>\n\t\t</div>\n\t</div>\n\t\x3c!-- END PORTLET--\x3e\n</div>\n'),t.put("app/staff/team/list/create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_TEAM\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/staff/team/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-shield"></i>\n\t\t\t\t\t<a href="/staff/teams/list">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-shield font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_TEAMS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_TEAM\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/team/view/view.agents.html",'<div class="row" data-ng-init="initAgents()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_AGENTS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\x3c!-- BEGIN PORTLET--\x3e\n\t\t\t\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t\t\t\t<form action="index.html" class="form-horizontal form-row-seperated">\n\t\t\t\t\t\t<div class="form-body">\n\t\t\t\t\t\t\t<div class="form-group last">\n\t\t\t\t\t\t\t\t<div class="col-md-12" id="multi-select-team">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</form>\n\t\t\t\t\t\x3c!-- END FORM--\x3e\n\t\t\t\t\x3c!-- END PORTLET--\x3e\n\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/staff/team/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-shield"></i>\n\t\t\t\t\t<a href="/staff/teams/list">{{ \'APPLICATION_TEAMS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{team.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img ng-src="assets/images/media/team.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{team.name}}\n\t\t\t\t\t</div>\n\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.teams.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/teams/view/{{team.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.teams.view.agents\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/teams/view/{{team.id}}/agents">\n\t\t\t\t\t\t\t<i class="icon-people"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_AGENTS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content"></div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/team/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- PERSONAL INFO TAB --\x3e\n\t\t\t\t<div>\n\n\t\t\t\t\t<form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="team.name" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="team.description"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END PERSONAL INFO TAB --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/staff/telephone/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-phone"></i>\n\t\t\t\t\t<a href="/staff/telephones/list">{{ \'APPLICATION_TELEPHONES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-phone font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_TELEPHONES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="/staff/telephones/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_TELEPHONE\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/telephone/view/view.account.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_ACCOUNT\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-ng-show="Auth.isAdmin() || item.id === getCurrentTelephone().id" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- PERSONAL INFO TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="forms.info.$valid && updateItem()" novalidate>\n\n\t\t\t\t      \x3c!-- START NAME --\x3e\n\t\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n\t\t\t\t        <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t        <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t      </div>\n\t\t\t\t      \x3c!-- END NAME --\x3e\n\n\t\t\t\t      \x3c!-- START USERNAME --\x3e\n\t\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t        <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n\t\t\t\t        <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" disabled/>\n\t\t\t\t      </div>\n\t\t\t\t      \x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t      <input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t    </form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END PERSONAL INFO TAB --\x3e\n\n\t\t\t\t\t\x3c!-- CHANGE PASSWORD TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2" data-ng-show="Auth.isAdmin() || item.id === getCurrentTelephone().id">\n\t\t\t\t\t\t<form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START CURRENT PWD --\x3e\n\t\t\t\t\t\t\t\x3c!-- <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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.currentPwd" required/>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t\x3c!-- END CURRENT PWD --\x3e\n\t\t\t\t\t\t\t\x3c!-- START NEW PWD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.newPwd" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NEW PWD --\x3e\n\t\t\t\t\t\t\t\x3c!-- START RE-NEW PWD --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.reNewPwd" nx-equal="item.newPwd" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RE-NEW PWD --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANGE PASSWORD TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/staff/telephone/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-phone"></i>\n\t\t\t\t\t<a href="/staff/telephones/list">{{ \'APPLICATION_TELEPHONES\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{item.fullname}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR TELEPHONEPIC --\x3e\n\t\t\t\t<div class="profile-userpic">\n\t\t\t\t\t<img data-ng-src="assets/images/media/telephone.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR TELEPHONEPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR TELEPHONE TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{item.fullname}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{item.role}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR TELEPHONE TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.telephones.view.account\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/telephones/view/{{item.id}}/account">\n\t\t\t\t\t\t\t<i class="icon-phone"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_ACCOUNT\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.telephones.view.voice\')}" data-ng-show="Auth.isAdmin()">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/telephones/view/{{item.id}}/voice">\n\t\t\t\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_VOICE\' | translate}} </a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/telephone/view/view.voice.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ACCOUNT\' | translate}} {{ \'APPLICATION_VOICE\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\n\t\t\t\t\t\x3c!-- START INTERNAL --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="item.internal" required readonly/>\n\t\t\t\t\t\t<span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.ngRemoteValidate" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_INTERNAL\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END INTERNAL --\x3e\n\n\t\t\t\t\t\x3c!-- START TRANSPORT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n\t\t\t\t\t\t<ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t<ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t{{transport}}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TRANSPORT --\x3e\n\n\t\t\t\t\t\x3c!-- START CODEC --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n\t\t\t\t\t\t<ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t<ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="allow in [\'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t{{allow}}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CODEC --\x3e\n\n\t\t\t\t\t\x3c!-- START CALLGROUP --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CALLGROUP\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="callgroup" placeholder="{{\'APPLICATION_CALLGROUP\' | translate}}" class="form-control" data-ng-model="item.callgroup"/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CALLGROUP\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CALLGROUP --\x3e\n\n\t\t\t\t\t\x3c!-- START PICKUPGROUP --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PICKUPGROUP\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="pickupgroup" placeholder="{{\'APPLICATION_PICKUPGROUP\' | translate}}" class="form-control" data-ng-model="item.pickupgroup"/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_PICKUPGROUP\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END PICKUPGROUP --\x3e\n\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/staff/telephone/wizard/wizard.html",'<div class="col-md-12">\n  \x3c!-- BEGIN PAGE HEADER--\x3e\n\t<div class="page-bar">\n\t\t<ul class="page-breadcrumb">\n\t\t\t<li>\n\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-phone"></i>\n\t\t\t\t<a href="/staff/telephones/list">{{ \'APPLICATION_TELEPHONES\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-options"></i>\n\t\t\t\t<a href="/staff/telephones/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n  \x3c!-- END PAGE HEADER--\x3e\n\n  \x3c!-- BEGIN PORTLET--\x3e\n  <div class="portlet light bordered" data-ng-init="getFirstFreeInternal();">\n  \t<div class="portlet-title">\n  \t\t<div class="caption font-green-sharp">\n  \t\t\t<i class="icon-phone font-green-sharp"></i>\n  \t\t\t<span class="caption-subject">{{ \'APPLICATION_TELEPHONE\' | translate }} WIZARD</a> </span>\n  \t\t</div>\n  \t</div>\n  \t<div class="portlet-body">\n  \t\t<wizard on-finish="createItem()">\n\t\t\t\t<wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n\t\t\t    <form name="forms.info" novalidate>\n\n\t\t\t      \x3c!-- START NAME --\x3e\n\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n\t\t\t        <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t        <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t        </span>\n\t\t\t      </div>\n\t\t\t      \x3c!-- END NAME --\x3e\n\n\t\t\t      \x3c!-- START USERNAME --\x3e\n\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t        <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t        <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" ata-ng-pattern="settings.patternName"  required />\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t        </span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.ngRemoteValidate" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n\t\t\t        </span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t      </div>\n\t\t\t      \x3c!-- END USERNAME --\x3e\n\n\t\t\t      \x3c!-- START PASSWORD --\x3e\n\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n\t\t\t        <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t      </div>\n\t\t\t      \x3c!-- END PASSWORD --\x3e\n\n\t\t\t      \x3c!-- START RE PASSWORD --\x3e\n\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n\t\t\t        <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t        <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n\t\t\t        <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t        </span>\n\t\t\t        <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n\t\t\t        </span>\n\t\t\t      </div>\n\t\t\t      \x3c!-- END RE PASSWORD --\x3e\n\n\t\t\t\t\t\t\x3c!-- START INTERNAL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t<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"/>\n\t\t\t\t\t\t\t<span class="input-group-addon">\n\t\t\t\t\t\t\t\t<input type="checkbox" data-ng-model="item.internalEnabled">\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END INTERNAL --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t      <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t    </form>\n\t\t\t  </wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_VOICE\' | translate}}" canexit="exitValidation(forms.voice.$valid)">\n\t\t\t\t\t<form name="forms.voice" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START TRANSPORT --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n\t\t\t\t\t\t\t<ui-select multiple name="transport" ng-model="item.transport" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t    <ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t    <ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n\t\t\t\t\t\t    \t{{transport}}\n\t\t\t\t\t\t    </ui-select-choices>\n\t\t\t\t\t\t  </ui-select>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TRANSPORT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START CODEC --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n\t\t\t\t\t\t\t<ui-select multiple ng-model="item.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t    <ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t    <ui-select-choices repeat="allow in [\'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n\t\t\t\t\t\t    \t{{allow}}\n\t\t\t\t\t\t    </ui-select-choices>\n\t\t\t\t\t\t  </ui-select>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END CODEC --\x3e\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t</wz-step>\n  \t\t</wizard>\n  \t</div>\n  </div>\n  \x3c!-- END PORTLET--\x3e\n</div>\n'),t.put("app/staff/user/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-eye"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_USERS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-eye font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_USERS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="/staff/users/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_USER\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/user/view/view.account.html",'<div class="row" data-ng-init="checkUser()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PROFILE\' | translate}} {{ \'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_PERSONAL_INFO\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_CHANGE_AVATAR\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_CHANGE_PASSWORD\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- PERSONAL INFO TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START ROLE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="Auth.getCurrentUser().role === \'admin\' && Auth.getCurrentUser().id !== user.id">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ROLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select name="role" data-ng-model="user.role" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="Select role...">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="role in [\'user\', \'admin\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{role | uppercase}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ROLE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="user.fullname" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="user.name" disabled/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="user.email" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="user.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END PERSONAL INFO TAB --\x3e\n\n\t\t\t\t\t\x3c!-- CHANGE AVATAR TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form action="#" role="form">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<div class="fileinput fileinput-new" data-provides="fileinput">\n\t\t\t\t\t\t\t\t\t<div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">\n\t\t\t\t\t\t\t\t\t\t<img ng-src="assets/images/media/noProfileImage.png" alt=""/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; max-height: 150px;">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t<span class="btn default btn-file" data-ng-show="!uploader.queue[0]">\n\t\t\t\t\t\t\t\t\t\t\t<span> {{ \'APPLICATION_SELECT_IMAGE\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t\t<input type="file" nv-file-select="" uploader="uploader" /><br/>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn default" data-ng-show="uploader.queue[0]" data-dismiss="fileinput" ng-click="uploader.queue[0].remove()">\n\t\t\t\t\t\t\t\t\t\t\t<span> {{ \'APPLICATION_REMOVE\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t\t\t<span> {{ \'APPLICATION_CONFIRM\' | translate }} </span>\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t</br> {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>jpg, png, jpeg</b>.\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-md-2">\n\t\t\t\t\t\t\t\t<table class="table" border="0">\n\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t<tr data-ng-repeat="item in uploader.queue">\n\t\t\t\t\t\t\t\t\t\t\t<td style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{ item.file.name }}\n\t\t\t\t\t\t\t\t\t\t\t\t</strong>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td data-ng-show="uploader.isHTML5" nowrap style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ item.file.size/1024/1024|number:2 }} MB\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td nowrap style="border-top-style:none">\n\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-danger btn-xs" data-ng-click="item.remove()">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span> Remove\n\t\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANGE AVATAR TAB --\x3e\n\t\t\t\t\t\x3c!-- CHANGE PASSWORD TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3" data-ng-show="Auth.isAdmin() || user.id === getCurrentUser().id">\n\t\t\t\t\t\t<form name="forms.changePwd" data-ng-submit="forms.changePwd.$valid && updatePassword()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START CURRENT PWD --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="current_pwd" placeholder="{{\'APPLICATION_CURRENT_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.currentPwd" required/>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CURRENT PWD --\x3e\n\t\t\t\t\t\t\t\x3c!-- START NEW PWD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="new_pwd" placeholder="{{\'APPLICATION_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.newPwd" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.changePwd.current_pwd.$touched || forms.info.$submitted) && forms.changePwd.current_pwd.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NEW PWD --\x3e\n\t\t\t\t\t\t\t\x3c!-- START RE-NEW PWD --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="re_new_pwd" placeholder="{{\'APPLICATION_RE_TYPE_NEW_PASSWORD\' | translate}}" class="form-control" data-ng-model="user.reNewPwd" nx-equal="user.newPwd" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.changePwd.new_pwd.$touched || forms.changePwd.$submitted) && forms.changePwd.new_pwd.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RE-NEW PWD --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CHANGE PASSWORD TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/staff/user/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-eye"></i>\n\t\t\t\t\t<a href="/staff/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{user.fullname}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-userpic">\n\t\t\t\t\t<img ng-src="api/users/avatar/{{user.userpic ? user.userpic : \'unknown_avatar\'}}" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{user.fullname}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.users.view.account\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/users/view/{{user.id}}/account">\n\t\t\t\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_ACCOUNT\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.staff.users.view.voice\')}" data-ng-show="Auth.isAdmin()">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/users/view/{{user.id}}/voice">\n\t\t\t\t\t\t\t\t<i class="icon-earphones-alt"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_VOICE\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.staff.users.view.permit\')}" data-ng-show="Auth.isAdmin()">\n\t\t\t\t\t\t\t<a data-ng-href="/staff/users/view/{{user.id}}/permit/voice">\n\t\t\t\t\t\t\t\t<i class="icon-key"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_PERMITS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/user/view/view.permit.chat.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initChatQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-permit">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/user/view/view.permit.fax.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initFaxQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-permit">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/user/view/view.permit.html","\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class=\"row\">\n\t<div class=\"col-md-12\">\n\t\t<div>\n\t\t    <nav class=\"navbar navbar-default\" role=\"navigation\">\n\t\t\t\t\t<div class=\"collapse navbar-collapse\">\n\t\t\t\t\t\t<ul class=\"nav navbar-nav\">\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.voice')}\">\n\t\t\t\t\t\t\t\t<a href=\"/staff/users/view/{{user.id}}/permit/voice\">\n\t\t\t\t\t\t\t\t\t<i class=\"icon-earphones-alt\"></i> {{'APPLICATION_VOICE' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.chat'),'disabled-link':!license.chat}\" data-ng-show=\"Auth.isAdmin() || userModules[8]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.chat ? '/staff/users/view/'+user.id+'/permit/chat' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"icon-bubble\"></i> {{'APPLICATION_CHAT' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.mail'),'disabled-link':!license.mail}\" data-ng-show=\"Auth.isAdmin() || userModules[9]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.mail ? '/staff/users/view/'+user.id+'/permit/mail' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"icon-envelope\"></i>{{'APPLICATION_MAIL' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.fax'),'disabled-link':!license.fax}\" data-ng-show=\"Auth.isAdmin() || userModules[10]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.fax ? '/staff/users/view/'+user.id+'/permit/fax' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"fa fa-fax\"></i> {{'APPLICATION_FAX' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.sms'),'disabled-link':!license.messaging}\" data-ng-show=\"Auth.isAdmin() || userModules[11]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.messaging ? '/staff/users/view/'+user.id+'/permit/sms' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"glyphicon glyphicon-comment\"></i> {{'APPLICATION_SMS' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.openchannel'),'disabled-link':!license.openchannel}\" data-ng-show=\"Auth.isAdmin() || userModules[20]\">\n\t\t\t\t\t\t\t\t<a href=\"{{license.openchannel ? '/staff/users/view/'+user.id+'/permit/openchannel' : 'javascript:;'}}\" class=\"disable-target\">\n\t\t\t\t\t\t\t\t\t<i class=\"icon-globe\"></i> {{'APPLICATION_OPEN_CHANNEL' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li data-ng-class=\"{'active': $state.is('main.staff.users.view.permit.modules')}\" data-ng-if=\"user.role !== 'admin'\">\n\t\t\t\t\t\t\t\t<a href=\"/staff/users/view/{{user.id}}/permit/modules\">\n\t\t\t\t\t\t\t\t\t<i class=\"icon-menu\"></i> {{'APPLICATION_MODULES' | translate}}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t    </nav>\n\t\t</div>\n\t\t<div ui-view></div>\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n"),t.put("app/staff/user/view/view.permit.mail.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initMailQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-permit">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/user/view/view.permit.modules.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row left-margin" data-ng-init="getModules()">\n\t<div data-ng-repeat="module in modules" data-ng-if="!module.ModuleId && ((module.id === 8 && license.chat) || (module.id === 9 && license.mail) || (module.id === 10 && license.fax) || (module.id === 11 && license.messaging) || (module.id === 20 && license.openchannel)  || !_.includes([8,9,10,11,20],module.id))">\n\t\t<div class="form-group" data-ng-class="{\'left-margin-40\':module.ModuleId}">\n\t\t\t<span data-ng-if="module.ModuleId">└──</span> <input\n\t\t\tbs-switch\n\t\t\tclass="form-control"\n\t\t\tng-model="module.status"\n\t\t\ttype="checkbox"\n\t\t\tdata-ng-change="updatePermissions(module)"\n\t\t\tswitch-active="{{ moduleSwitch.isActive }}"\n\t\t\tswitch-on-text="{{ moduleSwitch.onText }}"\n\t\t\tswitch-off-text="{{ moduleSwitch.offText }}"\n\t\t\tswitch-on-color="{{ moduleSwitch.onColor }}"\n\t\t\tswitch-off-color="{{ moduleSwitch.offColor }}"\n\t\t\tswitch-animate="{{ moduleSwitch.animate }}"\n\t\t\tswitch-size="{{ moduleSwitch.size }}"\n\t\t\tswitch-label="{{ moduleSwitch.label }}"\n\t\t\tswitch-icon="{{ moduleSwitch.icon }}"\n\t\t\tswitch-radio-off="{{ moduleSwitch.radioOff }}"\n\t\t\tswitch-label-width="{{ moduleSwitch.labelWidth }}"\n\t\t\tswitch-handle-width="{{ moduleSwitch.handleWidth }}">\n\t\t\t<label class="control-label">{{module.title | translate | trusted}}</label>\n\t\t</div>\n\t\t<div ng-slide-down="module.status" lazy-render duration="0.5">\n\t\t\t<div data-ng-repeat="subModule in module.SubModules" data-ng-if="(subModule.id === 8 && license.chat) || (subModule.id === 9 && license.mail) || (subModule.id === 10 && license.fax) || (subModule.id === 11 && license.messaging) || (subModule.id === 20 && license.openchannel)  || !_.includes([8,9,10,11,20],subModule.id)">\n\t\t\t\t<div class="form-group" data-ng-class="{\'left-margin-40\':module.ModuleId}">\n\t\t\t\t\t<span>└──</span> <input\n\t\t\t\t\tbs-switch\n\t\t\t\t\tclass="form-control"\n\t\t\t\t\tng-model="subModule.status"\n\t\t\t\t\ttype="checkbox"\n\t\t\t\t\tdata-ng-change="updatePermissions(subModule)"\n\t\t\t\t\tswitch-active="{{ moduleSwitch.isActive }}"\n\t\t\t\t\tswitch-on-text="{{ moduleSwitch.onText }}"\n\t\t\t\t\tswitch-off-text="{{ moduleSwitch.offText }}"\n\t\t\t\t\tswitch-on-color="{{ moduleSwitch.onColor }}"\n\t\t\t\t\tswitch-off-color="{{ moduleSwitch.offColor }}"\n\t\t\t\t\tswitch-animate="{{ moduleSwitch.animate }}"\n\t\t\t\t\tswitch-size="{{ moduleSwitch.size }}"\n\t\t\t\t\tswitch-label="{{ moduleSwitch.label }}"\n\t\t\t\t\tswitch-icon="{{ moduleSwitch.icon }}"\n\t\t\t\t\tswitch-radio-off="{{ moduleSwitch.radioOff }}"\n\t\t\t\t\tswitch-label-width="{{ moduleSwitch.labelWidth }}"\n\t\t\t\t\tswitch-handle-width="{{ moduleSwitch.handleWidth }}">\n\t\t\t\t\t<label class="control-label">{{subModule.title | translate}}</label>\n\t\t\t\t</div>\n\t\t\t\t<div ng-slide-down="subModule.status" lazy-render duration="0.5">\n\t\t\t\t\t<div data-ng-repeat="subModule2 in subModule.SubModules" class="form-group" data-ng-class="{\'left-margin-40\':module.ModuleId}">\n\t\t\t\t\t\t<span style="margin-left:40px">└──</span> <input\n\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\tng-model="subModule2.status"\n\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\tdata-ng-change="updatePermissions(subModule2)"\n\t\t\t\t\t\tswitch-active="{{ moduleSwitch.isActive }}"\n\t\t\t\t\t\tswitch-on-text="{{ moduleSwitch.onText }}"\n\t\t\t\t\t\tswitch-off-text="{{ moduleSwitch.offText }}"\n\t\t\t\t\t\tswitch-on-color="{{ moduleSwitch.onColor }}"\n\t\t\t\t\t\tswitch-off-color="{{ moduleSwitch.offColor }}"\n\t\t\t\t\t\tswitch-animate="{{ moduleSwitch.animate }}"\n\t\t\t\t\t\tswitch-size="{{ moduleSwitch.size }}"\n\t\t\t\t\t\tswitch-label="{{ moduleSwitch.label }}"\n\t\t\t\t\t\tswitch-icon="{{ moduleSwitch.icon }}"\n\t\t\t\t\t\tswitch-radio-off="{{ moduleSwitch.radioOff }}"\n\t\t\t\t\t\tswitch-label-width="{{ moduleSwitch.labelWidth }}"\n\t\t\t\t\t\tswitch-handle-width="{{ moduleSwitch.handleWidth }}">\n\t\t\t\t\t\t<label class="control-label">{{subModule2.title | translate}}</label>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/user/view/view.permit.openchannel.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initOpenchannelQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-permit">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/user/view/view.permit.sms.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initSmsQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-permit">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/user/view/view.permit.voice.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12" data-ng-init="initVoiceQueues()">\n\t\t\x3c!-- BEGIN FORM--\x3e\n\t\t<form action="#" class="form-horizontal form-row-seperated">\n\t\t\t<div class="form-body">\n\t\t\t\t<div class="form-group last">\n\t\t\t\t\t<div class="col-md-12" id="multi-select-permit">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</form>\n\t\t\x3c!-- END FORM--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/staff/user/view/view.voice.html",'<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_ACCOUNT\' | translate}} {{ \'APPLICATION_VOICE\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.info" data-ng-submit="updateItem()" novalidate>\n\n\t\t\t\t\t\x3c!-- START INTERNAL --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="number" min="1" name="internal" placeholder="{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}" class="form-control" data-ng-model="user.internal" required readonly/>\n\t\t\t\t\t\t<span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.ngRemoteValidate" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_INTERNAL\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END INTERNAL --\x3e\n\n\t\t\t\t\t\x3c!-- START TRANSPORT --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TRANSPORT\' | translate}}</label>\n\t\t\t\t\t\t<ui-select multiple name="transport" ng-model="user.transport" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t<ui-select-match placeholder="Select transport...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="transport in [\'udp\', \'tcp\', \'ws\', \'wss\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t{{transport}}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_TRANSPORT\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TRANSPORT --\x3e\n\n\t\t\t\t\t\x3c!-- START CODEC --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ALLOWED_CODECS\' | translate}}</label>\n\t\t\t\t\t\t<ui-select multiple ng-model="user.allow" name="allow" theme="bootstrap" ng-disabled="disabled">\n\t\t\t\t\t\t\t<ui-select-match placeholder="Select codec...">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="allow in [\'g729\', \'ilbc\', \'gsm\', \'ulaw\', \'alaw\', \'opus\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t{{allow}}\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CODEC\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CODEC --\x3e\n\n\t\t\t\t\t\x3c!-- START CALLGROUP --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CALLGROUP\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="callgroup" placeholder="{{\'APPLICATION_CALLGROUP\' | translate}}" class="form-control" data-ng-model="user.callgroup"/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_CALLGROUP\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.voice.callgroup.$touched || forms.voice.$submitted) && forms.voice.callgroup.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CALLGROUP --\x3e\n\n\t\t\t\t\t\x3c!-- START PICKUPGROUP --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PICKUPGROUP\' | translate}}</label>\n\t\t\t\t\t\t<input type="text" name="pickupgroup" placeholder="{{\'APPLICATION_PICKUPGROUP\' | translate}}" class="form-control" data-ng-model="user.pickupgroup"/>\n\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t{{ \'DESCRIPTION_VOICE_PICKUPGROUP\' | translate }}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span data-ng-show="(forms.voice.pickupgroup.$touched || forms.voice.$submitted) && forms.voice.pickupgroup.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END PICKUPGROUP --\x3e\n\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/staff/user/wizard/wizard.html",'<div class="col-md-12">\n  \x3c!-- BEGIN PAGE HEADER--\x3e\n\t<div class="page-bar">\n\t\t<ul class="page-breadcrumb">\n\t\t\t<li>\n\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-puzzle"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_STAFF\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-eye"></i>\n\t\t\t\t<a href="/staff/users/list">{{ \'APPLICATION_USERS\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-options"></i>\n\t\t\t\t<a href="/staff/users/wizard">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n  \x3c!-- END PAGE HEADER--\x3e\n\n  \x3c!-- BEGIN PORTLET--\x3e\n  <div class="portlet light bordered" data-ng-init="initWizard();">\n  \t<div class="portlet-title">\n  \t\t<div class="caption font-green-sharp">\n  \t\t\t<i class="icon-user font-green-sharp"></i>\n  \t\t\t<span class="caption-subject">{{ \'APPLICATION_USER\' | translate }} WIZARD</a> </span>\n  \t\t</div>\n  \t</div>\n  \t<div class="portlet-body">\n  \t\t<wizard on-finish="createItem()">\n\t\t\t\t<wz-step title="{{\'APPLICATION_ACCOUNT\' | translate}}" canexit="exitValidation(forms.info.$valid)">\n\t\t\t    <form name="forms.info" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START ROLE --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-if="Auth.getCurrentUser().role === \'admin\'">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ROLE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select name="role" data-ng-model="item.role" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="Select role...">{{$select.selected | uppercase}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="role in [\'user\', \'admin\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t{{role | uppercase}}\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END ROLE --\x3e\n\n\t\t\t      \x3c!-- START NAME --\x3e\n\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$invalid}">\n\t\t\t        <label class="control-label">{{\'APPLICATION_FULLNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t        <input type="text" name="fullname" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.fullname" required/>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.fullname.$touched || forms.info.$submitted) && forms.info.fullname.$error.required" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t        </span>\n\t\t\t      </div>\n\t\t\t      \x3c!-- END NAME --\x3e\n\n\t\t\t      \x3c!-- START USERNAME --\x3e\n\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$invalid}">\n\t\t\t        <label class="control-label">{{\'APPLICATION_USERNAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t        <input type="text" name="name" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required />\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.required" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t        </span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.name.$touched || forms.info.$submitted) && forms.info.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t      </div>\n\t\t\t      \x3c!-- END USERNAME --\x3e\n\n\t\t\t      \x3c!-- START EMAIL --\x3e\n\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$invalid}">\n\t\t\t        <label class="control-label">{{\'APPLICATION_EMAIL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t        <input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL\' | translate}}" class="form-control" data-ng-model="item.email" required />\n\t\t\t        <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.required" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t        </span>\n\t\t\t        <span data-ng-show="(forms.info.email.$touched || forms.info.$submitted) && forms.info.email.$error.email" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t        </span>\n\t\t\t      </div>\n\t\t\t      \x3c!-- END EMAIL --\x3e\n\n\t\t\t      \x3c!-- START PASSWORD --\x3e\n\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$invalid}">\n\t\t\t        <label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" data-ng-pattern="setting.securePassword ? settings.patternPassword : settings.patternPasswordLight" required/>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{setting.securePassword ? \'MESSAGE_PASSWORD_FORMAT\' : \'MESSAGE_PASSWORD_LIGHT_FORMAT\' | translate}}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.password.$touched || forms.info.$submitted) && forms.info.password.$error.required" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t        </span>\n\t\t\t      </div>\n\t\t\t      \x3c!-- END PASSWORD --\x3e\n\n\t\t\t      \x3c!-- START RE PASSWORD --\x3e\n\t\t\t      <div class="form-group" data-ng-class="{\'has-error\': (forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$invalid}">\n\t\t\t        <label class="control-label">{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t        <input type="password" name="rpassword" placeholder="{{\'APPLICATION_CONFIRM_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.rpassword" nx-equal="item.password" required/>\n\t\t\t        <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.required" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t        </span>\n\t\t\t        <span data-ng-show="(forms.info.rpassword.$touched || forms.info.$submitted) && forms.info.rpassword.$error.nxEqual" class="help-block help-block-error">\n\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n\t\t\t        </span>\n\t\t\t      </div>\n\t\t\t      \x3c!-- END RE PASSWORD --\x3e\n\n\t\t\t\t\t\t\x3c!-- START INTERNAL --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INTERNAL_NUMBER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<div class="input-group">\n\t\t\t\t\t\t\t\t<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"/>\n\t\t\t\t\t\t\t\t<span class="input-group-addon">\n\t\t\t\t\t\t\t\t\t<input type="checkbox" data-ng-model="item.internalEnabled">\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.info.internal.$touched || forms.info.$submitted) && forms.info.internal.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END INTERNAL --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t      <input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t    </form>\n\t\t\t  </wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t</wz-step>\n  \t\t</wizard>\n  \t</div>\n  </div>\n  \x3c!-- END PORTLET--\x3e\n</div>\n'),t.put("app/sugarcrm/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-handbag"></i>\n\t\t\t\t\t<a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-handbag font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_SUGARCRM\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/sugarcrm/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/sugarcrm/view/configuration/list/create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.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="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START CHANNEL --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\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.name}}</ui-select-match>\n        <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n          <div data-ng-bind="channel.name | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- START CHANNEL --\x3e\n\n    \x3c!-- START VOICE SUBTYPE --\x3e\n    <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$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}}">{{$select.selected}}</ui-select-match>\n        <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n          <div data-ng-bind="type | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- START CHANNEL --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/sugarcrm/view/configuration/list/list.html",'<div ui-view class="profile-content">\n\t<div class="row">\n\t\t<div class="col-md-12">\n\t\t\t<div class="portlet light" data-ng-init="initView()">\n\t\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()">\n\t\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/sugarcrm/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();getModules();">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_MAPPING\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- SUBJECT TAB --\x3e\n\t\t\t\t\t<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="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END SUBJECT TAB --\x3e\n          \x3c!-- DESCRIPTION TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_2">\n\t\t\t\t\t\t<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="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t\t\t\t\t\t\t<div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n\t              <div class="col-md-2">\n\t                <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n\t\t\t\t\t\t\t\t\t<ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION TAB --\x3e\n          \x3c!-- FIELDS TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_3">\n\t\t\t\t\t\t<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="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.name as item in accountFields | filter: $select.search">\n\t                    <div ng-bind-html="item.label | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n\t\t                    <div ng-bind-html="item.name | highlight: $select.search"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t\t                    <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END FIELDS TAB --\x3e\n\t\t\t\t\t\x3c!-- TAG TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_4">\n\n\t\t\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\n\t\t\t\t\t\t<div class="row">\n              <div class="col-md-12">\n                <span class="caption-subject">Select the mapping procedure that the current configuration will use:</span>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t<form name="forms.mapping" data-ng-submit="updateMapping()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- DEFAULT MAPPING --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DEFAULT_MAPPING\' | translate}}</label></br>\n\t\t\t\t\t      <input\n\t\t\t\t\t          bs-switch\n\t\t\t\t\t          class="form-control"\n\t\t\t\t\t          ng-model="mapping.defaultMapping"\n\t\t\t\t\t          type="checkbox",\n\t\t\t\t\t\t\t\t\t\tname="defaultMapping"\n\t\t\t\t\t          switch-active="{{ defaultMappingSwitch.isActive }}"\n\t\t\t\t\t          switch-on-text="{{ defaultMappingSwitch.onText }}"\n\t\t\t\t\t          switch-off-text="{{ defaultMappingSwitch.offText }}"\n\t\t\t\t\t          switch-on-color="{{ defaultMappingSwitch.onColor }}"\n\t\t\t\t\t          switch-off-color="{{ defaultMappingSwitch.offColor }}"\n\t\t\t\t\t          switch-animate="{{ defaultMappingSwitch.animate }}"\n\t\t\t\t\t          switch-size="{{ defaultMappingSwitch.size }}"\n\t\t\t\t\t          switch-label="{{ defaultMappingSwitch.label }}"\n\t\t\t\t\t          switch-icon="{{ defaultMappingSwitch.icon }}"\n\t\t\t\t\t          switch-radio-off="{{ defaultMappingSwitch.radioOff }}"\n\t\t\t\t\t          switch-label-width="{{ defaultMappingSwitch.labelWidth }}"\n\t\t\t\t\t          switch-handle-width="{{ defaultMappingSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DEFAULT MAPPING --\x3e\n\n\t\t\t\t\t\t\t<div class="row" data-ng-if="!mapping.defaultMapping">\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.mapping.mappingModule.$touched || forms.mapping.$submitted) && forms.mapping.mappingModule.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAPPING_MODULE\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="mapping.mappingModule" theme="bootstrap" name="mappingModule" required ng-disabled="disabled" data-ng-change="updateMappingModule()">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.label}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item.key as item in accountModules | filter: $select.search">\n\t\t                    <div ng-bind-html="item.label | highlight: $select.search"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.mapping.mappingModule.$touched || forms.mapping.$submitted) && forms.mapping.mappingModule.$invalid && forms.mapping.mappingModule.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t      </span>\n\t                </div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="row" data-ng-if="!mapping.defaultMapping">\n\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.mapping.mappingFields.$touched || forms.mapping.$submitted) && forms.mapping.mappingFields.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MAPPING_FIELDS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="mapping.mappingFields" theme="bootstrap" name="mappingFields" ng-disabled="disabled" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_MAPPING_FIELDS\' | translate }}">{{$item.label}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="moduleField.name as moduleField in moduleFields | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t{{moduleField.label}}\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.mapping.mappingFields.$touched || forms.mapping.$submitted) && forms.mapping.mappingFields.$invalid && forms.mapping.mappingFields.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t      </span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" data-ng-disabled="forms.mapping.$invalid"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TAG TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/sugarcrm/view/view.account.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n              \x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SERVER URL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_SERVER_URL\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SERVER URL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/sugarcrm/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n          <i class="icon-handbag"></i>\n          <a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{account.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/sugarcrm.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{account.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{account.remoteUri}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.sugarcrm.view.account\')}">\n\t\t\t\t\t\t\t<a ng-href="/sugarcrm/view/{{account.id}}/account">\n\t\t\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.sugarcrm.view.configurations\') || $state.is(\'main.sugarcrm.view.configuration\')}">\n\t\t\t\t\t\t\t<a ng-href="/sugarcrm/view/{{account.id}}/configurations/list">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/sugarcrm/wizard/wizard.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-handbag"></i>\n\t\t\t\t\t\t<a href="/sugarcrm/list">{{ \'APPLICATION_SUGARCRM\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n          <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n\t\t\t\t\t\t<form name="forms.formSetting" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_USERNAME\' | translate}}" class="form-control" data-ng-model="item.username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REMOTE_ADDRESS\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_REMOTE_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/sugarcrm/accounts/validate/remoteUri"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</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\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n              \x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.password.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.apiKey.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SERVER URL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_SERVER_URL\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SERVER URL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t</wizard>\n\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/answer/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_CANNED_ANSWER\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.key.$touched || form.$submitted) && form.key.$invalid}">\n      <label class="control-label">{{\'APPLICATION_KEY\' | translate}}<span class="required" aria-required="true">*</span></label>\n      <input type="text" name="key" placeholder="{{\'APPLICATION_KEY\' | translate}}" class="form-control" data-ng-model="item.key" required/>\n      <span data-ng-show="(form.key.$touched || form.$submitted) && form.key.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START VALUE --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.value.$touched || form.$submitted) && form.value.$invalid}">\n      <label class="control-label">{{\'APPLICATION_VALUE\' | translate}}<span class="required" aria-required="true">*</span></label></label>\n      <textarea type="text" name="value" placeholder="{{\'APPLICATION_VALUE\' | translate}}" class="form-control" data-ng-model="item.value" required></textarea>\n      <span data-ng-show="(form.value.$touched || form.$submitted) && form.value.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END VALUE --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/tools/answer/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-magic-wand"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_CANNED_ANSWERS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-magic-wand font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_CANNED_ANSWERS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CANNED_ANSWER\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/answer/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getAnswer()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-magic-wand"></i>\n\t\t\t\t\t<a href="/tools/answers/list">{{ \'APPLICATION_CANNED_ANSWER\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="answer" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="answer">\n\t\t\t\t\t<a href="#">{{answer.key}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/answer.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{answer.name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.answers.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/tools/answers/view/{{answer.id}}/settings">\n\t\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/answer/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_CANNED_ANSWER\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateAnswer()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START KEY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.key.$touched || forms.general.$submitted) && forms.general.key.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_KEY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="key" placeholder="{{\'APPLICATION_KEY\' | translate}}" class="form-control" data-ng-model="answer.key" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.key.$touched || forms.general.$submitted) && forms.general.key.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END KEY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START VALUE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.value.$touched || forms.general.$submitted) && forms.general.value.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_VALUE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="value" placeholder="{{\'APPLICATION_VALUE\' | translate}}" class="form-control" data-ng-model="answer.value" required></textarea>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.value.$touched || forms.general.$submitted) && forms.general.value.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END VALUE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="answer.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/automation/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-bulb"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-bulb font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle " href="/tools/automations/wizard">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_AUTOMATION\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/automation/view/view.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t<a href="/tools/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right" data-ng-show="automation"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="automation">\n\t\t\t\t\t<a href="#">{{ automation.description || automation.name }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/automation.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ automation.name }}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{ automation.description }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.automations.view.settings\')}">\n\t\t\t\t\t\t\t<a href="/tools/automations/view/{{automation.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-bulb"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/automation/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.general" data-ng-submit="exitValidation(forms.general.$valid) && updateAutomation()" novalidate>\n\t\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="automation.name" required/>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CHANNEL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="channel" placeholder="{{\'APPLICATION_CHANNEL\' | translate}}" class="form-control" data-ng-model="automation.channel" required readonly/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid && forms.general.channel.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CHANNEL --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TIMEOUT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.timeout.$touched && forms.general.timeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TIMEOUT\' | translate}} ({{\'APPLICATION_MINUTES\' | translate}})</label>\n\t\t\t\t\t\t\t\t<input type="number" name="timeout" min="10" placeholder="{{\'APPLICATION_TIMEOUT\' | translate}} (min 10 {{\'APPLICATION_MINUTES\' | translate}})" class="form-control" data-ng-model="automation.timeout" data-ng-init="item.timeout = 10" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.timeout.$touched && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START STATUS --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label>\n\t\t\t\t\t\t\t\t</br>\n\t\t\t\t\t\t\t\t<input bs-switch class="form-control" ng-model="automation.status" type="checkbox" name="status" switch-active="{{ recordSwitch.isActive }}" switch-on-text="{{ recordSwitch.onText }}" switch-off-text="{{ recordSwitch.offText }}" switch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}" switch-animate="{{ recordSwitch.animate }}" switch-size="{{ recordSwitch.size }}" switch-label="{{ recordSwitch.label }}" switch-icon="{{ recordSwitch.icon }}" switch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}" switch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END STATUS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="automation.description" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t\t\x3c!-- All --\x3e\n\t\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t\t<span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="all in automation.All">\n\t\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<condition-builder element="all" serviceindex="automation.channel" service="$automations" form="forms.general"></condition-builder>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- Any --\x3e\n\t\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t\t<span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="any in automation.Any">\n\t\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<condition-builder element="any" serviceindex="automation.channel" service="$automations" form="forms.general"></condition-builder>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- Actions --\x3e\n\t\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="action in automation.Actions">\n\t\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="action.action" theme="bootstrap" data-ng-change="resetActionData(action)" name="action{{$index}}" required>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tAction.value as tAction in $automations.services[automation.channel].actions | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_ACTION\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-switch="action.action">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-status ng-switch-when="status" element="action" form="forms.settings"></action-builder-status>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="has-error" data-ng-show="forms.general.$submitted && !automation.All.length && !automation.Any.length">\n\t\t\t\t\t\t\t\t<span class="help-block help-block-error form-control">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="has-error" data-ng-show="forms.general.$submitted && !automation.Actions.length">\n\t\t\t\t\t\t\t\t<span class="help-block help-block-error form-control">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/automation/wizard/wizard.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN PAGE HEADER--\x3e\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t<a href="/tools/automations/list">{{ \'APPLICATION_AUTOMATIONS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t\x3c!-- END PAGE HEADER--\x3e\n\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-bulb font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_AUTOMATIONS\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="submit()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.name.$touched && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.name.$touched && forms.general.name.$invalid && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START STATUS --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label></br>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t    bs-switch\n\t\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t    ng-model="item.status"\n\t\t\t\t\t\t\t\t    type="checkbox"\n\t\t\t\t\t\t\t\t\t\tname="status"\n\t\t\t\t\t\t\t\t\t\tdata-ng-init="item.status = 0"\n\t\t\t\t\t\t\t\t    switch-active="{{ statusSwitch.isActive }}"\n\t\t\t\t\t\t\t\t    switch-on-text="{{ statusSwitch.onText }}"\n\t\t\t\t\t\t\t\t    switch-off-text="{{ statusSwitch.offText }}"\n\t\t\t\t\t\t\t\t    switch-on-color="{{ statusSwitch.onColor }}"\n\t\t\t\t\t\t\t\t    switch-off-color="{{ statusSwitch.offColor }}"\n\t\t\t\t\t\t\t\t    switch-animate="{{ statusSwitch.animate }}"\n\t\t\t\t\t\t\t\t    switch-size="{{ statusSwitch.size }}"\n\t\t\t\t\t\t\t\t    switch-label="{{ statusSwitch.label }}"\n\t\t\t\t\t\t\t\t    switch-icon="{{ statusSwitch.icon }}"\n\t\t\t\t\t\t\t\t    switch-radio-off="{{ statusSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t    switch-label-width="{{ statusSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t    switch-handle-width="{{ statusSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END STATUS --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitSettingsValidation(forms.settings.$valid)">\n\t\t\t\t\t\t<form name="forms.settings" novalidate>\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="channel in $automations.channels | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- All --\x3e\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="all in item.All">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t<condition-builder element="all" serviceindex="item.channel" service="$automations" form="forms.general"></condition-builder>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- Any --\x3e\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="any in item.Any">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t<condition-builder element="any" serviceindex="item.channel" service="$automations" form="forms.general"></condition-builder>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- Actions --\x3e\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="action in item.Actions">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="action.action" theme="bootstrap" data-ng-change="resetActionData(action)" name="action{{$index}}" required>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tAction.value as tAction in $automations.services[item.channel].actions | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_ACTION\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-switch="action.action">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-status ng-switch-when="status" element="action" form="forms.settings"></action-builder-status>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="has-error" data-ng-show="forms.settings.$submitted && !item.All.length && !item.Any.length">\n\t\t\t\t\t\t\t<span class="help-block help-block-error form-control">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="has-error" data-ng-show="forms.settings.$submitted && !item.Actions.length">\n\t\t\t\t\t\t\t<span class="help-block help-block-error form-control">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()"/>\n\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/interval/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_INTERVAL\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/tools/interval/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-clock"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_INTERVALS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_INTERVALS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_INTERVAL\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/interval/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getInterval()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-clock"></i>\n\t\t\t\t\t<a href="/tools/intervals/list">{{ \'APPLICATION_INTERVALS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="interval" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="interval">\n\t\t\t\t\t<a href="#">{{interval.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/interval.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{interval.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.intervals.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-click="deselectAndRedirect(\'/tools/intervals/view/\'+interval.id+\'/settings\')">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n'+"\t\t\t\t\t\t<li data-ng-class=\"{active: $state.is('main.tools.intervals.view.subintervals') || $state.is('main.tools.intervals.view.subinterval') || $state.is('main.tools.intervals.view.subintervals.settings')}\">\n\t\t\t\t\t\t\t<a data-ng-click=\"deselectAndRedirect('/tools/intervals/view/'+interval.id+'/subintervals')\">\n\t\t\t\t\t\t\t<i class=\"icon-list\"></i>\n\t\t\t\t\t\t\t{{ 'APPLICATION_SUBINTERVALS' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class=\"profile-content\">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n"),t.put("app/tools/interval/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_INTERVAL\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateInterval()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="interval.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="interval.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/interval/view/view.subinterval.html",'\n<div class="row" data-ng-init="initSubInterval(true)">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_NEW_SUBINTERVAL\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="addSubInterval()">\n          <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.subinterval.name.$valid)">\n            <form name="forms.subinterval" novalidate>\n\n              \x3c!-- START NAME --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.subinterval.name.$touched || forms.subinterval.$submitted) && forms.subinterval.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="subinterval.name" required/>\n                <span data-ng-show="(forms.subinterval.name.$touched || forms.subinterval.$submitted) && forms.subinterval.name.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TIME --\x3e\n              <div class="form-group">\n                <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n                <div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="splittedInterval.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\t\t\t\t\t\t\t\t\t<fieldset ng-disabled="splittedInterval.alwaysTime"><uib-timepicker  name="t_to" data-ng-model="splittedInterval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor margin-top20"><input\n\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\tng-model="splittedInterval.alwaysTime"\n\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\tswitch-active="{{ switch.isActive }}"\n\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\tswitch-on-color="{{ switch.onColor }}"\n\t\t\t\t\t\t\t\t\tswitch-off-color="{{ switch.offColor }}"\n\t\t\t\t\t\t\t\t\tswitch-animate="{{ switch.animate }}"\n\t\t\t\t\t\t\t\t\tswitch-size="{{ switch.size }}"\n\t\t\t\t\t\t\t\t\tswitch-label="{{ switch.label }}"\n\t\t\t\t\t\t\t\t\tswitch-icon="{{ switch.icon }}"\n\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ switch.radioOff }}"\n\t\t\t\t\t\t\t\t\tswitch-label-width="{{ switch.labelWidth }}"\n\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ switch.handleWidth }}"> {{\'APPLICATION_ALWAYS\' | translate}}</label>\n                </div>\n              </div>\n              \x3c!-- END TIME --\x3e\n\n              \x3c!-- START WEEKDAY --\x3e\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="splittedInterval.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="splittedInterval.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              \x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="splittedInterval.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected===\'always\' ? ($select.selected | capitalize) : $select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="splittedInterval.md_to && splittedInterval.md_to!==\'always\' && monthDay>splittedInterval.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t{{monthDay===\'always\' ? (monthDay | capitalize) : monthDay}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="splittedInterval.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected===\'always\' ? ($select.selected | capitalize) : $select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="splittedInterval.md_from && splittedInterval.md_from!==\'always\' && monthDay<splittedInterval.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t{{monthDay===\'always\' ? (monthDay | capitalize) : monthDay}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\n              \x3c!-- START MONTH --\x3e\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="splittedInterval.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="splittedInterval.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              \x3c!-- END MONTH --\x3e\n\n\n\n\t\t\t\t\t\t\t<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\n\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/interval/view/view.subintervalSettings.html",'\n<div class="row" data-ng-init="initSubInterval();getSubInterval();">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_SUBINTERVAL_SETTINGS\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="updateInterval(\'subintervals\')">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{subinterval.name}}\n\t\t\t\t\t</div>\n          <wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitValidation(forms.subinterval.name.$valid)">\n            <form name="forms.subinterval" novalidate>\n\n              \x3c!-- START NAME --\x3e\n              <div class="form-group" data-ng-class="{\'has-error\': (forms.subinterval.name.$touched || forms.subinterval.$submitted) && forms.subinterval.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="interval.SubIntervals[selectedSubInterval].name" required/>\n                <span data-ng-show="(forms.subinterval.name.$touched || forms.subinterval.$submitted) && forms.subinterval.name.$error.required" class="help-block help-block-error">\n                  <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n                </span>\n              </div>\n              \x3c!-- END NAME --\x3e\n\n              \x3c!-- START TIME --\x3e\n              <div class="form-group">\n                <label class="control-label">{{ \'APPLICATION_TIME\' | translate }}</label>\n                <div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t<fieldset class="pull-left" ng-disabled="splittedInterval.alwaysTime"><uib-timepicker name="t_from" data-ng-model="splittedInterval.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\t\t\t\t\t\t\t\t\t<fieldset ng-disabled="splittedInterval.alwaysTime"><uib-timepicker  name="t_to" data-ng-model="splittedInterval.t_to" show-meridian="false" show-spinners="false"></uib-timepicker></fieldset>\n\t\t\t\t\t\t\t\t\t<label class="control-label pointer-cursor margin-top20"><input\n\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\t\tng-model="splittedInterval.alwaysTime"\n\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\tswitch-active="{{ switch.isActive }}"\n\t\t\t\t\t\t\t\t\tswitch-on-text="{{\'APPLICATION_YES\' | translate}}"\n\t\t\t\t\t\t\t\t\tswitch-off-text="{{\'APPLICATION_NO\' | translate}}"\n\t\t\t\t\t\t\t\t\tswitch-on-color="{{ switch.onColor }}"\n\t\t\t\t\t\t\t\t\tswitch-off-color="{{ switch.offColor }}"\n\t\t\t\t\t\t\t\t\tswitch-animate="{{ switch.animate }}"\n\t\t\t\t\t\t\t\t\tswitch-size="{{ switch.size }}"\n\t\t\t\t\t\t\t\t\tswitch-label="{{ switch.label }}"\n\t\t\t\t\t\t\t\t\tswitch-icon="{{ switch.icon }}"\n\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ switch.radioOff }}"\n\t\t\t\t\t\t\t\t\tswitch-label-width="{{ switch.labelWidth }}"\n\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ switch.handleWidth }}"> {{\'APPLICATION_ALWAYS\' | translate}}</label>\n                </div>\n              </div>\n              \x3c!-- END TIME --\x3e\n\n              \x3c!-- START WEEKDAY --\x3e\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="splittedInterval.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="splittedInterval.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              \x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}</label>\n\t\t\t\t\t\t\t\t<div class="input-group input-large">\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="splittedInterval.md_from" theme="bootstrap" name="md_from">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected===\'always\' ? ($select.selected | capitalize) : $select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="splittedInterval.md_to && splittedInterval.md_to!==\'always\' && monthDay>splittedInterval.md_to && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t{{monthDay===\'always\' ? (monthDay | capitalize) : monthDay}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span class="input-group-addon">to</span>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="splittedInterval.md_to" theme="bootstrap" name="md_to">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match>{{$select.selected===\'always\' ? ($select.selected | capitalize) : $select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="monthDay in $interval.daysOfMonth | filter: $select.search" ui-disable-choice="splittedInterval.md_from && splittedInterval.md_from!==\'always\' && monthDay<splittedInterval.md_from && monthDay!==\'always\'">\n\t\t\t\t\t\t\t\t\t\t\t{{monthDay===\'always\' ? (monthDay | capitalize) : monthDay}}\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n              \x3c!-- START MONTH --\x3e\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="splittedInterval.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="splittedInterval.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              \x3c!-- END MONTH --\x3e\n\n\n\n\t\t\t\t\t\t\t<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\n\t\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t\t</wz-step>\n\t\t\t\t</wizard>\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/interval/view/view.subintervals.html",'<div ui-view class="profile-content">\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SUBINTERVALS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle " href="/tools/intervals/view/{{interval.id}}/subinterval" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_SUBINTERVAL\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div data-ng-if="selectedSubInterval === undefined" ui-grid="gridOptions"  ui-grid-resize-columns class="grid" ui-grid-draggable-rows>\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/tools/pause/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_PAUSE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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" data-ng-pattern="/^[^#]/" required/>\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/tools/pause/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-pause"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_PAUSES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="fa fa-pause font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_PAUSES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="#" data-toggle="dropdown" data-ng-click="createItem()">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_PAUSE\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/pause/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getPause()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-control-pause"></i>\n\t\t\t\t\t<a href="/tools/pauses/list">{{ \'APPLICATION_PAUSES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="pause" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="pause">\n\t\t\t\t\t<a href="#">{{pause.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/pause.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{pause.name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.pauses.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/tools/pauses/view/{{pause.id}}/settings">\n\t\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/pause/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_PAUSE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updatePause()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="pause.name" data-ng-pattern="/^[^#]/" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_FORMAT\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="pause.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/scheduler/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-calendar"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_SCHEDULER\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-link font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_SCHEDULES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="/tools/scheduler/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_SCHEDULE\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/scheduler/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-calendar"></i>\n\t\t\t\t\t<a href="/tools/scheduler/list">{{ \'APPLICATION_SCHEDULER\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="schedule" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="schedule">\n\t\t\t\t\t<a href="#">{{schedule.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/scheduler.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{schedule.name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.scheduler.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/tools/scheduler/view/{{schedule.id}}/settings"><i class="icon-settings"></i> {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/scheduler/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_SCHEDULE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab" data-ng-click="refreshSlider()">{{ \'APPLICATION_CONFIGURATION\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && forms.config.$valid && updateSchedule()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted && forms.general.name.$invalid) || forms.general.name.$error.pattern}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="schedule.name" data-ng-pattern="settings.patternName" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ACTIVE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACTIVE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="schedule.active"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="status"\n\t\t\t\t\t\t\t\tswitch-active="{{ switches.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ switches.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ switches.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ switches.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ switches.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ switches.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ switches.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ switches.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ switches.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ switches.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ACTIVE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="schedule.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t\t\x3c!-- CONFIG TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.config" data-ng-switch="schedule.reportType" data-ng-submit="forms.config.$valid && forms.general.$valid && updateSchedule()" data-ng-if="schedule.type===\'report\'" data-ng-init="initReports()" novalidate>\n\n\t\t\t\t\t\t\t<div class="row">\n\n\t\t\t\t\t\t\t\t\x3c!-- START TYPE --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="schedule.reportType" name="type" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="report in [\'default\', \'custom\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="report | capitalize | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END TYPE --\x3e\n\n\n\t\t\t\t\t\t\t\t\x3c!-- START REPORT --\x3e\n\t\t\t\t\t\t\t\t<div data-ng-switch-when="default" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="schedule.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices group-by="\'parent\'" repeat="report.id as report in defRep | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="report.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END REPORT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START REPORT --\x3e\n\t\t\t\t\t\t\t\t<div data-ng-switch-when="custom" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="schedule.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices group-by="\'parent\'" repeat="report.id as report in cusRep | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="report.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END REPORT --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START REPORT --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OUTPUT\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="schedule.reportOutput" name="reportOutput" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_OUTPUT\' | translate }}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="output in [\'CSV\',\'PDF\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="output | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END REPORT --\x3e\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- START TODAY --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RUN_ON\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tdata-ng-model="switchValues.today"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="status"\n\t\t\t\t\t\t\t\tdata-ng-change="checkToday()"\n\t\t\t\t\t\t\t\tswitch-active="{{ switches.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_TODAY\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_RANGE\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ switches.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ switches.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ switches.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ switches.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ switches.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ switches.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ switches.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ switches.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ switches.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TODAY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START VALIDITY --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="switchValues.today">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_VALIDITY\' | translate}}</label>\n\t\t\t\t\t\t\t\t<rzslider rz-slider-model="schedule.validityStart" rz-slider-high="schedule.validityEnd" rz-slider-options="validitySlider"></rzslider>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END VALIDITY --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START RANGE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="!switchValues.today" data-ng-class="{\'has-error\': (forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_REPORT_RANGE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="schedule.reportRange" name="range" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_RANGE\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="range.value as range in reportRanges | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="range.name | highlight: $select.search | translate"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END RANGE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START TODAY CRON --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-if="switchValues.today" data-ng-class="{\'has-error\': (forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="schedule.cron" name="cron" theme="bootstrap" data-ng-required="switchValues.today">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="cron.value as cron in todayCron | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="cron.name | highlight: $select.search | translate"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TODAY --\x3e\n\t\t\t\t\t\t\t<div class="row" data-ng-if="!switchValues.today">\n\t\t\t\t\t\t\t\t\x3c!-- START CRONTYPE EXEC --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="rangeExec.type" name="cronType" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in cronTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | translate"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END CRONTYPE --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-if="schedule.cronType === \'weekly\'" data-ng-class="{\'has-error\': (forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAYS\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="rangeExec.weekDays" name="weekDay" theme="bootstrap" data-ng-required="schedule.cronType === \'weekly\'">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_WEEKDAYS\' | translate }}">{{$item.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="day.value as day in weekDays | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="day.name | highlight: $select.search | translate"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-if="schedule.cronType === \'monthly\'" data-ng-class="{\'has-error\': (forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="rangeExec.monthDay" name="monthDay" theme="bootstrap" data-ng-required="schedule.cronType === \'monthly\'">\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_MONTHDAY\' | translate }}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="day in monthDays | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="day | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\t\t\x3c!-- START HOUR --\x3e\n\t\t\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-if="schedule.cronType" data-ng-class="{\'has-error\': (forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_HOUR\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="rangeExec.hour" name="hour" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_HOUR\' | translate }}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="hour in hours | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="hour | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\x3c!-- END HOUR --\x3e\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- START SEND MAIL --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SEND_MAIL\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tdata-ng-model="schedule.sendMail"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="status"\n\t\t\t\t\t\t\t\tswitch-active="{{ switches.isActive }}"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ switches.onColor }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ switches.offColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ switches.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ switches.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ switches.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ switches.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ switches.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ switches.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ switches.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SEND MAIL --\x3e\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\x3c!-- START ACCOUNT --\x3e\n\t\t\t\t\t\t\t<div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ACCOUNT\' | translate }}<span class="required" data-ng-if="schedule.sendMail" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="schedule.MailServerOutId" name="MailServerOutId" theme="bootstrap" data-ng-disabled="!schedule.sendMail" data-ng-required="schedule.sendMail">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_ACCOUNT\' | translate }}">{{$select.selected.username}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailServers | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="account.username | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="mailServers.length">\n\t\t\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_ACCOUNTS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ACCOUNT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n\t\t\t\t\t\t\t<div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.$submitted && forms.config.email.$invalid) || forms.config.email.$error.pattern}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span data-ng-if="schedule.sendMail" class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}" class="form-control" data-ng-model="schedule.email" data-ng-disabled="!schedule.sendMail" data-ng-required="schedule.sendMail"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.config.$submitted && forms.config.email.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END CONFIG TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n\x3c!-- <pre>\n\t{{rangeExec | json}}\n</pre>\n<pre>\n\t{{schedule | json}}\n</pre> --\x3e\n'),t.put("app/tools/scheduler/wizard/wizard.html",'<div class="col-md-12">\n\t\x3c!-- BEGIN PAGE HEADER--\x3e\n\t<div class="page-bar">\n\t\t<ul class="page-breadcrumb">\n\t\t\t<li>\n\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-calendar"></i>\n\t\t\t\t<a href="/tools/scheduler/list">{{ \'APPLICATION_SCHEDULER\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-options"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\t\x3c!-- END PAGE HEADER--\x3e\n\n\t\x3c!-- BEGIN PORTLET--\x3e\n\t<div class="portlet light bordered">\n\t\t<div class="portlet-title">\n\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t<i class="icon-link font-green-sharp"></i>\n\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_SCHEDULE\' | translate }} WIZARD</a> </span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t<wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n\t\t\t\t\t<form name="forms.general" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted && forms.general.name.$invalid) || forms.general.name.$error.pattern}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.patternName" required/>\n\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START ACTIVE --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACTIVE\' | translate}}</label></br>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\tng-model="item.active"\n\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\tname="status"\n\t\t\t\t\t\t\tdata-ng-init="item.active = 0"\n\t\t\t\t\t\t\tswitch-active="{{ switches.isActive }}"\n\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\tswitch-on-color="{{ switches.onColor }}"\n\t\t\t\t\t\t\tswitch-off-color="{{ switches.offColor }}"\n\t\t\t\t\t\t\tswitch-animate="{{ switches.animate }}"\n\t\t\t\t\t\t\tswitch-size="{{ switches.size }}"\n\t\t\t\t\t\t\tswitch-label="{{ switches.label }}"\n\t\t\t\t\t\t\tswitch-icon="{{ switches.icon }}"\n\t\t\t\t\t\t\tswitch-radio-off="{{ switches.radioOff }}"\n\t\t\t\t\t\t\tswitch-label-width="{{ switches.labelWidth }}"\n\t\t\t\t\t\t\tswitch-handle-width="{{ switches.handleWidth }}">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END ACTIVE --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TYPE --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="item.type" name="type" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in scheduleTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | translate"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TYPE --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="next(true)">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIGURATION\' | translate}}" canexit="exitValidation(forms.config.$valid)">\n\t\t\t\t\t<form name="forms.config" data-ng-switch="item.reportType" data-ng-if="item.type===\'report\'" data-ng-init="initReports()" novalidate>\n\t\t\t\t\t\t<div class="row">\n\n\t\t\t\t\t\t\t\x3c!-- START TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_TYPE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.reportType" name="type" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="report in [\'default\', \'custom\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="report | capitalize | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.type.$touched || forms.config.$submitted) && forms.config.type.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TYPE --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DEFAULT REPORT --\x3e\n\t\t\t\t\t\t\t<div data-ng-switch-when="default" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices group-by="\'parent\'" repeat="report.id as report in defRep | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="report.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DEFAULT REPORT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CUSTOM REPORT --\x3e\n\t\t\t\t\t\t\t<div data-ng-switch-when="custom" class="form-group col-md-8" data-ng-class="{\'has-error\': (forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_REPORT\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.reportId" name="reportId" theme="bootstrap" on-select="setReportTree($item,$model)" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_REPORT\' | translate }}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices group-by="\'parent\'" repeat="report.id as report in cusRep | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="report.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.config.reportId.$touched || forms.config.$submitted) && forms.config.reportId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CUSTOM REPORT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START OUTPUT --\x3e\n\t\t\t\t\t\t<div class="form-group col-md-2" data-ng-class="{\'has-error\': (forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_OUTPUT\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="item.reportOutput" name="reportOutput" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_OUTPUT\' | translate }}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="output in [\'CSV\',\'PDF\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="output | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.config.reportOutput.$touched || forms.config.$submitted) && forms.config.reportOutput.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END OUTPUT --\x3e\n\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- START TODAY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_RUN_ON\' | translate}}</label></br>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\tdata-ng-model="switchValues.today"\n\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\tname="status"\n\t\t\t\t\t\t\tdata-ng-change="checkToday()"\n\t\t\t\t\t\t\tswitch-active="{{ switches.isActive }}"\n\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_TODAY\' | translate }}"\n\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_RANGE\' | translate }}"\n\t\t\t\t\t\t\tswitch-on-color="{{ switches.onColor }}"\n\t\t\t\t\t\t\tswitch-off-color="{{ switches.offColor }}"\n\t\t\t\t\t\t\tswitch-animate="{{ switches.animate }}"\n\t\t\t\t\t\t\tswitch-size="{{ switches.size }}"\n\t\t\t\t\t\t\tswitch-label="{{ switches.label }}"\n\t\t\t\t\t\t\tswitch-icon="{{ switches.icon }}"\n\t\t\t\t\t\t\tswitch-radio-off="{{ switches.radioOff }}"\n\t\t\t\t\t\t\tswitch-label-width="{{ switches.labelWidth }}"\n\t\t\t\t\t\t\tswitch-handle-width="{{ switches.handleWidth }}">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TODAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START VALIDITY --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-if="switchValues.today">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_VALIDITY\' | translate}}</label>\n\t\t\t\t\t\t\t<rzslider rz-slider-model="item.validityStart" rz-slider-high="item.validityEnd" rz-slider-options="validitySlider" data-ng-init="item.validityStart = 8;item.validityEnd = 16;"></rzslider>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END VALIDITY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START RANGE --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-if="!switchValues.today" data-ng-class="{\'has-error\': (forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_REPORT_RANGE\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="item.reportRange" name="range" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_RANGE\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="range.value as range in reportRanges | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="range.name | highlight: $select.search | translate"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.config.range.$touched || forms.config.$submitted) && forms.config.range.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END RANGE --\x3e\n\n\t\t\t\t\t\t\x3c!-- START TODAY CRON EXEC --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-if="switchValues.today" data-ng-class="{\'has-error\': (forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="item.cron" name="cron" theme="bootstrap" data-ng-required="switchValues.today">\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="cron.value as cron in todayCron | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="cron.name | highlight: $select.search | translate"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.config.cron.$touched || forms.config.$submitted) && forms.config.cron.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END TODAY CRON --\x3e\n\t\t\t\t\t\t<div class="row" data-ng-if="!switchValues.today">\n\t\t\t\t\t\t\x3c!-- START CRONTYPE EXEC --\x3e\n\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-class="{\'has-error\': (forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="rangeExec.type" name="cronType" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_EXECUTE_EVERY\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="type.value as type in cronTypes | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="type.name | highlight: $select.search | translate"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.config.cronType.$touched || forms.config.$submitted) && forms.config.cronType.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END CRONTYPE --\x3e\n\n\t\t\t\t\t\t\x3c!-- START WEEKDAY --\x3e\n\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-if="item.cronType === \'weekly\'" data-ng-class="{\'has-error\': (forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_WEEKDAYS\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select multiple data-ng-model="rangeExec.weekDays" name="weekDay" theme="bootstrap" data-ng-required="item.cronType === \'weekly\'">\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_WEEKDAYS\' | translate }}">{{$item.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="day.value as day in weekDays | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="day.name | highlight: $select.search | translate"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.config.weekDay.$touched || forms.config.$submitted) && forms.config.weekDay.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END WEEKDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START MONTHDAY --\x3e\n\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-if="item.cronType === \'monthly\'" data-ng-class="{\'has-error\': (forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_MONTHDAY\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="rangeExec.monthDay" name="monthDay" theme="bootstrap" data-ng-required="item.cronType === \'monthly\'">\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_MONTHDAY\' | translate }}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="day in monthDays | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="day | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.config.monthDay.$touched || forms.config.$submitted) && forms.config.monthDay.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END MONTHDAY --\x3e\n\n\t\t\t\t\t\t\x3c!-- START HOUR --\x3e\n\t\t\t\t\t\t<div class="form-group col-md-4" data-ng-if="item.cronType" data-ng-class="{\'has-error\': (forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_HOUR\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<ui-select data-ng-model="rangeExec.hour" name="hour" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_HOUR\' | translate }}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t<ui-select-choices repeat="hour in hours | filter: $select.search">\n\t\t\t\t\t\t\t\t\t<div ng-bind-html="hour | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.config.hour.$touched || forms.config.$submitted) && forms.config.hour.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END HOUR --\x3e\n\t\t\t\t\t</div>\n\n\t\t\t\t\t\x3c!-- START SEND MAIL --\x3e\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SEND_MAIL\' | translate}}</label></br>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\tdata-ng-model="item.sendMail"\n\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\tname="status"\n\t\t\t\t\t\tdata-ng-init="item.sendMail = 0"\n\t\t\t\t\t\tswitch-active="{{ switches.isActive }}"\n\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\tswitch-on-color="{{ switches.onColor }}"\n\t\t\t\t\t\tswitch-off-color="{{ switches.offColor }}"\n\t\t\t\t\t\tswitch-animate="{{ switches.animate }}"\n\t\t\t\t\t\tswitch-size="{{ switches.size }}"\n\t\t\t\t\t\tswitch-label="{{ switches.label }}"\n\t\t\t\t\t\tswitch-icon="{{ switches.icon }}"\n\t\t\t\t\t\tswitch-radio-off="{{ switches.radioOff }}"\n\t\t\t\t\t\tswitch-label-width="{{ switches.labelWidth }}"\n\t\t\t\t\t\tswitch-handle-width="{{ switches.handleWidth }}">\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END SEND MAIL --\x3e\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\x3c!-- START ACCOUNT --\x3e\n\t\t\t\t\t<div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$invalid}">\n\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_ACCOUNT\' | translate }}<span class="required" data-ng-if="item.sendMail" aria-required="true">*</span></label>\n\t\t\t\t\t\t<ui-select data-ng-model="item.MailServerOutId" name="MailServerOutId" theme="bootstrap" data-ng-disabled="!item.sendMail" data-ng-required="item.sendMail">\n\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_ACCOUNT\' | translate }}">{{$select.selected.username}}</ui-select-match>\n\t\t\t\t\t\t\t<ui-select-choices repeat="account.id as account in mailServers | filter: $select.search">\n\t\t\t\t\t\t\t\t<div ng-bind-html="account.username | highlight: $select.search"></div>\n\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t<span data-ng-show="(forms.config.MailServerOutId.$touched || forms.config.$submitted) && forms.config.MailServerOutId.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<div class="note note-warning" data-ng-hide="mailServers.length">\n\t\t\t\t\t\t\t<h4 class="block">Warning!</h4>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t{{ \'MESSAGE_NO_ACCOUNTS_AVAILABLE\' | translate }}\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ACCOUNT --\x3e\n\n\t\t\t\t\t\x3c!-- START EMAIL --\x3e\n\t\t\t\t\t<div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.config.$submitted && forms.config.email.$invalid) || forms.config.email.$error.pattern}">\n\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}<span data-ng-if="item.sendMail" class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t<input type="email" name="email" placeholder="{{\'APPLICATION_EMAIL_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.email" required data-ng-disabled="!item.sendMail" data-ng-required="item.sendMail"/>\n\t\t\t\t\t\t<span data-ng-show="forms.config.$submitted && forms.config.email.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END EMAIL --\x3e\n\t\t\t\t</div>\n\n\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t</wz-step>\n\t\t\t</wizard>\n\t\t</div>\n\t</div>\n\t\x3c!-- END PORTLET--\x3e\n</div>\n\x3c!-- <pre>\n\t{{rangeExec | json}}\n</pre>\n<pre>\n\t{{item | json}}\n</pre> --\x3e\n'),t.put("app/tools/sound/list/list.html",'<div class="page-bar">\n  <ul class="page-breadcrumb">\n    <li>\n      <i class="icon-rocket"></i>\n      <a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n      <i class="fa fa-angle-right"></i>\n    </li>\n    <li>\n      <i class="icon-music-tone-alt"></i>\n      <a href="#">{{ \'APPLICATION_SOUNDS\' | translate }}</a>\n    </li>\n  </ul>\n  <div class="page-toolbar">\n  </div>\n</div>\n\x3c!-- END PAGE HEADER--\x3e\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n\x3c!-- Audio Portlets --\x3e\n<div class="headline">\n  <h3><i class="icon-music-tone-alt sounds-title-icon"></i> {{ \'APPLICATION_SOUNDS\' | translate }}</h3>\n</div>\n<div class="portlet light bg-inverse">\n  <div class="portlet-title collapsible" ng-click="isCollapsed = !isCollapsed">\n    <div class="caption">\n      <i class="icon-puzzle font-red-flamingo"></i>\n      <span class="caption-subject bold font-red-flamingo uppercase">\n      {{\'APPLICATION_FILE_UPLOAD\' | translate}} </span>\n    </div>\n    <div class="tools">\n      <a href="" ng-class="{\'collapse\': !isCollapsed, \'expand\' : isCollapsed}">\n      </a>\n    </div>\n  </div>\n  <div class="portlet-body" ng-slide-down="!isCollapsed">\n    <div class="row" nv-file-drop="" uploader="uploader" filters="queueLimit, customFilter">\n    \t<div class="col-md-4">\n    \t\t<div class="portlet light bordered">\n    \t\t\t<div class="portlet-title">\n    \t\t\t\t<div class="caption font-green-sharp">\n    \t\t\t\t\t<i class="icon-settings font-green-sharp"></i>\n    \t\t\t\t\t<span class="caption-subject bold uppercase">{{\'APPLICATION_SELECT_FILES\' | translate}}</span>\n    \t\t\t\t\t<span class="caption-helper hide"></span>\n    \t\t\t\t</div>\n    \t\t\t\t<div class="actions">\n    \t\t\t\t</div>\n    \t\t\t</div>\n    \t\t\t<div class="portlet-body">\n    \t\t\t\t<div ng-show="uploader.isHTML5">\n    \t\t\t\t\t<div class="file-drop-zone margin-bottom-20" nv-file-over="" uploader="uploader" over-class="file-drop-zone-over">\n    \t\t\t\t\t\tBase drop zone\n    \t\t\t\t\t</div>\n    \t\t\t\t</div>\n    \t\t\t\t<span class="btn default btn-file">\n    \t\t\t\t<span class="fileinput-new">\n    \t\t\t\t{{\'APPLICATION_FILE_UPLOAD\' | translate}}</span>\n    \t\t\t\t<input type="file" nv-file-select="" uploader="uploader" />\n    \t\t\t\t</span>\n    \t\t\t\t<span class="btn default btn-file">\n    \t\t\t\t<span class="fileinput-new">\n    \t\t\t\t{{\'APPLICATION_MULTI_FILE_UPLOAD\' | translate}}</span>\n    \t\t\t\t<input type="file" nv-file-select="" uploader="uploader" multiple  /><br/>\n          </span>\n          <p>\n            </br>\n            {{ \'MESSAGE_SUPPORTED_FORMATS\' | translate }} <b>wav, mp3, gsm, ogg</b>.\n          </p>\n          <p>\n            {{ \'MESSAGE_MAXIMUM_SOUND_UPLOAD_SIZE\' | translate }} <b>15 Mb</b>.\n          </p>\n    \t\t\t</div>\n    \t\t</div>\n    \t</div>\n    \t<div class="col-md-8">\n    \t\t<div class="portlet light bordered">\n    \t\t\t<div class="portlet-title">\n    \t\t\t\t<div class="caption font-green-sharp">\n    \t\t\t\t\t<i class="icon-settings font-green-sharp"></i>\n    \t\t\t\t\t<span class="caption-subject bold uppercase">{{\'APPLICATION_UPLOAD_QUEUE\' | translate}}</span>\n    \t\t\t\t\t<span class="caption-helper">{{\'APPLICATION_QUEUE_LENGTH\' | translate}}: {{ uploader.queue.length }}</span>\n    \t\t\t\t</div>\n    \t\t\t\t<div class="actions">\n    \t\t\t\t</div>\n    \t\t\t</div>\n    \t\t\t<div class="portlet-body">\n    \t\t\t\t<div class="table-scrollable table-scrollable-borderless">\n    \t\t\t\t\t<table class="table table-hover table-light">\n    \t\t\t\t\t\t<thead>\n    \t\t\t\t\t\t\t<tr class="uppercase">\n    \t\t\t\t\t\t\t\t<th width="50%">{{\'APPLICATION_NAME\' | translate}}</th>\n    \t\t\t\t\t\t\t\t<th ng-show="uploader.isHTML5">{{\'APPLICATION_SIZE\' | translate}}</th>\n    \t\t\t\t\t\t\t\t<th ng-show="uploader.isHTML5">{{\'APPLICATION_PROGRESS\' | translate}}</th>\n    \t\t\t\t\t\t\t\t<th>{{\'APPLICATION_STATUS\' | translate}}</th>\n    \t\t\t\t\t\t\t\t<th>{{\'APPLICATION_MESSAGE\' | translate}}</th>\n    \t\t\t\t\t\t\t\t<th>{{\'APPLICATION_ACTIONS\' | translate}}</th>\n    \t\t\t\t\t\t\t</tr>\n    \t\t\t\t\t\t</thead>\n    \t\t\t\t\t\t<tbody>\n    \t\t\t\t\t\t\t<tr ng-repeat="item in uploader.queue">\n    \t\t\t\t\t\t\t\t<td><strong>{{ item.file.name }}</strong></td>\n    \t\t\t\t\t\t\t\t<td ng-show="uploader.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>\n    \t\t\t\t\t\t\t\t<td ng-show="uploader.isHTML5">\n    \t\t\t\t\t\t\t\t\t<div class="progress progress-sm" style="margin-bottom: 0;">\n    \t\t\t\t\t\t\t\t\t\t<div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': item.progress + \'%\' }"></div>\n    \t\t\t\t\t\t\t\t\t</div>\n    \t\t\t\t\t\t\t\t</td>\n    \t\t\t\t\t\t\t\t<td class="text-center">\n    \t\t\t\t\t\t\t\t\t<span ng-show="item.isSuccess" class="text-success"><i class="glyphicon glyphicon-ok"></i></span>\n    \t\t\t\t\t\t\t\t\t<span ng-show="item.isCancel" class="text-info"><i class="glyphicon glyphicon-ban-circle"></i></span>\n    \t\t\t\t\t\t\t\t\t<span ng-show="item.isError" class="text-danger"><i class="glyphicon glyphicon-remove"></i></span>\n    \t\t\t\t\t\t\t\t\t<span ng-show="item.isUploading" class="text-info"><i class="glyphicon glyphicon-upload"></i></span>\n    \t\t\t\t\t\t\t\t</td>\n    \t\t\t\t\t\t\t\t<td class="text-center">\n    \t\t\t\t\t\t\t\t\t<span ng-show="item.responseMessage" class="text-danger">{{item.responseMessage}}</span>\n    \t\t\t\t\t\t\t\t</td>\n    \t\t\t\t\t\t\t\t<td nowrap>\n    \t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">\n    \t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD\' | translate}}\n    \t\t\t\t\t\t\t\t\t</button>\n    \t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">\n    \t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL\' | translate}}\n    \t\t\t\t\t\t\t\t\t</button>\n    \t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">\n    \t\t\t\t\t\t\t\t\t<span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE\' | translate}}\n    \t\t\t\t\t\t\t\t\t</button>\n    \t\t\t\t\t\t\t\t</td>\n    \t\t\t\t\t\t\t</tr>\n    \t\t\t\t\t\t</tbody>\n    \t\t\t\t\t</table>\n    \t\t\t\t</div>\n    \t\t\t\t<div>\n    \t\t\t\t\t<p>{{\'APPLICATION_UPLOAD_QUEUE_PROGRESS\' | translate}}:</p>\n    \t\t\t\t\t<div class="progress progress-sm" style="">\n    \t\t\t\t\t\t<div class="progress-bar progress-bar-info" role="progressbar" ng-style="{ \'width\': uploader.progress + \'%\' }"></div>\n    \t\t\t\t\t</div>\n    \t\t\t\t</div>\n    \t\t\t\t<button type="button" class="btn btn-success btn-s" ng-click="uploader.uploadAll()" ng-disabled="!uploader.getNotUploadedItems().length">\n    \t\t\t\t<span class="glyphicon glyphicon-upload"></span> {{\'APPLICATION_UPLOAD_ALL\' | translate}}\n    \t\t\t\t</button>\n    \t\t\t\t<button type="button" class="btn btn-warning btn-s" ng-click="uploader.cancelAll()" ng-disabled="!uploader.isUploading">\n    \t\t\t\t<span class="glyphicon glyphicon-ban-circle"></span> {{\'APPLICATION_CANCEL_ALL\' | translate}}\n    \t\t\t\t</button>\n    \t\t\t\t<button type="button" class="btn btn-danger btn-s" ng-click="uploader.clearQueue()" ng-disabled="!uploader.queue.length">\n    \t\t\t\t<span class="glyphicon glyphicon-trash"></span> {{\'APPLICATION_REMOVE_ALL\' | translate}}\n    \t\t\t\t</button>\n    \t\t\t</div>\n    \t\t</div>\n    \t</div>\n    </div>\n  </div>\n</div>\n<div class="row thumbnails" data-ng-init="initList()">\n  <div class="row" ng-show="sounds.length == 0">\n    <div class="col-md-12 page-404">\n      <div class="details">\n        <h3>{{ \'MESSAGE_NO_SOUNDS\' | translate }}</h3>\n        <p>\n          <a href="/">\n          {{ \'MESSAGE_RETURN_HOME\' | translate }} </a>\n          {{ \'MESSAGE_OR_UPLOAD_SOUND_FILE\' | translate }}\n        </p>\n      </div>\n    </div>\n  </div>\n  <div class="audio-portlet-wrapper animate-repeat" ng-repeat="sound in sounds">\n    <div class="audio-portlet">\n      <div class="audio-portlet-title"><a href="#" editable-text="sound.display_name" onbeforesave="updateAudio(sound.id,{display_name : $data})">{{ sound.display_name || "Empty" }}</a></div>\n      <img src="../assets/images/note_placeholder.png" alt="" class="img-responsive"/>\n      <div class="file-info">\n        <div class="audio-tag-wrapper">\n          <audio-file-download params="{id:sound.id,controller:\'stream\'}" resource="Sound"></audio-file-download>\n        </div>\n        <p id="description_div">\n          <a href="#" editable-text="sound.description" onbeforesave="updateAudio(sound.id,{description : $data})">{{ sound.description || "Empty" }}</a>\n        </p>\n        <p class="float-right">\n            <button class="btn btn-xs green-meadow" uib-tooltip-template="\'audioInfoTemplate.html\'"><i class="icon-list"></i></button>\n            <motion-file-download  params="{id:sound.id,controller:\'download\'}" resource="Sound" mimetype="\'audio/\'+sound.original_format" tooltiptext="Download" filename="sound.display_name+\'.\'+sound.original_format" btnclass="{{downloadButtonClass}}" btncontent=\'{{downloadButtonContent}}\'></motion-file-download>\n            <button uib-tooltip="Delete" class="btn btn-xs red-sunglo" ng-click="delete(sound.display_name, sound.id)" tooltip="Delete"><i class="icon-close" ></i></button>\n        </p>\n      </div>\n    </div>\n  </div>\n  <script type="text/ng-template" id="audioInfoTemplate.html">\n    <div>\n      <ul class="list-unstyled">\n        <li><b>Format : </b>{{sound.original_format}}</li>\n        <li><b>Duration : </b>{{sound.original_duration | date: \'mm:ss\'}}</li>\n        <li><b>Channels : </b>{{sound.original_channelCount}}</li>\n        <li><b>Bitrate : </b>{{sound.original_bitRate/1024}} kbs</li>\n        <li><b>Sample Rate : </b>{{sound.original_sampleRate/1000}} KHz</li>\n      </ul>\n    </div>\n  <\/script>\n</div>\n\x3c!-- End Audio Portlets --\x3e\n'),t.put("app/tools/tag/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_TAG\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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 data-ng-pattern="settings.patternName"/>\n      <span data-ng-show="(form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.pattern" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/tools/tag/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-tag"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TAGS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_TAGS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_TAG\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/tag/view/view.chat.html",'<div class="row" >\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_CHAT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-if="tag" data-ng-init="initChat()">\n\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/tag/view/view.contacts.html",'<div class="row" >\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_CONTACTS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-if="tag" data-ng-init="initContacts()">\n\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions" data-ng-if="readyGrid && gridOptions" ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/tag/view/view.fax.html",'<div class="row" >\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_FAX\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-if="tag" data-ng-init="initFax()">\n\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/tag/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getTag()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-tag"></i>\n\t\t\t\t\t<a href="/tools/tags/list">{{ \'APPLICATION_TAGS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="tag" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="tag">\n\t\t\t\t\t<a href="#">{{tag.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/tag.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{tag.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.tags.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/tools/tags/view/{{tag.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.tags.view.chat\')}">\n\t\t\t\t\t\t\t<a data-ng-href="{{license.chat ? \'/tools/tags/view/\'+tag.id+\'/chat\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.chat}">\n\t\t\t\t\t\t\t<i class="icon-bubble"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_CHAT\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.tags.view.mail\')}">\n\t\t\t\t\t\t\t<a data-ng-href="{{license.mail ? \'/tools/tags/view/\'+tag.id+\'/mail\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.mail}">\n\t\t\t\t\t\t\t<i class="icon-envelope"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_MAIL\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.tags.view.fax\')}">\n\t\t\t\t\t\t\t<a data-ng-href="{{license.fax ? \'/tools/tags/view/\'+tag.id+\'/fax\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.fax}">\n\t\t\t\t\t\t\t<i class="fa fa-fax"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_FAX\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.tags.view.sms\')}" >\n\t\t\t\t\t\t\t<a data-ng-href="{{license.messaging ? \'/tools/tags/view/\'+tag.id+\'/sms\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.messaging}">\n\t\t\t\t\t\t\t<i class="glyphicon glyphicon-comment"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SMS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.tags.view.contacts\')}">\n\t\t\t\t\t\t\t<a data-ng-href="{{license.cm ? \'/tools/tags/view/\'+tag.id+\'/contacts\' : \'#\'}}" data-ng-class="{\'disabled-link\':!license.cm}">\n\t\t\t\t\t\t\t<i class="fa fa-users"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_CONTACTS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/tag/view/view.mail.html",'<div class="row" >\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_MAIL\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-if="tag" data-ng-init="initMail()">\n\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/tag/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAG\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- BEGIN UI-GRID SPINNER --\x3e\n\t\t\t\t<span us-spinner spinner-key="spinner-grid" spinner-start-active="false"></span>\n\t\t\t\t\x3c!-- END UI-GRID SPINNER --\x3e\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateTag()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="tag.name" required data-ng-pattern="settings.patternName"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="tag.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/tag/view/view.sms.html",'<div class="row" >\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TAGGED_SMS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-if="tag" data-ng-init="initSms()">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/template/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-wrench font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }}</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/tools/templates/wizard">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_TEMPLATE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/template/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initItem()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/tools/templates/list">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="item" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="item">\n\t\t\t\t\t<a href="#">{{item.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/template.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{item.name}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.templates.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/tools/templates/view/{{item.id}}/settings">\n\t\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/template/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\n\t\t\t\t<form name="form" data-ng-submit="form.$valid && updateItem()" class="form-horizontal" novalidate>\n\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-2">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-10">\n\t\t\t\t\t\t\t\t\t<input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-2">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-10">\n\t\t\t\t\t\t\t\t\t<input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t<hr>\n\n\t\t\t\t\t\x3c!-- START SUBJECT --\x3e\n\t\t\t\t\t<div class="form-group row" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-2">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-10">\n\t\t\t\t\t\t\t\t\t<input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n\t\t\t\t\t\t\t\t\t<span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END SUJBECT --\x3e\n\n\t\t\t\t\t\x3c!-- START HTML --\x3e\n\t\t\t\t\t<div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t<div ckeditor="options" ng-model="item.html"></div>\n\t\t\t\t\t\t\t<span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END HTML --\x3e\n\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/template/wizard/wizard.html",'<div class="row">\n\t<div class="col-md-12">\n\t  \x3c!-- BEGIN PAGE HEADER--\x3e\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-docs"></i>\n\t\t\t\t\t<a href="/tools/templates/list">{{ \'APPLICATION_TEMPLATES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t  \x3c!-- END PAGE HEADER--\x3e\n\n\t  \x3c!-- BEGIN PORTLET--\x3e\n\t  <div class="portlet light bordered" data-ng-init="initWizard()">\n\t  \t<div class="portlet-title">\n\t  \t\t<div class="caption font-green-sharp">\n\t  \t\t\t<i class="icon-docs font-green-sharp"></i>\n\t  \t\t\t<span class="caption-subject">{{ \'APPLICATION_TEMPLATES\' | translate }} FORM</a> </span>\n\t  \t\t</div>\n\t  \t</div>\n\t  \t<div class="portlet-body">\n\t\t\t\t<form name="form" data-ng-submit="form.$valid && createItem()" class="form-horizontal" novalidate>\n\t\t\t\t\t\x3c!-- START HEAD --\x3e\n\t\t\t\t\t<div class="form">\n\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.name.$invalid && form.$submitted}">\n\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}:<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="name" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_NAME\' | translate}}..." data-ng-model="item.name" required>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.name.$invalid && form.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.description.$invalid && form.$submitted}">\n\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}:</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="description" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}..." rows="8" data-ng-model="item.description">\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.description.$invalid && form.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START SUBJECT --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': form.subject.$invalid && form.$submitted}">\n\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-1">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SUBJECT\' | translate}}:</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-md-11">\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="subject" class="form-control todo-taskbody-taskdesc" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}..." rows="8" data-ng-model="item.subject">\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="form.subject.$invalid && form.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END SUJBECT --\x3e\n\n\t\t\t\t\t\t\x3c!-- START HTML --\x3e\n\t\t\t\t\t\t<div class="form-group row" data-ng-class="{\'has-error\': form.text.$invalid && form.$submitted}">\n\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t<div ckeditor="options" ng-model="item.html"></div>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="form.text.$invalid && form.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END HTML --\x3e\n\n\t\t\t\t\t</div>\n\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="goNext()"/>\n\t\t\t\t</form>\n\t  \t</div>\n\t  </div>\n\t  \x3c!-- END PORTLET--\x3e\n\t</div>\n</div>\n'),t.put("app/tools/trigger/list/list.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-bulb"></i>\n\t\t\t\t\t\t<a href="#">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-bulb font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle " href="/tools/triggers/wizard">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRIGGER\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/trigger/view/view.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row" data-ng-init="initView();">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-bulb"></i>\n\t\t\t\t\t<a href="/tools/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right" data-ng-show="trigger"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="trigger">\n\t\t\t\t\t<a href="#">{{ trigger.description || trigger.name }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/trigger.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{ trigger.name }}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{ trigger.description }}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.triggers.view.settings\')}">\n\t\t\t\t\t\t\t<a href="/tools/triggers/view/{{trigger.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-bulb"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/trigger/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_SETTINGS\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_CONDITIONS\' | translate}} & {{\'APPLICATION_ACTIONS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<form name="forms.general" data-ng-submit="exitValidation(forms.general.$valid) && updateTrigger()" novalidate>\n\t\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trigger.name" required/>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START CHANNEL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CHANNEL\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="channel" placeholder="{{\'APPLICATION_CHANNEL\' | translate}}" class="form-control" data-ng-model="trigger.channel" required readonly/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.channel.$touched || forms.general.$submitted) && forms.general.channel.$invalid && forms.general.channel.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END CHANNEL --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START STATUS --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label>\n\t\t\t\t\t\t\t</br>\n\t\t\t\t\t\t\t<input bs-switch class="form-control" ng-model="trigger.status" type="checkbox" name="status" switch-active="{{ recordSwitch.isActive }}" switch-on-text="{{ recordSwitch.onText }}" switch-off-text="{{ recordSwitch.offText }}" switch-on-color="{{ recordSwitch.onColor }}"\n\t\t\t\t\t\t\tswitch-off-color="{{ recordSwitch.offColor }}" switch-animate="{{ recordSwitch.animate }}" switch-size="{{ recordSwitch.size }}" switch-label="{{ recordSwitch.label }}" switch-icon="{{ recordSwitch.icon }}" switch-radio-off="{{ recordSwitch.radioOff }}"\n\t\t\t\t\t\t\tswitch-label-width="{{ recordSwitch.labelWidth }}" switch-handle-width="{{ recordSwitch.handleWidth }}">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END STATUS --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trigger.description" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="all in trigger.All">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t<condition-builder element="all" serviceindex="trigger.channel" service="$triggers" form="forms.general"></condition-builder>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="any in trigger.Any">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t<condition-builder element="any" serviceindex="trigger.channel" service="$triggers" form="forms.general"></condition-builder>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="action in trigger.Actions">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="action.action" theme="bootstrap" name="action{{$index}}" data-ng-change="resetActionData(action)" required>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tAction.value as tAction in $triggers.services[trigger.channel].actions | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-switch="action.action">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-template ng-switch-when="template" element="action" form="forms.general"></action-builder-template>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-account-template ng-switch-when="accountTemplate" element="action" form="forms.general"></action-builder-account-template>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-integration ng-switch-when="integration" element="action" form="forms.general"></action-builder-integration>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-motion-bar ng-switch-when="motionbar" element="action" form="forms.general"></action-builder-motion-bar>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-jscripty ng-switch-when="jscripty" element="action" form="forms.general"></action-builder-jscripty>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-url-forward ng-switch-when="urlForward" element="action" form="forms.general"></action-builder-url-forward>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-close ng-switch-when="close" element="action" form="forms.general"></action-builder-close>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-forward ng-switch-when="forward" element="action" form="forms.general"></action-builder-forward>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-tag ng-switch-when="tag" element="action" form="forms.general"></action-builder-tag>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-http ng-switch-when="http" element="action" form="forms.general"></action-builder-http>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-email ng-switch-when="email" element="action" form="forms.general"></action-builder-email>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-account-email ng-switch-when="accountEmail" element="action" form="forms.general"></action-builder-account-email>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-account-sms ng-switch-when="accountSms" element="action" form="forms.general"></action-builder-account-sms>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-cm ng-switch-when="contactManager" element="action" form="forms.general"></action-builder-cm>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-web-popup ng-switch-when="webPopup" element="action" form="forms.general"></action-builder-web-popup>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- <div class="has-error" data-ng-show="forms.general.$submitted && !trigger.All.length && !trigger.Any.length">\n\t\t\t\t\t\t\t<span class="help-block help-block-error form-control">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t<div class="has-error" data-ng-show="forms.general.$submitted && !trigger.Actions.length">\n\t\t\t\t\t\t\t<span class="help-block help-block-error form-control">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</div>\n\t</div>\n</div>\n</div>\n'),t.put("app/tools/trigger/wizard/wizard.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN PAGE HEADER--\x3e\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-bulb"></i>\n\t\t\t\t\t<a href="/tools/triggers/list">{{ \'APPLICATION_TRIGGERS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t\t\x3c!-- END PAGE HEADER--\x3e\n\n\t\t\x3c!-- BEGIN  PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-bulb font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_TRIGGERS\' | translate }} WIZARD</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n\t\t\t\t\t\t<form name="forms.general" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START STATUS --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_STATUS\' | translate}}</label>\n\t\t\t\t\t\t\t</br>\n\t\t\t\t\t\t\t<input bs-switch class="form-control" ng-model="item.status" type="checkbox" name="status" data-ng-init="item.status = 0" switch-active="{{ statusSwitch.isActive }}" switch-on-text="{{ statusSwitch.onText }}" switch-off-text="{{ statusSwitch.offText }}"\n\t\t\t\t\t\t\tswitch-on-color="{{ statusSwitch.onColor }}" switch-off-color="{{ statusSwitch.offColor }}" switch-animate="{{ statusSwitch.animate }}" switch-size="{{ statusSwitch.size }}" switch-label="{{ statusSwitch.label }}" switch-icon="{{ statusSwitch.icon }}"\n\t\t\t\t\t\t\tswitch-radio-off="{{ statusSwitch.radioOff }}" switch-label-width="{{ statusSwitch.labelWidth }}" switch-handle-width="{{ statusSwitch.handleWidth }}">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END STATUS --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()" />\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\t\t\t\t<wz-step title="{{\'APPLICATION_SETTINGS\' | translate}}" canexit="exitSettingsValidation(forms.settings.$valid)">\n\t\t\t\t\t<form name="forms.settings" novalidate>\n\n\t\t\t\t\t\t\x3c!-- Channel --\x3e\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_CHANNEL\' | translate }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$invalid}">\n\t\t\t\t\t\t\t\t\t<label class="control-label">{{ \'APPLICATION_CHANNEL\' | translate }}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.channel" name="channel" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_CHANNEL\' | translate }}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="channel in $triggers.channels | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="channel | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.settings.channel.$touched || forms.settings.$submitted) && forms.settings.channel.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- All --\x3e\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ALL_CONDITIONS\' | translate"></span>:\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="all in item.All">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ALL\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'All\',$index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t<condition-builder element="all" serviceindex="item.channel" service="$triggers" form="forms.general"></condition-builder>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'All\')">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- Any --\x3e\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject" ng-bind-html="\'APPLICATION_MEET_ANY_CONDITIONS\' | translate"></span>:\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="any in item.Any">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ANY\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeCondition(\'Any\',$index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t\t\t<condition-builder element="any" serviceindex="item.channel" service="$triggers" form="forms.general"></condition-builder>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addCondition(\'Any\')">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_CONDITION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- Actions --\x3e\n\t\t\t\t\t\t<div class="portlet light bordered">\n\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t<i class="icon-tag font-blue-hoki"></i>\n\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }}</span>:\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t<div class="portlet light bordered" ng-repeat="action in item.Actions">\n\t\t\t\t\t\t\t\t\t<div class="portlet-title">\n\t\t\t\t\t\t\t\t\t\t<div class="caption font-blue-hoki">\n\t\t\t\t\t\t\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACTIONS\' | translate }} #{{$index+1}}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="btn red-sunglo btn-icon-only" ng-click="removeAction($index)"><i class="fa fa-trash"></i></a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\t\t\t\t\t<div class="padding-bottom row">\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <div class="col-md-12"> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group col-md-6" data-ng-class="{\'has-error\': (forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$invalid}">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="action.action" theme="bootstrap" data-ng-change="resetActionData(action)" name="action{{$index}}" required>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_ACTION\' | translate }}">{{$select.selected.name | translate}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tAction.value as tAction in $triggers.services[item.channel].actions | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="tAction.name | translate | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \'APPLICATION_ACTION\' | translate }}\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general[\'action\'+$index].$touched || forms.general.$submitted) && forms.general[\'action\'+$index].$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-switch="action.action">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-template ng-switch-when="template" element="action" form="forms.general"></action-builder-template>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-account-template ng-switch-when="accountTemplate" element="action" form="forms.general"></action-builder-account-template>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-integration ng-switch-when="integration" element="action" form="forms.general"></action-builder-integration>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-motion-bar ng-switch-when="motionbar" element="action" form="forms.general"></action-builder-motion-bar>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-jscripty ng-switch-when="jscripty" element="action" form="forms.general"></action-builder-jscripty>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-url-forward ng-switch-when="urlForward" element="action" form="forms.general"></action-builder-url-forward>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-close ng-switch-when="close" element="action" form="forms.general"></action-builder-close>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-forward ng-switch-when="forward" element="action" form="forms.general"></action-builder-forward>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-tag ng-switch-when="tag" element="action" form="forms.general"></action-builder-tag>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-http ng-switch-when="http" element="action" form="forms.general"></action-builder-http>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-email ng-switch-when="email" element="action" form="forms.general"></action-builder-email>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-account-email ng-switch-when="accountEmail" element="action" form="forms.general"></action-builder-account-email>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-account-sms ng-switch-when="accountSms" element="action" form="forms.general"></action-builder-account-sms>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-cm ng-switch-when="contactManager" element="action" form="forms.general"></action-builder-cm>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<action-builder-web-popup ng-switch-when="webPopup" element="action" form="forms.general"></action-builder-web-popup>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn btn-sm green padding-bottom" data-ng-click="addAction()">\n\t\t\t\t\t\t\t\t\t\t\t<i class="fa fa-plus"></i> {{\'APPLICATION_ADD_ACTION\' | translate}}\n\t\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\x3c!-- <div class="has-error" data-ng-show="forms.settings.$submitted && !item.All.length && !item.Any.length">\n\t\t\t\t\t\t\t<span class="help-block help-block-error form-control">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_CONDITION\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t<div class="has-error" data-ng-show="forms.settings.$submitted && !item.Actions.length">\n\t\t\t\t\t\t\t<span class="help-block help-block-error form-control">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INSERT_AT_LEAST_ONE_ACTION\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" ng-click="next()" />\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}" />\n\t\t\t\t</wz-step>\n\t\t\t</wizard>\n\t\t</div>\n\t</div>\n\t\x3c!-- END PORTLET--\x3e\n</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/trunk/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-link"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-link font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_TRUNKS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<a class="btn green-jungle" href="/tools/trunks/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_TRUNK\' | translate }}\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/trunk/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-link"></i>\n\t\t\t\t\t<a href="/tools/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="trunk" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="trunk">\n\t\t\t\t\t<a href="#">{{trunk.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/trunk.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{trunk.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<p data-ng-if="trunk.active && trunk.registry && trunk.status">({{trunk.status}})</p>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.trunks.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/tools/trunks/view/{{trunk.name}}/settings"><i class="icon-settings"></i> {{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/trunk/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_TRUNK\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_ADVANCED\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{ \'APPLICATION_OTHER_FIELDS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body" data-ng-init="getContexts();">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateTrunk()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="trunk.name" data-ng-pattern="settings.patternName" required readonly/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START ACTIVE --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ACTIVE\' | translate}}</label></br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\tclass="form-control"\n\t\t\t\t\t\t\t\tng-model="trunk.active"\n\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\tname="auth"\n\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\tswitch-off-color="{{ activeSwitch.offColor }}"\n\t\t\t\t\t\t\t\tswitch-on-color="{{ activeSwitch.onColor }}"\n\t\t\t\t\t\t\t\tswitch-animate="{{ activeSwitch.animate }}"\n\t\t\t\t\t\t\t\tswitch-size="{{ activeSwitch.size }}"\n\t\t\t\t\t\t\t\tswitch-label="{{ activeSwitch.label }}"\n\t\t\t\t\t\t\t\tswitch-icon="{{ activeSwitch.icon }}"\n\t\t\t\t\t\t\t\tswitch-radio-off="{{ activeSwitch.radioOff }}"\n\t\t\t\t\t\t\t\tswitch-label-width="{{ activeSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\tswitch-handle-width="{{ activeSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END ACTIVE --\x3e\n\t\t\t\t\t\t\t<div class="row">\n\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START HOST --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="trunk.host" required/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.host.$touched || forms.general.$submitted) && forms.general.host.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END HOST --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START SECRET --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SECRET\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="password" name="secret" placeholder="{{\'APPLICATION_SECRET\' | translate}}" class="form-control" data-ng-model="trunk.secret">\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.secret.$touched || forms.general.$submitted) && forms.general.secret.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END SECRET --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START CONTEXT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CONTEXT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.context" name="context" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="context.name as context in voiceContexts | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="context.name | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_VOICE_CONTEXT\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.context.$touched || forms.general.$submitted) && forms.general.context.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END CONTEXT --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START CALLERID --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CALLERID\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="callerid" pattern=\'^"[a-zA-Z0-9_.-]*" <[a-zA-Z0-9_.-]*>\' placeholder="{{\'APPLICATION_CALLERID\' | translate}}" class="form-control" data-ng-model="trunk.callerid"/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_OUTBOUND_CALLERID\' | translate }} "name" &lt;number&gt;\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.callerid.$touched || forms.general.$submitted) && forms.general.callerid.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END CALLERID --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START TYPE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TYPE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.type" name="type" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'user\',\'peer\',\'friend\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_TYPE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.type.$touched || forms.general.$submitted) && forms.general.type.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END TYPE --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START DTMFMODE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DTMFMODE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.dtmfmode" name="dtmfmode" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'rfc2833\', \'info\', \'shortinfo\', \'inband\',\'auto\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_DTMFMODE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.dtmfmode.$touched || forms.general.$submitted) && forms.general.dtmfmode.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END DTMFMODE --\x3e\n\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START DEFAULT USER --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT_USER\' | translate}}" class="form-control" data-ng-model="trunk.defaultuser" required/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END DEFAULT USER --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START NAT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="trunk.nat" name="nat" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\', \'no\', \'never\', \'route\', \'force_rport\', \'comedia\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_NAT\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.nat.$touched || forms.general.$submitted) && forms.general.nat.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END NAT --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START QUALIFY --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_QUALIFY\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.qualify" name="qualify" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_QUALIFY\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.qualify.$touched || forms.general.$submitted) && forms.general.qualify.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END QUALIFY --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START ALLOW --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ALLOW_CODEC\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="trunk.allow" name="allow" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'g723\',\'gsm\',\'ulaw\',\'alaw\',\'g726\',\'g722\',\'g729\',\'ilbc\',\'opus\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_ALLOW_CODEC\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.allow.$touched || forms.general.$submitted) && forms.general.allow.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END ALLOW --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START INSECURE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_INSECURE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="trunk.insecure" name="insecure" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'port\',\'invite\',\'very\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_INSECURE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.insecure.$touched || forms.general.$submitted) && forms.general.insecure.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END INSECURE --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START CALLLIMIT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.call_limit.$touched || forms.general.$submitted) && forms.general.call_limit.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CALLLIMIT\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="call-limit" placeholder="{{\'APPLICATION_CALLLIMIT\' | translate}}" class="form-control" data-ng-model="trunk.call_limit"/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_CALLLIMIT\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END CALLLIMIT --\x3e\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="trunk.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\t\t\t\t\t\x3c!-- ADVANCED TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_2">\n\t\t\t\t\t\t<form name="forms.advanced" data-ng-submit="forms.advanced.$valid && updateTrunk()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START REGISTRY --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="trunk.registry"/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END REGISTRY --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START DIRECTMEDIA --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DIRECTMEDIA\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.directmedia" name="directmedia" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\', \'no\', \'nonat\', \'update\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_DIRECTMEDIA\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.directmedia.$touched || forms.advanced.$submitted) && forms.advanced.directmedia.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END DIRECTMEDIA --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START CALLCOUNTER --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_CALLCOUNTER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.callcounter" name="callcounter" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_CALLCOUNTER\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.callcounter.$touched || forms.advanced.$submitted) && forms.advanced.callcounter.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END CALLCOUNTER --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START FROMDOMAIN --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromdomain.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FROMDOMAIN\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="fromdomain" placeholder="{{\'APPLICATION_FROMDOMAIN\' | translate}}" class="form-control" data-ng-model="trunk.fromdomain" />\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_FROMDOMAIN\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromdomain.$invalid)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END FROMDOMAIN --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START FROMUSER --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.fromuser.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_FROMUSER\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="fromuser" placeholder="{{\'APPLICATION_FROMUSER\' | translate}}" class="form-control" data-ng-model="trunk.fromuser" />\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_FROMUSER\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.advanced.$submitted && (forms.advanced.fromuser.$invalid)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END FROMUSER --\x3e\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START OUTBOUNDPROXY --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.advanced.$submitted && forms.advanced.outboundproxy.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="outboundproxy" placeholder="{{\'APPLICATION_OUTBOUNDPROXY\' | translate}}" class="form-control" data-ng-model="trunk.outboundproxy" />\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_OUTBOUNDPROXY\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="forms.advanced.$submitted && (forms.advanced.outboundproxy.$invalid)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END OUTBOUNDPROXY --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START USEREQPHONE --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USEREQPHONE\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.usereqphone" name="usereqphone" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_USEREQPHONE\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.usereqphone.$touched || forms.advanced.$submitted) && forms.advanced.usereqphone.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END USEREQPHONE --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START TRUSTRPID --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TRUSTRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.trustrpid" name="trustrpid" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_TRUSTRPID\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.trustrpid.$touched || forms.advanced.$submitted) && forms.advanced.trustrpid.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END TRUSTRPID --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START SENDRPID --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SENDRPID\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.sendrpid" name="sendrpid" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_SENDRPID\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.sendrpid.$touched || forms.advanced.$submitted) && forms.advanced.sendrpid.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END SENDRPID --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START ENCRYPTION --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_ENCRYPTION\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select data-ng-model="trunk.encryption" name="encryption" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'yes\',\'no\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search | capitalize"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_ENCRYPTION\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.encryption.$touched || forms.advanced.$submitted) && forms.advanced.encryption.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END ENCRYPTION --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START PORT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PORT\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<input type="number" min="0" name="port" placeholder="{{\'APPLICATION_PORT\' | translate}}" class="form-control" data-ng-model="trunk.port"/>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_PORT\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.port.$touched || forms.advanced.$submitted) && forms.advanced.port.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END PORT --\x3e\n\n\t\t\t\t\t\t\t\t\t\x3c!-- START TRANSPORT --\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$invalid}">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TRANSPORT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="trunk.transport" name="transport" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_SEARCH_FILTER\' | translate}}">{{$item}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="item in [\'udp\',\'wss\',\'ws\',\'tcp\',\'tls\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t\t\t<div ng-bind-html="item | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_TRANSPORT\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<span data-ng-show="(forms.advanced.transport.$touched || forms.advanced.$submitted) && forms.advanced.transport.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END TRANSPORT --\x3e\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\t\t\t\t\t\x3c!-- START OTHER FIELDS TAB --\x3e\n\t\t\t\t\t<div class="tab-pane" id="tab_1_3">\n\t\t\t\t\t\t<form name="forms.otherFields" data-ng-submit="forms.otherFields.$valid && updateTrunk()" novalidate>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t\x3c!-- START OTHER FIELDS--\x3e\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_OTHER_FIELDS\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<textarea name="otherFields" placeholder="{{\'APPLICATION_OTHER_FIELDS\' | translate}}" class="form-control otherfields-col" data-ng-model="trunk.otherFields"></textarea>\n\t\t\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_OTHER_FIELDS\' | translate }}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\x3c!-- END OTHER FIELDS --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_EXAMPLE\' | translate}}</label>\n\t\t\t\t\t\t\t\t\t\t<div class="well">\n\t\t\t\t\t\t\t\t\t\t\t<div>host=dynamicp</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>secret=********</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>regcontext=tammari-internal</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>regexten=1005</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>dtmfmode=rfc2833</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>insecure=invite,port</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>canreinvite=yes</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>nat=yes</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>qualify=yes</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>context=merus-sipphone</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>pickupgroup=1</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>callgroup=1</div>\n\t\t\t\t\t\t\t\t\t\t\t<div>mailbox=1000@default</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END OTHER FIELDS TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/trunk/wizard/wizard.html",'<div class="col-md-12" data-ng-init="initWizard()">\n\t\x3c!-- BEGIN PAGE HEADER--\x3e\n\t<div class="page-bar">\n\t\t<ul class="page-breadcrumb">\n\t\t\t<li>\n\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-link"></i>\n\t\t\t\t<a href="/tools/trunks/list">{{ \'APPLICATION_TRUNKS\' | translate }}</a>\n\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<i class="icon-options"></i>\n\t\t\t\t<a href="#">{{ \'APPLICATION_WIZARD\' | translate }}</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\t\x3c!-- END PAGE HEADER--\x3e\n\n\t\x3c!-- BEGIN PORTLET--\x3e\n\t<div class="portlet light bordered">\n\t\t<div class="portlet-title">\n\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t<i class="icon-link font-green-sharp"></i>\n\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_TRUNK\' | translate }} WIZARD</a> </span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="portlet-body">\n\t\t\t<wizard on-finish="createItem()">\n\t\t\t\t<wz-step title="{{\'APPLICATION_GENERAL\' | translate}}" canexit="exitValidation(forms.general.$valid)">\n\t\t\t\t\t<form name="forms.general" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.$submitted && forms.general.name.$invalid) || forms.general.name.$error.pattern}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" data-ng-pattern="settings.simplePatternName" required/>\n\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && forms.general.name.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.pattern" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_INVALID_PATTERN_NAME\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\x3c!-- START HOST --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.host.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_HOST\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="host" placeholder="{{\'APPLICATION_HOST\' | translate}}" class="form-control" data-ng-model="item.host" required/>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_HOST\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && forms.general.host.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END HOST --\x3e\n\n\t\t\t\t\t\t\x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.password.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_SECRET\' | translate}}</label>\n\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.secret"/>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_SECRET\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && forms.general.password.$invalid" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DEFAULT USER --\x3e\n\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.general.$submitted && forms.general.defaultuser.$invalid}">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DEFAULT_USER\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t<input type="text" name="defaultuser" placeholder="{{\'APPLICATION_DEFAULT\' | translate}} {{\'APPLICATION_USER\' | translate}}" class="form-control" data-ng-model="item.defaultuser" required/>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_DEFAULT_USER\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span data-ng-show="forms.general.$submitted && (forms.general.defaultuser.$invalid)" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_WRONG_PASSWORD\' | translate}}.\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DEFAULT USER --\x3e\n\n\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="next(true)">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_ADVANCED\' | translate}}" canexit="exitValidation(forms.advanced.$valid)">\n\t\t\t\t\t<form name="forms.advanced" novalidate>\n\n\t\t\t\t\t\t\x3c!-- START REGISTRY --\x3e\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REGISTRY\' | translate}}</label>\n\t\t\t\t\t\t\t<input type="text" name="registry" placeholder="{{\'APPLICATION_REGISTRY\' | translate}}" class="form-control" data-ng-model="item.registry"/>\n\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t{{ \'DESCRIPTION_TRUNK_REGISTRY\' | translate }}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END REGISTRY --\x3e\n\t\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t\t<button class="btn green-haze" type="submit" ng-click="next()">{{\'APPLICATION_CONTINUE\' | translate}} <i class="fa fa-angle-right"></i></button>\n\t\t\t\t\t</form>\n\t\t\t\t</wz-step>\n\n\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t<button class="btn green-haze" type="button" ng-click="previous()"><i class="fa fa-angle-left"></i> {{\'APPLICATION_BACK\' | translate}}</button>\n\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t</wz-step>\n\t\t\t</wizard>\n\t\t</div>\n\t</div>\n\t\x3c!-- END PORTLET--\x3e\n</div>\n'),t.put("app/tools/variable/list/list.create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_VARIABLE\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.$submitted) && form.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="(form.name.$touched || form.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/tools/variable/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-eye"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_VARIABLES\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="createItem()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_VARIABLE\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{ \'MESSAGE_NO_RESULTS_AVAILABLE\' | translate }}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/variable/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getVariable()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-wrench"></i>\n\t\t\t\t\t<a href="#">{{ \'APPLICATION_TOOLS\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-eye"></i>\n\t\t\t\t\t<a href="/tools/variables/list">{{ \'APPLICATION_VARIABLES\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="variable" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="variable">\n\t\t\t\t\t<a href="#">{{variable.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/variable.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{variable.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.variables.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/tools/variables/view/{{variable.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/variable/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_VARIABLE\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateVariable()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="variable.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="variable.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/tools/yourdashboard/list/clone.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_CLONE_DASHBOARD\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="forms.dashboard" novalidate>\n\n    \x3c!-- START NAME --\x3e\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    \x3c!-- END NAME --\x3e\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'),t.put("app/tools/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    \x3c!-- START NAME --\x3e\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    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\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'),t.put("app/tools/yourdashboard/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-tachometer"></i>\n\t\t\t\t\t<a href="/tools/yourdashboards/list">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-docs font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<button class="btn green-jungle " ng-click="create()">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_DASHBOARD\' | translate }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <a class="btn btn-icon-only btn-default fullscreen" href="#"></a> --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/yourdashboard/show/leaveEditedDashboard.modal.html",'<div class="modal-header" data-ng-init="getContacts()">\n  <h3 class="modal-title">{{ \'APPLICATION_WARNING\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <p>{{\'MESSAGE_LEAVE_EDITED_PAGE\' | translate}}</p>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-danger" type="button" ng-click="close()">{{ \'APPLICATION_CONTINUE\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/tools/yourdashboard/show/show.html",'<div class="row" style="min-height: 466px;" id="yourDashboardView">\n  <div class="col-md-12" ng-init="getDashboard()">\n    <adf-dashboard\n    data-ng-if="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</div>\n'),t.put("app/tools/yourdashboard/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="getDashboard()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="fa fa-tachometer"></i>\n\t\t\t\t\t<a href="/tools/yourdashboards/list">{{ \'APPLICATION_YOUR_DASHBOARDS\' | translate }}</a>\n\t\t\t\t\t<i data-ng-show="dashboard" class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li data-ng-show="dashboard">\n\t\t\t\t\t<a href="#">{{dashboard.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img data-ng-src="assets/images/media/dashboard.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{dashboard.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="profile-usertitle-job">\n\t\t\t\t\t\t{{user.role}}\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.tools.yourdashboards.view.settings\')}">\n\t\t\t\t\t\t\t<a data-ng-href="/tools/yourdashboards/view/{{dashboard.id}}/settings">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_SETTINGS\' | translate}} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/tools/yourdashboard/view/view.settings.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{ \'APPLICATION_DASHBOARD\' | translate}} {{ \'APPLICATION_SETTINGS\' | translate}} </span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_GENERAL\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.general" data-ng-submit="forms.general.$valid && updateDashboard()" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="dashboard.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.name.$touched || forms.general.$submitted) && forms.general.name.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START REFRESH_TIMEOUT --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': (forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}<span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="number" min="5" name="name" placeholder="{{\'APPLICATION_REFRESH_TIMEOUT\' | translate}}" class="form-control" data-ng-model="dashboard.timeout" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.general.timeout.$touched || forms.general.$submitted) && forms.general.timeout.$error.required" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END REFRESH_TIMEOUT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START VISIBLE TO ADMIN --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_VISIBLE_TO_ADMIN\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\tng-model="dashboard.admin"\n\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END VISIBLE TO ADMIN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START VISIBLE TO USER --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_VISIBLE_TO_USER\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\tng-model="dashboard.user"\n\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END VISIBLE TO USER --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START VISIBLE TO AGENT --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_VISIBLE_TO_AGENT\' | translate}}</label><br>\n\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\tbs-switch\n\t\t\t\t\t\t\t\t\tng-model="dashboard.agent"\n\t\t\t\t\t\t\t\t\ttype="checkbox"\n\t\t\t\t\t\t\t\t\tswitch-active="{{ radioSwitch.isActive }}"\n\t\t\t\t\t\t\t\t\tswitch-on-text="{{ \'APPLICATION_YES\' | translate }}"\n\t\t\t\t\t\t\t\t\tswitch-off-text="{{ \'APPLICATION_NO\' | translate }}"\n\t\t\t\t\t\t\t\t\tswitch-on-color="{{ radioSwitch.onColor }}"\n\t\t\t\t\t\t\t\t\tswitch-off-color="{{ radioSwitch.offColor }}"\n\t\t\t\t\t\t\t\t\tswitch-animate="{{ radioSwitch.animate }}"\n\t\t\t\t\t\t\t\t\tswitch-size="{{ radioSwitch.size }}"\n\t\t\t\t\t\t\t\t\tswitch-label="{{ radioSwitch.label }}"\n\t\t\t\t\t\t\t\t\tswitch-icon="{{ radioSwitch.icon }}"\n\t\t\t\t\t\t\t\t\tswitch-radio-off="{{ radioSwitch.radioOff }}"\n\t\t\t\t\t\t\t\t\tswitch-label-width="{{ radioSwitch.labelWidth }}"\n\t\t\t\t\t\t\t\t\tswitch-handle-width="{{ radioSwitch.handleWidth }}">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END VISIBLE TO AGENT --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<textarea type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="dashboard.description"></textarea>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END ADVANCED TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/zendesk/list/list.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-heart"></i>\n\t\t\t\t\t<a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered" data-ng-init="initView()">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-heart font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ZENDESK\' | translate }}</a> </span>\n\t\t\t\t</div>\n\t\t\t\t<div class="actions">\n\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t<a class="btn green-jungle" href="/zendesk/wizard" data-toggle="dropdown">\n\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_ACCOUNT\' | translate }}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END TABLE --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/zendesk/view/configuration/list/create.modal.html",'<div class="modal-header">\n  <h3 class="modal-title">{{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}</h3>\n</div>\n<div class="modal-body">\n  <form name="form" novalidate>\n\n    \x3c!-- START NAME --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.name.$touched || form.name.$submitted) && form.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="(form.name.$touched || form.name.$submitted) && form.name.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- END NAME --\x3e\n\n    \x3c!-- START CHANNEL --\x3e\n    <div class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$invalid}">\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.name}}</ui-select-match>\n        <ui-select-choices repeat="channel.value as channel in channels | filter: $select.search">\n          <div data-ng-bind="channel.name | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.channel.$touched || form.channel.$submitted) && form.channel.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- START CHANNEL --\x3e\n\n    \x3c!-- START VOICE SUBTYPE --\x3e\n    <div data-ng-if="item.channel===\'voice\'" class="form-group" data-ng-class="{\'has-error\': (form.channel.$touched || form.channel.$submitted) && form.channel.$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}}">{{$select.selected}}</ui-select-match>\n        <ui-select-choices repeat="type in [\'Queue\',\'Outbound\'] | filter: $select.search">\n          <div data-ng-bind="type | highlight: $select.search"></div>\n        </ui-select-choices>\n      </ui-select>\n      <span data-ng-show="(form.type.$touched || form.type.$submitted) && form.type.$error.required" class="help-block help-block-error">\n        <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n      </span>\n    </div>\n    \x3c!-- START CHANNEL --\x3e\n\n    \x3c!-- START DESCRIPTION --\x3e\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    \x3c!-- END DESCRIPTION --\x3e\n\n  </form>\n</div>\n<div class="modal-footer">\n  <button class="btn btn-success" type="button" ng-click="save()" ng-disabled="form.$invalid">{{ \'APPLICATION_CONFIRM\' | translate }}</button>\n  <button class="btn default" type="button" ng-click="cancel()">{{ \'APPLICATION_CANCEL\' | translate }}</button>\n</div>\n'),t.put("app/zendesk/view/configuration/list/list.html",'<div ui-view class="profile-content">\n\t<div class="row">\n\t\t<div class="col-md-12">\n\t\t\t<div class="portlet light" data-ng-init="initView()">\n\t\t\t\t<div class="portlet-title  tabbable-line">\n\t\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATIONS\' | translate}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="actions">\n\t\t\t\t\t\t<div class="btn-group" data-ng-show="id.length">\n\t\t\t\t\t\t\t<a class="btn red" href="#" data-ng-click="deleteItems()">\n\t\t\t\t\t\t\t\t<i class="icon-trash"></i> {{ \'APPLICATION_DELETE\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="btn-group">\n\t\t\t\t\t\t\t<a class="btn green-jungle" href="#" data-ng-click="createItem()">\n\t\t\t\t\t\t\t\t<i class="icon-plus"></i> {{ \'APPLICATION_NEW_CONFIGURATION\' | translate }}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="portlet-body">\n\t\t\t\t\t\x3c!-- START TABLE --\x3e\n\t\t\t\t\t<div ui-grid="gridOptions"  ui-grid-resize-columns ui-grid-auto-resize ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-draggable-rows class="ui-grid">\n\t\t\t\t\t\t<div class="watermark" ng-show="!gridOptions.data.length">{{\'MESSAGE_NO_RESULTS_AVAILABLE\' | translate}}</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/zendesk/view/configuration/view/view.html",'<div class="row" data-ng-init="initView();getConfiguration();getCustomVariables();getFields();getTags();">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_CONFIGURATION\' | translate}}: {{configurationName}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_SUBJECT\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_2" data-toggle="tab">{{\'APPLICATION_DESCRIPTION\' | translate}}</a>\n\t\t\t\t\t</li>\n          <li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_3" data-toggle="tab">{{\'APPLICATION_FIELDS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_4" data-toggle="tab">{{\'APPLICATION_TAGS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- SUBJECT TAB --\x3e\n\t\t\t\t\t<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="addItem(\'subject\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="subject-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="subjectItem in subjectConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="subjectItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(subjectItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="subjectItem.content" data-ng-change="updateField(subjectItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-8" data-ng-if="subjectItem.type==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.variableName" data-ng-change="updateField(subjectItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="subjectItem.type==\'customVariable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="subjectItem.VariableId" data-ng-change="updateField(subjectItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(subjectItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END SUBJECT TAB --\x3e\n          \x3c!-- DESCRIPTION TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_2">\n\t\t\t\t\t\t<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="addItem(\'description\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="description-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t\t\t\t\t\t\t<div class="row" data-ng-repeat="descriptionItem in descriptionConfig">\n\t              <div class="col-md-2">\n\t                <ui-select ng-model="descriptionItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in descFieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-9" data-ng-if="descriptionItem.type==\'string\'">\n\t                <div class="form-group">\n\t                  <input type="text" class="form-control" data-ng-model="descriptionItem.content" data-ng-change="updateField(descriptionItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Key" data-ng-model="descriptionItem.key" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\'">\n\t\t\t\t\t\t\t\t\t<ui-select ng-model="descriptionItem.keyType" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeDescType(descriptionItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'string\'">\n\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" placeholder="Value" data-ng-model="descriptionItem.keyContent" data-ng-change="updateField(descriptionItem)">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'variable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.variableName" data-ng-change="updateField(descriptionItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-3" data-ng-if="descriptionItem.type==\'keyValue\' && descriptionItem.keyType==\'customVariable\'">\n\t                <div class="form-group">\n\t                  <ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="descriptionItem.VariableId" data-ng-change="updateField(descriptionItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(descriptionItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END DESCRIPTION TAB --\x3e\n          \x3c!-- FIELDS TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_3">\n\t\t\t\t\t\t<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="addItem(\'field\')"><i class="fa fa-plus"></i></button>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t\x3c!-- <div id="field-item-list" ng-scrollbars ng-scrollbars-config="config"> --\x3e\n\t            <div class="row" data-ng-repeat="fieldItem in fieldConfig">\n\t              <div class="col-md-3">\n\t                <ui-select ng-model="fieldItem.idField" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeFieldType(fieldItem)">\n\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                  <ui-select-choices repeat="item.id as item in accountFields | filter: $select.search">\n\t                    <div ng-bind-html="item.title | highlight: $select.search"></div>\n\t                  </ui-select-choices>\n\t                </ui-select>\n\t              </div>\n\t              <div class="col-md-8" data-ng-if="getSystemFieldOptions(fieldItem.idField)">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.content" theme="bootstrap" ng-disabled="disabled" data-ng-change="updateField(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item.value as item in getSystemFieldOptions(fieldItem.idField) | filter: $select.search">\n\t\t                    <div ng-bind-html="item.name | highlight: $select.search"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField)">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select ng-model="fieldItem.type" theme="bootstrap" ng-disabled="disabled" data-ng-change="changeType(fieldItem)">\n\t\t                  <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t\t                  <ui-select-choices repeat="item.type as item in fieldType | filter: $select.search">\n\t\t                    <div ng-bind-html="item.title | highlight: $select.search | ucfirst"></div>\n\t\t                  </ui-select-choices>\n\t\t                </ui-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'string\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control" data-ng-model="fieldItem.content" data-ng-change="updateField(fieldItem)">\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'variable\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.variableName" data-ng-change="updateField(fieldItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.title}}</ui-select-match>\n\t                    <ui-select-choices group-by="groupVariableByGroup" repeat="variable.name as variable in variables | filter: $select.search">\n\t                      <div ng-bind-html="variable.title | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t\t\t\t\t\t\t\t<div class="col-md-4" data-ng-if="!getSystemFieldOptions(fieldItem.idField) && fieldItem.type === \'customVariable\'">\n\t                <div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<ui-select theme="bootstrap" ng-disabled="disabled" data-ng-model="fieldItem.VariableId" data-ng-change="updateField(fieldItem)">\n\t                    <ui-select-match placeholder="{{\'APPLICATION_SEARCH\' | translate}}">{{$select.selected.name}}</ui-select-match>\n\t                    <ui-select-choices repeat="variable.id as variable in customVariables | filter: $select.search">\n\t                      <div ng-bind-html="variable.name | highlight: $select.search"></div>\n\t                    </ui-select-choices>\n\t                  </ui-select>\n\t                </div>\n\t              </div>\n\t              <div class="col-md-1">\n\t                <div class="form-group">\n\t                  <button class="btn btn-icon-only red" data-ng-click="removeItem(fieldItem)"><i class="fa fa-times"></i></button>\n\t                </div>\n\t              </div>\n\t            </div>\n\t\t\t\t\t\t\x3c!-- </div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END FIELDS TAB --\x3e\n\t\t\t\t\t\x3c!-- TAG TAB --\x3e\n\t\t\t\t\t<div class="tab-pane ui-padding" id="tab_1_4">\n\t\t\t\t\t\t<div class="row">\n              <div class="col-md-12">\n                <span class="caption-subject">Select tags that you want add in the ticket:</span>\n              </div>\n            </div>\n            <hr>\n\t\t\t\t\t\t<form name="forms.tags" data-ng-submit="updateTags()" novalidate>\n\t\t\t\t\t\t\t\x3c!-- TAG --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<ui-select multiple data-ng-model="selectedTags.tags" theme="bootstrap" name="tags" ng-disabled="disabled">\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{ \'APPLICATION_TAGS\' | translate }}">{{$item.name}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="tag.id as tag in tags | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t{{tag.name}}\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TAG --\x3e\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END TAG TAB --\x3e\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/zendesk/view/view.account.html",'<div class="row">\n\t<div class="col-md-12">\n\t\t<div class="portlet light">\n\t\t\t<div class="portlet-title tabbable-line">\n\t\t\t\t<div class="caption caption-md">\n\t\t\t\t\t<i class="icon-globe theme-font hide"></i>\n\t\t\t\t\t<span class="caption-subject font-blue-madison bold uppercase">{{\'APPLICATION_ACCOUNT\' | translate}}</span>\n\t\t\t\t</div>\n\t\t\t\t<ul class="nav nav-tabs">\n\t\t\t\t\t<li class="active">\n\t\t\t\t\t\t<a href="#" data-target="#tab_1_1" data-toggle="tab">{{\'APPLICATION_GENERALS\' | translate}}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t\x3c!-- GENERAL TAB --\x3e\n\t\t\t\t\t<div class="tab-pane active" id="tab_1_1">\n\t\t\t\t\t\t<form name="forms.formSetting" data-ng-submit="forms.formSetting.$valid && updateItem()" novalidate>\n              \x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="account.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="username" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.username" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="account.remoteUri" required />\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START AUTH TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="account.authType" name="authType" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type in [\'password\', \'token\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START AUTH TYPE --\x3e\n\n              \x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n              \x3c!-- START TOKEN --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="token" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="account.token" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TOKEN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SERVER URL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="account.serverUrl"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_SERVER_URL\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SERVER URL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_UPDATE\' | translate}}"/>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- END GENERAL TAB --\x3e\n\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'),t.put("app/zendesk/view/view.html",'\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initView()">\n\t<div class="col-md-12">\n\t\t<div class="page-bar">\n\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t<li>\n\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n          <i class="icon-heart"></i>\n          <a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t</li>\n\t\t\t\t<li>\n\t\t\t\t\t<a href="#">{{account.name}}</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\n\t\t\x3c!-- BEGIN PROFILE SIDEBAR --\x3e\n\t\t<div class="profile-sidebar">\n\t\t\t\x3c!-- PORTLET MAIN --\x3e\n\t\t\t<div class="portlet light profile-sidebar-portlet">\n\t\t\t\t\x3c!-- SIDEBAR USERPIC --\x3e\n\t\t\t\t<div class="profile-image">\n\t\t\t\t\t<img src="assets/images/media/zendesk.png" class="img-responsive">\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USERPIC --\x3e\n\t\t\t\t\x3c!-- SIDEBAR USER TITLE --\x3e\n\t\t\t\t<div class="profile-usertitle">\n\t\t\t\t\t<div class="profile-usertitle-name">\n\t\t\t\t\t\t{{account.name}}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="profile-usertitle-job">\n\t\t\t\t\t\t{{account.remoteUri}}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END SIDEBAR USER TITLE --\x3e\n\t\t\t\t\x3c!-- SIDEBAR MENU --\x3e\n\t\t\t\t<div class="profile-usermenu">\n\t\t\t\t\t<ul class="nav">\n\t\t\t\t\t\t<li data-ng-class="{active: $state.is(\'main.zendesk.view.account\')}">\n\t\t\t\t\t\t\t<a ng-href="/zendesk/view/{{account.id}}/account">\n\t\t\t\t\t\t\t<i class="icon-user"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_ACCOUNT\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t<li data-ng-class="{active: $state.includes(\'main.zendesk.view.configurations\') || $state.is(\'main.zendesk.view.configuration\')}">\n\t\t\t\t\t\t\t<a ng-href="/zendesk/view/{{account.id}}/configurations/list">\n\t\t\t\t\t\t\t<i class="icon-settings"></i>\n\t\t\t\t\t\t\t{{ \'APPLICATION_CONFIGURATIONS\' | translate }} </a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- END MENU --\x3e\n\t\t\t</div>\n\t\t\t\x3c!-- END PORTLET MAIN --\x3e\n\t\t</div>\n\t\t\x3c!-- END BEGIN PROFILE SIDEBAR --\x3e\n\t\t\x3c!-- BEGIN PROFILE CONTENT --\x3e\n\t\t<div ui-view class="profile-content">\n\t\t</div>\n\t\t\x3c!-- END PROFILE CONTENT --\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("app/zendesk/wizard/wizard.html",'\x3c!-- BEGIN PAGE HEADER--\x3e\n<div class="row">\n\t<div class="col-md-12">\n\t\t\t<div class="page-bar">\n\t\t\t\t<ul class="page-breadcrumb">\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-rocket"></i>\n\t\t\t\t\t\t<a href="/">{{ \'APPLICATION_DASHBOARD\' | translate }}</a>\n\t\t\t\t\t\t<i class="fa fa-angle-right"></i>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<i class="icon-heart"></i>\n\t\t\t\t\t\t<a href="/zendesk/list">{{ \'APPLICATION_ZENDESK\' | translate }}</a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n</div>\n\x3c!-- END PAGE HEADER--\x3e\n\n\x3c!-- BEGIN PAGE CONTENT--\x3e\n<div class="row" data-ng-init="initWizard()">\n\t<div class="col-md-12">\n\t\t\x3c!-- BEGIN Portlet PORTLET--\x3e\n\t\t<div class="portlet light bordered">\n\t\t\t<div class="portlet-title">\n\t\t\t\t<div class="caption font-green-sharp">\n\t\t\t\t\t<i class="icon-notebook font-green-sharp"></i>\n\t\t\t\t\t<span class="caption-subject">{{ \'APPLICATION_ACCOUNT\' | translate }} WIZARD</a> </span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="portlet-body">\n\t\t\t\t<wizard on-finish="createItem()">\n          <wz-step title="{{\'APPLICATION_ACCOUNT_INFO\' | translate}}" canexit="exitValidation(forms.formSetting.$valid)">\n\t\t\t\t\t\t<form name="forms.formSetting" novalidate>\n\n\t\t\t\t\t\t\t\x3c!-- START NAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.name.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_NAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="name" placeholder="{{\'APPLICATION_NAME\' | translate}}" class="form-control" data-ng-model="item.name" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.name.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END NAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START DESCRIPTION --\x3e\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_DESCRIPTION\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="text" name="description" placeholder="{{\'APPLICATION_DESCRIPTION\' | translate}}" class="form-control" data-ng-model="item.description"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END DESCRIPTION --\x3e\n\n              \x3c!-- START USERNAME --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.username.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_USERNAME\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.username.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formSetting.username.$touched || forms.formSetting.$submitted) && forms.formSetting.username.$error.ngRemoteValidate" class="help-block help-block-error">\n\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_USERNAME\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n              \x3c!-- START REMOTE ADDRESS --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.remoteUri.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_URI\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="url" name="remoteUri" placeholder="{{\'APPLICATION_URI\' | translate}}" class="form-control" data-ng-model="item.remoteUri" required ng-remote-validate="/api/zendesk/accounts/validate/remoteUri"/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.remoteUri.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span data-ng-show="(forms.formSetting.remoteUri.$touched || forms.formSetting.$submitted) && forms.formSetting.remoteUri.$error.ngRemoteValidate" class="help-block help-block-error">\n\t\t\t\t          <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_EXIST_DOMAIN\' | translate}}.\n\t\t\t\t        </span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END USERNAME --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START AUTH TYPE --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.authType.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}</label>\n\t\t\t\t\t\t\t\t<ui-select data-ng-model="item.authType" name="authType" theme="bootstrap" required>\n\t\t\t\t\t\t\t\t\t<ui-select-match placeholder="{{\'APPLICATION_AUTHENTICATION_TYPE\' | translate}}">{{$select.selected | capitalize}}</ui-select-match>\n\t\t\t\t\t\t\t\t\t<ui-select-choices repeat="type in [\'password\', \'token\'] | filter: $select.search">\n\t\t\t\t\t\t\t\t\t\t<div data-ng-bind="type | capitalize | highlight: $select.search"></div>\n\t\t\t\t\t\t\t\t\t</ui-select-choices>\n\t\t\t\t\t\t\t\t</ui-select>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.authType.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- START AUTH TYPE --\x3e\n\n              \x3c!-- START PASSWORD --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_PASSWORD\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="password" name="password" placeholder="{{\'APPLICATION_PASSWORD\' | translate}}" class="form-control" data-ng-model="item.password" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.password.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END PASSWORD --\x3e\n\n              \x3c!-- START TOKEN --\x3e\n\t\t\t\t\t\t\t<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\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_TOKEN\' | translate}} <span class="required" aria-required="true">*</span></label>\n\t\t\t\t\t\t\t\t<input type="text" name="token" placeholder="{{\'APPLICATION_TOKEN\' | translate}}" class="form-control" data-ng-model="item.token" required/>\n\t\t\t\t\t\t\t\t<span data-ng-show="forms.formSetting.token.$invalid && forms.formSetting.$submitted" class="help-block help-block-error">\n\t\t\t\t\t\t\t\t\t<strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END TOKEN --\x3e\n\n\t\t\t\t\t\t\t\x3c!-- START SERVER URL --\x3e\n\t\t\t\t\t\t\t<div class="form-group" data-ng-class="{\'has-error\': forms.formSetting.$submitted && forms.formSetting.serverUrl.$invalid}">\n\t\t\t\t\t\t\t\t<label class="control-label">{{\'APPLICATION_MOTION_ADDRESS\' | translate}}</label>\n\t\t\t\t\t\t\t\t<input type="url" name="serverUrl" placeholder="{{\'APPLICATION_MOTION_ADDRESS\' | translate}}" class="form-control" data-ng-model="item.serverUrl"/>\n\t\t\t\t\t\t\t\t<span class="help-block">\n\t\t\t\t\t\t\t\t\t{{\'DESCRIPTION_SERVER_URL\' | translate}}.\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class="help-block help-block-info">\n\t\t\t\t\t\t\t\t\t{{\'MESSAGE_MOTION_ADDRESS_FORMAT\' | translate}}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- END SERVER URL --\x3e\n\n\t\t\t\t\t\t\t<input class="btn green-haze" type="submit" value="{{\'APPLICATION_CONTINUE\' | translate}}" data-ng-click="next()"/>\n\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t\t<wz-step title="{{\'APPLICATION_CONFIRM\' | translate}}">\n\t\t\t\t\t\t<p>{{\'MESSAGE_CONFIGURATION_COMPLETED\' | translate}}</p>\n\t\t\t\t\t\t<input class="btn default" type="button" value="{{\'APPLICATION_BACK\' | translate}}" wz-previous/>\n\t\t\t\t\t\t<input type="submit" class="btn green-haze" wz-next value="{{\'APPLICATION_CONFIRM\' | translate}}"/>\n\t\t\t\t\t</wz-step>\n\n\t\t\t\t</wizard>\n\n\t\t\t</div>\n\t\t</div>\n\t\t\x3c!-- END Portlet PORTLET--\x3e\n\t</div>\n</div>\n\x3c!-- END PAGE CONTENT--\x3e\n'),t.put("components/directives/action/accountEmail/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="account.id as account in accounts.rows | filter: $select.search">\n      <div ng-bind-html="account.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data6\'+randomName].$touched || form.$submitted) && form[\'data6\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data6" name="data6{{randomName}}" theme="bootstrap">\n    <ui-select-match allow-clear placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n      <div ng-bind-html="template.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data6\'+randomName].$touched || form.$submitted) && form[\'data6\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_CC\' | translate}}"/>\n  <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName  && !element.data6" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data4" name="data4{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}"/>\n  <span data-ng-show="(form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-12" data-ng-class="{\'has-error\': (form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$invalid}">\n  <textarea rows="10" ng-model="element.data5" name="data5{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TEXT\' | translate}}" data-ng-required="!element.data6"></textarea>\n  <span data-ng-show="(form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/accountSms/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="account.id as account in accounts.rows | filter: $select.search">\n      <div ng-bind-html="account.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-12" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n  <textarea rows="10" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TEXT\' | translate}}"></textarea>\n  <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/accountTemplate/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="account.id as account in accounts.rows | filter: $select.search">\n      <div ng-bind-html="account.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="template.id as template in templates.rows | filter: $select.search">\n      <div ng-bind-html="template.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n  <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/close/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data1" name="data1{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_DISPOSITION\' | translate }}"/>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/cm/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" on-select="element.data2 = element.data1 ? element.data2 : false">\n    <ui-select-match allow-clear>{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="list.id as list in lists | filter: $select.search">\n      <div ng-bind-html="list.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName && element.data1" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input\n      bs-switch\n      class="form-control"\n      ng-init="element.data2 = element.data1 && element.data2 == \'1\' ? true : false"\n      ng-model="element.data2"\n      type="checkbox"\n      name="auth"\n      switch-active="{{ switch.isActive }}"\n      switch-on-text="{{ switch.onText }}"\n      switch-off-text="{{ switch.offText }}"\n      switch-on-color="{{ switch.onColor }}"\n      switch-off-color="{{ switch.offColor }}"\n      switch-animate="{{ switch.animate }}"\n      switch-size="{{ switch.size }}"\n      switch-label="{{ switch.label }}"\n      switch-icon="{{ switch.icon }}"\n      switch-radio-off="{{ switch.radioOff }}"\n      switch-label-width="{{ switch.labelWidth }}"\n      switch-handle-width="{{ switch.handleWidth }}">\n  <span class="help-block">\n    {{\'APPLICATION_AUTO_CREATE\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/email/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data5" name="data5{{randomName}}" theme="bootstrap">\n    <ui-select-match allow-clear placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n      <div ng-bind-html="template.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data5\'+randomName].$touched || form.$submitted) && form[\'data5\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data1" name="data1{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_CC\' | translate}}"/>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName && !element.data5" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_SUBJECT\' | translate}}"/>\n  <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-12" data-ng-class="{\'has-error\': (form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$invalid}">\n  <textarea rows="10" ng-model="element.data4" name="data4{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TEXT\' | translate}}" data-ng-required="!element.data5"></textarea>\n  <span data-ng-show="(form[\'data4\'+randomName].$touched || form.$submitted) && form[\'data4\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/forward/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data1" name="data1{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_TO\' | translate }}" required/>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/http/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{\'APPLICATION_METHOD\' | translate}}">{{$select.selected}}</ui-select-match>\n    <ui-select-choices repeat="method in methods | filter: $select.search">\n      <div ng-bind-html="method | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="URL" required/>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/integration/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" data-ng-change="changeIntegration()" required>\n    <ui-select-match placeholder="{{ \'APPLICATION_INTEGRATION\' | translate }}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="integration.state as integration in integrations | filter: $select.search">\n      <div ng-bind-html="integration.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{\'APPLICATION_INTEGRATION\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data1 && accounts && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" data-ng-change="changeAccount();" required>\n    <ui-select-match placeholder="{{\'APPLICATION_ACCOUNT\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="account.id as account in accounts | filter: $select.search">\n      <div ng-bind-html="account.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{\'APPLICATION_ACCOUNT\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="form-group col-md-6" data-ng-if="element.data2 && configurations && randomName" data-ng-class="{\'has-error\': (form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data3" name="data3{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{\'APPLICATION_CONFIGURATION\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="config.id as config in configurations | filter: $select.search">\n      <div ng-bind-html="config.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{\'APPLICATION_CONFIGURATION\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data3\'+randomName].$touched || form.$submitted) && form[\'data3\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/jscripty/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match>{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="project.id as project in projects | filter: $select.search">\n      <div ng-bind-html="project.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/motionbar/actionBuilder.html",'\x3c!-- data1: 0 POPUP, 1 URL, 2 WINAPP --\x3e\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required data-ng-change="changeMode();">\n    <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="motionAction.value as motionAction in motionActions | filter: $select.search">\n      <div ng-bind-html="motionAction.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{ \'APPLICATION_TYPE\' | translate }}\n  </span>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n\x3c!-- data1:0 data2:Template --\x3e\n<div data-ng-if="randomName && element.data1==0" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{ \'APPLICATION_TEMPLATE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n      <div ng-bind-html="template.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{ \'APPLICATION_TEMPLATE\' | translate }}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n\x3c!-- data1:1 data2:URL --\x3e\n<div data-ng-if="randomName && element.data1==1" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_URL\' | translate }}"/>\n  <span class="help-block">\n    {{ \'APPLICATION_URL\' | translate }}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n\x3c!-- data1:2 data2:Application data3:Arguments --\x3e\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" required placeholder="{{ \'APPLICATION_APPLICATION\' | translate }}"/>\n  <span class="help-block">\n    {{ \'APPLICATION_APPLICATION\' | translate }}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div data-ng-if="randomName && element.data1==2" class="form-group col-md-6">\n  <input type="text" ng-model="element.data3" name="data3{{randomName}}" class="form-control" placeholder="{{ \'APPLICATION_ARGUMENTS\' | translate }}"/>\n  <span class="help-block">\n    {{ \'APPLICATION_ARGUMENTS\' | translate }}\n  </span>\n</div>\n'),t.put("components/directives/action/status/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n    <ui-select-choices repeat="status.value as status in states | filter: $select.search">\n      <div ng-bind-html="status.name | translate | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/tag/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select multiple data-ng-model="data.tags" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{\'APPLICATION_TAG\' | translate}}">{{$item.name}}</ui-select-match>\n    <ui-select-choices repeat="tag.name as tag in tags | filter:$select.search" class="">\n      {{tag.name}}\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/template/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{\'APPLICATION_TEMPLATE\' | translate}}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n      <div ng-bind-html="template.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n\n<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="text" ng-model="element.data2" name="data2{{randomName}}" class="form-control" placeholder="{{\'APPLICATION_TO\' | translate}}" required/>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/urlforward/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="type.value as type in types | filter: $select.search">\n      <div ng-bind-html="type.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{\'APPLICATION_TYPE\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="form-group col-md-12" data-ng-if="element.data1 && randomName" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <input type="url" ng-model="element.data2" placeholder="{{ \'APPLICATION_URL\' | translate }}" name="data2{{randomName}}" class="form-control" required/>\n  <span class="help-block">\n    {{\'APPLICATION_URL\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/action/webPopup/actionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data2" name="data2{{randomName}}" theme="bootstrap" on-select="typeChange()" required>\n    <ui-select-match placeholder="{{ \'APPLICATION_TYPE\' | translate }}">{{$select.selected}}</ui-select-match>\n    <ui-select-choices repeat="type in [\'motion\',\'browser\'] | filter: $select.search">\n      <div ng-bind-html="type | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'data2\'+randomName].$touched || form.$submitted) && form[\'data2\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div data-ng-if="randomName && element.data2 == \'motion\'" class="form-group col-md-6" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.data1" name="data1{{randomName}}" theme="bootstrap" required>\n    <ui-select-match placeholder="{{ \'APPLICATION_TEMPLATE\' | translate }}">{{$select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="template.id as template in templates | filter: $select.search">\n      <div ng-bind-html="template.name | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span class="help-block">\n    {{ \'APPLICATION_TEMPLATE\' | translate }}\n  </span>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="form-group col-md-12" data-ng-if="randomName && element.data2 == \'browser\'" data-ng-class="{\'has-error\': (form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$invalid}">\n  <input type="url" ng-model="element.data1" placeholder="{{ \'APPLICATION_URL\' | translate }}" name="data1{{randomName}}" class="form-control" required/>\n  <span class="help-block">\n    {{\'APPLICATION_URL\' | translate}}\n  </span>\n  <span data-ng-show="(form[\'data1\'+randomName].$touched || form.$submitted) && form[\'data1\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/directives/condition/conditionBuilder.html",'<div data-ng-if="randomName" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.field" name="field{{randomName}}" theme="bootstrap" data-ng-change="checkCondition(element.field)" required>\n    <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n    <ui-select-choices repeat="condition.value as condition in service.services[serviceindex].conditions | filter: $select.search">\n      <div ng-bind-html="condition.name | translate | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'field\'+randomName].$touched || form.$submitted) && form[\'field\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div data-ng-if="randomName && element.field" class="form-group col-md-4" data-ng-class="{\'has-error\': (form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.operator" name="operator{{randomName}}" theme="bootstrap" required>\n    <ui-select-match>{{$select.selected.name | translate}}</ui-select-match>\n    <ui-select-choices repeat="operator.value as operator in _.find(service.services[serviceindex].conditions,{value:element.field}).operators | filter: $select.search">\n      <div ng-bind-html="operator.name | translate | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'operator\'+randomName].$touched || form.$submitted) && form[\'operator\'+randomName].$error.required" class="help-block help-block-error">\n    <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n  </span>\n</div>\n<div class="col-md-4" data-ng-if="elementType === \'input\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n  <input type="text" ng-model="element.value" class="form-control" name="value{{randomName}}" required/>\n  <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n      <strong>{{\'APPLICATION_WARNING\' | translate}}!</strong> {{\'MESSAGE_REQUIRED_FIELD\' | translate}}.\n    </span>\n</div>\n<div class="form-group col-md-4" data-ng-if="elementType === \'select\' && randomName && element.field" data-ng-class="{\'has-error\': (form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$invalid}">\n  <ui-select data-ng-model="element.value" name="value{{randomName}}" theme="bootstrap" required>\n    <ui-select-match>{{ translateName ? (\'APPLICATION_TRIGGER_\'+$select.selected.name | uppercase | translate) : $select.selected.name}}</ui-select-match>\n    <ui-select-choices repeat="value.value as value in values | filter: $select.search">\n      <div ng-bind-html="(translateName ? (\'APPLICATION_TRIGGER_\'+value.name | uppercase | translate) : value.name) | highlight: $select.search"></div>\n    </ui-select-choices>\n  </ui-select>\n  <span data-ng-show="(form[\'value\'+randomName].$touched || form.$submitted) && form[\'value\'+randomName].$error.required" class="help-block help-block-error">\n'+"    <strong>{{'APPLICATION_WARNING' | translate}}!</strong> {{'MESSAGE_REQUIRED_FIELD' | translate}}.\n  </span>\n</div>\n"),t.put("components/factories/xNotificationLicense/xNotificationLicense.html",'<div class="ui-notification alert alert-block" ng-class="class" style="width: 410px;">\n  <h4 class="alert-heading">\n    <i class="{{icon}}"></i> {{\'APPLICATION_WARNING\' | translate}}! {{\'MESSAGE_YOUR_LICENSE_IS_GOING_TO_EXPIRE\' | translate}}! <a ng-click="more()" style="color: blue;">More.</a>\n  </h4>\n</div>\n'),t.put("components/footer/footer.html",'\x3c!-- BEGIN FOOTER --\x3e\n<div class="page-footer" data-ng-init="initFooter()">\n  <div class="page-footer-inner">\n     xCALLY Motion v. {{info.version}} | 2016 - {{year + 1}} &copy; Powered by Xenialab <ng-bind-html data-ng-if="license.custom && !settings.defaultFooterWhiteLabel && settings.footerWhiteLabel" ng-bind-html="\'| \'+settings.footerWhiteLabel"></ng-bind-html>\n  </div>\n  <div class="scroll-to-top">\n    <i class="icon-arrow-up"></i>\n  </div>\n</div>\n\x3c!-- END FOOTER --\x3e\n'),t.put("components/header/header.html",'\x3c!-- BEGIN HEADER INNER --\x3e\n<div class="page-header-inner" data-ng-init="initHeader()">\n  \x3c!-- BEGIN LOGO --\x3e\n  <div class="page-logo">\n    <a href="/">\n      <img ng-src="api/settings/logo/main" alt="logo" class="logo-default custom-logo" onError="this.onerror=null"/>\n    </a>\n    <div class="menu-toggler sidebar-toggler" data-ng-click="toggleSidebar()"></div>\n  </div>\n\n  \x3c!-- END LOGO --\x3e\n  \x3c!-- BEGIN HEADER SEARCH BOX --\x3e\n  \x3c!-- DOC: Apply "search-form-expanded" right after the "search-form" class to have half expanded search box --\x3e\n  <form ng-repeat="call in activeCalls | limitTo:2" class="search-form search-form-expanded">\n    <div class="input-group">\n      <input type="text" class="form-control" value="{{call.calleridnum}}" readonly>\n      <span class="input-group-btn">\n        <a href="javascript:;" class="btn submit inactive-link"><i class="icon-earphones-alt"></i></a>\n      </span>\n    </div>\n  </form>\n  \x3c!-- END HEADER SEARCH BOX --\x3e\n  \x3c!-- BEGIN RESPONSIVE MENU TOGGLER --\x3e\n  <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"></a>\n  \x3c!-- END RESPONSIVE MENU TOGGLER --\x3e\n  \x3c!-- BEGIN TOP NAVIGATION MENU --\x3e\n  <div class="top-menu">\n    <ul class="nav navbar-nav pull-right">\n      \x3c!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte --\x3e\n\n      \x3c!-- BEGIN USER LOGIN DROPDOWN --\x3e\n      \x3c!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte --\x3e\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 }}\n          </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=" {{getCurrentUser().role === \'agent\' ? \'/staff/agents/view/\'+getCurrentUser().id+\'/account\' : \'/staff/users/view/\'+getCurrentUser().id+\'/account\'}}">\n              <i class="icon-key"></i>{{\'APPLICATION_CHANGE_PASSWORD\' | translate}}\n            </a>\n          </li>\n          <li data-ng-click="logout()">\n            <a href="#">\n              <i class="icon-logout"></i> Log Out\n            </a>\n          </li>\n        </ul>\n      </li>\n      \x3c!-- END USER LOGIN DROPDOWN --\x3e\n      \x3c!-- BEGIN QUICK SIDEBAR TOGGLER --\x3e\n      \x3c!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte --\x3e\n      \x3c!-- <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> --\x3e\n  \x3c!-- END QUICK SIDEBAR TOGGLER --\x3e\n</ul>\n<ul class="nav navbar-nav pull-right" data-ng-if="getCurrentUser().role == \'admin\'">\n  <li class="dropdown dropdown-user">\n    <a href="/setting/license/view" class="dropdown-toggle" dropdown-menu-hover data-toggle="dropdown" data-close-others="true">\n      <i class="icon-info"></i> <span class="username username-hide-on-mobile right-margin-10">{{\'APPLICATION_LICENSE_STATUS\' | translate}}</span>\n    </a>\n  </li>\n</ul>\n<ul class="nav navbar-nav pull-right">\n  \x3c!-- BEGIN LANGUAGE BAR --\x3e\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 scrollable-menu">\n      <li>\n        <a href="#" ng-click="changeLanguage(\'ar\')">\n          <img alt="" src="assets/images/flags/ar.png"> {{\'APPLICATION_ARABIC\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'da\')">\n          <img alt="" src="assets/images/flags/da.png"> {{\'APPLICATION_DANISH\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'de\')">\n          <img alt="" src="assets/images/flags/de.png"> {{\'APPLICATION_GERMAN\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'en_EN\')">\n          <img alt="" src="assets/images/flags/en_EN.png"> {{\'APPLICATION_ENGLISH\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'es\')">\n          <img alt="" src="assets/images/flags/es.png"> {{\'APPLICATION_SPANISH\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'fi\')">\n          <img alt="" src="assets/images/flags/fi.png"> {{\'APPLICATION_FINNISH\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'fr\')">\n          <img alt="" src="assets/images/flags/fr.png"> {{\'APPLICATION_FRENCH\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'hi\')">\n          <img alt="" src="assets/images/flags/hi.png"> {{\'APPLICATION_HINDI\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'it\')">\n          <img alt="" src="assets/images/flags/it.png"> {{\'APPLICATION_ITALIAN\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'ja\')">\n          <img alt="" src="assets/images/flags/ja.png"> {{\'APPLICATION_JAPANASE\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'ko\')">\n          <img alt="" src="assets/images/flags/ko.png"> {{\'APPLICATION_KOREAN\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'nl\')">\n          <img alt="" src="assets/images/flags/nl.png"> {{\'APPLICATION_DUTCH\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'no\')">\n          <img alt="" src="assets/images/flags/no.png"> {{\'APPLICATION_NORWEGIAN\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'pt-BR\')">\n          <img alt="" src="assets/images/flags/pt-BR.png"> {{\'APPLICATION_PORTUGUESE_BRAZIL\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'pt-PT\')">\n          <img alt="" src="assets/images/flags/pt-PT.png"> {{\'APPLICATION_PORTUGUESE_PORTUGAL\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'ru\')">\n          <img alt="" src="assets/images/flags/ru.png"> {{\'APPLICATION_RUSSIAN\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'sv\')">\n          <img alt="" src="assets/images/flags/sv.png"> {{\'APPLICATION_SWEDISH\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'tr\')">\n          <img alt="" src="assets/images/flags/tr.png"> {{\'APPLICATION_TURKISH\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'fa\')">\n          <img alt="" src="assets/images/flags/fa.png"> {{\'APPLICATION_PERSIAN\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'zh-CN\')">\n          <img alt="" src="assets/images/flags/zh-CN.png"> {{\'APPLICATION_CHINESE_SIMPLIFIED\' | translate}}\n        </a>\n      </li>\n      <li>\n        <a href="#" ng-click="changeLanguage(\'zh-TW\')">\n          <img alt="" src="assets/images/flags/zh-TW.png"> {{\'APPLICATION_CHINESE_TRADITIONAL\' | translate}}\n        </a>\n      </li>\n    </ul>\n  </li>\n  \x3c!-- END LANGUAGE BAR --\x3e\n</ul>\n<ul data-ng-if="getCurrentUser().role === \'agent\' && headerAgent.showWebBar" class="nav navbar-nav pull-right header-ul-with-separator padding-side-7" data-ng-class="{\'paused-header\':headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause}">\n  <li class="dropdown dropdown-user" >\n    <a href="#" class="dropdown-toggle custom-header-a" dropdown-menu-hover data-toggle="dropdown" data-close-others="true" style="cursor:default;">\n      <div>{{(headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause) ? ((!headerAgent.voicePause || !headerAgent.mailPause || !headerAgent.chatPause || !headerAgent.faxPause || !headerAgent.smsPause || !headerAgent.openchannelPause) ? \'(\'+(\'APPLICATION_PARTIAL\' | translate) + \') \'+headerAgent.pauseType : headerAgent.pauseType) : \'READY\'}}</div>\n      <div data-ng-if="headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause"><css-timer start-time="headerAgent.lastPauseAt"></css-timer></div>\n    </a>\n  </li>\n  <li class="dropdown dropdown-user" data-ng-if="headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause">\n    <a href="#" class="dropdown-toggle padding-side-7 header-bar-button header-bar-button-controls" dropdown-menu-hover data-toggle="dropdown" data-close-others="true" data-ng-click="headerPause(\'unpause\')">\n      <i class="fa fa-play font-green"></i></a>\n    </li>\n    <li class="dropdown dropdown-user" data-ng-if="headerAgent.voicePause || headerAgent.mailPause || headerAgent.chatPause || headerAgent.faxPause || headerAgent.smsPause || headerAgent.openchannelPause">\n      <a href="#" class="dropdown-toggle header-bar-button" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n        <i class="fa fa-angle-down"></i>\n      </a>\n      <ul class="dropdown-menu dropdown-menu-default scrollable-menu">\n        <li data-ng-if="headerAgent.voicePause">\n          <a href="#" data-ng-click="headerPause(\'unpause\',null,\'voice\')">\n            <i class="fa fa-play font-green"></i> {{\'APPLICATION_VOICE\' | translate}}\n          </a>\n        </li>\n        <li data-ng-if="headerAgent.mailPause">\n          <a href="#" data-ng-click="headerPause(\'unpause\',null,\'mail\')">\n            <i class="fa fa-play font-green"></i> {{\'APPLICATION_MAIL\' | translate}}\n          </a>\n        </li>\n        <li data-ng-if="headerAgent.chatPause">\n          <a href="#" data-ng-click="headerPause(\'unpause\',null,\'chat\')">\n            <i class="fa fa-play font-green"></i> {{\'APPLICATION_CHAT\' | translate}}\n          </a>\n        </li>\n        <li data-ng-if="headerAgent.faxPause">\n          <a href="#" data-ng-click="headerPause(\'unpause\',null,\'fax\')">\n            <i class="fa fa-play font-green"></i> {{\'APPLICATION_FAX\' | translate}}\n          </a>\n        </li>\n        <li data-ng-if="headerAgent.smsPause">\n          <a href="#" data-ng-click="headerPause(\'unpause\',null,\'sms\')">\n            <i class="fa fa-play font-green"></i> {{\'APPLICATION_SMS\' | translate}}\n          </a>\n        </li>\n        <li data-ng-if="headerAgent.openchannelPause">\n          <a href="#" data-ng-click="headerPause(\'unpause\',null,\'openchannel\')">\n            <i class="fa fa-play font-green"></i> {{\'APPLICATION_OPEN_CHANNEL\' | translate}}\n          </a>\n        </li>\n      </ul>\n    </li>\n    <li class="dropdown dropdown-user">\n      <a href="#" class="dropdown-toggle padding-side-7 header-bar-button header-bar-button-controls" dropdown-menu-hover data-toggle="dropdown" data-close-others="true" data-ng-click="headerPause(\'pause\',\'DEFAULT PAUSE\')">\n        <i class="fa fa-pause font-yellow"></i></a>\n      </li>\n      <li class="dropdown dropdown-user" data-ng-if="headerPauses.length">\n        <a href="#" class="dropdown-toggle header-bar-button" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n          <i class="fa fa-angle-down"></i>\n        </a>\n        <ul class="dropdown-menu dropdown-menu-default scrollable-menu">\n          <li data-ng-repeat="pause in headerPauses">\n            <a href="#" data-ng-click="headerPause(\'pause\',pause.name)">\n              {{pause.name}}\n            </a>\n          </li>\n        </ul>\n      </li>\n    </ul>\n    <ul class="nav navbar-nav pull-right" data-ng-if="getCurrentUser().role === \'agent\'" >\n      <li data class="dropdown dropdown-extended dropdown-notification" id="header_agent_notification_bar" data-ng-click="agentNotifications.agent.new = 0;">\n        <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n          <i class="icon-earphones-alt"></i>\n          <span class="badge badge-default" data-ng-if="agentNotifications.agent.new">\n            {{agentNotifications.agent.new}} </span>\n          </a>\n          <ul class="dropdown-menu tabbed-dropdown">\n            <li class="external">\n              <h3><span class="bold">{{\'APPLICATION_LAST_VOICE_NOTIFICATIONS\' | translate}}</span></h3>\n            </li>\n            <li>\n              <ul class="nav nav-tabs">\n                <li class="active">\n                  <a href="#" data-target="#tab_1_1" data-toggle="tab">{{ \'APPLICATION_INBOUND\' | translate}}</a>\n                </li>\n                <li>\n                  <a href="#" data-target="#tab_1_2" data-toggle="tab">{{ \'APPLICATION_OUTBOUND\' | translate}}</a>\n                </li>\n              </ul>\n\n              <div class="tab-content">\n                \x3c!-- GENERAL TAB --\x3e\n                <div class="tab-pane active" id="tab_1_1">\n                  \x3c!-- BEGIN UI-GRID SPINNER --\x3e\n                  <span us-spinner spinner-key="agent-spinner-grid" data-ng-if="busyLoad.agent.busy" spinner-start-active="true"></span>\n                  \x3c!-- END UI-GRID SPINNER --\x3e\n                  <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'agent\')" can-load=\'!busyLoad.agent.busy\' treshold="261">\n                    <li data-ng-repeat="notification in agentNotifications.agent.rows">\n                      <a href="javascript:;" style="cursor:default;">\n                        <div class="row">\n                          <div class="col-md-1">\n                            <img src="assets/images/media/inboundroute.png" style="width:25px;height:25px;" alt="">\n                          </div>\n                          <div class="col-md-10">\n                            <div>{{\'APPLICATION_VOICE_NEW_CALL\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\' || notification.status === \'busy\',\'badge-info\':notification.status === \'taken_elsewhere\'}">{{\'APPLICATION_VOICE_\'+notification.status.toUpperCase() | translate}}</span></div>\n                            <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n                          </div>\n                        </div>\n                        <div>\n                          <span class="message">{{notification.dialstring ? \'APPLICATION_TO\' : \'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="chooseContact(notification.calleridnum)">{{notification.calleridnum}}</span></span>\n                        </div>\n                        <div data-ng-if="notification.status === \'taken_elsewhere\'">\n                          <span class="message">{{\'APPLICATION_AGENT_NAME\' | translate}}: <span ><b>{{notification.answeredelsewheremembername}}</b></span></span>\n                        </div>\n                        <div data-ng-if="notification.status === \'taken\' && notification.lastevent === \'complete\'">\n                          <span class="message">{{\'APPLICATION_COMPLETED_BY\' | translate}}: <span ><b>{{\'APPLICATION_VOICE_\'+notification.reason.toUpperCase() | translate}}</b></span></span>\n                        </div>\n                      </a>\n                    </li>\n                  </ul>\n                </div>\n                <div class="tab-pane" id="tab_1_2">\n                  \x3c!-- BEGIN UI-GRID SPINNER --\x3e\n                  <span us-spinner spinner-key="dial-spinner-grid" data-ng-if="busyLoad.dial.busy" spinner-start-active="true"></span>\n                  \x3c!-- END UI-GRID SPINNER --\x3e\n                  <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'dial\')" can-load=\'!busyLoad.dial.busy\' treshold="261">\n                    <li data-ng-repeat="notification in agentNotifications.dial.rows">\n                      <a href="javascript:;" style="cursor:default;">\n                        <div class="row">\n                          <div class="col-md-1">\n                            <img src="assets/images/media/outboundroute.png" style="width:25px;height:25px;" alt="">\n                          </div>\n                          <div class="col-md-10">\n                            <div>{{\'APPLICATION_VOICE_NEW_CALL\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\',\'badge-info\':notification.status === \'taken_elsewhere\'}">{{\'APPLICATION_VOICE_\'+notification.status.toUpperCase() | translate}}</span></div>\n                            <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n                          </div>\n                        </div>\n                        <div>\n                          <span class="message">{{\'APPLICATION_TO\' | translate}}: <span class="span-link" data-ng-click="chooseContact(notification.destcalleridnum)">{{notification.destcalleridnum}}</span></span>\n                        </div>\n                      </a>\n                    </li>\n                  </ul>\n                </div>\n              </div>\n            </li>\n          </ul>\n        </li>\n        <li data ng-if="license.mail" class="dropdown dropdown-extended dropdown-notification" id="header_mail_notification_bar" data-ng-click="agentNotifications.mail.new = 0;">\n          <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n            <i class="icon-envelope-open"></i>\n            <span class="badge badge-default" data-ng-if="agentNotifications.mail.new">\n              {{agentNotifications.mail.new}} </span>\n            </a>\n            <ul class="dropdown-menu">\n              <li class="external">\n                <h3><span class="bold">{{\'APPLICATION_LAST_MAIL_NOTIFICATIONS\' | translate}}</span></h3>\n              </li>\n              <li>\n                \x3c!-- BEGIN UI-GRID SPINNER --\x3e\n                <span us-spinner spinner-key="mail-spinner-grid" data-ng-if="busyLoad.mail.busy" spinner-start-active="true"></span>\n                \x3c!-- END UI-GRID SPINNER --\x3e\n                <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'mail\')" can-load=\'!busyLoad.mail.busy\' treshold="261">\n                  <li data-ng-repeat="notification in agentNotifications.mail.rows">\n                    <a href="javascript:;" style="cursor:default;">\n                      <div class="row">\n                        <div class="col-md-1">\n                          <img src="assets/images/media/enquiry.png" style="width:25px;height:25px;" alt="">\n                        </div>\n                        <div class="col-md-10">\n                          <div>{{\'APPLICATION_NEW_MESSAGE\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'mailRoom\')">{{\'APPLICATION_MESSAGE_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n                          <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n                        </div>\n                      </div>\n                      <div>\n                        <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'mail\',notification.accountid,notification.from)">{{notification.from}}</span></span>\n                      </div>\n                    </a>\n                  </li>\n                </ul>\n              </li>\n            </ul>\n          </li>\n          <li data ng-if="license.chat" class="dropdown dropdown-extended dropdown-notification" id="header_chat_notification_bar" data-ng-click="agentNotifications.chat.new = 0;">\n            <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n              <i class="icon-bubble"></i>\n              <span class="badge badge-default" data-ng-if="agentNotifications.chat.new">\n                {{agentNotifications.chat.new}} </span>\n              </a>\n              <ul class="dropdown-menu">\n                <li class="external">\n                  <h3><span class="bold">{{\'APPLICATION_LAST_CHAT_NOTIFICATIONS\' | translate}}</span></h3>\n                </li>\n                <li>\n                  \x3c!-- BEGIN UI-GRID SPINNER --\x3e\n                  <span us-spinner spinner-key="chat-spinner-grid" data-ng-if="busyLoad.chat.busy" spinner-start-active="true"></span>\n                  \x3c!-- END UI-GRID SPINNER --\x3e\n                  <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'chat\')" can-load=\'!busyLoad.chat.busy\' treshold="261">\n                    <li data-ng-repeat="notification in agentNotifications.chat.rows">\n                      <a href="javascript:;" style="cursor:default;">\n                        <div class="row">\n                          <div class="col-md-1">\n                            <img src="assets/images/media/website.png" style="width:25px;height:25px;" alt="">\n                          </div>\n                          <div class="col-md-10">\n                            <div>{{\'APPLICATION_NEW_CHAT_REQUEST\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'chatRoom\')">{{\'APPLICATION_CHAT_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n                            <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n                          </div>\n                        </div>\n                        <div>\n                          <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'chat\',notification.websiteid,notification.visitoremail)">{{notification.visitoremail}}</span></span>\n                        </div>\n                      </a>\n                    </li>\n                  </ul>\n                </li>\n              </ul>\n            </li>\n            <li data ng-if="license.fax" class="dropdown dropdown-extended dropdown-notification" id="header_fax_notification_bar" data-ng-click="agentNotifications.fax.new = 0;">\n              <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n                <i class="fa fa-fax"></i>\n                <span class="badge badge-default" data-ng-if="agentNotifications.fax.new">\n                  {{agentNotifications.fax.new}} </span>\n                </a>\n                <ul class="dropdown-menu">\n                  <li class="external">\n                    <h3><span class="bold">{{\'APPLICATION_LAST_FAX_NOTIFICATIONS\' | translate}}</span></h3>\n                  </li>\n                  <li>\n                    \x3c!-- BEGIN UI-GRID SPINNER --\x3e\n                    <span us-spinner spinner-key="fax-spinner-grid" data-ng-if="busyLoad.fax.busy" spinner-start-active="true"></span>\n                    \x3c!-- END UI-GRID SPINNER --\x3e\n                    <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'fax\')" can-load=\'!busyLoad.fax.busy\' treshold="261">\n                      <li data-ng-repeat="notification in agentNotifications.fax.rows">\n                        <a href="javascript:;" style="cursor:default;">\n                          <div class="row">\n                            <div class="col-md-1">\n                              <img src="assets/images/media/fax.png" style="width:25px;height:25px;" alt="">\n                            </div>\n                            <div class="col-md-10">\n                              <div>{{\'APPLICATION_NEW_FAX_REQUEST\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'faxRoom\')">{{\'APPLICATION_FAX_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n                              <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n                            </div>\n                          </div>\n                          <div>\n                            <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'fax\',notification.accountid,notification.from)">{{notification.from}}</span></span>\n                          </div>\n                        </a>\n                      </li>\n                    </ul>\n                  </li>\n                </ul>\n              </li>\n              <li data ng-if="license.messaging" class="dropdown dropdown-extended dropdown-notification" id="header_sms_notification_bar" data-ng-click="agentNotifications.sms.new = 0;">\n                <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n                  <i class="glyphicon glyphicon-comment"></i>\n                  <span class="badge badge-default" data-ng-if="agentNotifications.sms.new">\n                    {{agentNotifications.sms.new}} </span>\n                  </a>\n                  <ul class="dropdown-menu">\n                    <li class="external">\n                      <h3><span class="bold">{{\'APPLICATION_LAST_SMS_NOTIFICATIONS\' | translate}}</span></h3>\n                    </li>\n                    <li>\n                      \x3c!-- BEGIN UI-GRID SPINNER --\x3e\n                      <span us-spinner spinner-key="sms-spinner-grid" data-ng-if="busyLoad.sms.busy" spinner-start-active="true"></span>\n                      \x3c!-- END UI-GRID SPINNER --\x3e\n                      <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'sms\')" can-load=\'!busyLoad.sms.busy\' treshold="261">\n                        <li data-ng-repeat="notification in agentNotifications.sms.rows">\n                          <a href="javascript:;" style="cursor:default;">\n                            <div class="row">\n                              <div class="col-md-1">\n                                <img src="assets/images/media/sms.png" style="width:25px;height:25px;" alt="">\n                              </div>\n                              <div class="col-md-10">\n                                <div>{{\'APPLICATION_NEW_SMS_REQUEST\' | translate}}<span data-ng-if="notification.status && notification.status !== \'none\'" class="badge float-right" data-ng-class="{\'badge-success pointer-cursor\':notification.status === \'taken\',\'badge-danger\':notification.status === \'lost\',\'badge-warning\':notification.status === \'rejected\'}" data-ng-click="notification.status === \'taken\' && openRoom(notification.roomid, \'smsRoom\')">{{\'APPLICATION_SMS_\'+notification.status.toUpperCase() | translate}} <i data-ng-if="notification.status === \'taken\'" class="fa fa-envelope"></i></span></div>\n                                <div><span class="time float-left" style="max-width:none !important;"><span am-time-ago="notification.updatedAt"></span></span></div>\n                              </div>\n                            </div>\n                            <div>\n                              <span class="message">{{\'APPLICATION_FROM\' | translate}}: <span class="span-link" data-ng-click="openContact(\'sms\',notification.accountid,notification.from)">{{notification.from}}</span></span>\n                            </div>\n                          </a>\n                        </li>\n                      </ul>\n                    </li>\n                  </ul>\n                </li>\n                <li data ng-if="license.openchannel" class="dropdown dropdown-extended dropdown-notification" id="header_openchannel_notification_bar" data-ng-click="agentNotifications.openchannel.new = 0;">\n                  <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">\n                    <i class="icon-globe"></i>\n                    <span class="badge badge-default" data-ng-if="agentNotifications.openchannel.new">\n                      {{agentNotifications.openchannel.new}} </span>\n                    </a>\n                    <ul class="dropdown-menu">\n                      <li class="external">\n                        <h3><span class="bold">{{\'APPLICATION_LAST_OPENCHANNEL_NOTIFICATIONS\' | translate}}</span></h3>\n                      </li>\n                      <li>\n                        \x3c!-- BEGIN UI-GRID SPINNER --\x3e\n                        <span us-spinner spinner-key="openchannel-spinner-grid" data-ng-if="busyLoad.openchannel.busy" spinner-start-active="true"></span>\n                        \x3c!-- END UI-GRID SPINNER --\x3e\n                        <ul class="dropdown-menu-list scrollable-menu" style="height: 250px;" data-handle-color="#637283" infinite-scroll="loadNotifications(\'openchannel\')" can-load=\'!busyLoad.openchannel.busy\' treshold="261">\n                          <li data-ng-repeat="notification in agentNotifications.openchannel.rows">\n                            <a href="javascript:;" style="cursor:default;">\n                              <div class="row">\n                                <div class="col-md-1">\n                                  <img src="assets/images/media/openchannel.png" style="width:25px;height:25px;" alt="">\n                                </div>\n                                <div class="col-md-10">\n'+"                                  <div>{{'APPLICATION_NEW_OPENCHANNEL_REQUEST' | translate}}<span data-ng-if=\"notification.status && notification.status !== 'none'\" class=\"badge float-right\" data-ng-class=\"{'badge-success pointer-cursor':notification.status === 'taken','badge-danger':notification.status === 'lost','badge-warning':notification.status === 'rejected'}\" data-ng-click=\"notification.status === 'taken' && openRoom(notification.roomid, 'openchannelRoom')\">{{'APPLICATION_OPENCHANNEL_'+notification.status.toUpperCase() | translate}} <i data-ng-if=\"notification.status === 'taken'\" class=\"fa fa-envelope\"></i></span></div>\n                                  <div><span class=\"time float-left\" style=\"max-width:none !important;\"><span am-time-ago=\"notification.updatedAt\"></span></span></div>\n                                </div>\n                              </div>\n                              \x3c!-- <div>\n                              <span class=\"message\">{{'APPLICATION_FROM' | translate}}: <span class=\"span-link\" data-ng-click=\"openContact('openchannel',notification.accountid,notification.from)\">{{notification.from}}</span></span>\n                            </div> --\x3e\n                          </a>\n                        </li>\n                      </ul>\n                    </li>\n                  </ul>\n                </li>\n              </ul>\n            </div>\n            \x3c!-- END TOP NAVIGATION MENU --\x3e\n          </div>\n          \x3c!-- END HEADER INNER --\x3e\n"),t.put("components/modal/delete.html",'<div class="modal-header">\n  <button ng-if="modal.dismissable" type="button" ng-click="$dismiss()" class="close">&times;</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'),t.put("components/sidebar/sidebar.html",'<div id="page-sidebar" class="page-sidebar navbar-collapse collapse" data-ng-init="initSidebar()">\n  \x3c!-- BEGIN SIDEBAR MENU --\x3e\n  \x3c!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) --\x3e\n  \x3c!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode --\x3e\n  \x3c!-- 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 --\x3e\n  \x3c!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing --\x3e\n  \x3c!-- DOC: Set data-keep-expand="true" to keep the submenues expanded --\x3e\n  \x3c!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed --\x3e\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    \x3c!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element --\x3e\n    <li class="sidebar-search-wrapper">\n      \x3c!-- BEGIN RESPONSIVE QUICK SEARCH FORM --\x3e\n      \x3c!-- DOC: Apply "sidebar-search-bordered" class the below search form to have bordered search box --\x3e\n      \x3c!-- DOC: Apply "sidebar-search-bordered sidebar-search-solid" class the below search form to have bordered & solid search box --\x3e\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      </form>\n      \x3c!-- END RESPONSIVE QUICK SEARCH FORM --\x3e\n    </li>\n\n    \x3c!-- START DASHBOARD CASE --\x3e\n    <li class="start" data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[1])" 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-if="$state.includes(\'main.dashboard\')" class="selected"></span>\n      </a>\n    </li>\n    \x3c!-- END DASHBOARD CASE --\x3e\n\n    \x3c!-- START YOURDASHBOARD LIST CASE --\x3e\n    <li data-ng-if="::(!Auth.isUser() || userModules[2])" data-ng-class="{active: $state.is(\'main.tools.yourdashboards.show\')}">\n      <a href="javascript:;">\n        <i class="fa fa-tachometer"></i>\n        <span class="title" >{{\'APPLICATION_YOUR_DASHBOARDS\' | translate}}</span>\n        <span class="arrow" data-ng-class="{ open: $state.includes(\'main.tools.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.tools.yourdashboards.show\')}" data-ng-repeat="dashboard in dashboards" data-ng-if="dashboard[Auth.getRole()]">\n          <a href="/tools/yourdashboards/show/{{dashboard.id}}" >\n            <i class="icon-screen-desktop"></i>\n            <span class="title" >{{dashboard.name}}  </span>\n          </a>\n        </li>\n      </ul>\n    </li>\n    \x3c!-- END YOURDASHBOARD LIST CASE --\x3e\n\n    \x3c!-- START STAFF LIST CASE --\x3e\n    <li data-ng-class="{active: $state.includes(\'main.staff\')}">\n      <a href="javascript:;" data-ng-if="::(Auth.isAdmin() || userModules[3])">\n        <i class="icon-puzzle"></i>\n        <span class="title" >{{\'APPLICATION_STAFF\' | translate}}</span>\n        <span class="arrow" data-ng-class="{open: $state.includes(\'main.staff\')}"></span>\n      </a>\n      <ul class="sub-menu">\n        \x3c!-- START USERS CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.staff.users\')}">\n          <a href="/staff/users/list">\n            <i class="icon-eye"></i>\n            <span class="title" >{{\'APPLICATION_USERS\' | translate}}</span>\n            <span data-ng-if="$state.includes(\'main.staff.users\')" class="selected"></span>\n          </a>\n        </li>\n        \x3c!-- END USERS CASE --\x3e\n\n        \x3c!-- START AGENTS CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin() || userModules[4])" data-ng-class="{active: $state.includes(\'main.staff.agents\')}">\n          <a href="/staff/agents/list">\n            <i class="icon-people"></i>\n            <span class="title" >{{\'APPLICATION_AGENTS\' | translate}}</span>\n            <span data-ng-if="$state.includes(\'main.staff.agents\')" class="selected"></span>\n          </a>\n        </li>\n        \x3c!-- END AGENTS CASE --\x3e\n\n        \x3c!-- START TELEPHONES CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.staff.telephones\')}">\n          <a href="/staff/telephones/list">\n            <i class="icon-phone"></i>\n            <span class="title" >{{\'APPLICATION_TELEPHONES\' | translate}}</span>\n            <span data-ng-if="$state.includes(\'main.staff.telephones\')" class="selected"></span>\n          </a>\n        </li>\n        \x3c!-- END TELEPHONES CASE --\x3e\n\n        \x3c!-- START TEAMS CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.staff.teams\')}">\n          <a href="/staff/teams/list">\n            <i class="icon-shield"></i>\n            <span class="title" >{{\'APPLICATION_TEAMS\' | translate}}</span>\n            <span data-ng-if="$state.includes(\'main.staff.teams\')" class="selected"></span>\n          </a>\n        </li>\n        \x3c!-- END TEAMS CASE --\x3e\n      </ul>\n    </li>\n    \x3c!-- END STAFF LIST CASE --\x3e\n\n    \x3c!-- START CONTACT MANAGER LIST CASE --\x3e\n    <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[5])" data-ng-class="{active: $state.includes(\'main.contactmanager\')}">\n      <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.cm}">\n        <i class="icon-notebook"></i>\n        <span class="title disable-target" >{{\'APPLICATION_CONTACT_MANAGER\' | translate}}</span>\n        <span class="arrow" data-ng-class="{ open: $state.includes(\'main.contactmanager.contacts\')\n        || $state.includes(\'main.contactmanager.companies\')\n        || $state.includes(\'main.contactmanager.lists\') || $state.includes(\'main.contactmanager.customfields\') }"></span>\n      </a>\n      <ul class="sub-menu" data-ng-if="license.cm">\n        \x3c!-- START CONTACTS CASE --\x3e\n        <li 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-if="$state.includes(\'main.contactmanager.contacts\')" class="selected"></span>\n          </a>\n        </li>\n        \x3c!-- END CONTACTS CASE --\x3e\n        \x3c!-- START COMPANIES CASE --\x3e\n        <li data-ng-class="{active: $state.includes(\'main.contactmanager.companies\')}" data-ng-if="::(Auth.isAdmin() || Auth.isUser())">\n          <a href="/contactmanager/companies/list">\n            <i class="icon-briefcase"></i>\n            <span class="title" >{{\'APPLICATION_COMPANIES\' | translate}}</span>\n            <span data-ng-if="$state.includes(\'main.contactmanager.companies\')" class="selected"></span>\n          </a>\n        </li>\n        \x3c!-- END COMPANIES CASE --\x3e\n        \x3c!-- START LISTS CASE --\x3e\n        <li data-ng-class="{active: $state.includes(\'main.contactmanager.lists\')}" data-ng-if="::(Auth.isAdmin() || Auth.isUser())">\n          <a href="/contactmanager/lists/list">\n            <i class="fa fa-list-ul"></i>\n            <span class="title" >{{\'APPLICATION_LISTS\' | translate}}</span>\n            <span data-ng-if="$state.includes(\'main.contactmanager.lists\')" class="selected"></span>\n          </a>\n        </li>\n        \x3c!-- END LISTS CASE --\x3e\n        \x3c!-- START CUSTOM_FIELDS CASE --\x3e\n        <li data-ng-class="{active: $state.includes(\'main.contactmanager.customfields\')}" data-ng-if="::(Auth.isAdmin() || Auth.isUser())">\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-if="$state.includes(\'main.contactmanager.customfields\')" class="selected"></span>\n          </a>\n        </li>\n        \x3c!-- END CUSTOM_FIELDS CASE --\x3e\n      </ul>\n    </li>\n    \x3c!-- END CONTACT MANAGER LIST CASE --\x3e\n\n    \x3c!-- START CHANNEL LIST CASE --\x3e\n    <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[6])" data-ng-class="{active: $state.includes(\'main.channels\')}">\n      <a href="javascript:;">\n        <i class="fa fa-spinner"></i>\n        <span class="title" >{{\'APPLICATION_CHANNELS\' | translate}}</span>\n        <span class="arrow" data-ng-class="{open: $state.includes(\'main.channels\')}"></span>\n      </a>\n      <ul class="sub-menu">\n        \x3c!-- START VOICE CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[7])" data-ng-class="{ active: $state.includes(\'main.channels.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.channels.voice\') }"></span>\n          </a>\n\n          <ul class="sub-menu">\n            <li data-ng-if="::(Auth.isAdmin())" data-ng-class="{active: $state.includes(\'main.channels.voice.queues\')}">\n              <a href="/channels/voice/queues/list">\n                <i class="icon-docs"></i>\n                <span class="title">{{\'APPLICATION_QUEUES\' | translate}}</span>\n              </a>\n            </li>\n            <li data-ng-if="::(Auth.isAdmin() || userModules[21])">\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.channels.voice.routes\') }"></span>\n                <ul class="sub-menu">\n                  <li data-ng-class="{active: $state.includes(\'main.channels.voice.routes.inbound\')}">\n                    <a href="/channels/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.channels.voice.routes.outbound\')}">\n                    <a href="/channels/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.channels.voice.routes.internal\')}">\n                    <a href="/channels/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-if="::(Auth.isAdmin() || userModules[22])" data-ng-class="{active: $state.includes(\'main.channels.voice.contexts\')}">\n              <a href="/channels/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-if="::(Auth.isAdmin() || userModules[23])" data-ng-class="{active: $state.includes(\'main.channels.voice.voicemails\')}">\n              <a href="/channels/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-if="::(Auth.isAdmin() || userModules[24])" data-ng-class="{active: $state.includes(\'main.channels.voice.mohs\')}">\n              <a href="/channels/voice/mohs/list">\n                <i class="icon-music-tone"></i>\n                <span class="title"> {{\'APPLICATION_MOH\' | translate}} </span>\n              </a>\n            </li>\n            \x3c!-- START RECORDING CASE --\x3e\n            <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[25])" data-ng-class="{active: $state.includes(\'main.channels.voice.recordings\')}">\n              <a href="/channels/voice/recordings/list">\n                <i class="icon-control-play"></i>\n                <span class="title">{{\'APPLICATION_RECORDINGS\' | translate}}</span>\n              </a>\n            </li>\n            \x3c!-- END RECORDING CASE --\x3e\n            \x3c!-- START REALTIME CASE --\x3e\n            <li data-ng-if="::(Auth.isAdmin() || userModules[26])" data-ng-class="{active: $state.includes(\'main.channels.voice.realtime\')}">\n              <a href="/channels/voice/realtime/view/agents">\n                <i class="icon-energy"></i>\n                <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n              </a>\n            </li>\n            \x3c!-- END REALTIME CASE --\x3e\n            \x3c!-- START CHANSPY CASE --\x3e\n            <li data-ng-if="::(Auth.isAdmin() || userModules[27])" data-ng-class="{active: $state.includes(\'main.channels.voice.chanspy\')}">\n              <a href="/channels/voice/chanspy/list">\n                <i class="fa fa-user-secret"></i>\n                <span class="title" >{{\'APPLICATION_CHANSPY\' | translate}}</span>\n                \x3c!-- <span data-ng-if="$state.includes(\'main.chanspy\')" class="selected"></span> --\x3e\n              </a>\n            </li>\n            \x3c!-- END CHANSPY CASE --\x3e\n            \x3c!-- START CHANSPY CASE --\x3e\n            <li data-ng-if="::(Auth.isAdmin() || userModules[28])" data-ng-class="{active: $state.includes(\'main.channels.voice.dispositions\')}">\n              <a href="/channels/voice/dispositions/list">\n                <i class="icon-target"></i>\n                <span class="title" >{{\'APPLICATION_DISPOSITIONS\' | translate}}</span>\n              </a>\n            </li>\n            \x3c!-- END CHANSPY CASE --\x3e\n          </ul>\n        </li>\n        \x3c!-- END VOICE CASE --\x3e\n\n        \x3c!-- START CHAT CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[8])" data-ng-class="{active: $state.includes(\'main.channels.chat\')}">\n          <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.chat}">\n            <i class="icon-bubble"></i>\n            <span class="title disable-target">{{\'APPLICATION_CHAT\' | translate}}</span>\n            <span class="arrow" data-ng-class="{open: $state.includes(\'main.channels.chat\')}"></span>\n          </a>\n          <ul class="sub-menu" data-ng-if="license.chat">\n            <li data-ng-if="::(Auth.isAdmin() || userModules[29])" data-ng-class="{active: $state.includes(\'main.channels.chat.websites\')}">\n              <a href="/channels/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-if="::(Auth.isAdmin() || userModules[30])" data-ng-class="{active: $state.includes(\'main.channels.chat.queues\')}">\n              <a href="/channels/chat/queues/list">\n                <i class="icon-docs"></i>\n                <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n              </a>\n            </li>\n            <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[31])" data-ng-class="{active: $state.includes(\'main.channels.chat.room\')}">\n              <a href="/channels/chat/room/internal/list">\n                <i class="fa fa-users"></i>\n                <span class="title"> {{\'APPLICATION_INTERACTIONS\' | translate}} </span>\n              </a>\n            </li>\n            \x3c!-- <li data-ng-if="::(Auth.isAdmin() || userModules[8])" data-ng-class="{active: $state.includes(\'main.channels.chat.online\')}">\n              <a href="/channels/chat/online/list">\n                <i class="icon-login"></i>\n                <span class="title"> {{\'APPLICATION_ONLINE_MESSAGES\' | translate}} </span>\n              </a>\n            </li> --\x3e\n            <li data-ng-if="::(Auth.isAdmin() || userModules[32])" data-ng-class="{active: $state.includes(\'main.channels.chat.offline\')}">\n              <a href="/channels/chat/offline/list">\n                <i class="icon-logout"></i>\n                <span class="title"> {{\'APPLICATION_OFFLINE_MESSAGES\' | translate}} </span>\n              </a>\n            </li>\n            <li data-ng-if="::(Auth.isAdmin() || userModules[33])" data-ng-class="{active: $state.includes(\'main.channels.chat.realtime\')}">\n              <a href="/channels/chat/realtime/view/agents">\n                <i class="icon-energy"></i>\n                <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n              </a>\n            </li>\n          </ul>\n        </li>\n        \x3c!-- END CHAT CASE --\x3e\n\n        \x3c!-- START MAIL CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[9])" data-ng-class="{active: $state.includes(\'main.channels.mail\')}" >\n          <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.mail}">\n            <i class="icon-envelope"></i>\n            <span class="title disable-target">{{\'APPLICATION_MAIL\' | translate}}</span>\n            <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.mail\') }"></span>\n          </a>\n\n          <ul class="sub-menu" data-ng-if="license.mail">\n            <li data-ng-if="::(Auth.isAdmin() || userModules[34])" data-ng-class="{active: $state.includes(\'main.channels.mail.accounts\') || $state.includes(\'main.channels.mail.account\')}">\n              <a href="/channels/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-if="::(Auth.isAdmin() || userModules[35])" data-ng-class="{active: $state.includes(\'main.channels.mail.queues\') || $state.includes(\'main.channels.mail.queue\')}">\n              <a href="/channels/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-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[36])" data-ng-class="{active: $state.includes(\'main.channels.mail.inbox\')}">\n              <a href="/channels/mail/inbox/view">\n                <i class="icon-note"></i>\n                <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n              </a>\n            </li>\n            \x3c!-- START REALTIME CASE --\x3e\n            <li data-ng-if="::(Auth.isAdmin() || userModules[37])" data-ng-class="{active: $state.includes(\'main.channels.mail.realtime\')}">\n              <a href="/channels/mail/realtime/view/agents">\n                <i class="icon-energy"></i>\n                <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n              </a>\n            </li>\n            \x3c!-- END REALTIME CASE --\x3e\n          </ul>\n        </li>\n        \x3c!-- END MAIL CASE --\x3e\n\n        \x3c!-- START FAX CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[10])" data-ng-class="{active: $state.includes(\'main.channels.fax\')}">\n          <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.fax}">\n            <i class="fa fa-fax"></i>\n            <span class="title disable-target"> {{ \'APPLICATION_FAX\' | translate}}</span>\n            <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.fax\') }"></span>\n          </a>\n          <ul class="sub-menu" data-ng-if="license.fax">\n            <li data-ng-if="::(Auth.isAdmin() || userModules[38])" data-ng-class="{active: $state.includes(\'main.channels.fax.accounts\')}">\n              <a href="/channels/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-if="::(Auth.isAdmin() || userModules[39])" data-ng-class="{active: $state.includes(\'main.channels.fax.queues\')}">\n              <a href="/channels/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-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[40])" data-ng-class="{active: $state.includes(\'main.channels.fax.inbox\')}">\n              <a href="/channels/fax/inbox/view">\n                <i class="icon-note"></i>\n                <span class="title"> {{ \'APPLICATION_INBOX\' | translate }} </span>\n              </a>\n            </li>\n            \x3c!-- START REALTIME CASE --\x3e\n            <li data-ng-if="::(Auth.isAdmin() || userModules[41])" data-ng-class="{active: $state.includes(\'main.channels.fax.realtime\')}">\n              <a href="/channels/fax/realtime/view/agents">\n                <i class="icon-energy"></i>\n                <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n              </a>\n            </li>\n            \x3c!-- END REALTIME CASE --\x3e\n          </ul>\n        </li>\n        \x3c!-- END FAX CASE --\x3e\n\n        \x3c!-- START SMS CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[11])" data-ng-class="{active: $state.includes(\'main.channels.sms\')}">\n          <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.messaging}">\n            <i class="glyphicon glyphicon-comment"></i>\n            <span class="title disable-target">{{\'APPLICATION_SMS\' | translate}}</span>\n            <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.sms\') }"></span>\n          </a>\n\n          <ul class="sub-menu" data-ng-if="license.messaging">\n            <li data-ng-if="::(Auth.isAdmin() || userModules[42])" data-ng-class="{active: $state.includes(\'main.channels.sms.accounts\') || $state.includes(\'main.channels.sms.account\')}">\n              <a href="/channels/sms/accounts/list">\n                <i class="icon-notebook"></i>\n                <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n              </a>\n            </li>\n            <li data-ng-if="::(Auth.isAdmin() || userModules[43])" data-ng-class="{active: $state.includes(\'main.channels.sms.queues\') || $state.includes(\'main.channels.sms.queue\')}">\n              <a href="/channels/sms/queues/list">\n                <i class="icon-docs"></i>\n                <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n              </a>\n            </li>\n            <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent() || userModules[44])" data-ng-class="{active: $state.includes(\'main.channels.sms.inbox\')}">\n              <a href="/channels/sms/inbox/view">\n                <i class="icon-note"></i>\n                <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n              </a>\n            </li>\n            \x3c!-- START REALTIME CASE --\x3e\n            <li data-ng-if="::(Auth.isAdmin() ||  userModules[45])"  data-ng-class="{active: $state.includes(\'main.channels.sms.realtime\')}">\n              <a href="/channels/sms/realtime/view/agents">\n                <i class="icon-energy"></i>\n                <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n              </a>\n            </li>\n            \x3c!-- END REALTIME CASE --\x3e\n          </ul>\n        </li>\n\n        \x3c!-- END SMS CASE --\x3e\n\n        \x3c!-- START OPENCHANNEL CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent()|| userModules[20])" data-ng-class="{active: $state.includes(\'main.channels.openchannel\')}">\n          <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.openchannel}" >\n            <i class="icon-globe"></i>\n            <span class="title disable-target">{{\'APPLICATION_OPEN_CHANNEL\' | translate}}</span>\n            <span class="arrow" data-ng-class="{ open: $state.includes(\'main.channels.openchannel\') }"></span>\n          </a>\n          <ul class="sub-menu" data-ng-if="license.openchannel" >\n            <li data-ng-if="::(Auth.isAdmin()|| userModules[46])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.accounts\') || $state.includes(\'main.channels.openchannel.account\')}">\n              <a href="/channels/openchannel/accounts/list">\n                <i class="icon-notebook"></i>\n                <span class="title"> {{\'APPLICATION_ACCOUNTS\' | translate}} </span>\n              </a>\n            </li>\n            <li data-ng-if="::(Auth.isAdmin()|| userModules[47])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.queues\') || $state.includes(\'main.channels.openchannel.queue\')}">\n              <a href="/channels/openchannel/queues/list">\n                <i class="icon-docs"></i>\n                <span class="title"> {{\'APPLICATION_QUEUES\' | translate}} </span>\n              </a>\n            </li>\n            <li data-ng-if="::(Auth.isAdmin() || Auth.isAgent()|| userModules[48])" data-ng-class="{active: $state.includes(\'main.channels.openchannel.inbox\')}">\n              <a href="/channels/openchannel/inbox/view">\n                <i class="icon-note"></i>\n                <span class="title"> {{\'APPLICATION_INBOX\' | translate}} </span>\n              </a>\n            </li>\n            \x3c!-- START REALTIME CASE --\x3e\n            <li data-ng-if="::(Auth.isAdmin() ||  userModules[49])"  data-ng-class="{active: $state.includes(\'main.channels.openchannel.realtime\')}">\n              <a href="/channels/openchannel/realtime/view/agents">\n                <i class="icon-energy"></i>\n                <span class="title">{{\'APPLICATION_REALTIME\' | translate}}</span>\n              </a>\n            </li>\n            \x3c!-- END REALTIME CASE --\x3e\n          </ul>\n        </li>\n\n        \x3c!-- END OPENCHANNEL CASE --\x3e\n        \x3c!-- START REALTIME CASE --\x3e\n        <li data-ng-if="::(Auth.isAdmin() || userModules[12])" data-ng-class="{active: $state.includes(\'main.channels.realtime\')}">\n          <a href="/channels/realtime/view/agents">\n            <i class="icon-energy"></i>\n            <span class="title">{{\'APPLICATION_OMNI_REALTIME\' | translate}}</span>\n          </a>\n        </li>\n        \x3c!-- END REALTIME CASE --\x3e\n      </ul>\n    </li>\n    \x3c!-- END CHANNEL LIST CASE --\x3e\n\n    \x3c!-- START TOOLS LIST CASE --\x3e\n    <li data-ng-if="::(Auth.isAdmin() || userModules[13])" data-ng-class="{active: $state.includes(\'main.tools\') && !$state.is(\'main.tools.yourdashboards.show\')}">\n      <a href="javascript:;">\n        <i class="icon-wrench"></i>\n        <span class="title" >{{\'APPLICATION_TOOLS\' | translate}}</span>\n        <span class="arrow" data-ng-class="{ open: $state.includes(\'main.tools\') && !$state.is(\'main.tools.yourdashboards.show\')}"></span>\n      </a>\n      <ul class="sub-menu">\n        <li data-ng-class="{active: $state.includes(\'main.tools.triggers\')}" data-ng-if="::(Auth.isAdmin() || userModules[50])">\n          <a href="/tools/triggers/list">\n            <i class="icon-bulb"></i>\n            <span class="title"> {{\'APPLICATION_TRIGGERS\' | translate}} </span>\n          </a>\n        </li>\n        <li data-ng-class="{active: $state.includes(\'main.tools.automations\')}" data-ng-if="::(Auth.isAdmin() || userModules[51])">\n          <a href="/tools/automations/list">\n            <i class="icon-settings"></i>\n            <span class="title"> {{\'APPLICATION_AUTOMATIONS\' | translate}} </span>\n          </a>\n        </li>\n        <li data-ng-class="{active: $state.includes(\'main.tools.trunks\')}" data-ng-if="::(Auth.isAdmin() || userModules[52])">\n          <a href="/tools/trunks/list">\n            <i class="icon-link"></i>\n            <span class="title"> {{\'APPLICATION_TRUNKS\' | translate}} </span>\n          </a>\n        </li>\n        <li data-ng-class="{active: $state.includes(\'main.tools.intervals\')}" data-ng-if="::(Auth.isAdmin() || userModules[53])">\n          <a href="/tools/intervals/list">\n            <i class="icon-clock"></i>\n            <span class="title"> {{\'APPLICATION_INTERVALS\' | translate}} </span>\n          </a>\n        </li>\n        <li data-ng-class="{active: $state.includes(\'main.tools.variables\')}" data-ng-if="::(Auth.isAdmin() || userModules[54])">\n          <a href="/tools/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-class="{active: $state.includes(\'main.tools.tags\')}" data-ng-if="::(Auth.isAdmin() || userModules[55])">\n          <a href="/tools/tags/list">\n            <i class="icon-tag"></i>\n            <span class="title" >{{\'APPLICATION_TAGS\' | translate}}  </span>\n          </a>\n        </li>\n        \x3c!-- START TEMPLATE CASE --\x3e\n        <li data-ng-class="{active: $state.includes(\'main.tools.templates\')}" data-ng-if="::(Auth.isAdmin() || userModules[56])">\n          <a href="/tools/templates/list">\n            <i class="icon-docs"></i>\n            <span class="title"> {{\'APPLICATION_TEMPLATES\' | translate}} </span>\n          </a>\n        </li>\n        \x3c!-- END TEMPLATE CASE --\x3e\n\n        \x3c!-- START PAUSE CASE --\x3e\n        <li data-ng-class="{active: $state.includes(\'main.tools.pauses\')}" data-ng-if="::(Auth.isAdmin() || userModules[57])">\n          <a href="/tools/pauses/list">\n            <i class="icon-control-pause"></i>\n            <span class="title"> {{\'APPLICATION_PAUSES\' | translate}} </span>\n          </a>\n        </li>\n        \x3c!-- END PAUSE CASE --\x3e\n\n        \x3c!-- START ANSWER CASE --\x3e\n        <li data-ng-class="{active: $state.includes(\'main.tools.answers\')}" data-ng-if="::(Auth.isAdmin() || userModules[58])">\n          <a href="/tools/answers/list">\n            <i class="icon-magic-wand"></i>\n            <span class="title"> {{\'APPLICATION_CANNED_ANSWERS\' | translate}} </span>\n          </a>\n        </li>\n        \x3c!-- END ANSWER CASE --\x3e\n\n        \x3c!-- START DASHBOARD MANAGER CASE --\x3e\n        <li data-ng-class="{active: $state.includes(\'main.tools.yourdashboards\') && !$state.is(\'main.tools.yourdashboards.show\')}" data-ng-if="::(Auth.isAdmin() || userModules[59])">\n          <a href="/tools/yourdashboards/list">\n            <i class="fa fa-tachometer"></i>\n            <span class="title"> {{\'APPLICATION_DASHBOARDS_MANAGER\' | translate}} </span>\n          </a>\n        </li>\n        \x3c!-- END DASHBOARD MANAGER CASE --\x3e\n\n        \x3c!-- START SOUND CASE --\x3e\n        <li data-ng-class="{active: $state.includes(\'main.tools.sounds\')}" data-ng-if="::(Auth.isAdmin() || userModules[60])">\n          <a href="/tools/sounds/list">\n            <i class="icon-music-tone-alt"></i>\n            <span class="title" >{{\'APPLICATION_SOUNDS\' | translate}}</span>\n            \x3c!-- <span data-ng-if="$state.includes(\'main.sounds\')" class="selected"></span> --\x3e\n          </a>\n        </li>\n        \x3c!-- END SOUND CASE --\x3e\n\n        \x3c!-- START SCHEDULE CASE --\x3e\n        <li data-ng-class="{active: $state.includes(\'main.tools.scheduler\')}" data-ng-if="::(Auth.isAdmin() || userModules[61])">\n          <a href="/tools/scheduler/list">\n            <i class="icon-calendar"></i>\n            <span class="title" >{{\'APPLICATION_SCHEDULER\' | translate}}</span>\n            \x3c!-- <span data-ng-if="$state.includes(\'main.sounds\')" class="selected"></span> --\x3e\n          </a>\n        </li>\n        \x3c!-- END SCHEDULE CASE --\x3e\n      </ul>\n    </li>\n    \x3c!-- END TOOLS LIST CASE --\x3e\n\n    \x3c!-- START CALLYSQUARE CASE --\x3e\n    <li data-ng-if="::(Auth.isAdmin() || userModules[14])" data-ng-class="{active: $state.includes(\'main.square\')}">\n      <a href="javascript:;">\n        <i class="fa fa-superscript"></i>\n        <span class="title" >Cally &#178;</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/odbc/list">\n            <i class="fa fa-database"></i>\n            <span class="title" >{{\'APPLICATION_ODBC\' | translate}} </span>\n          </a>\n        </li>\n        <li data-ng-class="{active: $state.includes(\'main.square.recordings\')}">\n          <a href="/square/recordings/list">\n            <i class="icon-microphone"></i>\n            <span class="title" >{{\'APPLICATION_RECORDINGS\' | translate}} </span>\n          </a>\n        </li>\n        <li data-ng-class="{active: $state.includes(\'main.square.realtime.view.general\')}">\n          <a href="/square/realtime/view/general">\n            <i class="icon-energy"></i>\n            <span class="title" >{{\'APPLICATION_REALTIME\' | translate}} </span>\n          </a>\n        </li>\n      </ul>\n    </li>\n    \x3c!-- END CALLYSQUARE CASE --\x3e\n    \x3c!-- START JSCRIPTY LIST --\x3e\n    <li data-ng-show="::(Auth.isAdmin() || Auth.isAgent() || userModules[15])" data-ng-class="{active: $state.includes(\'main.jscripty\')}">\n      <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.jscripty}" >\n        <i class="icon-note"></i>\n        <span class="title disable-target" >{{\'APPLICATION_JSCRIPTY\' | translate}} </span>\n        <span class="arrow"></span>\n      </a>\n      <ul class="sub-menu" data-ng-if="license.jscripty">\n        \x3c!--  --\x3e\n        \x3c!-- START PROJECTS CASE --\x3e\n        <li data-ng-show="Auth.isAdmin() || Auth.isAgent() || userModules[15]"  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        \x3c!-- END PROJECTS CASE --\x3e\n      </ul>\n    </li>\n    \x3c!-- END JSCRIPTY LIST --\x3e\n\n    \x3c!-- START MOTION DIALER LIST CASE--\x3e\n    <li data-ng-if="::(Auth.isAdmin() || userModules[16])" data-ng-class="{active: $state.includes(\'main.motiondialer\')}">\n      <a href="javascript:;" data-ng-class="{\'disabled-link\':!license.dialer}">\n        <i class="icon-control-forward"></i>\n        <span class="title disable-target" >{{\'APPLICATION_MOTION_DIALER\' | translate}} </span>\n        <span class="arrow"></span>\n      </a>\n      <ul class="sub-menu" data-ng-if="license.dialer">\n        <li data-ng-class="{active: $state.includes(\'main.motiondialer.blacklist\')}">\n          <a href="/motiondialer/blacklist/list">\n            <i class="icon-doc"></i>\n            <span class="title" >{{\'APPLICATION_BLACKLIST\' | translate}} </span>\n          </a>\n        </li>\n        <li data-ng-class="{active: $state.includes(\'main.motiondialer.processes\')}">\n          <a href="/motiondialer/processes/list">\n            <i class="icon-settings"></i>\n            <span class="title" >{{\'APPLICATION_PROCESSES\' | translate}} </span>\n          </a>\n        </li>\n        <li data-ng-class="{active: $state.includes(\'main.motiondialer.info\')}">\n          <a href="/motiondialer/info/view/about">\n            <i class="icon-info"></i>\n            <span class="title" >{{\'APPLICATION_INFO\' | translate}} </span>\n          </a>\n        </li>\n      </ul>\n    </li>\n    \x3c!-- END MOTION DIALER LIST CASE--\x3e\n\n    \x3c!-- START ANALYTIC LIST CASE --\x3e\n    <li data-ng-if="::(Auth.isAdmin() || userModules[17])" data-ng-class="{active: $state.includes(\'main.analytics.reports\')\n    || $state.includes(\'main.analytics.extracted\')\n    || $state.includes(\'main.analytics.metrics\')}" data-ng-if="::(Auth.isAdmin())">\n    <a href="javascript:;">\n      <i class="icon-calculator"></i>\n      <span class="title" >{{\'APPLICATION_ANALYTICS\' | translate}}</span>\n      <span class="arrow" data-ng-class="{ open: $state.includes(\'main.analytics.reports\')\n      || $state.includes(\'main.analytics.extracted\')\n      || $state.includes(\'main.analytics.metrics\') }"></span>\n    </a>\n    <ul class="sub-menu">\n      \x3c!-- START REPORT CASE --\x3e\n      <li 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-if="$state.includes(\'main.analytics.reports\')" class="selected"></span>\n        </a>\n      </li>\n      \x3c!-- END REPORT CASE --\x3e\n      \x3c!-- START EXTRA REPORT CASE --\x3e\n      <li data-ng-class="{active: $state.includes(\'main.analytics.extracted\')}">\n        <a href="/analytics/extracted/list">\n          <i class="fa fa-file-pdf-o"></i>\n          <span class="title" >{{\'APPLICATION_EXTRACTED_REPORTS\' | translate}}</span>\n          <span data-ng-if="$state.includes(\'main.analytics.extracted\')" class="selected"></span>\n        </a>\n      </li>\n      \x3c!-- END EXTRA REPORT CASE --\x3e\n      \x3c!-- START METRICS CASE --\x3e\n      <li 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-if="$state.includes(\'main.metrics.reports\')" class="selected"></span>\n        </a>\n      </li>\n      \x3c!-- END METRICS CASE --\x3e\n    </ul>\n  </li>\n  \x3c!-- END ANALYTIC LIST CASE --\x3e\n\n  \x3c!-- START SETTINGS LIST --\x3e\n  <li data-ng-if="::(Auth.isAdmin() || userModules[18])" 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      \x3c!-- START GENERAL CASE --\x3e\n      <li data-ng-class="{active: $state.includes(\'main.setting.general\')}">\n        <a href="/setting/general/view/main">\n          <i class="icon-settings"></i>\n          <span class="title"> {{\'APPLICATION_GENERAL\' | translate}} </span>\n        </a>\n      </li>\n      \x3c!-- END GENERAL CASE --\x3e\n\n      \x3c!-- START UPDATES CASE --\x3e\n      <li data-ng-class="{active: $state.includes(\'main.setting.updates\')}">\n        <a href="{{license.update ? \'/setting/updates/list\' : \'javascript:;\'}}" data-ng-class="{\'disabled-link\':!license.update}">\n          <i class="icon-cloud-download"></i>\n          <span class="title disable-target" >{{\'APPLICATION_UPDATES\' | translate}}</span>\n          \x3c!-- <span data-ng-if="$state.includes(\'main.updates\')" class="selected"></span> --\x3e\n        </a>\n      </li>\n      \x3c!-- END UPDATES CASE --\x3e\n\n      \x3c!-- START SMTP CASE --\x3e\n      <li 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          \x3c!-- <span data-ng-if="$state.includes(\'main.smtp\')" class="selected"></span> --\x3e\n        </a>\n      </li>\n      \x3c!-- END SMTP CASE --\x3e\n\n      \x3c!-- START LICENSE CASE --\x3e\n      <li 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      \x3c!-- END LICENSE CASE --\x3e\n\n      \x3c!-- START NETWORK CASE --\x3e\n      <li data-ng-class="{active: $state.includes(\'main.setting.network\')}">\n        <a href="/setting/network/view/localnet">\n          <i class="icon-globe"></i>\n          <span class="title"> {{\'APPLICATION_NETWORK\' | translate}} </span>\n        </a>\n      </li>\n      \x3c!-- END NETWORK CASE --\x3e\n\n      \x3c!-- START SYSTEM CASE --\x3e\n      <li data-ng-class="{active: $state.includes(\'main.setting.system\')}">\n        <a href="/setting/system/view/general">\n          <i class="icon-pie-chart"></i>\n          <span class="title"> {{\'APPLICATION_SYSTEM\' | translate}} </span>\n        </a>\n      </li>\n      \x3c!-- END SYSTEM CASE --\x3e\n\n      \x3c!-- START CUSTOMIZATION CASE --\x3e\n      <li data-ng-class="{active: $state.includes(\'main.setting.customization\')}">\n        <a href="/setting/customization/view/general">\n          <i class="icon-equalizer"></i>\n          <span class="title"> {{\'APPLICATION_CUSTOMIZATION\' | translate}} </span>\n        </a>\n      </li>\n      \x3c!-- END CUSTOMIZATION CASE --\x3e\n    </ul>\n  </li>\n  \x3c!-- END SETTINGS LIST --\x3e\n\n  \x3c!-- START INTEGRATION CASE --\x3e\n  <li data-ng-if=" (Auth.isAdmin() || Auth.isAgent() || userModules[19]) && integration.active" data-ng-repeat="integration in integrations" data-ng-class="{active: $state.includes(\'main.{{integration.state}}\')}">\n    <a href="/{{integration.state}}/list" ng-switch on="integration.state" data-ng-if="integration.state !== \'iframe\' && (Auth.isAdmin() || userModules[19])">\n      <i ng-switch-when="zendesk" class="icon-heart"></i>\n      <i ng-switch-when="salesforce" class="fa fa-cloud"></i>\n      <i ng-switch-default class="icon-handbag"></i>\n      <span class="title" >{{integration.name}}</span>\n      <span data-ng-if="$state.includes(\'main.{{integration.state}}\')" class="selected"></span>\n    </a>\n    <a href="/{{integration.state}}/view" data-ng-if="integration.state === \'iframe\'">\n      <i class="fa fa-chrome"></i>\n      <span class="title" data-ng-if="Auth.isAdmin() || userModules[19]">{{integration.name}}</span>\n      <span class="title" data-ng-if="Auth.isAgent()">{{integration.title || integration.name}}</span>\n      <span data-ng-if="$state.includes(\'main.{{integration.state}}\')" class="selected"></span>\n    </a>\n  </li>\n\n  <li data-ng-if="::(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-if="$state.includes(\'main.market\')" class="selected"></span>\n    </a>\n  </li>\n  \x3c!-- END INTEGRATIONS CASE --\x3e\n  <li>\n  <a href="javascript:;" data-ng-click="activeTour.main = true" data-ng-if="::(!Auth.isAgent())">\n    <i class="icon-location-pin"></i>\n    <span class="title">{{\'APPLICATION_TAKE_A_TOUR\' | translate}}</span>\n  </a>\n  </li>\n  <li>\n    <a href="javascript:;" data-ng-click="about()">\n      <i class="icon-info"></i>\n      <span class="title">{{\'APPLICATION_ABOUT\' | translate}}</span>\n    </a>\n  </li>\n\n</ul>\n\x3c!-- END SIDEBAR MENU --\x3e\n</div>\n')}]);